Skip to main content

asset_filters

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

Overview

Nameasset_filters
TypeResource
Idazure_extras.media.asset_filters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
firstQualityobjectThe first quality.
presentationTimeRangeobjectThe presentation time range.
systemDataobjectThe system metadata relating to this resource.
tracksarrayThe tracks selection conditions.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, asset_name, filter_name, subscription_idGet an Asset Filter. Get the details of an Asset Filter associated with the specified Asset.
listselectresource_group_name, account_name, asset_name, subscription_idList Asset Filters. List Asset Filters associated with the specified Asset.
create_or_updateinsertresource_group_name, account_name, asset_name, filter_name, subscription_idCreate or update an Asset Filter. Creates or updates an Asset Filter associated with the specified Asset.
updateupdateresource_group_name, account_name, asset_name, filter_name, subscription_idUpdate an Asset Filter. Updates an existing Asset Filter associated with the specified Asset.
create_or_updatereplaceresource_group_name, account_name, asset_name, filter_name, subscription_idCreate or update an Asset Filter. Creates or updates an Asset Filter associated with the specified Asset.
deletedeleteresource_group_name, account_name, asset_name, filter_name, subscription_idDelete an Asset Filter. Deletes an Asset Filter associated with the specified Asset.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_namestringThe Media Services account name. Required.
asset_namestringThe Asset name. Required.
filter_namestringThe Asset Filter name. Required.
resource_group_namestringThe name of the resource group within the Azure subscription. Required.
subscription_idstring

SELECT examples

Get an Asset Filter. Get the details of an Asset Filter associated with the specified Asset.

SELECT
id,
name,
firstQuality,
presentationTimeRange,
systemData,
tracks,
type
FROM azure_extras.media.asset_filters
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND asset_name = '{{ asset_name }}' -- required
AND filter_name = '{{ filter_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update an Asset Filter. Creates or updates an Asset Filter associated with the specified Asset.

INSERT INTO azure_extras.media.asset_filters (
properties,
resource_group_name,
account_name,
asset_name,
filter_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ asset_name }}',
'{{ filter_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Update an Asset Filter. Updates an existing Asset Filter associated with the specified Asset.

UPDATE azure_extras.media.asset_filters
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND asset_name = '{{ asset_name }}' --required
AND filter_name = '{{ filter_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Create or update an Asset Filter. Creates or updates an Asset Filter associated with the specified Asset.

REPLACE azure_extras.media.asset_filters
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND asset_name = '{{ asset_name }}' --required
AND filter_name = '{{ filter_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete an Asset Filter. Deletes an Asset Filter associated with the specified Asset.

DELETE FROM azure_extras.media.asset_filters
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND asset_name = '{{ asset_name }}' --required
AND filter_name = '{{ filter_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;