getCostAllocationRule

Get a cost allocation rule by rule name and billing account or enterprise enrollment. Uses Azure REST API version 2024-08-01. Other available API versions: 2020-03-01-preview, 2023-08-01, 2023-09-01, 2023-11-01, 2024-10-01-preview, 2025-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native costmanagement [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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