Edit or delete a budget
Change a budget's amount, period, scope, thresholds or recipients, or delete it with the record of its alerts.
Replace budget-id with the budget's id (dcloud billing budgets list).
Prerequisites
- Permission for
billing:UpdateBudgetto edit andbilling:DeleteBudgetto delete, on the budget. The console shows the edit and delete buttons only to someone who holds them on every budget (rn:ews:de1:<organization id>:billing:*); with a permission on one budget only, use the CLI or the API. - In the console, also
billing:GetBudgetsto open Budgets.
Edit a budget
A change takes effect at once. Alerts already fired this period are not sent again, whatever the new amount is.
- Open Budgets.
- Choose the edit button of the budget.
- Change the fields, as in Create a budget.
- Choose Save budget.
The console sends every field. A cleared Alert thresholds box resets the thresholds to 80 % and 100 %; a cleared Notification emails box removes every recipient; changing the period away from monthly removes the forecast thresholds.
dcloud billing budgets update budget-id --amount-cents 75000PATCH /billing/api/budgets/budget-id
{ "amountCents": 75000 }Only the fields you send change. null means: alertThresholds back to [80, 100],
serviceFilter every service, notificationEmails nobody, forecastThresholds none, action
removed.
Change the arguments of the dcloud_budget resource and apply.
Delete a budget
Warning
Deleting a budget also deletes the record of the alerts it fired and its action proposals. Spending is unaffected.
- Open Budgets.
- Choose the delete button of the budget.
- Choose Delete.
dcloud billing budgets delete budget-idDELETE /billing/api/budgets/budget-idRemove the dcloud_budget resource and apply.
When the change is refused
404"Not found" when the budget is not in your organization.403withoutbilling:UpdateBudgetorbilling:DeleteBudgeton the budget. The permission is checked before the budget is looked up, so a budget that does not exist also answers403when the permission is missing.