Skip to main content

access_policies

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

Overview

Nameaccess_policies
TypeResource
Idazure_extras.video_analyzer.access_policies

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.
authenticationobjectBase class for access policies authentication methods. You probably want to use the sub-classes and not this class directly. Known sub-classes are: JwtAuthentication. All required parameters must be populated in order to send to Azure.
rolestring
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
getselectaccess_policy_name, account_name, resource_group_name, subscription_idRetrieves an existing access policy resource. Retrieves an existing access policy resource with the given name.
listselectaccount_name, resource_group_name, subscription_id$topList all existing access policy resources. Retrieves all existing access policy resources, along with their JSON representations.
create_or_updateinsertaccess_policy_name, account_name, resource_group_name, subscription_idCreates a new access policy resource or updates an existing one. Creates a new access policy resource or updates an existing one with the given name.
updateupdateaccess_policy_name, account_name, resource_group_name, subscription_idUpdates individual properties of an existing access policy resource. Updates individual properties of an existing access policy resource with the given name.
create_or_updatereplaceaccess_policy_name, account_name, resource_group_name, subscription_idCreates a new access policy resource or updates an existing one. Creates a new access policy resource or updates an existing one with the given name.
deletedeleteaccess_policy_name, account_name, resource_group_name, subscription_idDeletes an existing access policy resource. Deletes an existing access policy 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
access_policy_namestringThe Access Policy name.
account_namestringThe Azure Video Analyzer account name.
resource_group_namestringThe name of the resource group. The name is case insensitive.
subscription_idstring
$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 access policy resource. Retrieves an existing access policy resource with the given name.

SELECT
id,
name,
authentication,
role,
systemData,
type
FROM azure_extras.video_analyzer.access_policies
WHERE access_policy_name = '{{ access_policy_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

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

UPDATE examples

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

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

REPLACE examples

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

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

DELETE examples

Deletes an existing access policy resource. Deletes an existing access policy resource with the given name.

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