policy_tokens
Creates, updates, deletes, gets or lists a policy_tokens resource.
Overview
| Name | policy_tokens |
| Type | Resource |
| Id | azure.resource.policy_tokens |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
acquire | exec | subscription_id, operation | Acquires a policy token. This operation acquires a policy token in the given subscription for the given request body. | |
acquire_at_management_group | exec | management_group_name, operation | Acquires a policy token at management group level. This operation acquires a policy token in the given management group for the given request body. |
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.
| Name | Datatype | Description |
|---|---|---|
management_group_name | string | The name of the management group. The name is case insensitive. Required. |
subscription_id | string |
Lifecycle Methods
- acquire
- acquire_at_management_group
Acquires a policy token. This operation acquires a policy token in the given subscription for the given request body.
EXEC azure.resource.policy_tokens.acquire
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"operation": "{{ operation }}",
"changeReference": "{{ changeReference }}"
}'
;
Acquires a policy token at management group level. This operation acquires a policy token in the given management group for the given request body.
EXEC azure.resource.policy_tokens.acquire_at_management_group
@management_group_name='{{ management_group_name }}' --required
@@json=
'{
"operation": "{{ operation }}",
"changeReference": "{{ changeReference }}"
}'
;