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:

Request successful. The operation returns the resulting ExpressRouteCircuitPeering resource.

NameDatatypeDescription
idstringResource ID.
namestringThe name of the resource that is unique within a resource group. This name can be used to access the resource.
etagstringA unique read-only string that changes whenever the resource is updated.
propertiesobjectProperties of the express route circuit peering.
typestringType of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, circuitName, peeringName, subscriptionIdGets the specified peering for the express route circuit.
listselectresourceGroupName, circuitName, subscriptionIdGets all peerings in a specified express route circuit.
create_or_updateinsertresourceGroupName, circuitName, peeringName, subscriptionIdCreates or updates a peering in the specified express route circuits.
deletedeleteresourceGroupName, circuitName, peeringName, subscriptionIdDeletes 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
circuitNamestringThe name of the express route circuit.
peeringNamestringThe name of the peering.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Gets the specified peering for the express route circuit.

SELECT
id,
name,
etag,
properties,
type
FROM azure.network.express_route_circuit_peerings
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND circuitName = '{{ circuitName }}' -- required
AND peeringName = '{{ peeringName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

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

INSERT INTO azure.network.express_route_circuit_peerings (
data__properties,
data__name,
data__id,
resourceGroupName,
circuitName,
peeringName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ name }}',
'{{ id }}',
'{{ resourceGroupName }}',
'{{ circuitName }}',
'{{ peeringName }}',
'{{ subscriptionId }}'
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 resourceGroupName = '{{ resourceGroupName }}' --required
AND circuitName = '{{ circuitName }}' --required
AND peeringName = '{{ peeringName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;