Skip to main content

live_events

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

Overview

Namelive_events
TypeResource
Idazure.media_services.live_events

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
accountNametextfield from the properties object
createdtextfield from the properties object
cross_site_access_policiestextfield from the properties object
encodingtextfield from the properties object
hostname_prefixtextfield from the properties object
inputtextfield from the properties object
last_modifiedtextfield from the properties object
liveEventNametextfield from the properties object
locationtextThe geo-location where the resource lives
previewtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_statetextfield from the properties object
stream_optionstextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
transcriptionstextfield from the properties object
use_static_hostnametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, liveEventName, resourceGroupName, subscriptionIdGets properties of a live event.
listSELECTaccountName, resourceGroupName, subscriptionIdLists all the live events in the account.
createINSERTaccountName, liveEventName, resourceGroupName, subscriptionIdCreates a new live event.
deleteDELETEaccountName, liveEventName, resourceGroupName, subscriptionIdDeletes a live event.
updateUPDATEaccountName, liveEventName, resourceGroupName, subscriptionIdUpdates settings on an existing live event.
allocateEXECaccountName, liveEventName, resourceGroupName, subscriptionIdA live event is in StandBy state after allocation completes, and is ready to start.
async_operationEXECaccountName, operationId, resourceGroupName, subscriptionIdGet a live event operation status.
operation_locationEXECaccountName, liveEventName, operationId, resourceGroupName, subscriptionIdGet a live event operation status.
resetEXECaccountName, liveEventName, resourceGroupName, subscriptionIdResets an existing live event. All live outputs for the live event are deleted and the live event is stopped and will be started again. All assets used by the live outputs and streaming locators created on these assets are unaffected.
startEXECaccountName, liveEventName, resourceGroupName, subscriptionIdA live event in Stopped or StandBy state will be in Running state after the start operation completes.
stopEXECaccountName, liveEventName, resourceGroupName, subscriptionIdStops a running live event.

SELECT examples

Lists all the live events in the account.

SELECT
description,
accountName,
created,
cross_site_access_policies,
encoding,
hostname_prefix,
input,
last_modified,
liveEventName,
location,
preview,
provisioning_state,
resourceGroupName,
resource_state,
stream_options,
subscriptionId,
system_data,
tags,
transcriptions,
use_static_hostname
FROM azure.media_services.vw_live_events
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new live_events resource.

/*+ create */
INSERT INTO azure.media_services.live_events (
accountName,
liveEventName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ accountName }}',
'{{ liveEventName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a live_events resource.

/*+ update */
UPDATE azure.media_services.live_events
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
location = '{{ location }}'
WHERE
accountName = '{{ accountName }}'
AND liveEventName = '{{ liveEventName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified live_events resource.

/*+ delete */
DELETE FROM azure.media_services.live_events
WHERE accountName = '{{ accountName }}'
AND liveEventName = '{{ liveEventName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';