Dela via


IBillingProfilesOperations.GetWithHttpMessagesAsync Metod

Definition

Hämtar en faktureringsprofil med sitt ID. Åtgärden stöds för faktureringskonton med avtalstyp Microsoft-kundavtal eller Microsoft-partneravtal. https://docs.microsoft.com/en-us/rest/api/billing/

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Billing.Models.BillingProfile>> GetWithHttpMessagesAsync (string billingAccountName, string billingProfileName, string expand = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetWithHttpMessagesAsync : string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Billing.Models.BillingProfile>>
Public Function GetWithHttpMessagesAsync (billingAccountName As String, billingProfileName As String, Optional expand As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of BillingProfile))

Parametrar

billingAccountName
String

Det ID som unikt identifierar ett faktureringskonto.

billingProfileName
String

Det ID som unikt identifierar en faktureringsprofil.

expand
String

Kan användas för att expandera fakturaavsnitten.

customHeaders
Dictionary<String,List<String>>

Rubrikerna som läggs till i begäran.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

Undantag

Utlöses när åtgärden returnerade en ogiltig statuskod

Utlöses när det inte går att deserialisera svaret

Genereras när en obligatorisk parameter är null

Gäller för