CostAllocationRuleCollection.GetAllAsync(CancellationToken) Method

Definition

Get the list of all cost allocation rules for a billing account or enterprise enrollment.

  • Request Path. : /providers/microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules.
  • Operation Id. : CostAllocationRuleDefinitions_List.
  • Default Api Version. : 2025-03-01.
public virtual Azure.AsyncPageable<Azure.ResourceManager.CostManagement.CostAllocationRuleResource> GetAllAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CostManagement.CostAllocationRuleResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CostManagement.CostAllocationRuleResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CostAllocationRuleResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of CostAllocationRuleResource that may take multiple service requests to iterate over.

Applies to