streaming_policies
Creates, updates, deletes, gets or lists a streaming_policies
resource.
Overview
Name | streaming_policies |
Type | Resource |
Id | azure.media_services.streaming_policies |
Fields
- vw_streaming_policies
- streaming_policies
Name | Datatype | Description |
---|---|---|
accountName | text | field from the properties object |
common_encryption_cbcs | text | field from the properties object |
common_encryption_cenc | text | field from the properties object |
created | text | field from the properties object |
default_content_key_policy_name | text | field from the properties object |
envelope_encryption | text | field from the properties object |
no_encryption | text | field from the properties object |
resourceGroupName | text | field from the properties object |
streamingPolicyName | 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 | Class to specify properties of Streaming Policy |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, resourceGroupName, streamingPolicyName, subscriptionId | Get the details of a Streaming Policy in the Media Services account |
list | SELECT | accountName, resourceGroupName, subscriptionId | Lists the Streaming Policies in the account |
create | INSERT | accountName, resourceGroupName, streamingPolicyName, subscriptionId | Create a Streaming Policy in the Media Services account |
delete | DELETE | accountName, resourceGroupName, streamingPolicyName, subscriptionId | Deletes a Streaming Policy in the Media Services account |
SELECT
examples
Lists the Streaming Policies in the account
- vw_streaming_policies
- streaming_policies
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 }}';
SELECT
properties,
systemData
FROM azure.media_services.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.media_services.streaming_policies (
accountName,
resourceGroupName,
streamingPolicyName,
subscriptionId,
properties
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ streamingPolicyName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: created
value: string
- name: defaultContentKeyPolicyName
value: string
- name: envelopeEncryption
value:
- name: enabledProtocols
value:
- name: download
value: boolean
- name: dash
value: boolean
- name: hls
value: boolean
- name: smoothStreaming
value: boolean
- name: clearTracks
value:
- - name: trackSelections
value:
- - name: property
value: string
- name: operation
value: string
- name: value
value: string
- name: contentKeys
value:
- name: defaultKey
value:
- name: label
value: string
- name: policyName
value: string
- name: keyToTrackMappings
value:
- - name: label
value: string
- name: policyName
value: string
- name: tracks
value:
- - name: trackSelections
value:
- - name: property
value: string
- name: operation
value: string
- name: value
value: string
- name: customKeyAcquisitionUrlTemplate
value: string
- name: commonEncryptionCenc
value:
- name: clearTracks
value:
- - name: trackSelections
value:
- - name: property
value: string
- name: operation
value: string
- name: value
value: string
- name: drm
value:
- name: playReady
value:
- name: customLicenseAcquisitionUrlTemplate
value: string
- name: playReadyCustomAttributes
value: string
- name: widevine
value:
- name: customLicenseAcquisitionUrlTemplate
value: string
- name: clearKeyEncryptionConfiguration
value:
- name: customKeysAcquisitionUrlTemplate
value: string
- name: commonEncryptionCbcs
value:
- name: clearTracks
value:
- - name: trackSelections
value:
- - name: property
value: string
- name: operation
value: string
- name: value
value: string
- name: drm
value:
- name: fairPlay
value:
- name: customLicenseAcquisitionUrlTemplate
value: string
- name: allowPersistentLicense
value: boolean
- name: noEncryption
value: []
- 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
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 }}';