exports

List export schedules

Changed on

Returns a page of the organization's export schedules, sorted by name unless the request sets sort. Filters on name, status, and cadence narrow the list.

get/v1/ai-cost-management/export-schedules

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Query parameters

filter, AICostExportScheduleFilterParameters

Filters on the export schedules' fields. Every filter must match, and a bare value means eq.

  • name: eq, neq, oeq, contains, and ocontains.
  • status and cadence: eq, neq, and oeq.
  • labels.<key>: the value of the label <key>, with the operators of name plus exists and nexists. A bare key with no value matches schedules 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 schedules that have the key.

Any other filter key fails with 400. eq, neq, and oeq compare strings case-sensitively, and contains and ocontains ignore case. Enum values are case-sensitive, so any other spelling, such as ACTIVE, fails with 400.

name, StringFieldFilter

Filter using one of the following operators: eq, oeq, neq, contains, ocontains

status, union

Filters a field by its value with eq, neq, or oeq. Accepts active and paused. A bare value means eq.

cadence, union

Filters a field by its value with eq, neq, or oeq. Accepts daily, weekly, and monthly. A bare value means eq.

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.

sort, string

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, status, cadence, created_at, updated_at. Defaults to name asc.

page[size], integer

The number of results on each page.

1 to 100. Defaults to 20.

page[after], string

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].

page[before], string

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 export schedules.

object required
data, AICostExportSchedule[] required

The export schedules on this page, in sort order.

meta, CursorMeta required

Pagination metadata.

Example response

{
  "data": [
    {
      "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
      "format": "csv",
      "compression": "gzip",
      "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