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.
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
listselectpeeringLocation, kind, subscriptionIdasn, directPeeringTypeLists 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.
peeringLocationstringThe location of the peering.
subscriptionIdstringThe Azure subscription ID.
asninteger (int32)The ASN number associated with a legacy peering.
directPeeringTypestringThe direct peering type.

SELECT examples

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

SELECT
id,
name,
kind,
location,
properties,
sku,
tags,
type
FROM azure.peering.legacy_peerings
WHERE peeringLocation = '{{ peeringLocation }}' -- required
AND kind = '{{ kind }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND asn = '{{ asn }}'
AND directPeeringType = '{{ directPeeringType }}'
;