Share via


PeeringRegisteredAsnCollection.GetAsync(String, CancellationToken) Method

Definition

Gets an existing registered ASN with the specified name under the given subscription, resource group and peering.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}/registeredAsns/{registeredAsnName}
  • Operation Id: RegisteredAsns_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Peering.PeeringRegisteredAsnResource>> GetAsync (string registeredAsnName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Peering.PeeringRegisteredAsnResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Peering.PeeringRegisteredAsnResource>>
Public Overridable Function GetAsync (registeredAsnName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PeeringRegisteredAsnResource))

Parameters

registeredAsnName
String

The name of the registered ASN.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

registeredAsnName is an empty string, and was expected to be non-empty.

registeredAsnName is null.

Applies to