Share via


PeeringResource.GetPeeringRegisteredAsn(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> GetPeeringRegisteredAsn (string registeredAsnName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPeeringRegisteredAsn : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Peering.PeeringRegisteredAsnResource>
override this.GetPeeringRegisteredAsn : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Peering.PeeringRegisteredAsnResource>
Public Overridable Function GetPeeringRegisteredAsn (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 null.

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

Applies to