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
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

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

Applies to