Condividi tramite


BillingAccountResource.GetBillingProfile(String, CancellationToken) Method

Definition

Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

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

Parameters

billingProfileName
String

The ID that uniquely identifies a billing profile.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

billingProfileName is null.

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

Applies to