Get all budgets for an organization
Gets all budgets for an organization. The authenticated user must be an organization admin or billing manager. Each page returns up to 100 budgets.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The organization name. The name is not case sensitive.
Query Parameters
Section titled “ Query Parameters ”The page number of the results to fetch.
The number of results per page (max 100).
Filter budgets by scope type.
organization: Budgets scoped to the organization.repository: Budgets scoped to a repository.multi_user_customer: Universal budgets that apply to all users in the organization.user: Budgets scoped to an individual user.
Filter consumed amount details for budgets by the specified user login.
Responses
Section titled “ Responses ”Response when getting all budgets
object
Array of budget objects for the enterprise
object
The unique identifier for the budget
The budget amount limit in whole dollars. For license-based products, this represents the number of licenses.
The type of limit enforcement for the budget
The scope of the budget
The name of the entity for the budget (enterprise does not require a name).
The user login when the budget is scoped to a single user (user scope).
A single product or sku to apply the budget to.
object
Whether alerts are enabled for this budget
Array of user login names who will receive alerts
User login included when the response is scoped with the user query parameter.
Effective user-level budget details returned when the response is scoped with the user query parameter.
object
The unique identifier of the effective budget.
The budget amount for the effective budget.
The consumed amount for the specified user within the effective budget.
Indicates if there are more pages of results available (maps to hasNextPage from billing platform)
Total number of budgets matching the query
Examples
{ "budgets": [ { "id": "2066deda-923f-43f9-88d2-62395a28c0cdd", "budget_type": "ProductPricing", "budget_product_skus": [ "actions" ], "budget_scope": "enterprise", "budget_amount": 1000, "prevent_further_usage": true, "budget_alerting": { "will_alert": true, "alert_recipients": [ "enterprise-admin", "billing-manager" ] } }, { "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "budget_type": "SkuPricing", "budget_product_skus": [ "actions_linux" ], "budget_scope": "organization", "budget_amount": 500, "prevent_further_usage": false, "budget_alerting": { "will_alert": true, "alert_recipients": [ "org-owner" ] } }, { "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "budget_type": "ProductPricing", "budget_product_skus": [ "packages" ], "budget_scope": "cost_center", "budget_amount": 250, "prevent_further_usage": true, "budget_alerting": { "will_alert": false, "alert_recipients": [] } } ], "has_next_page": false, "total_count": 3}{ "budgets": [ { "id": "2066deda-923f-43f9-88d2-62395a28c0cdd", "budget_type": "ProductPricing", "budget_product_skus": [ "actions" ], "budget_scope": "multi_user_customer", "budget_amount": 1000, "prevent_further_usage": true, "budget_alerting": { "will_alert": true, "alert_recipients": [ "enterprise-admin", "billing-manager" ] } }, { "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "budget_type": "BundlePricing", "budget_product_skus": [ "ai_credits" ], "budget_scope": "user", "budget_amount": 500, "prevent_further_usage": true, "budget_alerting": { "will_alert": true, "alert_recipients": [ "org-owner" ] } } ], "user": "octocat", "effective_budget": { "id": "9a7d04e8-6600-44f5-94ef-65ca92b95f0b", "budget_amount": 1000, "consumed_amount": 42 }, "has_next_page": false, "total_count": 2}Forbidden
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Internal Error
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}