live_events
Creates, updates, deletes, gets or lists a live_events
resource.
Overview
Name | live_events |
Type | Resource |
Id | azure.media_services.live_events |
Fields
- vw_live_events
- live_events
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
accountName | text | field from the properties object |
created | text | field from the properties object |
cross_site_access_policies | text | field from the properties object |
encoding | text | field from the properties object |
hostname_prefix | text | field from the properties object |
input | text | field from the properties object |
last_modified | text | field from the properties object |
liveEventName | text | field from the properties object |
location | text | The geo-location where the resource lives |
preview | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resource_state | text | field from the properties object |
stream_options | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | Resource tags. |
transcriptions | text | field from the properties object |
use_static_hostname | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | The live event properties. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, liveEventName, resourceGroupName, subscriptionId | Gets properties of a live event. |
list | SELECT | accountName, resourceGroupName, subscriptionId | Lists all the live events in the account. |
create | INSERT | accountName, liveEventName, resourceGroupName, subscriptionId | Creates a new live event. |
delete | DELETE | accountName, liveEventName, resourceGroupName, subscriptionId | Deletes a live event. |
update | UPDATE | accountName, liveEventName, resourceGroupName, subscriptionId | Updates settings on an existing live event. |
allocate | EXEC | accountName, liveEventName, resourceGroupName, subscriptionId | A live event is in StandBy state after allocation completes, and is ready to start. |
async_operation | EXEC | accountName, operationId, resourceGroupName, subscriptionId | Get a live event operation status. |
operation_location | EXEC | accountName, liveEventName, operationId, resourceGroupName, subscriptionId | Get a live event operation status. |
reset | EXEC | accountName, liveEventName, resourceGroupName, subscriptionId | Resets 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. |
start | EXEC | accountName, liveEventName, resourceGroupName, subscriptionId | A live event in Stopped or StandBy state will be in Running state after the start operation completes. |
stop | EXEC | accountName, liveEventName, resourceGroupName, subscriptionId | Stops a running live event. |
SELECT
examples
Lists all the live events in the account.
- vw_live_events
- live_events
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 }}';
SELECT
location,
properties,
systemData,
tags
FROM azure.media_services.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.media_services.live_events (
accountName,
liveEventName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ accountName }}',
'{{ liveEventName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: description
value: string
- name: input
value:
- name: streamingProtocol
value: string
- name: accessControl
value:
- name: ip
value:
- name: allow
value:
- - name: name
value: string
- name: address
value: string
- name: subnetPrefixLength
value: integer
- name: keyFrameIntervalDuration
value: string
- name: accessToken
value: string
- name: endpoints
value:
- - name: protocol
value: string
- name: url
value: string
- name: timedMetadataEndpoints
value:
- - name: url
value: string
- name: preview
value:
- name: endpoints
value:
- - name: protocol
value: string
- name: url
value: string
- name: accessControl
value: []
- name: previewLocator
value: string
- name: streamingPolicyName
value: string
- name: alternativeMediaId
value: string
- name: encoding
value:
- name: encodingType
value: string
- name: presetName
value: string
- name: stretchMode
value: string
- name: keyFrameInterval
value: string
- name: transcriptions
value:
- - name: language
value: string
- name: inputTrackSelection
value:
- - name: property
value: string
- name: operation
value: string
- name: value
value: string
- name: outputTranscriptionTrack
value:
- name: trackName
value: string
- name: provisioningState
value: string
- name: resourceState
value: string
- name: crossSiteAccessPolicies
value:
- name: clientAccessPolicy
value: string
- name: crossDomainPolicy
value: string
- name: useStaticHostname
value: boolean
- name: hostnamePrefix
value: string
- name: streamOptions
value:
- string
- name: created
value: string
- name: lastModified
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: tags
value: object
- name: location
value: string
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 }}';