Create a new budget for an organization
Body
Required
-
Whether the budget is active
Default value is
true. -
List of budget alerts. The service enforces a server-side limit on the number of alerts per budget.
-
Budget amount in ECU
-
Optional name for the budget
-
Budget period
Value is
monthly. -
Optional list of recipient types who receive budget alerts (organization-admins, billing-admins, resource-viewers, resource-editors, resource-admins). resource-viewers, resource-editors and resource-admins cannot be used with scope_type=organization. organization-admins, billing-admins are included by default if recipient_group is not provided.
Values are
organization-admins,billing-admins,resource-viewers,resource-editors, orresource-admins. -
The scope type of the budget
Values are
organizationorcloud_resource. -
List of scope values
curl \
--request POST 'https://cloud.elastic.co/api/v1/billing/organization/{organization_id}/budget' \
--header "Content-Type: application/json" \
--data '{
"active": true,
"alerts": [
{
"operator": "gte",
"threshold": 42,
"threshold_type": "percentage"
}
],
"amount": 42,
"name": "string",
"period": "monthly",
"recipient_group": [
"organization-admins"
],
"scope_type": "organization",
"scope_values": [
"string"
]
}'
{
"id": 432433423
}