Share via


CustomersOperationsExtensions.ListByBillingAccountAsync Method

Definition

Lists the customers that are billed to a billing account. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. https://docs.microsoft.com/en-us/rest/api/billing/

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Billing.Models.Customer>> ListByBillingAccountAsync (this Microsoft.Azure.Management.Billing.ICustomersOperations operations, string billingAccountName, string search = default, string filter = default, System.Threading.CancellationToken cancellationToken = default);
static member ListByBillingAccountAsync : Microsoft.Azure.Management.Billing.ICustomersOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Billing.Models.Customer>>
<Extension()>
Public Function ListByBillingAccountAsync (operations As ICustomersOperations, billingAccountName As String, Optional search As String = Nothing, Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of Customer))

Parameters

operations
ICustomersOperations

The operations group for this extension method.

billingAccountName
String

The ID that uniquely identifies a billing account.

search
String

Used for searching customers by their name. Any customer with name containing the search text will be included in the response

filter
String

May be used to filter the list of customers.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to