Update an AI Gateway Datastore
Changed onUpdates the configuration of an existing AI Gateway Datastore. name and type are immutable after creation; attempting to change either is rejected.
Write-only fields in config, such as passwords and cloud credentials, are never returned in responses. On update, each write-only field follows these rules:
- Omit the field to keep the stored value. A request built from a GET response therefore keeps every stored secret.
- Set the field to null to clear the stored value.
- Set the field to a new value to replace the stored value.
If the request changes config.cloud_authentication.auth_provider, the stored cloud secrets of the previous provider are not kept.
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.
Contains a unique identifier used for this resource.
The unique ID of the AI Gateway Datastore.
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
Datastore updated 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