Skip to main content

videos

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

Overview

Namevideos
TypeResource
Idazure_extras.video_analyzer.videos

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.
archivalobjectVideo archival properties.
contentUrlsobjectSet of URLs to the video content.
descriptionstring
flagsobjectVideo flags contain information about the available video actions and its dynamic properties based on the current video state.
mediaInfoobjectContains information about the video and audio content.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
titlestring
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
getselectaccount_name, resource_group_name, video_name, subscription_idRetrieves an existing video resource. Retrieves an existing video resource with the given name.
listselectaccount_name, resource_group_name, subscription_id$topRetrieves all existing video resources. Retrieves a list of video resources that have been created, along with their JSON representations.
create_or_updateinsertaccount_name, resource_group_name, video_name, subscription_idCreates a new video resource or updates an existing one. Creates a new video resource or updates an existing video resource with the given name.
updateupdateaccount_name, resource_group_name, video_name, subscription_idUpdates individual properties of an existing video resource. Updates individual properties of an existing video resource with the given name.
create_or_updatereplaceaccount_name, resource_group_name, video_name, subscription_idCreates a new video resource or updates an existing one. Creates a new video resource or updates an existing video resource with the given name.
deletedeleteaccount_name, resource_group_name, video_name, subscription_idDeletes an existing video resource and its underlying data. Deletes an existing video resource and its underlying data. This operation is irreversible.
list_content_tokenexecaccount_name, resource_group_name, video_name, subscription_idGenerates a streaming token which can be used for accessing content from video content URLs. Generates a streaming token which can be used for accessing content from video content URLs, for a video resource with the given name.

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 Azure Video Analyzer account name.
resource_group_namestringThe name of the resource group. The name is case insensitive.
subscription_idstring
video_namestringThe Video name.
$topintegerSpecifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n.

SELECT examples

Retrieves an existing video resource. Retrieves an existing video resource with the given name.

SELECT
id,
name,
archival,
contentUrls,
description,
flags,
mediaInfo,
systemData,
title,
type
FROM azure_extras.video_analyzer.videos
WHERE account_name = '{{ account_name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND video_name = '{{ video_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a new video resource or updates an existing one. Creates a new video resource or updates an existing video resource with the given name.

INSERT INTO azure_extras.video_analyzer.videos (
properties,
account_name,
resource_group_name,
video_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ account_name }}',
'{{ resource_group_name }}',
'{{ video_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Updates individual properties of an existing video resource. Updates individual properties of an existing video resource with the given name.

UPDATE azure_extras.video_analyzer.videos
SET
properties = '{{ properties }}'
WHERE
account_name = '{{ account_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND video_name = '{{ video_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Creates a new video resource or updates an existing one. Creates a new video resource or updates an existing video resource with the given name.

REPLACE azure_extras.video_analyzer.videos
SET
properties = '{{ properties }}'
WHERE
account_name = '{{ account_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND video_name = '{{ video_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes an existing video resource and its underlying data. Deletes an existing video resource and its underlying data. This operation is irreversible.

DELETE FROM azure_extras.video_analyzer.videos
WHERE account_name = '{{ account_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND video_name = '{{ video_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Generates a streaming token which can be used for accessing content from video content URLs. Generates a streaming token which can be used for accessing content from video content URLs, for a video resource with the given name.

EXEC azure_extras.video_analyzer.videos.list_content_token 
@account_name='{{ account_name }}' --required,
@resource_group_name='{{ resource_group_name }}' --required,
@video_name='{{ video_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;