Download OpenAPI specification:Download
OpenAPI 3.0 spec for Kong Gateway's Admin API.
You can lean more about Kong Gateway at docs.konghq.com .Give Kong a star at Kong/kong repository.
Retrieve the expected config version for this control plane. The expected config version can be used to verify if the config version of a data plane node is up to date with the control plane. The config version will be the same if they are in sync.
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
{- "expected_config_version": "string",
- "created_at": 0
}| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[after] | string Example: page[after]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ Request the next page of data, starting with the item after this parameter. |
{- "data": [
- {
- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "max_samples": 10,
- "duration_secs": 300,
- "created_at": "2024-10-01T20:00:00.000Z",
- "updated_at": "2024-10-01T20:00:00.000Z"
}
], - "meta": {
- "page": {
- "size": 10,
- "next": null,
- "previous": null
}
}
}Create Debug Session
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| name | string The optional session name. |
| max_samples | integer The maximum amount of samples to collect per data plane. |
| sampling_rule | string or null An expression used to filter the requests to sample. |
| duration_secs | integer The duration of the debug session in seconds. |
| capture_content | Array of strings Items Enum: "headers" "body" |
| targets | Array of strings <uuid> The data plane nodes to collect samples from. |
{- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "max_samples": 10,
- "targets": [
- "ae853602-23c7-4218-9071-82fdef3a1efe"
]
}{- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "max_samples": 10,
- "duration_secs": 300,
- "created_at": "2024-10-01T20:10:00.000Z",
- "updated_at": "2024-10-01T20:10:00.000Z"
}Returns a Debug Session
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| debugSessionId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a Debug Session identifier |
{- "id": "e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee",
- "max_samples": 10,
- "duration_secs": 300,
- "created_at": "2024-10-01T20:10:00.000Z",
- "updated_at": "2024-10-01T20:10:00.000Z"
}Deletes a Debug Session
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| debugSessionId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a Debug Session identifier |
{- "status": 401,
- "title": "Unauthorized",
- "instance": "kong:trace:8347343766220159418",
- "detail": "Unauthorized"
}Stops an active Debug Session
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| debugSessionId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a Debug Session identifier |
{ }| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
{ }List all Partials
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| size | integer [ 1 .. 1000 ] Default: 100 Number of resources to be returned. |
| offset | string Offset from which to return the next set of resources. Use the value of the 'offset' field from the response of a list operation as input here to paginate through all the resources |
| tags | string Example: tags=tag1,tag2 A list of tags to filter the list of resources on. Multiple tags can be concatenated using ',' to mean AND or using '/' to mean OR. |
{- "data": [
- {
- "config": { },
- "created_at": 0,
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "type": "string",
- "updated_at": 0
}
], - "next": "string",
- "offset": "string"
}Create a new Partial
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
Description of the new Partial for creation
required | object |
| created_at | integer or null Unix epoch when the resource was created. |
| id | string or null |
| name | string or null |
| tags | Array of strings |
| type required | string |
| updated_at | integer or null Unix epoch when the resource was last updated. |
{- "config": { },
- "created_at": 0,
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "type": "string",
- "updated_at": 0
}{- "config": { },
- "created_at": 0,
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "type": "string",
- "updated_at": 0
}Delete a Partial
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| PartialId required | string ID of the Partial to lookup |
{- "message": "Duplicate API key found",
- "status": 401
}Get a Partial using ID.
| PartialId required | string ID of the Partial to lookup |
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
{- "config": { },
- "created_at": 0,
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "type": "string",
- "updated_at": 0
}Create or Update Partial using ID.
| PartialId required | string ID of the Partial to lookup |
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
Description of the Partial
required | object |
| created_at | integer or null Unix epoch when the resource was created. |
| id | string or null |
| name | string or null |
| tags | Array of strings |
| type required | string |
| updated_at | integer or null Unix epoch when the resource was last updated. |
{- "config": { },
- "created_at": 0,
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "type": "string",
- "updated_at": 0
}{- "config": { },
- "created_at": 0,
- "id": "string",
- "name": "string",
- "tags": [
- "string"
], - "type": "string",
- "updated_at": 0
}Create or update a node.
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| nodeId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a Node identifier |
| hostname | string |
| type | string |
| version | string |
| config_version | string |
Array of objects (A Node Error) |
{- "hostname": "node1.my.domain.com",
- "type": "knep",
- "version": "1.0",
- "config_version": "string",
- "errors": [
- {
- "name": "string",
- "error_message": "string",
- "config_hash": "string",
- "code": 0,
- "source": "string",
- "traceback": "string"
}
]
}{- "item": {
- "id": "string",
- "version": "string",
- "hostname": "string",
- "last_ping": 0,
- "type": "string",
- "created_at": 0,
- "updated_at": 0,
- "config_hash": "string",
- "compatibility_status": {
- "state": "string"
}
}
}Create or Update the declarative config
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
| config | string The configuration as string. Must be valid yaml or json. |
{- "config": "string"
}{- "config": "string",
- "version": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}Returns the declarative configuration set for the control plane.
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
{- "config": "string",
- "version": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}Delete the declarative config
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
{- "status": 401,
- "title": "Unauthorized",
- "instance": "kong:trace:8347343766220159418",
- "detail": "Unauthorized"
}Returns the declarative configuration formatted for an event gateway.
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |
{- "config": { },
- "version": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "created_at": "2022-11-04T20:10:06.927Z",
- "updated_at": "2022-11-04T20:10:06.927Z"
}Returns the declarative configuration formatted for an http gateway.
| controlPlaneId required | string <uuid> Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458 The UUID of your control plane. This variable is available in the Konnect manager. |