Skip to main content

identity_provider

Creates, updates, deletes, gets or lists an identity_provider resource.

Overview

Nameidentity_provider
TypeResource
Idazure.api_management.identity_provider

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
allowedTenantsarrayList of Allowed Tenants when configuring Azure Active Directory login.
authoritystringOpenID Connect discovery endpoint hostname for AAD or AAD B2C.
certificateIdstringCertificate full resource ID used in external Identity Provider.
clientIdstringClient Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. Required.
clientLibrarystringThe client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider.
clientSecretstringClient secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
passwordResetPolicyNamestringPassword Reset Policy Name. Only applies to AAD B2C Identity Provider.
profileEditingPolicyNamestringProfile Editing Policy Name. Only applies to AAD B2C Identity Provider.
signinPolicyNamestringSignin Policy Name. Only applies to AAD B2C Identity Provider.
signinTenantstringThe TenantId to use instead of Common when logging into Active Directory.
signupPolicyNamestringSignup Policy Name. Only applies to AAD B2C Identity Provider.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, service_name, identity_provider_name, subscription_idGets the configuration details of the identity Provider configured in specified service instance.
list_by_serviceselectresource_group_name, service_name, subscription_idLists a collection of Identity Provider configured in the specified service instance.
create_or_updateinsertresource_group_name, service_name, identity_provider_name, subscription_idCreates or Updates the IdentityProvider configuration.
updateupdateresource_group_name, service_name, identity_provider_name, subscription_idUpdates an existing IdentityProvider configuration.
create_or_updatereplaceresource_group_name, service_name, identity_provider_name, subscription_idCreates or Updates the IdentityProvider configuration.
deletedeleteresource_group_name, service_name, identity_provider_name, subscription_idDeletes the specified identity provider configuration.
get_entity_tagexecresource_group_name, service_name, identity_provider_name, subscription_idGets the entity state (Etag) version of the identityProvider specified by its identifier.
list_secretsexecresource_group_name, service_name, identity_provider_name, subscription_idGets the client secret details of the Identity Provider.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
identity_provider_namestringIdentity Provider Type identifier. Known values are: "facebook", "google", "microsoft", "twitter", "aad", and "aadB2C". Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
service_namestringThe name of the API Management service. Required.
subscription_idstring

SELECT examples

Gets the configuration details of the identity Provider configured in specified service instance.

SELECT
id,
name,
allowedTenants,
authority,
certificateId,
clientId,
clientLibrary,
clientSecret,
passwordResetPolicyName,
profileEditingPolicyName,
signinPolicyName,
signinTenant,
signupPolicyName,
systemData,
type
FROM azure.api_management.identity_provider
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND identity_provider_name = '{{ identity_provider_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or Updates the IdentityProvider configuration.

INSERT INTO azure.api_management.identity_provider (
properties,
resource_group_name,
service_name,
identity_provider_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ identity_provider_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Updates an existing IdentityProvider configuration.

UPDATE azure.api_management.identity_provider
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND identity_provider_name = '{{ identity_provider_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Creates or Updates the IdentityProvider configuration.

REPLACE azure.api_management.identity_provider
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND identity_provider_name = '{{ identity_provider_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes the specified identity provider configuration.

DELETE FROM azure.api_management.identity_provider
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND identity_provider_name = '{{ identity_provider_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Gets the entity state (Etag) version of the identityProvider specified by its identifier.

EXEC azure.api_management.identity_provider.get_entity_tag 
@resource_group_name='{{ resource_group_name }}' --required,
@service_name='{{ service_name }}' --required,
@identity_provider_name='{{ identity_provider_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;