Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure_extras.video_indexer.accounts

Fields

NameDatatypeDescription
accountNametextfield from the properties object
account_idtextfield from the properties object
account_nametextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
storage_servicestextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
tenant_idtextfield from the properties object
total_seconds_indexedtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionIdGets the properties of an Azure Video Indexer account.
listSELECTsubscriptionIdList all Azure Video Indexer accounts available under the subscription
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all Azure Video Indexer accounts available under the resource group
create_or_updateINSERTaccountName, resourceGroupName, subscriptionIdCreates or updates an Azure Video Indexer account.
deleteDELETEaccountName, resourceGroupName, subscriptionIdDelete an Azure Video Indexer account.
updateUPDATEaccountName, resourceGroupName, subscriptionIdUpdates the properties of an existing Azure Video Indexer account.
check_name_availabilityEXECsubscriptionId, data__name, data__typeChecks that the Video Indexer account name is valid and is not already in use.

SELECT examples

List all Azure Video Indexer accounts available under the subscription

SELECT
accountName,
account_id,
account_name,
identity,
location,
provisioning_state,
resourceGroupName,
storage_services,
subscriptionId,
system_data,
tags,
tenant_id,
total_seconds_indexed
FROM azure_extras.video_indexer.vw_accounts
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.video_indexer.accounts (
accountName,
resourceGroupName,
subscriptionId,
properties,
identity,
tags,
location
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a accounts resource.

/*+ update */
UPDATE azure_extras.video_indexer.accounts
SET
properties = '{{ properties }}',
identity = '{{ identity }}',
tags = '{{ tags }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified accounts resource.

/*+ delete */
DELETE FROM azure_extras.video_indexer.accounts
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';