Microsoft.Consumption (preview:2017-12-30)

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

Budgets_List (new)
Description Lists all budgets for a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/budgets
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_Get (new)
Description Gets the budget for a subscription by budget name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/budgets/{name}
{
api-version: string ,
subscriptionId: string ,
name: string ,
}

⚐ Response (200)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_CreateOrUpdate (new)
Description The operation to create or update a budget. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/budgets/{name}
{
api-version: string ,
subscriptionId: string ,
name: string ,
parameters:
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}

⚐ Response (201)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_Delete (new)
Description The operation to delete a budget.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/budgets/{name}
{
api-version: string ,
subscriptionId: string ,
name: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Operations_List (new)
Description Lists all of the available consumption REST API operations.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Consumption/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_List (removed)
Description Lists all budgets for a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/budgets
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_Get (removed)
Description Gets the budget for a subscription by budget name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/budgets/{name}
{
api-version: string ,
subscriptionId: string ,
name: string ,
}

⚐ Response (200)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_CreateOrUpdate (removed)
Description The operation to create or update a budget. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/budgets/{name}
{
api-version: string ,
subscriptionId: string ,
name: string ,
parameters:
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}

⚐ Response (201)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_Delete (removed)
Description The operation to delete a budget.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/budgets/{name}
{
api-version: string ,
subscriptionId: string ,
name: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Operations_List (removed)
Description Lists all of the available consumption REST API operations.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Consumption/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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