Skip to main content

express_route_cross_connection_peerings

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

Overview

Nameexpress_route_cross_connection_peerings
TypeResource
Idazure.network.express_route_cross_connection_peerings

Fields

NameDatatypeDescription
idtextResource ID.
nametextThe name of the resource that is unique within a resource group. This name can be used to access the resource.
azure_asntextfield from the properties object
crossConnectionNametextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
gateway_manager_etagtextfield from the properties object
ipv6_peering_configtextfield from the properties object
last_modified_bytextfield from the properties object
microsoft_peering_configtextfield from the properties object
peer_asntextfield from the properties object
peeringNametextfield from the properties object
peering_typetextfield from the properties object
primary_azure_porttextfield from the properties object
primary_peer_address_prefixtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
secondary_azure_porttextfield from the properties object
secondary_peer_address_prefixtextfield from the properties object
shared_keytextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
vlan_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcrossConnectionName, peeringName, resourceGroupName, subscriptionIdGets the specified peering for the ExpressRouteCrossConnection.
listSELECTcrossConnectionName, resourceGroupName, subscriptionIdGets all peerings in a specified ExpressRouteCrossConnection.
create_or_updateINSERTcrossConnectionName, peeringName, resourceGroupName, subscriptionIdCreates or updates a peering in the specified ExpressRouteCrossConnection.
deleteDELETEcrossConnectionName, peeringName, resourceGroupName, subscriptionIdDeletes the specified peering from the ExpressRouteCrossConnection.

SELECT examples

Gets all peerings in a specified ExpressRouteCrossConnection.

SELECT
id,
name,
azure_asn,
crossConnectionName,
etag,
gateway_manager_etag,
ipv6_peering_config,
last_modified_by,
microsoft_peering_config,
peer_asn,
peeringName,
peering_type,
primary_azure_port,
primary_peer_address_prefix,
provisioning_state,
resourceGroupName,
secondary_azure_port,
secondary_peer_address_prefix,
shared_key,
state,
subscriptionId,
vlan_id
FROM azure.network.vw_express_route_cross_connection_peerings
WHERE crossConnectionName = '{{ crossConnectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new express_route_cross_connection_peerings resource.

/*+ create */
INSERT INTO azure.network.express_route_cross_connection_peerings (
crossConnectionName,
peeringName,
resourceGroupName,
subscriptionId,
properties,
name,
id
)
SELECT
'{{ crossConnectionName }}',
'{{ peeringName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ name }}',
'{{ id }}'
;

DELETE example

Deletes the specified express_route_cross_connection_peerings resource.

/*+ delete */
DELETE FROM azure.network.express_route_cross_connection_peerings
WHERE crossConnectionName = '{{ crossConnectionName }}'
AND peeringName = '{{ peeringName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';