CostAllocationRulesOperations interface

Interface representing a CostAllocationRules operations.

Properties

checkNameAvailability

Checks availability and correctness of a name for a cost allocation rule

createOrUpdate

Create/Update a rule to allocate cost between different resources within a billing account or enterprise enrollment.

delete

Delete cost allocation rule for billing account or enterprise enrollment.

get

Get a cost allocation rule by rule name and billing account or enterprise enrollment.

list

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

Property Details

checkNameAvailability

Checks availability and correctness of a name for a cost allocation rule

checkNameAvailability: (billingAccountId: string, costAllocationRuleCheckNameAvailabilityRequest: CostAllocationRuleCheckNameAvailabilityRequest, options?: CostAllocationRulesCheckNameAvailabilityOptionalParams) => Promise<CostAllocationRuleCheckNameAvailabilityResponse>

Property Value

(billingAccountId: string, costAllocationRuleCheckNameAvailabilityRequest: CostAllocationRuleCheckNameAvailabilityRequest, options?: CostAllocationRulesCheckNameAvailabilityOptionalParams) => Promise<CostAllocationRuleCheckNameAvailabilityResponse>

createOrUpdate

Create/Update a rule to allocate cost between different resources within a billing account or enterprise enrollment.

createOrUpdate: (billingAccountId: string, ruleName: string, costAllocationRule: CostAllocationRuleDefinition, options?: CostAllocationRulesCreateOrUpdateOptionalParams) => Promise<CostAllocationRuleDefinition>

Property Value

(billingAccountId: string, ruleName: string, costAllocationRule: CostAllocationRuleDefinition, options?: CostAllocationRulesCreateOrUpdateOptionalParams) => Promise<CostAllocationRuleDefinition>

delete

Delete cost allocation rule for billing account or enterprise enrollment.

delete: (billingAccountId: string, ruleName: string, options?: CostAllocationRulesDeleteOptionalParams) => Promise<void>

Property Value

(billingAccountId: string, ruleName: string, options?: CostAllocationRulesDeleteOptionalParams) => Promise<void>

get

Get a cost allocation rule by rule name and billing account or enterprise enrollment.

get: (billingAccountId: string, ruleName: string, options?: CostAllocationRulesGetOptionalParams) => Promise<CostAllocationRuleDefinition>

Property Value

(billingAccountId: string, ruleName: string, options?: CostAllocationRulesGetOptionalParams) => Promise<CostAllocationRuleDefinition>

list

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

list: (billingAccountId: string, options?: CostAllocationRulesListOptionalParams) => PagedAsyncIterableIterator<CostAllocationRuleDefinition, CostAllocationRuleDefinition[], PageSettings>

Property Value

(billingAccountId: string, options?: CostAllocationRulesListOptionalParams) => PagedAsyncIterableIterator<CostAllocationRuleDefinition, CostAllocationRuleDefinition[], PageSettings>