Skip to main content

express_route_cross_connection_peerings

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

Overview

Nameexpress_route_cross_connection_peerings
TypeResource
Idazure.network.express_route_cross_connection_peerings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringThe name of the resource that is unique within a resource group. This name can be used to access the resource.
azureASNintegerThe Azure ASN.
etagstringA unique read-only string that changes whenever the resource is updated.
gatewayManagerEtagstringThe GatewayManager Etag.
ipv6PeeringConfigobjectThe IPv6 peering configuration.
lastModifiedBystringWho was the last to modify the peering.
microsoftPeeringConfigobjectThe Microsoft peering configuration.
peerASNintegerThe peer ASN.
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 cross connection peering resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
secondaryAzurePortstringThe secondary port.
secondaryPeerAddressPrefixstringThe secondary address prefix.
sharedKeystringThe shared key.
statestringThe peering state. Known values are: "Disabled" and "Enabled". (Disabled, Enabled)
vlanIdintegerThe VLAN ID.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, cross_connection_name, peering_name, subscription_idGets the specified peering for the ExpressRouteCrossConnection.
listselectresource_group_name, cross_connection_name, subscription_idGets all peerings in a specified ExpressRouteCrossConnection.
create_or_updateinsertresource_group_name, cross_connection_name, peering_name, subscription_idCreates or updates a peering in the specified ExpressRouteCrossConnection.
create_or_updatereplaceresource_group_name, cross_connection_name, peering_name, subscription_idCreates or updates a peering in the specified ExpressRouteCrossConnection.
deletedeleteresource_group_name, cross_connection_name, peering_name, subscription_idDeletes the specified peering from the ExpressRouteCrossConnection.

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
cross_connection_namestringName for the express route cross connection. 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 ExpressRouteCrossConnection.

SELECT
id,
name,
azureASN,
etag,
gatewayManagerEtag,
ipv6PeeringConfig,
lastModifiedBy,
microsoftPeeringConfig,
peerASN,
peeringType,
primaryAzurePort,
primaryPeerAddressPrefix,
provisioningState,
secondaryAzurePort,
secondaryPeerAddressPrefix,
sharedKey,
state,
vlanId
FROM azure.network.express_route_cross_connection_peerings
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cross_connection_name = '{{ cross_connection_name }}' -- required
AND peering_name = '{{ peering_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a peering in the specified ExpressRouteCrossConnection.

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

REPLACE examples

Creates or updates a peering in the specified ExpressRouteCrossConnection.

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

DELETE examples

Deletes the specified peering from the ExpressRouteCrossConnection.

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