Skip to main content

access_policies

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

Overview

Nameaccess_policies
TypeResource
Idazure.video_analyzer.access_policies

Fields

NameDatatypeDescription
accessPolicyNametextfield from the properties object
accountNametextfield from the properties object
authenticationtextfield from the properties object
resourceGroupNametextfield from the properties object
roletextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccessPolicyName, accountName, resourceGroupName, subscriptionIdRetrieves an existing access policy resource with the given name.
listSELECTaccountName, resourceGroupName, subscriptionIdRetrieves all existing access policy resources, along with their JSON representations.
create_or_updateINSERTaccessPolicyName, accountName, resourceGroupName, subscriptionIdCreates a new access policy resource or updates an existing one with the given name.
deleteDELETEaccessPolicyName, accountName, resourceGroupName, subscriptionIdDeletes an existing access policy resource with the given name.
updateUPDATEaccessPolicyName, accountName, resourceGroupName, subscriptionIdUpdates individual properties of an existing access policy resource with the given name.

SELECT examples

Retrieves all existing access policy resources, along with their JSON representations.

SELECT
accessPolicyName,
accountName,
authentication,
resourceGroupName,
role,
subscriptionId
FROM azure.video_analyzer.vw_access_policies
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.video_analyzer.access_policies (
accessPolicyName,
accountName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ accessPolicyName }}',
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a access_policies resource.

/*+ update */
UPDATE azure.video_analyzer.access_policies
SET
properties = '{{ properties }}'
WHERE
accessPolicyName = '{{ accessPolicyName }}'
AND accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified access_policies resource.

/*+ delete */
DELETE FROM azure.video_analyzer.access_policies
WHERE accessPolicyName = '{{ accessPolicyName }}'
AND accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';