legacy_peerings
Creates, updates, deletes, gets or lists a legacy_peerings resource.
Overview
| Name | legacy_peerings |
| Type | Resource |
| Id | azure.peering.legacy_peerings |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the resource. |
name | string | The name of the resource. |
direct | object | The properties that define a direct peering. |
exchange | object | The properties that define an exchange peering. |
kind | string | The kind of the peering. Required. Known values are: "Direct" and "Exchange". |
location | string | The location of the resource. Required. |
peeringLocation | string | The location of the peering. |
provisioningState | string | The provisioning state of the resource. Known values are: "Succeeded", "Updating", "Deleting", and "Failed". |
sku | object | The SKU that defines the tier and kind of the peering. Required. |
tags | object | The resource tags. |
type | string | The type of the resource. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | subscription_id, peeringLocation, kind | Lists 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.
| Name | Datatype | Description |
|---|---|---|
kind | string | The kind of the peering. Known values are: "Direct" and "Exchange". Required. |
peeringLocation | string | The location of the peering. Required. |
subscription_id | string |
SELECT examples
- list
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
;