Skip to main content

assets

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

Overview

Nameassets
TypeResource
Idazure.media_services.assets

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
accountNametextfield from the properties object
alternate_idtextfield from the properties object
assetNametextfield from the properties object
asset_idtextfield from the properties object
containertextfield from the properties object
createdtextfield from the properties object
encryption_scopetextfield from the properties object
last_modifiedtextfield from the properties object
resourceGroupNametextfield from the properties object
storage_account_nametextfield from the properties object
storage_encryption_formattextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, assetName, resourceGroupName, subscriptionIdGet the details of an Asset in the Media Services account
listSELECTaccountName, resourceGroupName, subscriptionIdList Assets in the Media Services account with optional filtering and ordering
create_or_updateINSERTaccountName, assetName, resourceGroupName, subscriptionIdCreates or updates an Asset in the Media Services account
deleteDELETEaccountName, assetName, resourceGroupName, subscriptionIdDeletes an Asset in the Media Services account
updateUPDATEaccountName, assetName, resourceGroupName, subscriptionIdUpdates an existing Asset in the Media Services account

SELECT examples

List Assets in the Media Services account with optional filtering and ordering

SELECT
description,
accountName,
alternate_id,
assetName,
asset_id,
container,
created,
encryption_scope,
last_modified,
resourceGroupName,
storage_account_name,
storage_encryption_format,
subscriptionId,
system_data
FROM azure.media_services.vw_assets
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a assets resource.

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

DELETE example

Deletes the specified assets resource.

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