Microsoft.Billing (preview:2020-03-01)

2025/10/30 • 5 new, 5 deleted methods

CostAllocationRules_List (new)
Description Get the list of all cost allocation rules for a billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules
{
api-version: string ,
billingAccountId: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_CheckNameAvailability (new)
Description Checks availability and correctness of a name for a cost allocation rule
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/checkNameAvailability
{
api-version: string ,
billingAccountId: string ,
costAllocationRuleCheckNameAvailabilityRequest:
{
name: string ,
type: string ,
}
,
}

⚐ Response (200)

{
nameAvailable: boolean ,
reason: enum ,
message: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_Get (new)
Description Get a cost allocation rule by rule name and billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_CreateOrUpdate (new)
Description Create/Update a rule to allocate cost between different resources within a billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
costAllocationRule:
{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_Delete (new)
Description Delete cost allocation rule for billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_List (removed)
Description Get the list of all cost allocation rules for a billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules
{
api-version: string ,
billingAccountId: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_CheckNameAvailability (removed)
Description Checks availability and correctness of a name for a cost allocation rule
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/checkNameAvailability
{
api-version: string ,
billingAccountId: string ,
costAllocationRuleCheckNameAvailabilityRequest:
{
name: string ,
type: string ,
}
,
}

⚐ Response (200)

{
nameAvailable: boolean ,
reason: enum ,
message: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_Get (removed)
Description Get a cost allocation rule by rule name and billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_CreateOrUpdate (removed)
Description Create/Update a rule to allocate cost between different resources within a billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
costAllocationRule:
{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_Delete (removed)
Description Delete cost allocation rule for billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}