Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure_extras.video_indexer.accounts

Fields

The following fields are returned by SELECT queries:

The Azure Video Indexer account properties were retrieved successfully.

NameDatatypeDescription
identityobjectManaged service identity (system assigned and/or user assigned identities)
locationstringThe geo-location where the resource lives
propertiesobjectList of account properties
systemDataobjectThe system meta data relating to this resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountNameGets the properties of an Azure Video Indexer account.
list_by_resource_groupselectsubscriptionId, resourceGroupNameList all Azure Video Indexer accounts available under the resource group
listselectsubscriptionIdList all Azure Video Indexer accounts available under the subscription
create_or_updateinsertsubscriptionId, resourceGroupName, accountNameCreates or updates an Azure Video Indexer account.
updateupdatesubscriptionId, resourceGroupName, accountNameUpdates the properties of an existing Azure Video Indexer account.
deletedeletesubscriptionId, resourceGroupName, accountNameDelete an Azure Video Indexer account.
check_name_availabilityexecsubscriptionId, name, typeChecks that the Video Indexer account name is valid and is not already in use.

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
accountNamestringThe name of the Azure Video Indexer account.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets the properties of an Azure Video Indexer account.

SELECT
identity,
location,
properties,
systemData,
tags
FROM azure_extras.video_indexer.accounts
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
;

INSERT examples

Creates or updates an Azure Video Indexer account.

INSERT INTO azure_extras.video_indexer.accounts (
data__properties,
data__identity,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
accountName
)
SELECT
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ accountName }}'
RETURNING
identity,
location,
properties,
systemData,
tags
;

UPDATE examples

Updates the properties of an existing Azure Video Indexer account.

UPDATE azure_extras.video_indexer.accounts
SET
data__properties = '{{ properties }}',
data__identity = '{{ identity }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
RETURNING
identity,
location,
properties,
systemData,
tags;

DELETE examples

Delete an Azure Video Indexer account.

DELETE FROM azure_extras.video_indexer.accounts
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
;

Lifecycle Methods

Checks that the Video Indexer account name is valid and is not already in use.

EXEC azure_extras.video_indexer.accounts.check_name_availability 
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"name": "{{ name }}",
"type": "{{ type }}"
}'
;