Skip to main content

authorization_access_policies

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

Overview

Nameauthorization_access_policies
TypeResource
Idazure.api_management.authorization_access_policies

Fields

NameDatatypeDescription
app_idstextfield from the properties object
authorizationAccessPolicyIdtextfield from the properties object
authorizationIdtextfield from the properties object
authorizationProviderIdtextfield from the properties object
object_idtextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
tenant_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTauthorizationAccessPolicyId, authorizationId, authorizationProviderId, resourceGroupName, serviceName, subscriptionIdGets the details of the authorization access policy specified by its identifier.
list_by_authorizationSELECTauthorizationId, authorizationProviderId, resourceGroupName, serviceName, subscriptionIdLists a collection of authorization access policy defined within a authorization.
create_or_updateINSERTauthorizationAccessPolicyId, authorizationId, authorizationProviderId, resourceGroupName, serviceName, subscriptionIdCreates or updates Authorization Access Policy.
deleteDELETEIf-Match, authorizationAccessPolicyId, authorizationId, authorizationProviderId, resourceGroupName, serviceName, subscriptionIdDeletes specific access policy from the Authorization.

SELECT examples

Lists a collection of authorization access policy defined within a authorization.

SELECT
app_ids,
authorizationAccessPolicyId,
authorizationId,
authorizationProviderId,
object_id,
resourceGroupName,
serviceName,
subscriptionId,
tenant_id
FROM azure.api_management.vw_authorization_access_policies
WHERE authorizationId = '{{ authorizationId }}'
AND authorizationProviderId = '{{ authorizationProviderId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified authorization_access_policies resource.

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