content_key_policies
Creates, updates, deletes, gets or lists a content_key_policies
resource.
Overview
Name | content_key_policies |
Type | Resource |
Id | azure.media_services.content_key_policies |
Fields
- vw_content_key_policies
- content_key_policies
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
accountName | text | field from the properties object |
contentKeyPolicyName | text | field from the properties object |
created | text | field from the properties object |
last_modified | text | field from the properties object |
options | text | field from the properties object |
policy_id | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The properties of the Content Key Policy. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, contentKeyPolicyName, resourceGroupName, subscriptionId | Get the details of a Content Key Policy in the Media Services account |
list | SELECT | accountName, resourceGroupName, subscriptionId | Lists the Content Key Policies in the account |
create_or_update | INSERT | accountName, contentKeyPolicyName, resourceGroupName, subscriptionId | Create or update a Content Key Policy in the Media Services account |
delete | DELETE | accountName, contentKeyPolicyName, resourceGroupName, subscriptionId | Deletes a Content Key Policy in the Media Services account |
update | UPDATE | accountName, contentKeyPolicyName, resourceGroupName, subscriptionId | Updates an existing Content Key Policy in the Media Services account |
SELECT
examples
Lists the Content Key Policies in the account
- vw_content_key_policies
- content_key_policies
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 }}';
SELECT
properties,
systemData
FROM azure.media_services.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.media_services.content_key_policies (
accountName,
contentKeyPolicyName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ accountName }}',
'{{ contentKeyPolicyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: policyId
value: string
- name: created
value: string
- name: lastModified
value: string
- name: description
value: string
- name: options
value:
- - name: policyOptionId
value: string
- name: name
value: string
- name: configuration
value:
- name: '@odata.type'
value: string
- name: restriction
value:
- name: '@odata.type'
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
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 }}';