live_outputs
Creates, updates, deletes, gets or lists a live_outputs
resource.
Overview
Name | live_outputs |
Type | Resource |
Id | azure.media_services.live_outputs |
Fields
- vw_live_outputs
- live_outputs
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
accountName | text | field from the properties object |
archive_window_length | text | field from the properties object |
asset_name | text | field from the properties object |
created | text | field from the properties object |
hls | text | field from the properties object |
last_modified | text | field from the properties object |
liveEventName | text | field from the properties object |
liveOutputName | text | field from the properties object |
manifest_name | text | field from the properties object |
output_snap_time | 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 |
rewind_window_length | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The JSON object that contains the properties required to create a live output. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, liveEventName, liveOutputName, resourceGroupName, subscriptionId | Gets a live output. |
list | SELECT | accountName, liveEventName, resourceGroupName, subscriptionId | Lists the live outputs of a live event. |
create | INSERT | accountName, liveEventName, liveOutputName, resourceGroupName, subscriptionId | Creates a new live output. |
delete | DELETE | accountName, liveEventName, liveOutputName, resourceGroupName, subscriptionId | Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. |
async_operation | EXEC | accountName, operationId, resourceGroupName, subscriptionId | Get a Live Output operation status. |
operation_location | EXEC | accountName, liveEventName, liveOutputName, operationId, resourceGroupName, subscriptionId | Get a Live Output operation status. |
SELECT
examples
Lists the live outputs of a live event.
- vw_live_outputs
- live_outputs
SELECT
description,
accountName,
archive_window_length,
asset_name,
created,
hls,
last_modified,
liveEventName,
liveOutputName,
manifest_name,
output_snap_time,
provisioning_state,
resourceGroupName,
resource_state,
rewind_window_length,
subscriptionId,
system_data
FROM azure.media_services.vw_live_outputs
WHERE accountName = '{{ accountName }}'
AND liveEventName = '{{ liveEventName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties,
systemData
FROM azure.media_services.live_outputs
WHERE accountName = '{{ accountName }}'
AND liveEventName = '{{ liveEventName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new live_outputs
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.media_services.live_outputs (
accountName,
liveEventName,
liveOutputName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ accountName }}',
'{{ liveEventName }}',
'{{ liveOutputName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: description
value: string
- name: assetName
value: string
- name: archiveWindowLength
value: string
- name: rewindWindowLength
value: string
- name: manifestName
value: string
- name: hls
value:
- name: fragmentsPerTsSegment
value: integer
- name: outputSnapTime
value: integer
- name: created
value: string
- name: lastModified
value: string
- name: provisioningState
value: string
- name: resourceState
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
DELETE
example
Deletes the specified live_outputs
resource.
/*+ delete */
DELETE FROM azure.media_services.live_outputs
WHERE accountName = '{{ accountName }}'
AND liveEventName = '{{ liveEventName }}'
AND liveOutputName = '{{ liveOutputName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';