BillingDepartmentCollection.GetAllAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Lists the departments that a user has access to. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
- Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments
- Operation Id: Departments_ListByBillingAccount
- Default Api Version: 2024-04-01
- Resource: BillingDepartmentResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Billing.BillingDepartmentResource> GetAllAsync (string filter = default, string orderBy = default, long? top = default, long? skip = default, string search = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * string * Nullable<int64> * Nullable<int64> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Billing.BillingDepartmentResource>
override this.GetAllAsync : string * string * Nullable<int64> * Nullable<int64> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Billing.BillingDepartmentResource>
Public Overridable Function GetAllAsync (Optional filter As String = Nothing, Optional orderBy As String = Nothing, Optional top As Nullable(Of Long) = Nothing, Optional skip As Nullable(Of Long) = Nothing, Optional search As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of BillingDepartmentResource)
Parameters
- filter
- String
The filter query option allows clients to filter a collection of resources that are addressed by a request URL.
- orderBy
- String
The orderby query option allows clients to request resources in a particular order.
The top query option requests the number of items in the queried collection to be included in the result. The maximum supported value for top is 50.
The skip query option requests the number of items in the queried collection that are to be skipped and not included in the result.
- search
- String
The search query option allows clients to request items within a collection matching a free-text search expression. search is only supported for string fields.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
An async collection of BillingDepartmentResource that may take multiple service requests to iterate over.
Applies to
Azure SDK for .NET