express_route_port_authorizations
Creates, updates, deletes, gets or lists an express_route_port_authorizations resource.
Overview
| Name | express_route_port_authorizations |
| Type | Resource |
| Id | azure.network.express_route_port_authorizations |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Resource ID. |
name | string | Name of the resource. |
authorizationKey | string | The authorization key. |
authorizationUseStatus | string | The authorization use status. Known values are: "Available" and "InUse". (Available, InUse) |
circuitResourceUri | string | The reference to the ExpressRoute circuit resource using the authorization. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
provisioningState | string | The provisioning state of the authorization resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting) |
type | string | Resource type. |
| Name | Datatype | Description |
|---|---|---|
id | string | Resource ID. |
name | string | Name of the resource. |
authorizationKey | string | The authorization key. |
authorizationUseStatus | string | The authorization use status. Known values are: "Available" and "InUse". (Available, InUse) |
circuitResourceUri | string | The reference to the ExpressRoute circuit resource using the authorization. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
provisioningState | string | The provisioning state of the authorization resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting) |
type | string | Resource type. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, express_route_port_name, authorization_name, subscription_id | Gets the specified authorization from the specified express route port. | |
list | select | resource_group_name, express_route_port_name, subscription_id | Gets all authorizations in an express route port. | |
create_or_update | insert | resource_group_name, express_route_port_name, authorization_name, subscription_id | Creates or updates an authorization in the specified express route port. | |
create_or_update | replace | resource_group_name, express_route_port_name, authorization_name, subscription_id | Creates or updates an authorization in the specified express route port. | |
delete | delete | resource_group_name, express_route_port_name, authorization_name, subscription_id | Deletes the specified authorization from the specified express route port. |
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.
| Name | Datatype | Description |
|---|---|---|
authorization_name | string | The name of the authorization. Required. |
express_route_port_name | string | The name of the express route port. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get
- list
Gets the specified authorization from the specified express route port.
SELECT
id,
name,
authorizationKey,
authorizationUseStatus,
circuitResourceUri,
etag,
provisioningState,
type
FROM azure.network.express_route_port_authorizations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND express_route_port_name = '{{ express_route_port_name }}' -- required
AND authorization_name = '{{ authorization_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Gets all authorizations in an express route port.
SELECT
id,
name,
authorizationKey,
authorizationUseStatus,
circuitResourceUri,
etag,
provisioningState,
type
FROM azure.network.express_route_port_authorizations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND express_route_port_name = '{{ express_route_port_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Creates or updates an authorization in the specified express route port.
INSERT INTO azure.network.express_route_port_authorizations (
id,
name,
properties,
resource_group_name,
express_route_port_name,
authorization_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ name }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ express_route_port_name }}',
'{{ authorization_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
type
;
# Description fields are for documentation purposes
- name: express_route_port_authorizations
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the express_route_port_authorizations resource.
- name: express_route_port_name
value: "{{ express_route_port_name }}"
description: Required parameter for the express_route_port_authorizations resource.
- name: authorization_name
value: "{{ authorization_name }}"
description: Required parameter for the express_route_port_authorizations resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the express_route_port_authorizations resource.
- name: id
value: "{{ id }}"
description: |
Resource ID.
- name: name
value: "{{ name }}"
description: |
Name of the resource.
- name: properties
description: |
ExpressRoutePort properties.
value:
authorizationKey: "{{ authorizationKey }}"
authorizationUseStatus: "{{ authorizationUseStatus }}"
circuitResourceUri: "{{ circuitResourceUri }}"
provisioningState: "{{ provisioningState }}"
REPLACE examples
- create_or_update
Creates or updates an authorization in the specified express route port.
REPLACE azure.network.express_route_port_authorizations
SET
id = '{{ id }}',
name = '{{ name }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND express_route_port_name = '{{ express_route_port_name }}' --required
AND authorization_name = '{{ authorization_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
type;
DELETE examples
- delete
Deletes the specified authorization from the specified express route port.
DELETE FROM azure.network.express_route_port_authorizations
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND express_route_port_name = '{{ express_route_port_name }}' --required
AND authorization_name = '{{ authorization_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;