List budgets
Changed onReturns a page of the organization's budgets, newest first unless the request sets sort. Filters on name, effect, priority, posture, labels.<key>, and managed_by.<key> narrow the list.
For a caller whose access covers only particular principals or groups, the list holds only the budgets whose scope lies within those principals and groups. It also holds each budget with each set to subject or subject_id whose scope covers one of the caller's principals.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Query parameters
Filters on the budgets' fields. Every filter must match, and a bare value means eq.
- name: eq, neq, oeq, contains, and ocontains.
- effect and posture: eq, neq, and oeq.
- priority: eq, gt, gte, lt, and lte.
- labels.<key>: the value of the label <key>, with the operators of name plus exists and nexists. A bare key with no value matches budgets that have the label.
- managed_by.<key>: the value of the managed_by key <key>, such as filter[managed_by.tool]=terraform-provider-konnect, with the operators of labels.<key>. A bare key with no value matches budgets that have the key.
- scope.subject, scope.group, and scope.team: eq and oeq, with complete typed references: subjects as principal/{uuid}, consumer/{uuid}, or oidc/{sub}, groups as principal/{uuid}, consumer_group/{uuid}, or oidc/{group}, and teams as principal/{uuid}, where {uuid} is never the nil UUID. A Kong Identity group goes under scope.group, and a Kong Identity team under scope.team. A budget matches when a branch of its scope names a listed reference in a subject, group, or team predicate with eq or in, or when a listed reference is one of its derived values: a subject on a budget whose each is subject or subject_id, a group on a budget whose each is group, or a team on a budget whose each is team. A pooled budget whose scope names no subject, group, or team, such as an organization-wide budget, never matches. oeq can't list a reference that contains a comma.
Any other filter key fails with 400. eq, neq, and oeq compare strings case-sensitively, and contains and ocontains ignore case.
Filter using one of the following operators: eq, oeq, neq, contains, ocontains
Filters a field by its value with eq, neq, or oeq. Accepts limit and exempt. A bare value means eq.
Filters an integer field by an exact value or a range. Filters on the same field must all match, so a lower and an upper bound together select an interval.
Filters a field by its value with eq, neq, or oeq. Accepts advisory and enforce. A bare value means eq.
Filter using one of the following operators: eq, oeq
Filter using one of the following operators: eq, oeq
Filter using one of the following operators: eq, oeq
Narrows the list. Each filter has the form filter[field][operator]=value, or filter[field]=value for eq. An operator that takes no value, such as exists, leaves out =value.
A request can combine several filters, and every filter must match.
The order of the results, as a comma-separated list of fields in priority order. Each field can be followed by a space and asc or desc, and sorts in ascending order without one. The service breaks ties so that the order is unique.
Sortable fields: name, effect, priority, posture, created_at, updated_at. Defaults to created_at desc.
The number of results on each page.
1 to 100. Defaults to 20.
A cursor for the page after an earlier response's page. Clients take it from that response's meta.page.next link, which also carries the request's other parameters, and don't build or change it.
A request can't send both page[after] and page[before].
A cursor for the page before an earlier response's page. Clients take it from that response's meta.page.previous link, which also carries the request's other parameters, and don't build or change it.
A request can't send both page[after] and page[before].
Response
A page of budgets.
The budgets on this page, in sort order.
Pagination metadata.
Example response
{
"data": [
{
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"labels": {
"env": "test"
},
"managed_by": {
"owner": "terraform"
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}
],
"meta": {
"page": {
"size": 10
}
}
}Changes
- info
endpoint added
- info