Skip to main content

streaming_policies

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

Overview

Namestreaming_policies
TypeResource
Idazure_extras.media.streaming_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
commonEncryptionCbcsobjectConfiguration of CommonEncryptionCbcs.
commonEncryptionCencobjectConfiguration of CommonEncryptionCenc.
createdstring (date-time)Creation time of Streaming Policy.
defaultContentKeyPolicyNamestringDefault ContentKey used by current Streaming Policy.
envelopeEncryptionobjectConfiguration of EnvelopeEncryption.
noEncryptionobjectConfigurations of NoEncryption.
systemDataobjectThe system metadata relating to this resource.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, streaming_policy_name, subscription_idGet a Streaming Policy. Get the details of a Streaming Policy in the Media Services account.
listselectresource_group_name, account_name, subscription_id$filter, $top, $orderbyList Streaming Policies. Lists the Streaming Policies in the account.
createinsertresource_group_name, account_name, streaming_policy_name, subscription_idCreate a Streaming Policy. Create a Streaming Policy in the Media Services account.
deletedeleteresource_group_name, account_name, streaming_policy_name, subscription_idDelete a Streaming Policy. Deletes a Streaming Policy in the Media Services account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_namestringThe Media Services account name. Required.
resource_group_namestringThe name of the resource group within the Azure subscription. Required.
streaming_policy_namestringThe Streaming Policy name. Required.
subscription_idstring
$filterstringRestricts the set of items returned. Default value is None.
$orderbystringSpecifies the key by which the result collection should be ordered. Default value is None.
$topintegerSpecifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. Default value is None.

SELECT examples

Get a Streaming Policy. Get the details of a Streaming Policy in the Media Services account.

SELECT
id,
name,
commonEncryptionCbcs,
commonEncryptionCenc,
created,
defaultContentKeyPolicyName,
envelopeEncryption,
noEncryption,
systemData,
type
FROM azure_extras.media.streaming_policies
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND streaming_policy_name = '{{ streaming_policy_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a Streaming Policy. Create a Streaming Policy in the Media Services account.

INSERT INTO azure_extras.media.streaming_policies (
properties,
resource_group_name,
account_name,
streaming_policy_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ streaming_policy_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Delete a Streaming Policy. Deletes a Streaming Policy in the Media Services account.

DELETE FROM azure_extras.media.streaming_policies
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND streaming_policy_name = '{{ streaming_policy_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;