Skip to main content

streaming_policies

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

Overview

Namestreaming_policies
TypeResource
Idazure.media_services.streaming_policies

Fields

NameDatatypeDescription
accountNametextfield from the properties object
common_encryption_cbcstextfield from the properties object
common_encryption_cenctextfield from the properties object
createdtextfield from the properties object
default_content_key_policy_nametextfield from the properties object
envelope_encryptiontextfield from the properties object
no_encryptiontextfield from the properties object
resourceGroupNametextfield from the properties object
streamingPolicyNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, streamingPolicyName, subscriptionIdGet the details of a Streaming Policy in the Media Services account
listSELECTaccountName, resourceGroupName, subscriptionIdLists the Streaming Policies in the account
createINSERTaccountName, resourceGroupName, streamingPolicyName, subscriptionIdCreate a Streaming Policy in the Media Services account
deleteDELETEaccountName, resourceGroupName, streamingPolicyName, subscriptionIdDeletes a Streaming Policy in the Media Services account

SELECT examples

Lists the Streaming Policies in the account

SELECT
accountName,
common_encryption_cbcs,
common_encryption_cenc,
created,
default_content_key_policy_name,
envelope_encryption,
no_encryption,
resourceGroupName,
streamingPolicyName,
subscriptionId,
system_data
FROM azure.media_services.vw_streaming_policies
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified streaming_policies resource.

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