Skip to main content

legacy_peerings

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

Overview​

Namelegacy_peerings
TypeResource
Idazure.peering.legacy_peerings

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the resource.
namestringThe name of the resource.
directobjectThe properties that define a direct peering.
exchangeobjectThe properties that define an exchange peering.
kindstringThe kind of the peering. Required. Known values are: "Direct" and "Exchange".
locationstringThe location of the resource. Required.
peeringLocationstringThe location of the peering.
provisioningStatestringThe provisioning state of the resource. Known values are: "Succeeded", "Updating", "Deleting", and "Failed".
skuobjectThe SKU that defines the tier and kind of the peering. Required.
tagsobjectThe resource tags.
typestringThe type of the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscription_id, peeringLocation, kindLists all of the legacy peerings under the given subscription matching the specified kind and location.

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
kindstringThe kind of the peering. Known values are: "Direct" and "Exchange". Required.
peeringLocationstringThe location of the peering. Required.
subscription_idstring

SELECT examples​

Lists all of the legacy peerings under the given subscription matching the specified kind and location.

SELECT
id,
name,
direct,
exchange,
kind,
location,
peeringLocation,
provisioningState,
sku,
tags,
type
FROM azure.peering.legacy_peerings
WHERE subscription_id = '{{ subscription_id }}' -- required
AND peeringLocation = '{{ peeringLocation }}' -- required
AND kind = '{{ kind }}' -- required
;