Skip to main content

streaming_endpoints

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

Overview

Namestreaming_endpoints
TypeResource
Idazure.media_services.streaming_endpoints

Fields

The following fields are returned by SELECT queries:

OK. The request has succeeded.

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectThe streaming endpoint properties.
skuobjectThe streaming endpoint sku.
systemDataobjectThe system metadata relating to this resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountName, streamingEndpointNameapi-versionGets a streaming endpoint.
listselectsubscriptionId, resourceGroupName, accountNameapi-versionLists the streaming endpoints in the account.
createinsertsubscriptionId, resourceGroupName, accountName, streamingEndpointNameapi-version, autoStartCreates a streaming endpoint.
updateupdatesubscriptionId, resourceGroupName, accountName, streamingEndpointNameapi-versionUpdates a existing streaming endpoint.
deletedeletesubscriptionId, resourceGroupName, accountName, streamingEndpointNameapi-versionDeletes a streaming endpoint.
skusexecsubscriptionId, resourceGroupName, accountName, streamingEndpointNameapi-versionList streaming endpoint supported skus.
startexecsubscriptionId, resourceGroupName, accountName, streamingEndpointNameapi-versionStarts an existing streaming endpoint.
stopexecsubscriptionId, resourceGroupName, accountName, streamingEndpointNameapi-versionStops an existing streaming endpoint.
scaleexecsubscriptionId, resourceGroupName, accountName, streamingEndpointNameapi-versionScales an existing streaming endpoint.
async_operationexecsubscriptionId, resourceGroupName, accountName, operationIdapi-versionGet a streaming endpoint operation status.
operation_locationexecsubscriptionId, resourceGroupName, accountName, streamingEndpointName, operationIdapi-versionGet a streaming endpoint operation status.

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.
operationIdstringThe ID of an ongoing async operation.
resourceGroupNamestringThe name of the resource group within the Azure subscription.
streamingEndpointNamestringThe name of the streaming endpoint, maximum length is 24.
subscriptionIdstringThe unique identifier for a Microsoft Azure subscription.
api-versionstringThe version of the API to be used with the client request.
autoStartbooleanThe flag indicates if the resource should be automatically started on creation.

SELECT examples

Gets a streaming endpoint.

SELECT
location,
properties,
sku,
systemData,
tags
FROM azure.media_services.streaming_endpoints
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND streamingEndpointName = '{{ streamingEndpointName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

Creates a streaming endpoint.

INSERT INTO azure.media_services.streaming_endpoints (
data__properties,
data__sku,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
accountName,
streamingEndpointName,
api-version,
autoStart
)
SELECT
'{{ properties }}',
'{{ sku }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ accountName }}',
'{{ streamingEndpointName }}',
'{{ api-version }}',
'{{ autoStart }}'
RETURNING
location,
properties,
sku,
systemData,
tags
;

UPDATE examples

Updates a existing streaming endpoint.

UPDATE azure.media_services.streaming_endpoints
SET
data__properties = '{{ properties }}',
data__sku = '{{ sku }}',
data__tags = '{{ tags }}',
data__location = '{{ location }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND streamingEndpointName = '{{ streamingEndpointName }}' --required
AND api-version = '{{ api-version}}'
RETURNING
location,
properties,
sku,
systemData,
tags;

DELETE examples

Deletes a streaming endpoint.

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

Lifecycle Methods

List streaming endpoint supported skus.

EXEC azure.media_services.streaming_endpoints.skus 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@accountName='{{ accountName }}' --required,
@streamingEndpointName='{{ streamingEndpointName }}' --required,
@api-version='{{ api-version }}'
;