getCostAllocationRule

Get a cost allocation rule by rule name and billing account or enterprise enrollment. Uses Azure REST API version 2020-03-01-preview. Other available API versions: 2023-08-01, 2023-09-01, 2023-11-01, 2024-08-01, 2024-10-01-preview.

Return

The cost allocation rule model definition

Parameters

argument

null


suspend fun getCostAllocationRule(billingAccountId: String, ruleName: String): GetCostAllocationRuleResult

Return

The cost allocation rule model definition

Parameters

billingAccountId

BillingAccount ID

ruleName

Cost allocation rule name. The name cannot include spaces or any non alphanumeric characters other than '_' and '-'. The max length is 260 characters.

See also


Return

The cost allocation rule model definition

Parameters

argument

Builder for com.pulumi.azurenative.costmanagement.kotlin.inputs.GetCostAllocationRulePlainArgs.

See also