Skip to main content

content_key_policies

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

Overview

Namecontent_key_policies
TypeResource
Idazure.media_services.content_key_policies

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
accountNametextfield from the properties object
contentKeyPolicyNametextfield from the properties object
createdtextfield from the properties object
last_modifiedtextfield from the properties object
optionstextfield from the properties object
policy_idtextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, contentKeyPolicyName, resourceGroupName, subscriptionIdGet the details of a Content Key Policy in the Media Services account
listSELECTaccountName, resourceGroupName, subscriptionIdLists the Content Key Policies in the account
create_or_updateINSERTaccountName, contentKeyPolicyName, resourceGroupName, subscriptionIdCreate or update a Content Key Policy in the Media Services account
deleteDELETEaccountName, contentKeyPolicyName, resourceGroupName, subscriptionIdDeletes a Content Key Policy in the Media Services account
updateUPDATEaccountName, contentKeyPolicyName, resourceGroupName, subscriptionIdUpdates an existing Content Key Policy in the Media Services account

SELECT examples

Lists the Content Key Policies in the account

SELECT
description,
accountName,
contentKeyPolicyName,
created,
last_modified,
options,
policy_id,
resourceGroupName,
subscriptionId,
system_data
FROM azure.media_services.vw_content_key_policies
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.media_services.content_key_policies (
accountName,
contentKeyPolicyName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ accountName }}',
'{{ contentKeyPolicyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a content_key_policies resource.

/*+ update */
UPDATE azure.media_services.content_key_policies
SET
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND contentKeyPolicyName = '{{ contentKeyPolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified content_key_policies resource.

/*+ delete */
DELETE FROM azure.media_services.content_key_policies
WHERE accountName = '{{ accountName }}'
AND contentKeyPolicyName = '{{ contentKeyPolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';