authorization_policies
Creates, updates, deletes, gets or lists a authorization_policies
resource.
Overview
Name | authorization_policies |
Type | Resource |
Id | azure_extras.customer_insights.authorization_policies |
Fields
- vw_authorization_policies
- authorization_policies
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | Resource name. |
authorizationPolicyName | text | field from the properties object |
hubName | text | field from the properties object |
permissions | text | field from the properties object |
policy_name | text | field from the properties object |
primary_key | text | field from the properties object |
resourceGroupName | text | field from the properties object |
secondary_key | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Resource type. |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
properties | object | The authorization policy. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | authorizationPolicyName, hubName, resourceGroupName, subscriptionId | Gets an authorization policy in the hub. |
list_by_hub | SELECT | hubName, resourceGroupName, subscriptionId | Gets all the authorization policies in a specified hub. |
create_or_update | INSERT | authorizationPolicyName, hubName, resourceGroupName, subscriptionId | Creates an authorization policy or updates an existing authorization policy. |
regenerate_primary_key | EXEC | authorizationPolicyName, hubName, resourceGroupName, subscriptionId | Regenerates the primary policy key of the specified authorization policy. |
regenerate_secondary_key | EXEC | authorizationPolicyName, hubName, resourceGroupName, subscriptionId | Regenerates the secondary policy key of the specified authorization policy. |
SELECT
examples
Gets all the authorization policies in a specified hub.
- vw_authorization_policies
- authorization_policies
SELECT
id,
name,
authorizationPolicyName,
hubName,
permissions,
policy_name,
primary_key,
resourceGroupName,
secondary_key,
subscriptionId,
type
FROM azure_extras.customer_insights.vw_authorization_policies
WHERE hubName = '{{ hubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
type
FROM azure_extras.customer_insights.authorization_policies
WHERE hubName = '{{ hubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new authorization_policies
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_extras.customer_insights.authorization_policies (
authorizationPolicyName,
hubName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ authorizationPolicyName }}',
'{{ hubName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: policyName
value: string
- name: permissions
value:
- []
- name: primaryKey
value: string
- name: secondaryKey
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string