Skip to main content

streaming_endpoints

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

Overview

Namestreaming_endpoints
TypeResource
Idazure_extras.media.streaming_endpoints

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.
accessControlobjectThe access control definition of the streaming endpoint.
availabilitySetNamestringThis feature is deprecated, do not set a value for this property.
cdnEnabledbooleanThe CDN enabled flag.
cdnProfilestringThe CDN profile name.
cdnProviderstringThe CDN provider name.
createdstring (date-time)The exact time the streaming endpoint was created.
crossSiteAccessPoliciesobjectThe streaming endpoint access policies.
customHostNamesarrayThe custom host names of the streaming endpoint.
descriptionstringThe streaming endpoint description.
freeTrialEndTimestring (date-time)The free trial expiration time.
hostNamestringThe streaming endpoint host name.
lastModifiedstring (date-time)The exact time the streaming endpoint was last modified.
locationstringThe geo-location where the resource lives. Required.
maxCacheAgeintegerMax cache age.
provisioningStatestringThe provisioning state of the streaming endpoint.
resourceStatestringThe resource state of the streaming endpoint. Known values are: "Stopped", "Starting", "Running", "Stopping", "Deleting", and "Scaling".
scaleUnitsintegerThe number of scale units. Use the Scale operation to adjust this value.
skuobjectThe streaming endpoint sku.
systemDataobjectThe system metadata relating to this resource.
tagsobjectResource tags.
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_endpoint_name, subscription_idGet StreamingEndpoint. Gets a streaming endpoint.
listselectresource_group_name, account_name, subscription_idList StreamingEndpoints. Lists the streaming endpoints in the account.
createinsertresource_group_name, account_name, streaming_endpoint_name, subscription_id, locationautoStartCreate StreamingEndpoint. Creates a streaming endpoint.
updateupdateresource_group_name, account_name, streaming_endpoint_name, subscription_id, locationUpdate StreamingEndpoint. Updates a existing streaming endpoint.
deletedeleteresource_group_name, account_name, streaming_endpoint_name, subscription_idDelete StreamingEndpoint. Deletes a streaming endpoint.
skusexecresource_group_name, account_name, streaming_endpoint_name, subscription_idList StreamingEndpoint skus. List streaming endpoint supported skus.
startexecresource_group_name, account_name, streaming_endpoint_name, subscription_idStart StreamingEndpoint. Starts an existing streaming endpoint.
stopexecresource_group_name, account_name, streaming_endpoint_name, subscription_idStop StreamingEndpoint. Stops an existing streaming endpoint.
scaleexecresource_group_name, account_name, streaming_endpoint_name, subscription_idScale StreamingEndpoint. Scales an existing streaming endpoint.
async_operationexecresource_group_name, account_name, operation_id, subscription_idGet operation status. Get a streaming endpoint operation status.
operation_locationexecresource_group_name, account_name, streaming_endpoint_name, operation_id, subscription_idGet operation status. Get 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
account_namestringThe Media Services account name. Required.
operation_idstringThe ID of an ongoing async operation. Required.
resource_group_namestringThe name of the resource group within the Azure subscription. Required.
streaming_endpoint_namestringThe name of the streaming endpoint, maximum length is 24. Required.
subscription_idstring
autoStartbooleanThe flag indicates if the resource should be automatically started on creation. Default value is None.

SELECT examples

Get StreamingEndpoint. Gets a streaming endpoint.

SELECT
id,
name,
accessControl,
availabilitySetName,
cdnEnabled,
cdnProfile,
cdnProvider,
created,
crossSiteAccessPolicies,
customHostNames,
description,
freeTrialEndTime,
hostName,
lastModified,
location,
maxCacheAge,
provisioningState,
resourceState,
scaleUnits,
sku,
systemData,
tags,
type
FROM azure_extras.media.streaming_endpoints
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND streaming_endpoint_name = '{{ streaming_endpoint_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create StreamingEndpoint. Creates a streaming endpoint.

INSERT INTO azure_extras.media.streaming_endpoints (
tags,
location,
sku,
properties,
resource_group_name,
account_name,
streaming_endpoint_name,
subscription_id,
autoStart
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ sku }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ streaming_endpoint_name }}',
'{{ subscription_id }}',
'{{ autoStart }}'
RETURNING
id,
name,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Update StreamingEndpoint. Updates a existing streaming endpoint.

UPDATE azure_extras.media.streaming_endpoints
SET
tags = '{{ tags }}',
location = '{{ location }}',
sku = '{{ sku }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND streaming_endpoint_name = '{{ streaming_endpoint_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Delete StreamingEndpoint. Deletes a streaming endpoint.

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

Lifecycle Methods

List StreamingEndpoint skus. List streaming endpoint supported skus.

EXEC azure_extras.media.streaming_endpoints.skus 
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@streaming_endpoint_name='{{ streaming_endpoint_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;