Share via


PeeringExtensions.GetPeeringsByLegacyPeering Method

Definition

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

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Peering/legacyPeerings
  • Operation Id: LegacyPeerings_List
public static Azure.Pageable<Azure.ResourceManager.Peering.PeeringResource> GetPeeringsByLegacyPeering (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string peeringLocation, Azure.ResourceManager.Peering.Models.LegacyPeeringsKind kind, int? asn = default, Azure.ResourceManager.Peering.Models.DirectPeeringType? directPeeringType = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPeeringsByLegacyPeering : Azure.ResourceManager.Resources.SubscriptionResource * string * Azure.ResourceManager.Peering.Models.LegacyPeeringsKind * Nullable<int> * Nullable<Azure.ResourceManager.Peering.Models.DirectPeeringType> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Peering.PeeringResource>
<Extension()>
Public Function GetPeeringsByLegacyPeering (subscriptionResource As SubscriptionResource, peeringLocation As String, kind As LegacyPeeringsKind, Optional asn As Nullable(Of Integer) = Nothing, Optional directPeeringType As Nullable(Of DirectPeeringType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PeeringResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

peeringLocation
String

The location of the peering.

kind
LegacyPeeringsKind

The kind of the peering.

asn
Nullable<Int32>

The ASN number associated with a legacy peering.

directPeeringType
Nullable<DirectPeeringType>

The direct peering type.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of PeeringResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource or peeringLocation is null.

Applies to