Share via


PeeringRegisteredAsnCollection.Get(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 Azure.Response<Azure.ResourceManager.Peering.PeeringRegisteredAsnResource> Get (string registeredAsnName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Peering.PeeringRegisteredAsnResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Peering.PeeringRegisteredAsnResource>
Public Overridable Function Get (registeredAsnName As String, Optional cancellationToken As CancellationToken = Nothing) As 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