Skip to main content

tracks

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

Overview

Nametracks
TypeResource
Idazure.media_services.tracks

Fields

NameDatatypeDescription
accountNametextfield from the properties object
assetNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tracktextfield from the properties object
trackNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, assetName, resourceGroupName, subscriptionId, trackNameGet the details of a Track in the Asset
listSELECTaccountName, assetName, resourceGroupName, subscriptionIdLists the Tracks in the asset
create_or_updateINSERTaccountName, assetName, resourceGroupName, subscriptionId, trackNameCreate or update a Track in the asset
deleteDELETEaccountName, assetName, resourceGroupName, subscriptionId, trackNameDeletes a Track in the asset
updateUPDATEaccountName, assetName, resourceGroupName, subscriptionId, trackNameUpdates an existing Track in the asset

SELECT examples

Lists the Tracks in the asset

SELECT
accountName,
assetName,
provisioning_state,
resourceGroupName,
subscriptionId,
track,
trackName
FROM azure.media_services.vw_tracks
WHERE accountName = '{{ accountName }}'
AND assetName = '{{ assetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.media_services.tracks (
accountName,
assetName,
resourceGroupName,
subscriptionId,
trackName,
properties
)
SELECT
'{{ accountName }}',
'{{ assetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ trackName }}',
'{{ properties }}'
;

UPDATE example

Updates a tracks resource.

/*+ update */
UPDATE azure.media_services.tracks
SET
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND assetName = '{{ assetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND trackName = '{{ trackName }}';

DELETE example

Deletes the specified tracks resource.

/*+ delete */
DELETE FROM azure.media_services.tracks
WHERE accountName = '{{ accountName }}'
AND assetName = '{{ assetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND trackName = '{{ trackName }}';