CostAllocationRuleCollection.GetAll(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.Pageable<Azure.ResourceManager.CostManagement.CostAllocationRuleResource> GetAll(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CostManagement.CostAllocationRuleResource>
override this.GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CostManagement.CostAllocationRuleResource>
Public Overridable Function GetAll (Optional cancellationToken As CancellationToken = Nothing) As Pageable(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