Skip to main content

peerings

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

Overview

Namepeerings
TypeResource
Idazure.peering.peerings

Fields

NameDatatypeDescription
idtextThe ID of the resource.
nametextThe name of the resource.
directtextfield from the properties object
exchangetextfield from the properties object
kindtextThe kind of the peering.
locationtextThe location of the resource.
peeringNametextfield from the properties object
peering_locationtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextThe SKU that defines the tier and kind of the peering.
subscriptionIdtextfield from the properties object
tagstextThe resource tags.
typetextThe type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTpeeringName, resourceGroupName, subscriptionIdGets an existing peering with the specified name under the given subscription and resource group.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all of the peerings under the given subscription and resource group.
list_by_subscriptionSELECTsubscriptionIdLists all of the peerings under the given subscription.
create_or_updateINSERTpeeringName, resourceGroupName, subscriptionId, data__kind, data__location, data__skuCreates a new peering or updates an existing peering with the specified name under the given subscription and resource group.
deleteDELETEpeeringName, resourceGroupName, subscriptionIdDeletes an existing peering with the specified name under the given subscription and resource group.
updateUPDATEpeeringName, resourceGroupName, subscriptionIdUpdates tags for a peering with the specified name under the given subscription and resource group.

SELECT examples

Lists all of the peerings under the given subscription.

SELECT
id,
name,
direct,
exchange,
kind,
location,
peeringName,
peering_location,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
tags,
type
FROM azure.peering.vw_peerings
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.peering.peerings (
peeringName,
resourceGroupName,
subscriptionId,
data__kind,
data__location,
data__sku,
sku,
kind,
properties,
location,
tags
)
SELECT
'{{ peeringName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__kind }}',
'{{ data__location }}',
'{{ data__sku }}',
'{{ sku }}',
'{{ kind }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a peerings resource.

/*+ update */
UPDATE azure.peering.peerings
SET
tags = '{{ tags }}'
WHERE
peeringName = '{{ peeringName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified peerings resource.

/*+ delete */
DELETE FROM azure.peering.peerings
WHERE peeringName = '{{ peeringName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';