Skip to main content

asset_filters

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

Overview

Nameasset_filters
TypeResource
Idazure.media_services.asset_filters

Fields

NameDatatypeDescription
accountNametextfield from the properties object
assetNametextfield from the properties object
filterNametextfield from the properties object
first_qualitytextfield from the properties object
presentation_time_rangetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
trackstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, assetName, filterName, resourceGroupName, subscriptionIdGet the details of an Asset Filter associated with the specified Asset.
listSELECTaccountName, assetName, resourceGroupName, subscriptionIdList Asset Filters associated with the specified Asset.
create_or_updateINSERTaccountName, assetName, filterName, resourceGroupName, subscriptionIdCreates or updates an Asset Filter associated with the specified Asset.
deleteDELETEaccountName, assetName, filterName, resourceGroupName, subscriptionIdDeletes an Asset Filter associated with the specified Asset.
updateUPDATEaccountName, assetName, filterName, resourceGroupName, subscriptionIdUpdates an existing Asset Filter associated with the specified Asset.

SELECT examples

List Asset Filters associated with the specified Asset.

SELECT
accountName,
assetName,
filterName,
first_quality,
presentation_time_range,
resourceGroupName,
subscriptionId,
system_data,
tracks
FROM azure.media_services.vw_asset_filters
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 asset_filters resource.

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

UPDATE example

Updates a asset_filters resource.

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

DELETE example

Deletes the specified asset_filters resource.

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