Skip to main content

express_route_circuit_peerings

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

Overview

Nameexpress_route_circuit_peerings
TypeResource
Idazure.network.express_route_circuit_peerings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringName of the resource.
azureASNintegerThe Azure ASN.
connectionsarrayThe list of circuit connections associated with Azure Private Peering for this circuit.
etagstringA unique read-only string that changes whenever the resource is updated.
expressRouteConnectionobjectThe ExpressRoute connection.
gatewayManagerEtagstringThe GatewayManager Etag.
ipv6PeeringConfigobjectThe IPv6 peering configuration.
lastModifiedBystringWho was the last to modify the peering.
microsoftPeeringConfigobjectThe Microsoft peering configuration.
peerASNintegerThe peer ASN.
peeredConnectionsarrayThe list of peered circuit connections associated with Azure Private Peering for this circuit.
peeringTypestringThe peering type. Known values are: "AzurePublicPeering", "AzurePrivatePeering", and "MicrosoftPeering". (AzurePublicPeering, AzurePrivatePeering, MicrosoftPeering)
primaryAzurePortstringThe primary port.
primaryPeerAddressPrefixstringThe primary address prefix.
provisioningStatestringThe provisioning state of the express route circuit peering resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
routeFilterobjectReference to another subresource.
secondaryAzurePortstringThe secondary port.
secondaryPeerAddressPrefixstringThe secondary address prefix.
sharedKeystringThe shared key.
statestringThe peering state. Known values are: "Disabled" and "Enabled". (Disabled, Enabled)
statsobjectThe peering stats of express route circuit.
typestringResource type.
vlanIdintegerThe VLAN ID.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, circuit_name, peering_name, subscription_idGets the specified peering for the express route circuit.
listselectresource_group_name, circuit_name, subscription_idGets all peerings in a specified express route circuit.
create_or_updateinsertresource_group_name, circuit_name, peering_name, subscription_idCreates or updates a peering in the specified express route circuits.
create_or_updatereplaceresource_group_name, circuit_name, peering_name, subscription_idCreates or updates a peering in the specified express route circuits.
deletedeleteresource_group_name, circuit_name, peering_name, subscription_idDeletes the specified peering from the specified express route circuit.

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
circuit_namestringThe name of express route circuit. Required.
peering_namestringThe name of the peering. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the specified peering for the express route circuit.

SELECT
id,
name,
azureASN,
connections,
etag,
expressRouteConnection,
gatewayManagerEtag,
ipv6PeeringConfig,
lastModifiedBy,
microsoftPeeringConfig,
peerASN,
peeredConnections,
peeringType,
primaryAzurePort,
primaryPeerAddressPrefix,
provisioningState,
routeFilter,
secondaryAzurePort,
secondaryPeerAddressPrefix,
sharedKey,
state,
stats,
type,
vlanId
FROM azure.network.express_route_circuit_peerings
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND circuit_name = '{{ circuit_name }}' -- required
AND peering_name = '{{ peering_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a peering in the specified express route circuits.

INSERT INTO azure.network.express_route_circuit_peerings (
id,
name,
properties,
resource_group_name,
circuit_name,
peering_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ name }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ circuit_name }}',
'{{ peering_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
type
;

REPLACE examples

Creates or updates a peering in the specified express route circuits.

REPLACE azure.network.express_route_circuit_peerings
SET
id = '{{ id }}',
name = '{{ name }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND circuit_name = '{{ circuit_name }}' --required
AND peering_name = '{{ peering_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
type;

DELETE examples

Deletes the specified peering from the specified express route circuit.

DELETE FROM azure.network.express_route_circuit_peerings
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND circuit_name = '{{ circuit_name }}' --required
AND peering_name = '{{ peering_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;