authorization_access_policies
Creates, updates, deletes, gets or lists a authorization_access_policies
resource.
Overview
Name | authorization_access_policies |
Type | Resource |
Id | azure.api_management.authorization_access_policies |
Fields
- vw_authorization_access_policies
- authorization_access_policies
Name | Datatype | Description |
---|---|---|
app_ids | text | field from the properties object |
authorizationAccessPolicyId | text | field from the properties object |
authorizationId | text | field from the properties object |
authorizationProviderId | text | field from the properties object |
object_id | text | field from the properties object |
resourceGroupName | text | field from the properties object |
serviceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tenant_id | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Authorization Access Policy details. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | authorizationAccessPolicyId, authorizationId, authorizationProviderId, resourceGroupName, serviceName, subscriptionId | Gets the details of the authorization access policy specified by its identifier. |
list_by_authorization | SELECT | authorizationId, authorizationProviderId, resourceGroupName, serviceName, subscriptionId | Lists a collection of authorization access policy defined within a authorization. |
create_or_update | INSERT | authorizationAccessPolicyId, authorizationId, authorizationProviderId, resourceGroupName, serviceName, subscriptionId | Creates or updates Authorization Access Policy. |
delete | DELETE | If-Match, authorizationAccessPolicyId, authorizationId, authorizationProviderId, resourceGroupName, serviceName, subscriptionId | Deletes specific access policy from the Authorization. |
SELECT
examples
Lists a collection of authorization access policy defined within a authorization.
- vw_authorization_access_policies
- authorization_access_policies
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 }}';
SELECT
properties
FROM azure.api_management.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.authorization_access_policies (
authorizationAccessPolicyId,
authorizationId,
authorizationProviderId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ authorizationAccessPolicyId }}',
'{{ authorizationId }}',
'{{ authorizationProviderId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: appIds
value:
- string
- name: tenantId
value: string
- name: objectId
value: string
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 }}';