Get a budget for the organization.
- Base URL
-
https://cloud.elastic.coPublic
- GET /api/v1/billing/organization/{organization_id}/budgets/{budget_id}
Retrieves a budget for the specified organization. Admins receive any budget in the organization. Non-admins receive organization-scoped budgets with 403 Forbidden; cloud-resource-scoped budgets are returned only when all scope values are instances they can access, otherwise 403 Forbidden.
Responses
Budget successfully retrieved
-
recipient_grouprequired -
Values:
organization-adminsbilling-adminsresource-viewersresource-editorsresource-admins -
windowobject -
Recurring budget window. Allowed (repeat_unit, repeat_every) pairs: daily (day, 1), weekly (week, 1), monthly (month, 1), quarterly (month, 3), yearly (year, 1). Windows reset at 00:00 UTC; spend is counted from the later of the window start and the budget creation time. reset_on is omitted for daily windows.
-
reset_onobject -
The user's reset selection. Only the fields required by the window frequency are set: weekly uses weekday, monthly uses day, quarterly uses month, yearly uses month and day. Days 29-31 clamp to the last day of shorter months, recomputed every period from this selection (day 31 resets on Jan 31, Feb 28, Mar 31, Apr 30; Feb 29 resets on Feb 28 in non-leap years).
Not allowed to read this budget
Budget not found
Internal server error