AI Gateway Datastores

List AI Gateway Datastore Usage

Changed on

Returns the policies and models that reference this Datastore.

get/v1/ai-gateways/{gatewayId}/datastores/{datastoreIdOrName}/usage

Request

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

Path parameters

gatewayId, string uuid required

Contains a unique identifier used for this resource.

Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7

The unique ID of the AI Gateway.

datastoreIdOrName, string required

Identifier for an AI Gateway entity. In some cases, this may be the entity name or ID.

Example:my-entity-name

The unique ID or name of the AI Gateway Datastore.

Query parameters

page[size], integer
Example:10

The maximum number of items to include per page. The last page of a collection may include fewer items.

page[after], string
Example:ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ

Request the next page of data, starting with the item after this parameter.

Response

A paginated list of the policies and models that reference an AI Gateway Datastore.

object required
data, AIGatewayDatastoreUsageEntry[] required
meta, CursorMetaWithTotal required

Pagination metadata with exact total. Useful when the collection size is inexpensive to provide.

Example response

{
  "data": [
    {
      "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
      "name": "semantic-cache",
      "display_name": "Semantic Cache"
    }
  ],
  "meta": {
    "page": {
      "size": 10,
      "total": 974
    }
  }
}

Changes