Skip to main content

authorization_policies

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

Overview

Nameauthorization_policies
TypeResource
Idazure_extras.customer_insights.authorization_policies

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
authorizationPolicyNametextfield from the properties object
hubNametextfield from the properties object
permissionstextfield from the properties object
policy_nametextfield from the properties object
primary_keytextfield from the properties object
resourceGroupNametextfield from the properties object
secondary_keytextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTauthorizationPolicyName, hubName, resourceGroupName, subscriptionIdGets an authorization policy in the hub.
list_by_hubSELECThubName, resourceGroupName, subscriptionIdGets all the authorization policies in a specified hub.
create_or_updateINSERTauthorizationPolicyName, hubName, resourceGroupName, subscriptionIdCreates an authorization policy or updates an existing authorization policy.
regenerate_primary_keyEXECauthorizationPolicyName, hubName, resourceGroupName, subscriptionIdRegenerates the primary policy key of the specified authorization policy.
regenerate_secondary_keyEXECauthorizationPolicyName, hubName, resourceGroupName, subscriptionIdRegenerates the secondary policy key of the specified authorization policy.

SELECT examples

Gets all the authorization policies in a specified hub.

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 }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.customer_insights.authorization_policies (
authorizationPolicyName,
hubName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ authorizationPolicyName }}',
'{{ hubName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;