Skip to main content

identity_providers

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

Overview

Nameidentity_providers
TypeResource
Idazure.api_management.identity_providers

Fields

The following fields are returned by SELECT queries:

The response body contains the specified IdentityProvider entity configuration details.

NameDatatypeDescription
propertiesobjectIdentity Provider contract properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, identityProviderName, subscriptionIdGets the configuration details of the identity Provider configured in specified service instance.
list_by_serviceselectresourceGroupName, serviceName, subscriptionIdLists a collection of Identity Provider configured in the specified service instance.
create_or_updateinsertresourceGroupName, serviceName, identityProviderName, subscriptionIdIf-MatchCreates or Updates the IdentityProvider configuration.
updateupdateresourceGroupName, serviceName, identityProviderName, If-Match, subscriptionIdUpdates an existing IdentityProvider configuration.
deletedeleteresourceGroupName, serviceName, identityProviderName, If-Match, subscriptionIdDeletes the specified identity provider configuration.

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
If-MatchstringETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
identityProviderNamestringIdentity Provider Type identifier.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serviceNamestringThe name of the API Management service.
subscriptionIdstringThe ID of the target subscription.
If-MatchstringETag of the Entity. Not required when creating an entity, but required when updating an entity.

SELECT examples

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

SELECT
properties
FROM azure.api_management.identity_providers
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND identityProviderName = '{{ identityProviderName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates or Updates the IdentityProvider configuration.

INSERT INTO azure.api_management.identity_providers (
data__properties,
resourceGroupName,
serviceName,
identityProviderName,
subscriptionId,
If-Match
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ identityProviderName }}',
'{{ subscriptionId }}',
'{{ If-Match }}'
RETURNING
properties
;

UPDATE examples

Updates an existing IdentityProvider configuration.

UPDATE azure.api_management.identity_providers
SET
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND identityProviderName = '{{ identityProviderName }}' --required
AND If-Match = '{{ If-Match }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
properties;

DELETE examples

Deletes the specified identity provider configuration.

DELETE FROM azure.api_management.identity_providers
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND identityProviderName = '{{ identityProviderName }}' --required
AND If-Match = '{{ If-Match }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;