Skip to main content

videos

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

Overview

Namevideos
TypeResource
Idazure.video_analyzer.videos

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
accountNametextfield from the properties object
archivaltextfield from the properties object
content_urlstextfield from the properties object
flagstextfield from the properties object
media_infotextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
titletextfield from the properties object
typetextfield from the properties object
videoNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionId, videoNameRetrieves an existing video resource with the given name.
listSELECTaccountName, resourceGroupName, subscriptionIdRetrieves a list of video resources that have been created, along with their JSON representations.
create_or_updateINSERTaccountName, resourceGroupName, subscriptionId, videoNameCreates a new video resource or updates an existing video resource with the given name.
deleteDELETEaccountName, resourceGroupName, subscriptionId, videoNameDeletes an existing video resource and its underlying data. This operation is irreversible.
updateUPDATEaccountName, resourceGroupName, subscriptionId, videoNameUpdates individual properties of an existing video resource with the given name.

SELECT examples

Retrieves a list of video resources that have been created, along with their JSON representations.

SELECT
description,
accountName,
archival,
content_urls,
flags,
media_info,
resourceGroupName,
subscriptionId,
title,
type,
videoName
FROM azure.video_analyzer.vw_videos
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.video_analyzer.videos (
accountName,
resourceGroupName,
subscriptionId,
videoName,
properties
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ videoName }}',
'{{ properties }}'
;

UPDATE example

Updates a videos resource.

/*+ update */
UPDATE azure.video_analyzer.videos
SET
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND videoName = '{{ videoName }}';

DELETE example

Deletes the specified videos resource.

/*+ delete */
DELETE FROM azure.video_analyzer.videos
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND videoName = '{{ videoName }}';