Skip to main content

peerings

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

Overview

Namepeerings
TypeResource
Idazure.peering.peerings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the resource.
namestringThe name of the resource.
kindstringThe kind of the peering.
locationstringThe location of the resource.
propertiesobjectThe properties that define a peering.
skuobjectThe SKU that defines the tier and kind of the peering.
tagsobjectThe resource tags.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, peeringName, 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_updateinsertresourceGroupName, peeringName, subscriptionId, data__sku, data__kind, data__locationCreates a new peering or updates an existing peering with the specified name under the given subscription and resource group.
updateupdateresourceGroupName, peeringName, subscriptionIdUpdates tags for a peering with the specified name under the given subscription and resource group.
deletedeleteresourceGroupName, peeringName, subscriptionIdDeletes an existing peering with the specified name under the given subscription and resource group.

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
peeringNamestringThe name of the peering.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringThe Azure subscription ID.

SELECT examples

Gets an existing peering with the specified name under the given subscription and resource group.

SELECT
id,
name,
kind,
location,
properties,
sku,
tags,
type
FROM azure.peering.peerings
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND peeringName = '{{ peeringName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates a new peering or updates an existing peering with the specified name under the given subscription and resource group.

INSERT INTO azure.peering.peerings (
data__sku,
data__kind,
data__properties,
data__location,
data__tags,
resourceGroupName,
peeringName,
subscriptionId
)
SELECT
'{{ sku }}' /* required */,
'{{ kind }}' /* required */,
'{{ properties }}',
'{{ location }}' /* required */,
'{{ tags }}',
'{{ resourceGroupName }}',
'{{ peeringName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
kind,
location,
properties,
sku,
tags,
type
;

UPDATE examples

Updates tags for a peering with the specified name under the given subscription and resource group.

UPDATE azure.peering.peerings
SET
data__tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND peeringName = '{{ peeringName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
id,
name,
kind,
location,
properties,
sku,
tags,
type;

DELETE examples

Deletes an existing peering with the specified name under the given subscription and resource group.

DELETE FROM azure.peering.peerings
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND peeringName = '{{ peeringName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;