BillingRoleDefinitionsOperationsExtensions.GetByBillingProfileAsync(IBillingRoleDefinitionsOperations, String, String, String, CancellationToken) Method

Definition

Gets the definition for a role on a billing profile. 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> GetByBillingProfileAsync (this Microsoft.Azure.Management.Billing.IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName, string billingRoleDefinitionName, System.Threading.CancellationToken cancellationToken = default);
static member GetByBillingProfileAsync : Microsoft.Azure.Management.Billing.IBillingRoleDefinitionsOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Billing.Models.BillingRoleDefinition>
<Extension()>
Public Function GetByBillingProfileAsync (operations As IBillingRoleDefinitionsOperations, billingAccountName As String, billingProfileName 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
System.String

The ID that uniquely identifies a billing account.

billingProfileName
System.String

The ID that uniquely identifies a billing profile.

billingRoleDefinitionName
System.String

The ID that uniquely identifies a role definition.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<BillingRoleDefinition>

Applies to