Skip to main content

streaming_locators

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

Overview

Namestreaming_locators
TypeResource
Idazure_extras.media.streaming_locators

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.
alternativeMediaIdstringAlternative Media ID of this Streaming Locator.
assetNamestringAsset Name.
contentKeysarrayThe ContentKeys used by this Streaming Locator.
createdstring (date-time)The creation time of the Streaming Locator.
defaultContentKeyPolicyNamestringName of the default ContentKeyPolicy used by this Streaming Locator.
endTimestring (date-time)The end time of the Streaming Locator.
filtersarrayA list of asset or account filters which apply to this streaming locator.
startTimestring (date-time)The start time of the Streaming Locator.
streamingLocatorIdstringThe StreamingLocatorId of the Streaming Locator.
streamingPolicyNamestringName of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and 'Predefined_MultiDrmStreaming'.
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_locator_name, subscription_idGet a Streaming Locator. Get the details of a Streaming Locator in the Media Services account.
listselectresource_group_name, account_name, subscription_id$filter, $top, $orderbyList Streaming Locators. Lists the Streaming Locators in the account.
createinsertresource_group_name, account_name, streaming_locator_name, subscription_idCreate a Streaming Locator. Create a Streaming Locator in the Media Services account.
deletedeleteresource_group_name, account_name, streaming_locator_name, subscription_idDelete a Streaming Locator. Deletes a Streaming Locator in the Media Services account.
list_content_keysexecresource_group_name, account_name, streaming_locator_name, subscription_idList Content Keys. List Content Keys used by this Streaming Locator.
list_pathsexecresource_group_name, account_name, streaming_locator_name, subscription_idList Paths. List Paths supported by this Streaming Locator.

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_locator_namestringThe Streaming Locator 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 Locator. Get the details of a Streaming Locator in the Media Services account.

SELECT
id,
name,
alternativeMediaId,
assetName,
contentKeys,
created,
defaultContentKeyPolicyName,
endTime,
filters,
startTime,
streamingLocatorId,
streamingPolicyName,
systemData,
type
FROM azure_extras.media.streaming_locators
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND streaming_locator_name = '{{ streaming_locator_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

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

DELETE examples

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

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

Lifecycle Methods

List Content Keys. List Content Keys used by this Streaming Locator.

EXEC azure_extras.media.streaming_locators.list_content_keys 
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@streaming_locator_name='{{ streaming_locator_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;