Skip to main content

authorizations

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

Overview​

Nameauthorizations
TypeResource
Idazure.avs.authorizations

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.
expressRouteAuthorizationIdstringThe ID of the ExpressRoute Circuit Authorization.
expressRouteAuthorizationKeystringThe key of the ExpressRoute Circuit Authorization.
expressRouteIdstringThe ID of the ExpressRoute Circuit.
provisioningStatestringThe state of the ExpressRoute Circuit Authorization provisioning. Known values are: "Succeeded", "Failed", "Canceled", and "Updating". (Succeeded, Failed, Canceled, Updating)
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
getselectresource_group_name, private_cloud_name, authorization_name, subscription_idGet a ExpressRouteAuthorization.
listselectresource_group_name, private_cloud_name, subscription_idList ExpressRouteAuthorization resources by PrivateCloud.
create_or_updateinsertresource_group_name, private_cloud_name, authorization_name, subscription_idCreate a ExpressRouteAuthorization.
create_or_updatereplaceresource_group_name, private_cloud_name, authorization_name, subscription_idCreate a ExpressRouteAuthorization.
deletedeleteresource_group_name, private_cloud_name, authorization_name, subscription_idDelete a ExpressRouteAuthorization.

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
authorization_namestringName of the ExpressRoute Circuit Authorization. Required.
private_cloud_namestringName of the private cloud. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples​

Get a ExpressRouteAuthorization.

SELECT
id,
name,
expressRouteAuthorizationId,
expressRouteAuthorizationKey,
expressRouteId,
provisioningState,
systemData,
type
FROM azure.avs.authorizations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND private_cloud_name = '{{ private_cloud_name }}' -- required
AND authorization_name = '{{ authorization_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples​

Create a ExpressRouteAuthorization.

INSERT INTO azure.avs.authorizations (
properties,
resource_group_name,
private_cloud_name,
authorization_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ private_cloud_name }}',
'{{ authorization_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples​

Create a ExpressRouteAuthorization.

REPLACE azure.avs.authorizations
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND private_cloud_name = '{{ private_cloud_name }}' --required
AND authorization_name = '{{ authorization_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples​

Delete a ExpressRouteAuthorization.

DELETE FROM azure.avs.authorizations
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND private_cloud_name = '{{ private_cloud_name }}' --required
AND authorization_name = '{{ authorization_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;