PeerAsnCollection.GetAllAsync(CancellationToken) Method

Definition

Lists all of the peer ASNs under the given subscription.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns.
  • Operation Id. : PeerAsns_ListBySubscription.
  • Default Api Version. : 2025-05-01.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Peering.PeerAsnResource> GetAllAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Peering.PeerAsnResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Peering.PeerAsnResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PeerAsnResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to