MockablePeeringSubscriptionResource.GetPeeringsByLegacyPeeringAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 virtual Azure.AsyncPageable<Azure.ResourceManager.Peering.PeeringResource> GetPeeringsByLegacyPeeringAsync (string peeringLocation, Azure.ResourceManager.Peering.Models.LegacyPeeringsKind kind, int? asn = default, Azure.ResourceManager.Peering.Models.DirectPeeringType? directPeeringType = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPeeringsByLegacyPeeringAsync : string * Azure.ResourceManager.Peering.Models.LegacyPeeringsKind * Nullable<int> * Nullable<Azure.ResourceManager.Peering.Models.DirectPeeringType> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Peering.PeeringResource>
override this.GetPeeringsByLegacyPeeringAsync : string * Azure.ResourceManager.Peering.Models.LegacyPeeringsKind * Nullable<int> * Nullable<Azure.ResourceManager.Peering.Models.DirectPeeringType> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Peering.PeeringResource>
Public Overridable Function GetPeeringsByLegacyPeeringAsync (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 AsyncPageable(Of PeeringResource)
Parameters
- peeringLocation
- String
The location of the peering.
- kind
- LegacyPeeringsKind
The kind of the peering.
- directPeeringType
- Nullable<DirectPeeringType>
The direct peering type.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
An async collection of PeeringResource that may take multiple service requests to iterate over.
Exceptions
peeringLocation
is null.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET