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

The following fields are returned by SELECT queries:

NameDatatypeDescription
propertiesobjectClass to specify properties of Streaming Policy
systemDataobjectThe system metadata relating to this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountName, streamingPolicyNameapi-versionGet the details of a Streaming Policy in the Media Services account
listselectsubscriptionId, resourceGroupName, accountNameapi-version, $filter, $top, $orderbyLists the Streaming Policies in the account
createinsertsubscriptionId, resourceGroupName, accountName, streamingPolicyNameapi-versionCreate a Streaming Policy in the Media Services account
deletedeletesubscriptionId, resourceGroupName, accountName, streamingPolicyNameapi-versionDeletes 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
accountNamestringThe Media Services account name.
resourceGroupNamestringThe name of the resource group within the Azure subscription.
streamingPolicyNamestringThe Streaming Policy name.
subscriptionIdstringThe unique identifier for a Microsoft Azure subscription.
$filterstringRestricts the set of items returned.
$orderbystringSpecifies the key by which the result collection should be ordered.
$topinteger (int32)Specifies 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.
api-versionstringThe version of the API to be used with the client request.

SELECT examples

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

SELECT
properties,
systemData
FROM azure.media_services.streaming_policies
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND streamingPolicyName = '{{ streamingPolicyName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

Create a Streaming Policy in the Media Services account

INSERT INTO azure.media_services.streaming_policies (
data__properties,
subscriptionId,
resourceGroupName,
accountName,
streamingPolicyName,
api-version
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ accountName }}',
'{{ streamingPolicyName }}',
'{{ api-version }}'
RETURNING
properties,
systemData
;

DELETE examples

Deletes a Streaming Policy in the Media Services account

DELETE FROM azure.media_services.streaming_policies
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND streamingPolicyName = '{{ streamingPolicyName }}' --required
AND api-version = '{{ api-version }}'
;