Create an AI Gateway Datastore
Changed onCreates a new Datastore for the AI Gateway.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
Contains a unique identifier used for this resource.
The unique ID of the AI Gateway.
Request body
Configuration for an AI Gateway Datastore.
Carries the pgvector connection only. strategy, dimensions, distance_metric, and threshold belong to the policy or model referencing this Datastore, not the Datastore itself.
Example request
{
"name": "shared-redis",
"display_name": "Shared Redis",
"description": "Redis shared by rate limiting and semantic cache",
"labels": {
"category": "finance"
},
"managed_by": {
"owner": "terraform"
},
"config": {
"host": "127.0.0.1",
"cloud_authentication": {
"auth_provider": "{vault://hcv/redis/auth_provider}"
}
}
}Response
AI Gateway Datastore created successfully.
Configuration for an AI Gateway Datastore.
Example response
{
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z",
"konnect_managed": true,
"name": "shared-redis",
"display_name": "Shared Redis",
"description": "Redis shared by rate limiting and semantic cache",
"labels": {
"category": "finance"
},
"managed_by": {
"owner": "terraform"
},
"config": {
"host": "127.0.0.1",
"cloud_authentication": {
"auth_provider": "{vault://hcv/redis/auth_provider}"
}
}
}Changes
- breaking
the
oneOf[#/components/schemas/RedisCEDatastore]/config/hostrequest property's minLength was increased from0to1 - breaking
the
oneOf[#/components/schemas/RedisEEDatastore]/config/cluster_nodes/items/iprequest property's minLength was increased from0to1 - breaking
the
oneOf[#/components/schemas/RedisEEDatastore]/config/hostrequest property's minLength was increased from0to1
22 more changes in this revision
- breaking