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
The following fields are returned by SELECT
queries:
- get
- list
Name | Datatype | Description |
---|---|---|
properties | object | Class to specify properties of Streaming Policy |
systemData | object | The system metadata relating to this resource. |
Name | Datatype | Description |
---|---|---|
properties | object | Class to specify properties of Streaming Policy |
systemData | object | The system metadata relating to this resource. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , resourceGroupName , accountName , streamingPolicyName | api-version | Get the details of a Streaming Policy in the Media Services account |
list | select | subscriptionId , resourceGroupName , accountName | api-version , $filter , $top , $orderby | Lists the Streaming Policies in the account |
create | insert | subscriptionId , resourceGroupName , accountName , streamingPolicyName | api-version | Create a Streaming Policy in the Media Services account |
delete | delete | subscriptionId , resourceGroupName , accountName , streamingPolicyName | api-version | 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.
Name | Datatype | Description |
---|---|---|
accountName | string | The Media Services account name. |
resourceGroupName | string | The name of the resource group within the Azure subscription. |
streamingPolicyName | string | The Streaming Policy name. |
subscriptionId | string | The unique identifier for a Microsoft Azure subscription. |
$filter | string | Restricts the set of items returned. |
$orderby | string | Specifies the key by which the result collection should be ordered. |
$top | integer (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-version | string | The version of the API to be used with the client request. |
SELECT
examples
- get
- list
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 }}'
;
Lists the Streaming Policies in the account
SELECT
properties,
systemData
FROM azure.media_services.streaming_policies
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND api-version = '{{ api-version }}'
AND $filter = '{{ $filter }}'
AND $top = '{{ $top }}'
AND $orderby = '{{ $orderby }}'
;
INSERT
examples
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: streaming_policies
props:
- name: subscriptionId
value: string
description: Required parameter for the streaming_policies resource.
- name: resourceGroupName
value: string
description: Required parameter for the streaming_policies resource.
- name: accountName
value: string
description: Required parameter for the streaming_policies resource.
- name: streamingPolicyName
value: string
description: Required parameter for the streaming_policies resource.
- name: properties
value: object
description: |
Class to specify properties of Streaming Policy
- name: api-version
value: string
description: The version of the API to be used with the client request.
DELETE
examples
- delete
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 }}'
;