Skip to main content

live_outputs

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

Overview

Namelive_outputs
TypeResource
Idazure.media_services.live_outputs

Fields

The following fields are returned by SELECT queries:

OK. The request has succeeded.

NameDatatypeDescription
propertiesobjectLive output properties.
systemDataobjectThe system metadata relating to this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountName, liveEventName, liveOutputNameapi-versionGets a live output.
listselectsubscriptionId, resourceGroupName, accountName, liveEventNameapi-versionLists the live outputs of a live event.
createinsertsubscriptionId, resourceGroupName, accountName, liveEventName, liveOutputNameapi-versionCreates a new live output.
deletedeletesubscriptionId, resourceGroupName, accountName, liveEventName, liveOutputNameapi-versionDeletes a live output. Deleting a live output does not delete the asset the live output is writing to.
async_operationexecsubscriptionId, resourceGroupName, accountName, operationIdapi-versionGet a Live Output operation status.
operation_locationexecsubscriptionId, resourceGroupName, accountName, liveEventName, liveOutputName, operationIdapi-versionGet a Live Output 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.
liveEventNamestringThe name of the live event, maximum length is 32.
liveOutputNamestringThe name of the live output.
operationIdstringThe ID of an ongoing async operation.
resourceGroupNamestringThe name of the resource group within the Azure subscription.
subscriptionIdstringThe unique identifier for a Microsoft Azure subscription.
api-versionstringThe version of the API to be used with the client request.

SELECT examples

Gets a live output.

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

INSERT examples

Creates a new live output.

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

DELETE examples

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to.

DELETE FROM azure.media_services.live_outputs
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND liveEventName = '{{ liveEventName }}' --required
AND liveOutputName = '{{ liveOutputName }}' --required
AND api-version = '{{ api-version }}'
;

Lifecycle Methods

Get a Live Output operation status.

EXEC azure.media_services.live_outputs.async_operation 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@accountName='{{ accountName }}' --required,
@operationId='{{ operationId }}' --required,
@api-version='{{ api-version }}'
;