Skip to main content

authorization_providers

Creates, updates, deletes, gets or lists a authorization_providers resource.

Overview

Nameauthorization_providers
TypeResource
Idazure.api_management.authorization_providers

Fields

NameDatatypeDescription
authorizationProviderIdtextfield from the properties object
display_nametextfield from the properties object
identity_providertextfield from the properties object
oauth2textfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTauthorizationProviderId, resourceGroupName, serviceName, subscriptionIdGets the details of the authorization provider specified by its identifier.
list_by_serviceSELECTresourceGroupName, serviceName, subscriptionIdLists a collection of authorization providers defined within a service instance.
create_or_updateINSERTauthorizationProviderId, resourceGroupName, serviceName, subscriptionIdCreates or updates authorization provider.
deleteDELETEIf-Match, authorizationProviderId, resourceGroupName, serviceName, subscriptionIdDeletes specific authorization provider from the API Management service instance.

SELECT examples

Lists a collection of authorization providers defined within a service instance.

SELECT
authorizationProviderId,
display_name,
identity_provider,
oauth2,
resourceGroupName,
serviceName,
subscriptionId
FROM azure.api_management.vw_authorization_providers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new authorization_providers resource.

/*+ create */
INSERT INTO azure.api_management.authorization_providers (
authorizationProviderId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ authorizationProviderId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified authorization_providers resource.

/*+ delete */
DELETE FROM azure.api_management.authorization_providers
WHERE If-Match = '{{ If-Match }}'
AND authorizationProviderId = '{{ authorizationProviderId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';