Share via


BillingRoleDefinitionsOperationsExtensions.GetByBillingAccountAsync Method

Definition

Gets the definition for a role on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. https://docs.microsoft.com/en-us/rest/api/billing/

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Billing.Models.BillingRoleDefinition> GetByBillingAccountAsync (this Microsoft.Azure.Management.Billing.IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingRoleDefinitionName, System.Threading.CancellationToken cancellationToken = default);
static member GetByBillingAccountAsync : Microsoft.Azure.Management.Billing.IBillingRoleDefinitionsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Billing.Models.BillingRoleDefinition>
<Extension()>
Public Function GetByBillingAccountAsync (operations As IBillingRoleDefinitionsOperations, billingAccountName As String, billingRoleDefinitionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of BillingRoleDefinition)

Parameters

operations
IBillingRoleDefinitionsOperations

The operations group for this extension method.

billingAccountName
String

The ID that uniquely identifies a billing account.

billingRoleDefinitionName
String

The ID that uniquely identifies a role definition.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to