共用方式為


BillingSubscriptionAliasCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptionAliases/{aliasName}
  • Operation Id: BillingSubscriptionsAliases_Get
  • Default Api Version: 2024-04-01
  • Resource: BillingSubscriptionAliasResource
public virtual Azure.NullableResponse<Azure.ResourceManager.Billing.BillingSubscriptionAliasResource> GetIfExists (string aliasName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Billing.BillingSubscriptionAliasResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Billing.BillingSubscriptionAliasResource>
Public Overridable Function GetIfExists (aliasName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of BillingSubscriptionAliasResource)

Parameters

aliasName
String

The ID that uniquely identifies a subscription alias.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

aliasName is null.

Applies to