Konnect Runtime Groups Configuration (0.0.1)

Download OpenAPI specification:Download

The API for configurating Konnect Runtime Groups.

Services

Gateway services

List all services

List all services

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "connect_timeout": 0,
  • "created_at": 0,
  • "enabled": true,
  • "host": "string",
  • "id": "string",
  • "name": "string",
  • "path": "string",
  • "port": 0,
  • "protocol": "string",
  • "read_timeout": 0,
  • "retries": 0,
  • "updated_at": 0,
  • "write_timeout": 0
}

Create a new service

Create a new service

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json
name
string

The service name.

retries
integer
Default: 5

The number of retries to execute upon failure to proxy. Default:5.

protocol
required
string
Default: "http"
Enum: "grpc" "grpcs" "http" "https" "tcp" "tls " "tls_passthrough" "udp" "ws" "wss"

The protocol used to communicate with the upstream. Accepted values are: grpc, grpcs, http, https, tcp, tls, tls_passthrough, udp, ws , wss . Default: http.

host
required
string

The host of the upstream server. Note that the host value is case sensitive.

port
required
integer
Default: 80

The upstream server port. Default: 80.

path
string

The path to be used in requests to the upstream server.

connect_timeout
integer
Default: 6000

The timeout in milliseconds for establishing a connection to the upstream server. Default: 60000.

write_timeout
integer
Default: 6000

The timeout in milliseconds between two successive write operations for transmitting a request to the upstream server. Default: 60000.

read_timeout
integer
Default: 6000

The timeout in milliseconds between two successive read operations for transmitting a request to the upstream server. Default: 60000.

tags
Array of strings

An optional set of strings associated with the service for grouping and filtering.

object

Certificate to be used as client certificate while TLS handshaking to the upstream server. With form-encoded, the notation is client_certificate.id=<client_certificate id>. With JSON, use client_certificate:{id:<client_certificate id>}.

tls_verify
boolean
Default: true

Whether to enable verification of upstream server TLS certificate. If set to null, then the Nginx default is respected.

tls_verify_depth
string or null
Default: null

Maximum depth of chain while verifying Upstream server’s TLS certificate. If set to null, then the Nginx default is respected. Default: null.

ca_certificates
Array of strings

Array of CA Certificate object UUIDs that are used to build the trust store while verifying upstream server’s TLS certificate. If set to null when Nginx default is respected. With form-encoded, the notation is ca_certificates[]=4e3ad2e4-0bc4-4638-8e34-c84a417ba39b&ca_certificates[]=51e77dc2-8f3e-4afa-9d0e-0e3bbbcfd515. With JSON, use an Array.

enabled
required
boolean
Default: true

Whether the service is active. If set to false, the proxy behavior will be as if any routes attached to it do not exist (404). Default: true.

Responses

Request samples

Content type
application/json
Example
{
  • "name": "my-service",
  • "retries": 5,
  • "protocol": "http",
  • "host": "example.com",
  • "port": 80,
  • "path": "/some_api",
  • "connect_timeout": 6000,
  • "write_timeout": 6000,
  • "read_timeout": 6000,
  • "tags": [
    ],
  • "client_certificate": {
    },
  • "tls_verify": true,
  • "tls_verify_depth": null,
  • "ca_certificates": [
    ],
  • "enabled": true
}

Response samples

Content type
application/json
{
  • "connect_timeout": 6000,
  • "created_at": 1684437851,
  • "enabled": true,
  • "host": "example.com",
  • "id": "ebf4e826-b17a-4e23-9d58-2621c9faa135",
  • "name": "my-service",
  • "path": "/some_api",
  • "port": 80,
  • "protocol": "http",
  • "read_timeout": 6000,
  • "retries": 5,
  • "updated_at": 1684437851,
  • "write_timeout": 6000
}

Delete a service

Delete a service

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

service_id
required
string

ID or name of the service to delete

Responses

Fetch a service

Get a service using ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
service_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

ID or name of the service to lookup

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "connect_timeout": 0,
  • "created_at": 0,
  • "enabled": true,
  • "host": "string",
  • "id": "string",
  • "name": "string",
  • "path": "string",
  • "port": 0,
  • "protocol": "string",
  • "read_timeout": 0,
  • "retries": 0,
  • "updated_at": 0,
  • "write_timeout": 0
}

Upsert a service

Create or Update service using ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
service_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

ID or name of the service to lookup

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json
name
string

The service name.

retries
integer
Default: 5

The number of retries to execute upon failure to proxy. Default:5.

protocol
required
string
Default: "http"
Enum: "grpc" "grpcs" "http" "https" "tcp" "tls " "tls_passthrough" "udp" "ws" "wss"

The protocol used to communicate with the upstream. Accepted values are: grpc, grpcs, http, https, tcp, tls, tls_passthrough, udp, ws , wss . Default: http.

host
required
string

The host of the upstream server. Note that the host value is case sensitive.

port
required
integer
Default: 80

The upstream server port. Default: 80.

path
string

The path to be used in requests to the upstream server.

connect_timeout
integer
Default: 6000

The timeout in milliseconds for establishing a connection to the upstream server. Default: 60000.

write_timeout
integer
Default: 6000

The timeout in milliseconds between two successive write operations for transmitting a request to the upstream server. Default: 60000.

read_timeout
integer
Default: 6000

The timeout in milliseconds between two successive read operations for transmitting a request to the upstream server. Default: 60000.

tags
Array of strings

An optional set of strings associated with the service for grouping and filtering.

object

Certificate to be used as client certificate while TLS handshaking to the upstream server. With form-encoded, the notation is client_certificate.id=<client_certificate id>. With JSON, use client_certificate:{id:<client_certificate id>}.

tls_verify
boolean
Default: true

Whether to enable verification of upstream server TLS certificate. If set to null, then the Nginx default is respected.

tls_verify_depth
string or null
Default: null

Maximum depth of chain while verifying Upstream server’s TLS certificate. If set to null, then the Nginx default is respected. Default: null.

ca_certificates
Array of strings

Array of CA Certificate object UUIDs that are used to build the trust store while verifying upstream server’s TLS certificate. If set to null when Nginx default is respected. With form-encoded, the notation is ca_certificates[]=4e3ad2e4-0bc4-4638-8e34-c84a417ba39b&ca_certificates[]=51e77dc2-8f3e-4afa-9d0e-0e3bbbcfd515. With JSON, use an Array.

enabled
required
boolean
Default: true

Whether the service is active. If set to false, the proxy behavior will be as if any routes attached to it do not exist (404). Default: true.

Responses

Request samples

Content type
application/json
Example
{
  • "name": "my-service",
  • "retries": 5,
  • "protocol": "http",
  • "host": "example.com",
  • "port": 80,
  • "path": "/some_api",
  • "connect_timeout": 6000,
  • "write_timeout": 6000,
  • "read_timeout": 6000,
  • "tags": [
    ],
  • "client_certificate": {
    },
  • "tls_verify": true,
  • "tls_verify_depth": null,
  • "ca_certificates": [
    ],
  • "enabled": true
}

Response samples

Content type
application/json
{
  • "connect_timeout": 0,
  • "created_at": 0,
  • "enabled": true,
  • "host": "string",
  • "id": "string",
  • "name": "string",
  • "path": "string",
  • "port": 0,
  • "protocol": "string",
  • "read_timeout": 0,
  • "retries": 0,
  • "updated_at": 0,
  • "write_timeout": 0
}

Routes

Gateway routes

List all routes

List all routes

route entities define rules to match client requests. Each route is associated with a service, and a service may have multiple routes associated to it. Every request matching a given route will be proxied to its associated service.

Note: Path handling algorithms v1 was deprecated in Kong 3.0. From Kong 3.0, when router_flavor is set to expressions, route.path_handling will be unconfigurable and the path handling behavior will be v0; when router_flavor is set to traditional_compatible, the path handling behavior will be v0 regardless of the value of route.path_handling. Only router_flavor = traditional will support path_handling v1' behavior.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "offset": "string"
}

Create a new route

Create a new route

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

Route request body

name
string

The name of the route. Route names must be unique, and they are case sensitive. For example, there can be two different routes named “test” and “Test”.

protocols
required
Array of strings

An array of the protocols this route should allow

methods
Array of strings

A list of HTTP methods that match this route.

hosts
Array of strings

A list of domain names that match this route. Note that the hosts value is case sensitive. With form-encoded, the notation is hosts[]=example.com&hosts[]=foo.test. With JSON, use an Array.

paths
Array of strings

A list of paths that match this route. With form-encoded, the notation is paths[]=/foo&paths[]=/bar. With JSON, use an array. The path can be a regular expression, or a plain text pattern.

object

One or more lists of values indexed by header name that will cause this route to match if present in the request. The Host header cannot be used with this attribute: hosts should be specified using the hosts attribute. When headers contains only one value and that value starts with the special prefix ~*, the value is interpreted as a regular expression.

https_redirect_status_code
required
integer
Default: 426
Enum: 426 301 302 307 308

The status code Kong responds with when all properties of a route match except the protocol i.e. if the protocol of the request is HTTP instead of HTTPS Location header is injected by Kong if the field is set to 301, 302, 307 or 308. Note: This config applies only if the route is configured to only accept the https protocol. Accepted values are: 426, 301, 302, 307, 308. Default: 426.

regex_priority
integer
Default: 0

A number used to choose which route resolves a given request when several routes match it using regexes simultaneously. When two routes match the path and have the same regex_priority, the older one (lowest created_at) is used. Note that the priority for non-regex routes is different (longer non-regex routes are matched before shorter ones). Default: 0.

strip_path
boolean
Default: true

When matching a route via one of the paths, strip the matching prefix from the upstream request URL. Default: true.

path_handling
string
Enum: "v1" "v0"

Controls how the service path, route path and requested path are combined when sending a request to the upstream. Accepted values are: v0, v1. Default: v0.

preserve_host
required
boolean
Default: true

When matching a route via one of the hosts domain names, use the request host header in the upstream request headers. If set to false, the upstream Host header will be that of the service’s host.

request_buffering
required
boolean
Default: true

Whether to enable request body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that receive data with chunked transfer encoding. Default: true.

response_buffering
required
boolean
Default: true

Whether to enable response body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that send data with chunked transfer encoding. Default: true.

snis
Array of strings

A list of SNIs that match this route when using stream routing.

Array of objects

A list of IP sources of incoming connections that match this route when using stream routing. Each entry is an object with fields “ip” (optionally in CIDR range notation) and/or “port”.

Array of objects

A list of IP destinations of incoming connections that match this route when using stream routing. Each entry is an object with fields “ip” (optionally in CIDR range notation) and/or “port”.

tags
Array of strings

An optional set of strings associated with the route for grouping and filtering.

object

The service this route is associated to. This is where the route proxies traffic to. With form-encoded, the notation is service.id= or service.name=. With JSON, use “service:{id:<service id>} or service:{name:<service name>}.

Responses

Request samples

Content type
application/json
{
  • "name": "my-route",
  • "protocols": [
    ],
  • "methods": [
    ],
  • "hosts": [
    ],
  • "paths": [
    ],
  • "headers": {
    },
  • "https_redirect_status_code": 426,
  • "regex_priority": 0,
  • "strip_path": true,
  • "path_handling": "v0",
  • "preserve_host": false,
  • "request_buffering": true,
  • "response_buffering": true,
  • "tags": [
    ],
  • "service": {
    }
}

Response samples

Content type
application/json
{
  • "hosts": [
    ],
  • "id": "56c4566c-14cc-4132-9011-4139fcbbe50a",
  • "name": "example-route",
  • "paths": [
    ],
  • "service": {
    }
}

Delete a route

Delete a route.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

route_id
required
string

Responses

Fetch a route

Get a route using ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

route_id
required
string
query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "hosts": [
    ],
  • "id": "56c4566c-14cc-4132-9011-4139fcbbe50a",
  • "name": "example-route",
  • "paths": [
    ],
  • "service": {
    }
}

Update a route

Create or Update route using ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

route_id
required
string
Request Body schema: application/json

Route request body

name
string

The name of the route. Route names must be unique, and they are case sensitive. For example, there can be two different routes named “test” and “Test”.

protocols
required
Array of strings

An array of the protocols this route should allow

methods
Array of strings

A list of HTTP methods that match this route.

hosts
Array of strings

A list of domain names that match this route. Note that the hosts value is case sensitive. With form-encoded, the notation is hosts[]=example.com&hosts[]=foo.test. With JSON, use an Array.

paths
Array of strings

A list of paths that match this route. With form-encoded, the notation is paths[]=/foo&paths[]=/bar. With JSON, use an array. The path can be a regular expression, or a plain text pattern.

object

One or more lists of values indexed by header name that will cause this route to match if present in the request. The Host header cannot be used with this attribute: hosts should be specified using the hosts attribute. When headers contains only one value and that value starts with the special prefix ~*, the value is interpreted as a regular expression.

https_redirect_status_code
required
integer
Default: 426
Enum: 426 301 302 307 308

The status code Kong responds with when all properties of a route match except the protocol i.e. if the protocol of the request is HTTP instead of HTTPS Location header is injected by Kong if the field is set to 301, 302, 307 or 308. Note: This config applies only if the route is configured to only accept the https protocol. Accepted values are: 426, 301, 302, 307, 308. Default: 426.

regex_priority
integer
Default: 0

A number used to choose which route resolves a given request when several routes match it using regexes simultaneously. When two routes match the path and have the same regex_priority, the older one (lowest created_at) is used. Note that the priority for non-regex routes is different (longer non-regex routes are matched before shorter ones). Default: 0.

strip_path
boolean
Default: true

When matching a route via one of the paths, strip the matching prefix from the upstream request URL. Default: true.

path_handling
string
Enum: "v1" "v0"

Controls how the service path, route path and requested path are combined when sending a request to the upstream. Accepted values are: v0, v1. Default: v0.

preserve_host
required
boolean
Default: true

When matching a route via one of the hosts domain names, use the request host header in the upstream request headers. If set to false, the upstream Host header will be that of the service’s host.

request_buffering
required
boolean
Default: true

Whether to enable request body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that receive data with chunked transfer encoding. Default: true.

response_buffering
required
boolean
Default: true

Whether to enable response body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that send data with chunked transfer encoding. Default: true.

snis
Array of strings

A list of SNIs that match this route when using stream routing.

Array of objects

A list of IP sources of incoming connections that match this route when using stream routing. Each entry is an object with fields “ip” (optionally in CIDR range notation) and/or “port”.

Array of objects

A list of IP destinations of incoming connections that match this route when using stream routing. Each entry is an object with fields “ip” (optionally in CIDR range notation) and/or “port”.

tags
Array of strings

An optional set of strings associated with the route for grouping and filtering.

object

The service this route is associated to. This is where the route proxies traffic to. With form-encoded, the notation is service.id= or service.name=. With JSON, use “service:{id:<service id>} or service:{name:<service name>}.

Responses

Request samples

Content type
application/json
{
  • "name": "my-route",
  • "protocols": [
    ],
  • "methods": [
    ],
  • "hosts": [
    ],
  • "paths": [
    ],
  • "headers": {
    },
  • "https_redirect_status_code": 426,
  • "regex_priority": 0,
  • "strip_path": true,
  • "path_handling": "v0",
  • "preserve_host": false,
  • "request_buffering": true,
  • "response_buffering": true,
  • "tags": [
    ],
  • "service": {
    }
}

Response samples

Content type
application/json
{
  • "hosts": [
    ],
  • "id": "56c4566c-14cc-4132-9011-4139fcbbe50a",
  • "name": "example-route",
  • "paths": [
    ],
  • "service": {
    }
}

List all routes associated with a service

List all routes associated with a a service

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

service_id
required
string

ID or name of the related service

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "offset": "string"
}

Create a new route associated with a service

Create a new route associated with a service

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

service_id
required
string

ID or name of the related service

Request Body schema: application/json

Route request body

name
string

The name of the route. Route names must be unique, and they are case sensitive. For example, there can be two different routes named “test” and “Test”.

protocols
required
Array of strings

An array of the protocols this route should allow

methods
Array of strings

A list of HTTP methods that match this route.

hosts
Array of strings

A list of domain names that match this route. Note that the hosts value is case sensitive. With form-encoded, the notation is hosts[]=example.com&hosts[]=foo.test. With JSON, use an Array.

paths
Array of strings

A list of paths that match this route. With form-encoded, the notation is paths[]=/foo&paths[]=/bar. With JSON, use an array. The path can be a regular expression, or a plain text pattern.

object

One or more lists of values indexed by header name that will cause this route to match if present in the request. The Host header cannot be used with this attribute: hosts should be specified using the hosts attribute. When headers contains only one value and that value starts with the special prefix ~*, the value is interpreted as a regular expression.

https_redirect_status_code
required
integer
Default: 426
Enum: 426 301 302 307 308

The status code Kong responds with when all properties of a route match except the protocol i.e. if the protocol of the request is HTTP instead of HTTPS Location header is injected by Kong if the field is set to 301, 302, 307 or 308. Note: This config applies only if the route is configured to only accept the https protocol. Accepted values are: 426, 301, 302, 307, 308. Default: 426.

regex_priority
integer
Default: 0

A number used to choose which route resolves a given request when several routes match it using regexes simultaneously. When two routes match the path and have the same regex_priority, the older one (lowest created_at) is used. Note that the priority for non-regex routes is different (longer non-regex routes are matched before shorter ones). Default: 0.

strip_path
boolean
Default: true

When matching a route via one of the paths, strip the matching prefix from the upstream request URL. Default: true.

path_handling
string
Enum: "v1" "v0"

Controls how the service path, route path and requested path are combined when sending a request to the upstream. Accepted values are: v0, v1. Default: v0.

preserve_host
required
boolean
Default: true

When matching a route via one of the hosts domain names, use the request host header in the upstream request headers. If set to false, the upstream Host header will be that of the service’s host.

request_buffering
required
boolean
Default: true

Whether to enable request body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that receive data with chunked transfer encoding. Default: true.

response_buffering
required
boolean
Default: true

Whether to enable response body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that send data with chunked transfer encoding. Default: true.

snis
Array of strings

A list of SNIs that match this route when using stream routing.

Array of objects

A list of IP sources of incoming connections that match this route when using stream routing. Each entry is an object with fields “ip” (optionally in CIDR range notation) and/or “port”.

Array of objects

A list of IP destinations of incoming connections that match this route when using stream routing. Each entry is an object with fields “ip” (optionally in CIDR range notation) and/or “port”.

tags
Array of strings

An optional set of strings associated with the route for grouping and filtering.

object

The service this route is associated to. This is where the route proxies traffic to. With form-encoded, the notation is service.id= or service.name=. With JSON, use “service:{id:<service id>} or service:{name:<service name>}.

Responses

Request samples

Content type
application/json
{
  • "name": "my-route",
  • "protocols": [
    ],
  • "methods": [
    ],
  • "hosts": [
    ],
  • "paths": [
    ],
  • "headers": {
    },
  • "https_redirect_status_code": 426,
  • "regex_priority": 0,
  • "strip_path": true,
  • "path_handling": "v0",
  • "preserve_host": false,
  • "request_buffering": true,
  • "response_buffering": true,
  • "tags": [
    ],
  • "service": {
    }
}

Response samples

Content type
application/json
{
  • "created_at": 1684438957,
  • "headers": {
    },
  • "hosts": [
    ],
  • "https_redirect_status_code": 426,
  • "id": "40dac76a-ce79-4bca-844d-afb44b9d8784",
  • "methods": [
    ],
  • "name": "my-route",
  • "path_handling": "v0",
  • "paths": [
    ],
  • "preserve_host": false,
  • "protocols": [
    ],
  • "regex_priority": 0,
  • "request_buffering": true,
  • "response_buffering": true,
  • "service": {
    },
  • "strip_path": true,
  • "tags": [
    ],
  • "updated_at": 1684438957
}

Delete a a route associated with a service

Delete a a route associated with a a service using ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
service_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

ID or name of the service to lookup

route_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the name of the route to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

Fetch a route associated with a service

Get a route associated with a service using ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
service_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

ID or name of the service to lookup

route_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the name of the route to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "hosts": [
    ],
  • "id": "56c4566c-14cc-4132-9011-4139fcbbe50a",
  • "name": "example-route",
  • "paths": [
    ],
  • "service": {
    }
}

Upsert a route associated with a service

Create or Update a route associated with a service using ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
service_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

ID or name of the service to lookup

route_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the name of the route to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

Route request body

name
string

The name of the route. Route names must be unique, and they are case sensitive. For example, there can be two different routes named “test” and “Test”.

protocols
required
Array of strings

An array of the protocols this route should allow

methods
Array of strings

A list of HTTP methods that match this route.

hosts
Array of strings

A list of domain names that match this route. Note that the hosts value is case sensitive. With form-encoded, the notation is hosts[]=example.com&hosts[]=foo.test. With JSON, use an Array.

paths
Array of strings

A list of paths that match this route. With form-encoded, the notation is paths[]=/foo&paths[]=/bar. With JSON, use an array. The path can be a regular expression, or a plain text pattern.

object

One or more lists of values indexed by header name that will cause this route to match if present in the request. The Host header cannot be used with this attribute: hosts should be specified using the hosts attribute. When headers contains only one value and that value starts with the special prefix ~*, the value is interpreted as a regular expression.

https_redirect_status_code
required
integer
Default: 426
Enum: 426 301 302 307 308

The status code Kong responds with when all properties of a route match except the protocol i.e. if the protocol of the request is HTTP instead of HTTPS Location header is injected by Kong if the field is set to 301, 302, 307 or 308. Note: This config applies only if the route is configured to only accept the https protocol. Accepted values are: 426, 301, 302, 307, 308. Default: 426.

regex_priority
integer
Default: 0

A number used to choose which route resolves a given request when several routes match it using regexes simultaneously. When two routes match the path and have the same regex_priority, the older one (lowest created_at) is used. Note that the priority for non-regex routes is different (longer non-regex routes are matched before shorter ones). Default: 0.

strip_path
boolean
Default: true

When matching a route via one of the paths, strip the matching prefix from the upstream request URL. Default: true.

path_handling
string
Enum: "v1" "v0"

Controls how the service path, route path and requested path are combined when sending a request to the upstream. Accepted values are: v0, v1. Default: v0.

preserve_host
required
boolean
Default: true

When matching a route via one of the hosts domain names, use the request host header in the upstream request headers. If set to false, the upstream Host header will be that of the service’s host.

request_buffering
required
boolean
Default: true

Whether to enable request body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that receive data with chunked transfer encoding. Default: true.

response_buffering
required
boolean
Default: true

Whether to enable response body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that send data with chunked transfer encoding. Default: true.

snis
Array of strings

A list of SNIs that match this route when using stream routing.

Array of objects

A list of IP sources of incoming connections that match this route when using stream routing. Each entry is an object with fields “ip” (optionally in CIDR range notation) and/or “port”.

Array of objects

A list of IP destinations of incoming connections that match this route when using stream routing. Each entry is an object with fields “ip” (optionally in CIDR range notation) and/or “port”.

tags
Array of strings

An optional set of strings associated with the route for grouping and filtering.

object

The service this route is associated to. This is where the route proxies traffic to. With form-encoded, the notation is service.id= or service.name=. With JSON, use “service:{id:<service id>} or service:{name:<service name>}.

Responses

Request samples

Content type
application/json
{
  • "name": "my-route",
  • "protocols": [
    ],
  • "methods": [
    ],
  • "hosts": [
    ],
  • "paths": [
    ],
  • "headers": {
    },
  • "https_redirect_status_code": 426,
  • "regex_priority": 0,
  • "strip_path": true,
  • "path_handling": "v0",
  • "preserve_host": false,
  • "request_buffering": true,
  • "response_buffering": true,
  • "tags": [
    ],
  • "service": {
    }
}

Response samples

Content type
application/json
{
  • "hosts": [
    ],
  • "id": "56c4566c-14cc-4132-9011-4139fcbbe50a",
  • "name": "example-route",
  • "paths": [
    ],
  • "service": {
    }
}

Plugins

Plugins

List all plugins associated with a consumer

Retrieve a list of all plugins associated with a consumer.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
consumer_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the username of the Consumer to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
}

Create a new Plugin associated with a Consumer

Create a new Plugin associated with a Consumer

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
consumer_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the username of the Consumer to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

Plugin request body

name
string or null

The name of the Plugin that’s going to be added. Currently, the Plugin must be installed in every Kong instance separately.

object

If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used. Default: null.With form-encoded, the notation is route.id=<route id> or route.name=<route name>. With JSON, use route:{id:<route id>} or route:{name:<route name>}.

object or null

If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified service.

instance_name
string

The Plugin instance name.

object

The configuration properties for the Plugin

protocols
Array of strings
Items Enum: "http" "grpc" "grpcs" "tls" "tcp"

A list of the request protocols that will trigger this plugin.

enabled
boolean
Default: true

Whether the plugin is applied. Default: true.

tags
Array of strings

An optional set of strings associated with the Plugin for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "name": "rate-limiting",
  • "consumer": "string",
  • "instance_name": "rate-limiting-foo",
  • "config": {
    },
  • "protocols": [
    ],
  • "enabled": true,
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "data": [
    ],
}

Delete a a Plugin associated with a a Consumer

Delete a a Plugin associated with a a Consumer using ID.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
consumer_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the username of the Consumer to retrieve.

plugin_id_or_instance_name
required
string
Example: response-ratelimiting

The unique identifier of the Plugin to create or update.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

Fetch a Plugin associated with a Consumer

Get a Plugin associated with a Consumer using ID.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
consumer_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the username of the Consumer to retrieve.

plugin_id_or_instance_name
required
string
Example: response-ratelimiting

The unique identifier of the Plugin to create or update.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
}

Upsert a Plugin associated with a Consumer

Create or Update a Plugin associated with a Consumer using ID.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
consumer_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the username of the Consumer to retrieve.

plugin_id_or_instance_name
required
string
Example: response-ratelimiting

The unique identifier of the Plugin to create or update.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

Plugin request body

name
string or null

The name of the Plugin that’s going to be added. Currently, the Plugin must be installed in every Kong instance separately.

object

If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used. Default: null.With form-encoded, the notation is route.id=<route id> or route.name=<route name>. With JSON, use route:{id:<route id>} or route:{name:<route name>}.

object or null

If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified service.

instance_name
string

The Plugin instance name.

object

The configuration properties for the Plugin

protocols
Array of strings
Items Enum: "http" "grpc" "grpcs" "tls" "tcp"

A list of the request protocols that will trigger this plugin.

enabled
boolean
Default: true

Whether the plugin is applied. Default: true.

tags
Array of strings

An optional set of strings associated with the Plugin for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "name": "rate-limiting",
  • "consumer": "string",
  • "instance_name": "rate-limiting-foo",
  • "config": {
    },
  • "protocols": [
    ],
  • "enabled": true,
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "data": [
    ],
}

List all Plugins

This endpoint allows you to list all the plugins. You can use query parameters to filter the results by size or tags, for example /plugins?size=50&tags=enterprise.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
}

Create a new Plugin

Create a new Plugin.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

Plugin request body

name
string or null

The name of the Plugin that’s going to be added. Currently, the Plugin must be installed in every Kong instance separately.

object

If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used. Default: null.With form-encoded, the notation is route.id=<route id> or route.name=<route name>. With JSON, use route:{id:<route id>} or route:{name:<route name>}.

object or null

If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified service.

instance_name
string

The Plugin instance name.

object

The configuration properties for the Plugin

protocols
Array of strings
Items Enum: "http" "grpc" "grpcs" "tls" "tcp"

A list of the request protocols that will trigger this plugin.

enabled
boolean
Default: true

Whether the plugin is applied. Default: true.

tags
Array of strings

An optional set of strings associated with the Plugin for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "name": "rate-limiting",
  • "consumer": "string",
  • "instance_name": "rate-limiting-foo",
  • "config": {
    },
  • "protocols": [
    ],
  • "enabled": true,
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "config": {
    },
  • "enabled": true,
  • "id": "3fd1eea1-885a-4011-b986-289943ff8177",
  • "name": "key-auth",
  • "protocols": [
    ]
}

Delete a Plugin

Delete a Plugin

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
plugin_id_or_instance_name
required
string
Example: response-ratelimiting

The unique identifier of the Plugin to create or update.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

Fetch a Plugin

Get a Plugin using ID.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
plugin_id_or_instance_name
required
string
Example: response-ratelimiting

The unique identifier of the Plugin to create or update.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "config": {
    },
  • "enabled": true,
  • "id": "3fd1eea1-885a-4011-b986-289943ff8177",
  • "name": "key-auth",
  • "protocols": [
    ]
}

Upsert a Plugin

Create or Update Plugin using ID.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
plugin_id_or_instance_name
required
string
Example: response-ratelimiting

The unique identifier of the Plugin to create or update.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

Plugin request body

name
string or null

The name of the Plugin that’s going to be added. Currently, the Plugin must be installed in every Kong instance separately.

object

If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used. Default: null.With form-encoded, the notation is route.id=<route id> or route.name=<route name>. With JSON, use route:{id:<route id>} or route:{name:<route name>}.

object or null

If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified service.

instance_name
string

The Plugin instance name.

object

The configuration properties for the Plugin

protocols
Array of strings
Items Enum: "http" "grpc" "grpcs" "tls" "tcp"

A list of the request protocols that will trigger this plugin.

enabled
boolean
Default: true

Whether the plugin is applied. Default: true.

tags
Array of strings

An optional set of strings associated with the Plugin for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "name": "rate-limiting",
  • "consumer": "string",
  • "instance_name": "rate-limiting-foo",
  • "config": {
    },
  • "protocols": [
    ],
  • "enabled": true,
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "config": {
    },
  • "enabled": true,
  • "id": "3fd1eea1-885a-4011-b986-289943ff8177",
  • "name": "key-auth",
  • "protocols": [
    ]
}

List all Plugins associated with a route

List all Plugins associated with a a route

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
route_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the name of the route to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "offset": "string"
}

Create a new Plugin associated with a route

Create a new Plugin associated with a route

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
route_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the name of the route to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

Plugin request body

name
string or null

The name of the Plugin that’s going to be added. Currently, the Plugin must be installed in every Kong instance separately.

object

If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used. Default: null.With form-encoded, the notation is route.id=<route id> or route.name=<route name>. With JSON, use route:{id:<route id>} or route:{name:<route name>}.

object or null

If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified service.

instance_name
string

The Plugin instance name.

object

The configuration properties for the Plugin

protocols
Array of strings
Items Enum: "http" "grpc" "grpcs" "tls" "tcp"

A list of the request protocols that will trigger this plugin.

enabled
boolean
Default: true

Whether the plugin is applied. Default: true.

tags
Array of strings

An optional set of strings associated with the Plugin for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "name": "rate-limiting",
  • "consumer": "string",
  • "instance_name": "rate-limiting-foo",
  • "config": {
    },
  • "protocols": [
    ],
  • "enabled": true,
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "data": [
    ],
}

Delete a a Plugin associated with a route

Delete a a Plugin associated with a a route using ID.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
route_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the name of the route to retrieve.

plugin_id_or_instance_name
required
string
Example: response-ratelimiting

The unique identifier of the Plugin to create or update.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

Fetch a Plugin associated with a route

Get a Plugin associated with a route using ID.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
plugin_id_or_instance_name
required
string
Example: response-ratelimiting

The unique identifier of the Plugin to create or update.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

route_id
required
string

ID or name of the related route

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
}

Upsert a Plugin associated with a route

Create or Update a Plugin associated with a route using ID.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
route_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the name of the route to retrieve.

plugin_id_or_instance_name
required
string
Example: response-ratelimiting

The unique identifier of the Plugin to create or update.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

Plugin request body

name
string or null

The name of the Plugin that’s going to be added. Currently, the Plugin must be installed in every Kong instance separately.

object

If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used. Default: null.With form-encoded, the notation is route.id=<route id> or route.name=<route name>. With JSON, use route:{id:<route id>} or route:{name:<route name>}.

object or null

If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified service.

instance_name
string

The Plugin instance name.

object

The configuration properties for the Plugin

protocols
Array of strings
Items Enum: "http" "grpc" "grpcs" "tls" "tcp"

A list of the request protocols that will trigger this plugin.

enabled
boolean
Default: true

Whether the plugin is applied. Default: true.

tags
Array of strings

An optional set of strings associated with the Plugin for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "name": "rate-limiting",
  • "consumer": "string",
  • "instance_name": "rate-limiting-foo",
  • "config": {
    },
  • "protocols": [
    ],
  • "enabled": true,
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "data": [
    ],
}

List all Plugins associated with a service

List all Plugins associated with a a service

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
service_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

ID or name of the service to lookup

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "offset": "string"
}

Create a new Plugin associated with a service

Create a new Plugin associated with a service

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
service_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

ID or name of the service to lookup

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

Plugin request body

name
string or null

The name of the Plugin that’s going to be added. Currently, the Plugin must be installed in every Kong instance separately.

object

If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used. Default: null.With form-encoded, the notation is route.id=<route id> or route.name=<route name>. With JSON, use route:{id:<route id>} or route:{name:<route name>}.

object or null

If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified service.

instance_name
string

The Plugin instance name.

object

The configuration properties for the Plugin

protocols
Array of strings
Items Enum: "http" "grpc" "grpcs" "tls" "tcp"

A list of the request protocols that will trigger this plugin.

enabled
boolean
Default: true

Whether the plugin is applied. Default: true.

tags
Array of strings

An optional set of strings associated with the Plugin for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "name": "rate-limiting",
  • "consumer": "string",
  • "instance_name": "rate-limiting-foo",
  • "config": {
    },
  • "protocols": [
    ],
  • "enabled": true,
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "config": {
    },
  • "enabled": true,
  • "id": "3fd1eea1-885a-4011-b986-289943ff8177",
  • "name": "key-auth",
  • "protocols": [
    ]
}

Delete a a plugin associated with a service

Delete a a Plugin associated with a a service using ID.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
service_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

ID or name of the service to lookup

plugin_id_or_instance_name
required
string
Example: response-ratelimiting

The unique identifier of the Plugin to create or update.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

Fetch a Plugin associated with a service

Get a Plugin associated with a service using ID.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
service_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

ID or name of the service to lookup

plugin_id_or_instance_name
required
string
Example: response-ratelimiting

The unique identifier of the Plugin to create or update.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "config": {
    },
  • "enabled": true,
  • "id": "3fd1eea1-885a-4011-b986-289943ff8177",
  • "name": "key-auth",
  • "protocols": [
    ]
}

Upsert a plugin associated with a service

Create or Update a Plugin associated with a service using ID.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
service_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

ID or name of the service to lookup

plugin_id_or_instance_name
required
string
Example: response-ratelimiting

The unique identifier of the Plugin to create or update.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

Plugin request body

name
string or null

The name of the Plugin that’s going to be added. Currently, the Plugin must be installed in every Kong instance separately.

object

If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used. Default: null.With form-encoded, the notation is route.id=<route id> or route.name=<route name>. With JSON, use route:{id:<route id>} or route:{name:<route name>}.

object or null

If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified service.

instance_name
string

The Plugin instance name.

object

The configuration properties for the Plugin

protocols
Array of strings
Items Enum: "http" "grpc" "grpcs" "tls" "tcp"

A list of the request protocols that will trigger this plugin.

enabled
boolean
Default: true

Whether the plugin is applied. Default: true.

tags
Array of strings

An optional set of strings associated with the Plugin for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "name": "rate-limiting",
  • "consumer": "string",
  • "instance_name": "rate-limiting-foo",
  • "config": {
    },
  • "protocols": [
    ],
  • "enabled": true,
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "data": [
    ],
}

Consumers

Consumers

List all Consumers

Retrieve a list of all consumers.You can use query parameters to filter the results by size or tags, for example /consumers?size=50&tags=enterprise.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "created_at": 1684424758,
  • "custom_id": "string",
  • "id": "c1a1f6f-2aa4-4e58-93ff-b56368f19b27",
  • "tags": [
    ],
  • "updated_at": 1684424758,
  • "username": "string"
}

Create a new Consumer

Create a new Consumer

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

Consumer request body

username
required
string

The unique username of the Consumer. You must send either this field or custom_id with the request.

custom_id
required
string

Field for storing an existing unique ID for the Consumer - useful for mapping Kong with users in your existing database. You must send either this field or username with the request.

tags
Array of strings

An optional set of strings associated with the Consumer for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "username": "string",
  • "custom_id": "string",
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "created_at": 1684424758,
  • "custom_id": "string",
  • "id": "c1a1f6f-2aa4-4e58-93ff-b56368f19b27",
  • "tags": [
    ],
  • "updated_at": 1684424758,
  • "username": "string"
}

Delete a Consumer

Delete a specific consumer from the system using either the consumer ID or the consumer username. This operation is irreversible and permanently removes all data associated with the specified consumer. If the consumer was deleted succesfully the endpoint will return a 204 response indicating that the resource did not exist.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
consumer_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the username of the Consumer to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

Fetch a Consumer

Retrieve the details of a specific consumer in the system using either the consumer ID or the consumer username. If the consumer with the specified ID or username cannot be found, the endpoint will return a 404.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
consumer_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the username of the Consumer to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "created_at": 1684424758,
  • "custom_id": "string",
  • "id": "c1a1f6f-2aa4-4e58-93ff-b56368f19b27",
  • "tags": [
    ],
  • "updated_at": 1684424758,
  • "username": "string"
}

Update a Consumer

Create or Update Consumer using ID or username. The consumer will be identified via the username or id attribute.If the consumer with the specified ID or username cannot be found, the endpoint will return a 404.

When the username or id attribute has the structure of a UUID, the Consumer being inserted/replaced will be identified by its id. Otherwise it will be identified by its username.

When creating a new Consumer without specifying id (neither in the URL nor in the body), then it will be auto-generated.

Notice that specifying a username in the URL and a different one in the request body is not allowed.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
consumer_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the username of the Consumer to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

Consumer request body

username
required
string

The unique username of the Consumer. You must send either this field or custom_id with the request.

custom_id
required
string

Field for storing an existing unique ID for the Consumer - useful for mapping Kong with users in your existing database. You must send either this field or username with the request.

tags
Array of strings

An optional set of strings associated with the Consumer for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "username": "string",
  • "custom_id": "string",
  • "tags": [
    ]
}

Response samples

Content type
application/json
{}

consumer-groups

Consumer Groups

List consumer groups

Returns a list of active consumer groups.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
{
  • "data": [
    ]
}

Create a consumer group

Create a consumer group by passing a name and optional tags in the request body.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

Consumer groups request body

name
required
string

A unique name for the consumer group you want to create.

tags
Array of strings

An optional set of strings associated with the consumer group for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "name": "Example",
  • "tags": [
    ]
}

Response samples

Content type
{
  • "data": [
    ]
}

Delete a consumer group

Delete a consumer group. Deleting a consumer group removes all consumers from that group. This operation does not delete existing consuemrs.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

List a specific consumer group

Return information about a specific consumer group by passing the group_id as a path parameter.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

group_id
required
string
Example: be4bcfca-b1df-4fac-83cc-5cf6774bf48e

The UUID of the consumer group.

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
{
  • "data": [
    ]
}

Create a consumer group

Create a consumer group.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

group_id
required
string
Example: be4bcfca-b1df-4fac-83cc-5cf6774bf48e

The UUID of the consumer group.

Request Body schema: application/json

Consumer request body

username
required
string

The unique username of the Consumer. You must send either this field or custom_id with the request.

custom_id
required
string

Field for storing an existing unique ID for the Consumer - useful for mapping Kong with users in your existing database. You must send either this field or username with the request.

tags
Array of strings

An optional set of strings associated with the Consumer for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "username": "string",
  • "custom_id": "string",
  • "tags": [
    ]
}

Response samples

Content type
application/json
{}

Delete consumer group

Delete consumer group.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

group_id
required
string
Example: be4bcfca-b1df-4fac-83cc-5cf6774bf48e

The UUID of the consumer group.

Responses

List all consumers in a consumer group

Returns a list of consumers that belong to a consumer group.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

group_id
required
string
Example: be4bcfca-b1df-4fac-83cc-5cf6774bf48e

The UUID of the consumer group.

Responses

Response samples

Content type
{
  • "data": [
    ]
}

Add a consumer to a group

Add a consumer to a group

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

group_id
required
string
Example: be4bcfca-b1df-4fac-83cc-5cf6774bf48e

The UUID of the consumer group.

Request Body schema: application/json
consumer
string

The consumer ID for the consumer that you want to add to a group.

Responses

Request samples

Content type
application/json
{
  • "consumer": "288f2bfc-04e2-4ec3-b6f3-40408dff5417"
}

Response samples

Content type
application/json
{
  • "consumer_group": {
    },
  • "consumers": [
    ]
}

Remove all consumers from a consumer group

Removes all consumers from a consumer group. Does not delete any consumers.consumers.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

group_id
required
string
Example: be4bcfca-b1df-4fac-83cc-5cf6774bf48e

The UUID of the consumer group.

Responses

List consumer groups for a consumer

View all consumer groups that a consumer is assigned to.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

consumer_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the username of the Consumer to retrieve.

Responses

Response samples

Content type
{
  • "data": [
    ]
}

Add a consumer to a group

Add a consumer to a specific consumer group.

If you add a consumer to multiple groups:

If all groups are allowed by the Rate Limiting Advanced plugin, only the first group’s settings will apply. Otherwise, whichever group is specified in the Rate Limiting Advanced plugin will be active.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

consumer_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the username of the Consumer to retrieve.

Request Body schema: application/json
group
string

The consumer group UUID.

Responses

Request samples

Content type
application/json
{
  • "group": "1e965e47-d185-4e9e-8bc7-94ea6ae75b2e"
}

Response samples

Content type
{
  • "data": [
    ]
}

Remove a consumer from all groups

Remove a consumer from all groups

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

consumer_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The unique identifier or the username of the Consumer to retrieve.

Responses

Certificates

Certificates

List all certificates

Retrieve a list of all available certificate/ You can use query parameters to filter the results by size or tags, for example /certificates?size=50&tags=enterprise.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ]
}

Create a new Certificate

Create a new certificate with the provided details. Use this endpoint to add a new certificate to the system. The request body must include the certificate data and other details required for creating a new certificate.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json
cert
required
string

PEM-encoded public certificate chain of the SSL key pair.

key
required
string

PEM-encoded private key of the SSL key pair.

cert_alt
string

PEM-encoded public certificate chain of the alternate SSL key pair.

key_alt
string

PEM-encoded private key of the alternate SSL key pair.

tags
Array of strings

An optional set of strings associated with the Certificate for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "cert": "-----BEGIN CERTIFICATE-----...,",
  • "key": "-----BEGIN RSA PRIVATE KEY-----...",
  • "cert_alt": "string",
  • "key_alt": "-----BEGIN EC PRIVATE KEY-----...",
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "data": [
    ]
}

Delete a Certificate

Delete a Certificate

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

certificate_id
required
string

ID of the Certificate to delete

Responses

Fetch a Certificate

Retrieve details about the specified certificate using the provided path parameter certificate_id.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
certificate_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

The unique identifier of the Certificate to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

Responses

Response samples

Content type
application/json
{
  • "cert": "-----BEGIN CERTIFICATE-----\ncertificate-content\n-----END CERTIFICATE-----",
  • "id": "b2f34145-0343-41a4-9602-4c69dec2f269",
  • "key": "-----BEGIN PRIVATE KEY-----\nprivate-key-content\n-----END PRIVATE KEY-----"
}

Update a Certificate

Update details about the specified certificate using the provided path parameter certificate_id.

Inserts (or replaces) the certificate under the requested certificate_idwith the definition specified in the request body. When the id attribute has the structure of a UUID, the certificate being inserted/replaced will be identified by its id. Otherwise it will be identified by the name.

When creating a new Certificate without specifying id (neither in the path or the request body), then it will be auto-generated.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
certificate_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

The unique identifier of the Certificate to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json
cert
required
string

PEM-encoded public certificate chain of the SSL key pair.

key
required
string

PEM-encoded private key of the SSL key pair.

cert_alt
string

PEM-encoded public certificate chain of the alternate SSL key pair.

key_alt
string

PEM-encoded private key of the alternate SSL key pair.

tags
Array of strings

An optional set of strings associated with the Certificate for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "cert": "-----BEGIN CERTIFICATE-----...,",
  • "key": "-----BEGIN RSA PRIVATE KEY-----...",
  • "cert_alt": "string",
  • "key_alt": "-----BEGIN EC PRIVATE KEY-----...",
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "cert": "-----BEGIN CERTIFICATE-----\ncertificate-content\n-----END CERTIFICATE-----",
  • "id": "b2f34145-0343-41a4-9602-4c69dec2f269",
  • "key": "-----BEGIN PRIVATE KEY-----\nprivate-key-content\n-----END PRIVATE KEY-----"
}

SNIs

SNIs

List SNIs associated with a certificate

Retrieve a paginated list of all SNIs associated with a certificate. Use this endpoint to retrieve a list of SNIs that are linked to a specific certificate. You can use the optional query parameters to filter the results based on specific criteria. The response will include the list of SNIs and pagination information. See the response schema for details on the expected format of the response body.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
certificate_name_or_id
required
string
Enum: "a3ad71a8-6685-4b03-a101-980a953544f6" "name"
Example: name

The unique identifier or the name attribute of the Certificate whose SNIs are to be retrieved. When using this endpoint, only SNIs associated to the specified Certificate will be listed.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "certificate": {
    },
  • "created_at": 1685646239,
  • "id": "cf3b640e-100e-4fa4-aef6-2dc0488d7a58",
  • "name": "my-sni",
  • "updated_at": 1685646239
}

Create a new SNI associated with a Certificate

Create a new SNI and associate it with a certificate in the system. Use this endpoint to add a new SNI to the system and link it to a specific certificate.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
certificate_name_or_id
required
string
Enum: "a3ad71a8-6685-4b03-a101-980a953544f6" "name"
Example: name

The unique identifier or the name attribute of the Certificate whose SNIs are to be retrieved. When using this endpoint, only SNIs associated to the specified Certificate will be listed.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

A JSON object containing the details of the new SNI, including the name, certificate, and tags.

name
required
string

The SNI name to associate with the given certificate.

tags
Array of strings

An optional set of strings associated with the SNIs for grouping and filtering.

required
object

The id (a UUID) of the certificate with which to associate the SNI hostname. The Certificate must have a valid private key associated with it to be used by the SNI object. With form-encoded, the notation is certificate.id=<certificate id>. With JSON, use “certificate:{id:<certificate id>”}.

Responses

Request samples

Content type
application/json
{
  • "name": "my-sni",
  • "tags": [
    ],
  • "certificate": {
    }
}

Response samples

Content type
application/json
{
  • "certificate": {
    },
  • "id": "36c4566c-14cc-4132-9011-4139fcbbe50a",
  • "name": "some.example.org"
}

Delete a an SNI associated with a Certificate

Delete a an SNI associated with a a Certificate using an ID.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
certificate_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

The unique identifier of the Certificate to retrieve.

sni_id
required
string
Example: my-sni

The unique identifier or the name of the SNI to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

Fetch an SNI associated with a certificate

Get an SNI associated with a Certificate using ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
certificate_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

The unique identifier of the Certificate to retrieve.

sni_id
required
string
Example: my-sni

The unique identifier or the name of the SNI to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "certificate": {
    },
  • "id": "36c4566c-14cc-4132-9011-4139fcbbe50a",
  • "name": "some.example.org"
}

Upsert an SNI associated with a certificate

Create or Update an SNI associated with a Certificate using ID or name.

Inserts (or replaces) the SNI under the requested resource with the definition specified in the body. The SNI will be identified by the id attribute.

When the name or id attribute has the structure of a UUID, the SNI being inserted/replaced will be identified by its id. Otherwise it will be identified by its name.

When creating a new SNI without specifying id (neither in the URL nor in the body), then it will be auto-generated.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
certificate_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

The unique identifier of the Certificate to retrieve.

sni_id
required
string
Example: my-sni

The unique identifier or the name of the SNI to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

Description of the SNI

object

The id (a UUID) of the certificate with which to associate the SNI hostname. The Certificate must have a valid private key associated with it to be used by the SNI object.

created_at
integer

Unix epoch when the resource was created.

id
string
name
string

The SNI name to associate with the given certificate.

tags
Array of strings

An optional set of strings associated with the SNIs for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "certificate": {
    },
  • "id": "36c4566c-14cc-4132-9011-4139fcbbe50a",
  • "name": "some.example.org"
}

Response samples

Content type
application/json
{
  • "certificate": {
    },
  • "id": "36c4566c-14cc-4132-9011-4139fcbbe50a",
  • "name": "some.example.org"
}

List all SNIs

List all SNIs

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "certificate": {
    },
  • "created_at": 1685646239,
  • "id": "cf3b640e-100e-4fa4-aef6-2dc0488d7a58",
  • "name": "my-sni",
  • "updated_at": 1685646239
}

Create a new SNI

Create a new SNI

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

A JSON object containing the details of the new SNI, including the name, certificate, and tags.

name
required
string

The SNI name to associate with the given certificate.

tags
Array of strings

An optional set of strings associated with the SNIs for grouping and filtering.

required
object

The id (a UUID) of the certificate with which to associate the SNI hostname. The Certificate must have a valid private key associated with it to be used by the SNI object. With form-encoded, the notation is certificate.id=<certificate id>. With JSON, use “certificate:{id:<certificate id>”}.

Responses

Request samples

Content type
application/json
{
  • "name": "my-sni",
  • "tags": [
    ],
  • "certificate": {
    }
}

Response samples

Content type
application/json
{
  • "certificate": {
    },
  • "created_at": 1685646239,
  • "id": "cf3b640e-100e-4fa4-aef6-2dc0488d7a58",
  • "name": "my-sni",
  • "updated_at": 1685646239
}

Delete an SNI

Delete an SNI

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
sni_id
required
string
Example: my-sni

The unique identifier or the name of the SNI to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

Fetch an SNI

Get an SNI using ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
sni_id
required
string
Example: my-sni

The unique identifier or the name of the SNI to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "certificate": {
    },
  • "created_at": 1685646239,
  • "id": "cf3b640e-100e-4fa4-aef6-2dc0488d7a58",
  • "name": "my-sni",
  • "updated_at": 1685646239
}

Update an SNI

Create or Update SNI using ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
sni_id
required
string
Example: my-sni

The unique identifier or the name of the SNI to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

A JSON object containing the details of the new SNI, including the name, certificate, and tags.

name
required
string

The SNI name to associate with the given certificate.

tags
Array of strings

An optional set of strings associated with the SNIs for grouping and filtering.

required
object

The id (a UUID) of the certificate with which to associate the SNI hostname. The Certificate must have a valid private key associated with it to be used by the SNI object. With form-encoded, the notation is certificate.id=<certificate id>. With JSON, use “certificate:{id:<certificate id>”}.

Responses

Request samples

Content type
application/json
{
  • "name": "my-sni",
  • "tags": [
    ],
  • "certificate": {
    }
}

Response samples

Content type
application/json
{
  • "certificate": {
    },
  • "created_at": 1685646239,
  • "id": "cf3b640e-100e-4fa4-aef6-2dc0488d7a58",
  • "name": "my-sni",
  • "updated_at": 1685646239
}

CA Certificates

CA certificates

List all CA certificates

Retrieve a list of all available Certificate Authority (CA) certificates, including the certificate ID, creation date, and other details. You can use query parameters to filter the results by size or tags, for example /ca-certificates?size=50&tags=enterprise.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "cert": "-----BEGIN CERTIFICATE-----\ncertificate-content\n-----END CERTIFICATE-----",
  • "id": "b2f34145-0343-41a4-9602-4c69dec2f260"
}

Create a new CA certificate

Create a new Certificate Authority (CA) certificate. The request body must include the cert property, the certificate data in PEM format; it can also include cert_digest, a digest of the certificate in hex format for verifying the certificates integrity, and tags, an optional list of tags to categorize the certificate.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

This request body represents a new Certificate Authority (CA) certificate and includes the properties required to create a new certificate.

cert
required
string

PEM-encoded public certificate of the CA.

cert_digest
string

SHA256 hex digest of the public certificate.

tags
Array of strings

An optional set of strings associated with the Certificate for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "cert": "-----BEGIN CERTIFICATE-----...",
  • "cert_digest": "c641e28d77e93544f2fa87b2cf3f3d51...",
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "cert": "-----BEGIN CERTIFICATE-----\ncertificate-content\n-----END CERTIFICATE-----",
  • "id": "b2f34145-0343-41a4-9602-4c69dec2f260"
}

Delete a CA Certificate

Delete the specified Certificate Authority (CA) certificate using the provided ca_certificate_id.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
ca_certificate_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

ID of the related certificate

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

Fetch a CA certificate

Retrieve details about the specified Certificate Authority (CA) certificate using the provided path parameter ca_certificate_id.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

ca_certificate_id
required
string
Examples:
  • 04fbeacf-a9f1-4a5d-ae4a-b0407445db3f - Example CA certificate ID

The unique identifier of the certificate to retrieve.

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "cert": "-----BEGIN CERTIFICATE-----\ncertificate-content\n-----END CERTIFICATE-----",
  • "id": "b2f34145-0343-41a4-9602-4c69dec2f260"
}

Update a CA Certificate

Create or Update a CA Certificate using the provided path parameter ca_certificate_id.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
ca_certificate_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

ID of the related certificate

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

This request body represents a new Certificate Authority (CA) certificate and includes the properties required to create a new certificate.

cert
required
string

PEM-encoded public certificate of the CA.

cert_digest
string

SHA256 hex digest of the public certificate.

tags
Array of strings

An optional set of strings associated with the Certificate for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "cert": "-----BEGIN CERTIFICATE-----...",
  • "cert_digest": "c641e28d77e93544f2fa87b2cf3f3d51...",
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "cert": "-----BEGIN CERTIFICATE-----\ncertificate-content\n-----END CERTIFICATE-----",
  • "id": "b2f34145-0343-41a4-9602-4c69dec2f260"
}

Upstreams

Upstreams

List all Upstreams

List all registered upstreams. You can filter the results by pagination size, offset, or tags like /upstreams?size=10&offset=0.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "offset": "string"
}

Create a new Upstream

Create a new Upstream

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json
name
required
string

This is a hostname, which must be equal to the host of a service.

algorithm
string
Default: "round-robin"
Enum: "consistent-hashing" "least-connections" "round-robin"

Which load balancing algorithm to use. Accepted values are: consistent-hashing, least-connections, round-robin. Default: round-robin.

hash_on
string
Default: "none"
Enum: "none" "consumer" "ip" "cookie" "uri_capture" "path" "query_arg"

What to use as hashing input. Using none results in a weighted-round-robin scheme with no hashing

hash_fallback
string
Default: "none"
Enum: "none" "consumer" "ip" "cookie" "uri_capture" "path" "query_arg"

What to use as hashing input if the primary hash_on does not return a hash (eg. header is missing, or no Consumer identified). Not available if hash_on is set to cookie.

hash_on_header
string

The header name to take the value from as hash input. Only required when hash_on is set to header.

hash_fallback_header
string
Default: "none"

The header name to take the value from as hash input. Only required when hash_fallback is set to header.

hash_on_cookie
string

The cookie name to take the value from as hash input. Only required when hash_on or hash_fallback is set to cookie. If the specified cookie is not in the request, Kong will generate a value and set the cookie in the response.

hash_on_cookie_path
string
Default: "/"

The cookie path to set in the response headers. Only required when hash_on or hash_fallback is set to cookie. Default: /.

hash_on_query_arg
string

The name of the query string argument to take the value from as hash input. Only required when hash_on is set to query_arg.

hash_fallback_query_arg
string

The name of the query string argument to take the value from as hash input. Only required when hash_fallback is set to query_arg.

hash_on_uri_capture
string

The name of the route URI capture to take the value from as hash input. Only required when hash_on is set to uri_capture.

hash_fallback_uri_capture
string

The name of the route URI capture to take the value from as hash input. Only required when hash_fallback is set to uri_capture.

slots
integer [ 10 .. 65536 ]
Default: 10000

The number of slots in the load balancer algorithm. If the algorithm is set to round-robin, this setting determines the maximum number of slots. If the algorithm is set to consistent-hashing, this setting determines the actual number of slots in the algorithm. Accepts an integer in the range 10-65536.

object
tags
Array of strings

An optional set of strings associated with the Upstream for grouping and filtering.

host_header
string

The hostname to be used as Host header when proxying requests through Kong.

object

If set, the certificate to be used as client certificate while TLS handshaking to the upstream server.

Responses

Request samples

Content type
application/json
Example
{
  • "name": "my-upstream",
  • "algorithm": "round-robin",
  • "hash_on": "none",
  • "hash_fallback": "none",
  • "hash_on_cookie_path": "/",
  • "slots": 10000,
  • "healthchecks": {
    },
  • "tags": [
    ],
  • "host_header": "example.com",
  • "client_certificate": {
    },
  • "use_srv_name": false
}

Response samples

Content type
application/json
{
  • "algorithm": "round-robin",
  • "hash_fallback": "none",
  • "hash_on": "none",
  • "hash_on_cookie_path": "/",
  • "healthchecks": {
    },
  • "id": "6eed5e9c-5398-4026-9a4c-d48f18a2431e",
  • "name": "api.example.internal",
  • "slots": 10000
}

Delete an Upstream

Delete an Upstream

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
upstream_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

The unique identifier of the Upstream associated to the Certificate to be retrieved.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

Fetch an Upstream

Get an Upstream using ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
upstream_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

The unique identifier of the Upstream associated to the Certificate to be retrieved.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "algorithm": "round-robin",
  • "hash_fallback": "none",
  • "hash_on": "none",
  • "hash_on_cookie_path": "/",
  • "healthchecks": {
    },
  • "id": "6eed5e9c-5398-4026-9a4c-d48f18a2431e",
  • "name": "api.example.internal",
  • "slots": 10000
}

Update an Upstream

Create or Update Upstream using ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
upstream_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

The unique identifier of the Upstream associated to the Certificate to be retrieved.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json
name
required
string

This is a hostname, which must be equal to the host of a service.

algorithm
string
Default: "round-robin"
Enum: "consistent-hashing" "least-connections" "round-robin"

Which load balancing algorithm to use. Accepted values are: consistent-hashing, least-connections, round-robin. Default: round-robin.

hash_on
string
Default: "none"
Enum: "none" "consumer" "ip" "cookie" "uri_capture" "path" "query_arg"

What to use as hashing input. Using none results in a weighted-round-robin scheme with no hashing

hash_fallback
string
Default: "none"
Enum: "none" "consumer" "ip" "cookie" "uri_capture" "path" "query_arg"

What to use as hashing input if the primary hash_on does not return a hash (eg. header is missing, or no Consumer identified). Not available if hash_on is set to cookie.

hash_on_header
string

The header name to take the value from as hash input. Only required when hash_on is set to header.

hash_fallback_header
string
Default: "none"

The header name to take the value from as hash input. Only required when hash_fallback is set to header.

hash_on_cookie
string

The cookie name to take the value from as hash input. Only required when hash_on or hash_fallback is set to cookie. If the specified cookie is not in the request, Kong will generate a value and set the cookie in the response.

hash_on_cookie_path
string
Default: "/"

The cookie path to set in the response headers. Only required when hash_on or hash_fallback is set to cookie. Default: /.

hash_on_query_arg
string

The name of the query string argument to take the value from as hash input. Only required when hash_on is set to query_arg.

hash_fallback_query_arg
string

The name of the query string argument to take the value from as hash input. Only required when hash_fallback is set to query_arg.

hash_on_uri_capture
string

The name of the route URI capture to take the value from as hash input. Only required when hash_on is set to uri_capture.

hash_fallback_uri_capture
string

The name of the route URI capture to take the value from as hash input. Only required when hash_fallback is set to uri_capture.

slots
integer [ 10 .. 65536 ]
Default: 10000

The number of slots in the load balancer algorithm. If the algorithm is set to round-robin, this setting determines the maximum number of slots. If the algorithm is set to consistent-hashing, this setting determines the actual number of slots in the algorithm. Accepts an integer in the range 10-65536.

object
tags
Array of strings

An optional set of strings associated with the Upstream for grouping and filtering.

host_header
string

The hostname to be used as Host header when proxying requests through Kong.

object

If set, the certificate to be used as client certificate while TLS handshaking to the upstream server.

Responses

Request samples

Content type
application/json
Example
{
  • "name": "my-upstream",
  • "algorithm": "round-robin",
  • "hash_on": "none",
  • "hash_fallback": "none",
  • "hash_on_cookie_path": "/",
  • "slots": 10000,
  • "healthchecks": {
    },
  • "tags": [
    ],
  • "host_header": "example.com",
  • "client_certificate": {
    },
  • "use_srv_name": false
}

Response samples

Content type
application/json
{
  • "id": "58c8ccbb-eafb-4566-991f-2ed4f678fa70",
  • "created_at": 1422386534,
  • "name": "my-upstream",
  • "algorithm": "round-robin",
  • "hash_on": "none",
  • "hash_fallback": "none",
  • "hash_on_cookie_path": "/",
  • "slots": 10000,
  • "healthchecks": {
    },
  • "tags": [
    ],
  • "host_header": "example.com",
  • "client_certificate": {
    },
  • "use_srv_name": false
}

Vaults

Vaults

List all Vaults

List all Vaults

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "offset": "string"
}

Create a new Vault

Create a new Vault

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json
prefix
string

The unique prefix (or identifier) for this Vault configuration. The prefix is used to load the right Vault configuration and implementation when referencing secrets with the other entities.

name
string

The name of the Vault that’s going to be added. Currently, the Vault implementation must be installed in every Kong instance.

description
string

The description of the Vault object.

object

The configuration properties for the Vault which can be found on the vaults’ documentation page.

tags
Array of strings

An optional set of strings associated with the Vault for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "prefix": "pre",
  • "name": "env",
  • "description": "This vault is used to retrieve redis database access credentials",
  • "config": {
    },
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "config": {
    },
  • "description": "environment variable based vault",
  • "id": "2747d1e5-8246-4f65-a939-b392f1ee17f8",
  • "name": "env",
  • "tags": [
    ]
}

Delete a Vault

Delete a Vault

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

vault_id_or_prefix
required
string

ID or prefix of the Vault to delete

Responses

Fetch a Vault

Get a Vault using ID or prefix.

Vault entities are used to configure different Vault connectors.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
vault_id_or_prefix
required
string
Example: env

The unique identifier or the prefix of the Vault to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "config": {
    },
  • "description": "environment variable based vault",
  • "id": "2747d1e5-8246-4f65-a939-b392f1ee17f8",
  • "name": "env",
  • "tags": [
    ]
}

Upsert a Vault

Create or Update Vault using ID or prefix.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

vault_id_or_prefix
required
string

Name or ID of the Vault to lookup

Request Body schema: application/json
prefix
string

The unique prefix (or identifier) for this Vault configuration. The prefix is used to load the right Vault configuration and implementation when referencing secrets with the other entities.

name
string

The name of the Vault that’s going to be added. Currently, the Vault implementation must be installed in every Kong instance.

description
string

The description of the Vault object.

object

The configuration properties for the Vault which can be found on the vaults’ documentation page.

tags
Array of strings

An optional set of strings associated with the Vault for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "prefix": "pre",
  • "name": "env",
  • "description": "This vault is used to retrieve redis database access credentials",
  • "config": {
    },
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "config": {
    },
  • "description": "environment variable based vault",
  • "id": "2747d1e5-8246-4f65-a939-b392f1ee17f8",
  • "name": "env",
  • "tags": [
    ]
}

Keys

Keys

List all Keys

List all Keys

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "offset": "string"
}

Create a new Key

This API endpoint allows you to create a new key. When the request is successful, the API will respond with a 200 status code and a JSON object that represents the newly created key. If the request is invalid, the API will respond with a 400 status code and an error message in the response body.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json
object

The id (an UUID) of the key-set with which to associate the key .With form-encoded, the notation is set.id=<set id> or set.name=<set name>. With JSON, use “set:{id:<set id>} or set:{name:<set name>}.

name
string

The name to associate with the given keys.

kid
required
string

A unique identifier for a key.

jwk
string

A JSON Web Key represented as a string.

object

A keypair in PEM format.

tags
Array of strings

An optional set of strings associated with the Key for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "set": {
    },
  • "name": "my-key",
  • "kid": "42",
  • "jwk": "{\\alg\\:\\RSA\\, \\kid\\: \\42\\, ...}",
  • "pem": {
    },
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "d958f66b-8e99-44d2-b0b4-edd5bbf24658",
  • "jwk": "{alg:RSA, kid: 42, ...}",
  • "kid": "42",
  • "name": "a-key",
  • "pem": {
    },
  • "set": {
    }
}

Delete a Key

Delete a Key

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
key_id_or_name
required
string
Example: 24D0DBDA-671C-11ED-BA0B-EF1DCCD3725

The unique identifier or the name of the Key to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

Fetch a Key

Get a Key using ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
key_id_or_name
required
string
Example: 24D0DBDA-671C-11ED-BA0B-EF1DCCD3725

The unique identifier or the name of the Key to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "id": "d958f66b-8e99-44d2-b0b4-edd5bbf24658",
  • "jwk": "{alg:RSA, kid: 42, ...}",
  • "kid": "42",
  • "name": "a-key",
  • "pem": {
    },
  • "set": {
    }
}

Upsert a Key

Create or Update Key using ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
key_id_or_name
required
string
Example: 24D0DBDA-671C-11ED-BA0B-EF1DCCD3725

The unique identifier or the name of the Key to retrieve.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json
object

The id (an UUID) of the key-set with which to associate the key .With form-encoded, the notation is set.id=<set id> or set.name=<set name>. With JSON, use “set:{id:<set id>} or set:{name:<set name>}.

name
string

The name to associate with the given keys.

kid
required
string

A unique identifier for a key.

jwk
string

A JSON Web Key represented as a string.

object

A keypair in PEM format.

tags
Array of strings

An optional set of strings associated with the Key for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "set": {
    },
  • "name": "my-key",
  • "kid": "42",
  • "jwk": "{\\alg\\:\\RSA\\, \\kid\\: \\42\\, ...}",
  • "pem": {
    },
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "d958f66b-8e99-44d2-b0b4-edd5bbf24658",
  • "jwk": "{alg:RSA, kid: 42, ...}",
  • "kid": "42",
  • "name": "a-key",
  • "pem": {
    },
  • "set": {
    }
}

Key-sets

Key-sets

List all Key-sets

Retrieve a list of all Key-sets in the system. A Key Set object holds a collection of asymmetric key objects. This entity allows to logically group keys by their purpose. Key Sets can be both tagged and filtered by tags.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

Responses

Response samples

Content type
application/json
{}

Create a new Key-set

This endpoint allows creating a new Key-set by sending a JSON object that describes the Key-set to be created.The request body must contain all the fields required to create a new Key-set.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json
name
string

The name to associate with the given key-set.

tags
Array of strings

An optional set of strings associated with the Key for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "name": "my-key_set",
  • "tags": [
    ]
}

Response samples

Content type
application/json
{}

Delete a Key-set

Delete a Key-set.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
key-set_id_or_name
required
string
Example: 46CA83EE-671C-11ED-BFAB-2FE47512C77A

The unique identifier or the name attribute of the Key Set that should be associated to the newly-created Key.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

Fetch a Key-set

This endpoint retrieves information about a specific key-set based on its ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
key-set_id_or_name
required
string
Example: 46CA83EE-671C-11ED-BFAB-2FE47512C77A

The unique identifier or the name attribute of the Key Set that should be associated to the newly-created Key.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{}

Update a Key-set

Update a Key-set using ID or name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
key-set_id_or_name
required
string
Example: 46CA83EE-671C-11ED-BFAB-2FE47512C77A

The unique identifier or the name attribute of the Key Set that should be associated to the newly-created Key.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json
name
string

The name to associate with the given key-set.

tags
Array of strings

An optional set of strings associated with the Key for grouping and filtering.

Responses

Request samples

Content type
application/json
{
  • "name": "my-key_set",
  • "tags": [
    ]
}

Response samples

Content type
application/json
{}

Information

Information routes

Retrieve Plugin Schema

Retrieve the schema of a plugin’s configuration. This is useful to understand what fields a plugin accepts, and can be used for building third-party integrations to the Kong’s plugin system.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
plugin_name
required
string
Example: basic-auth

The name of a Kong plugin

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Debug

Debug routes

Set Node Log Level of All Control Plane Nodes

Change the log level of all Control Plane nodes deployed in Hybrid (CP/DP) cluster.

See the NGINX docs for a list of accepted values.

Care must be taken when changing the log level of a node to debug in a production environment because the disk could fill up quickly. As soon as the debug logging finishes, revert back to a higher level such as notice.

It’s currently not possible to change the log level of DP and DB-less nodes.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
log_level
required
string
Enum: "info" "notice" "warn" "error" "crit"
Example: warn

Log levels are set in Kong’s configuration. Log levels increase in order of their severity

runtimeGroupId
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "log level changed"
}

Set Node Log Level of All Nodes

Change the log level of all nodes in a cluster.

See the NGINX docs for a list of accepted values.

It’s currently not possible to change the log level of DP and DB-less nodes.

Currently, when a user dynamically changes the log level for the entire cluster, if a new node joins a cluster the new node will run at the previous log level, not at the log level that was previously set dynamically for the entire cluster.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

log_level
required
string
Enum: "info" "notice" "warn" "error" "crit"
Example: warn

Log levels are set in Kong’s configuration. Log levels increase in order of their severity

Responses

Response samples

Content type
application/json
{
  • "message": "log level changed"
}

Retrieve Node Log Level of A Node

Retrieve the current log level of a node.

See the NGINX documentation for the list of possible return values.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "message": "log level: debug"
}

Set log level of a single node

Change the log level of a node.

See the NGINX documentation for the list of possible return values.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

log_level
required
string
Enum: "info" "notice" "warn" "error" "crit"
Example: warn

Log levels are set in Kong’s configuration. Log levels increase in order of their severity

Responses

Response samples

Content type
application/json
{
  • "message": "log level changed"
}

Targets

Target routes

List all Targets associated with an Upstream

List all Targets associated with a an Upstream

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

upstream_id
required
string

ID or name of the related Upstream

query Parameters
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.

Responses

Response samples

Content type
application/json
{
  • "id": "089292a7-ba3d-4d88-acf0-97b4b2e2621a",
  • "target": "203.0.113.42",
  • "upstream": {
    },
  • "weight": 100
}

Create a new Target associated with an Upstream

Create a new Target associated with an Upstream

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

upstream_id
required
string

ID or name of the related Upstream

Request Body schema: application/json
object

The unique identifier or the name of the upstream for which to update the target.

weight
integer [ 0 .. 65535 ]
Default: 100

The weight this target gets within the upstream loadbalancer (0-65535). If the hostname resolves to an SRV record, the weight value will be overridden by the value from the DNS record.

tags
Array of strings

An optional set of strings associated with the Target for grouping and filtering.

target
string

The target IP address

Responses

Request samples

Content type
application/json
{
  • "upstream": {
    },
  • "target": "192.158.1.38",
  • "weight": 100,
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "173a6cee-90d1-40a7-89cf-0329eca780a6",
  • "created_at": 1422386534,
  • "upstream": {
    },
  • "target": "example.com:8000",
  • "weight": 100,
  • "tags": [
    ]
}

Delete a a Target associated with a an Upstream

Delete a a Target associated with a an Upstream using ID or target.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
upstream_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

The unique identifier of the Upstream associated to the Certificate to be retrieved.

target_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The id of an existing target entry.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

Fetch a Target associated with an Upstream

Get a Target associated with an Upstream using ID or target.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
upstream_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

The unique identifier of the Upstream associated to the Certificate to be retrieved.

target_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The id of an existing target entry.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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

size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "id": "089292a7-ba3d-4d88-acf0-97b4b2e2621a",
  • "target": "203.0.113.42",
  • "upstream": {
    },
  • "weight": 100
}

Upsert a Target associated with an Upstream

Create or Update a Target associated with an Upstream using ID or target.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
upstream_id
required
string
Example: 7fca84d6-7d37-4a74-a7b0-93e576089a41

The unique identifier of the Upstream associated to the Certificate to be retrieved.

target_id
required
string
Example: e94215b0-9198-42ce-bf0b-98afff31b2a7

The id of an existing target entry.

runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json
object

The unique identifier or the name of the upstream for which to update the target.

weight
integer [ 0 .. 65535 ]
Default: 100

The weight this target gets within the upstream loadbalancer (0-65535). If the hostname resolves to an SRV record, the weight value will be overridden by the value from the DNS record.

tags
Array of strings

An optional set of strings associated with the Target for grouping and filtering.

target
string

The target IP address

Responses

Request samples

Content type
application/json
{
  • "upstream": {
    },
  • "target": "192.158.1.38",
  • "weight": 100,
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "089292a7-ba3d-4d88-acf0-97b4b2e2621a",
  • "target": "203.0.113.42",
  • "upstream": {
    },
  • "weight": 100
}

DP Nodes

DP Nodes

Fetch Expected Config Hash

Retrieve the expected config hash for this runtime group. The expected config hash can be used to verify if the config hash of a runtime instance is up to date with the runtime group. The config hash will be the same if they are in sync.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

Response samples

Content type
application/json
{
  • "expected_hash": "string",
  • "created_at": 0,
  • "updated_at": 0
}

List Runtime Instance Records

Returns a list of runtime instance records that are associated to this runtime group. A runtime instance record contains all the metadata information of the Kong Gateway dataplane.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
page_size
integer

The number of items to include in a page.

page_number
integer

The specific page number in the collection results.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "page": {
    }
}

List Runtime Instance End-of-Life Records

Returns a list of records of runtime instances, whose versions are approaching End of Full Support/End of Life, that are associated to this runtime group. Each record contains a runtime's id, version, and corresponding resolution message to upgrade to the closest Long Term Support version.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
page_size
integer

The number of items to include in a page.

page_number
integer

The specific page number in the collection results.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "page": {
    }
}

Fetch Runtime Instance Record

Retrieve a specific runtime instance record associated to this runtime group. A runtime instance record contains all the metadata information of the Kong Gateway dataplane.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
nodeId
required
string
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
size
integer [ 1 .. 1000 ]
Default: 100

Number of resources to be returned.

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.

Responses

Response samples

Content type
application/json
{
  • "item": {
    }
}

Delete Runtime Instance Record

Remove a specific runtime instance record associated to this runtime group. Deleting this record does not prevent the runtime instance from re-connecting to the runtime group.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
nodeId
required
string
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

DP Certificates

DP Certificates

List DP Client Certificates

Returns a list of pinned dataplane client certificates that are associated to this runtime group. A pinned dataplane certificate allows dataplanes configured with the certificate and corresponding private key to establish connection with this runtime group.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "page": {
    }
}

Pin New DP Client Certificate

Pin a new DP Client Certificate to this runtime group. A pinned dataplane certificate allows dataplanes configured with the certificate and corresponding private key to establish connection with this runtime group.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json

Request body for creating a dp-client-certificate.

cert
required
string

JSON escaped string of the certificate.

Responses

Request samples

Content type
application/json
{
  • "cert": "-----BEGIN CERTIFICATE-----\r\n*****\r\n-----END CERTIFICATE-----\r\n"
}

Response samples

Content type
application/json
{
  • "item": {
    }
}

Fetch DP Client Certificate

Retrieve a pinned dataplane client certificate associated to this runtime group. A pinned dataplane certificate allows dataplanes configured with the certificate and corresponding private key to establish connection with this runtime group.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

certificateId
required
string
query Parameters
page_size
integer

The number of items to include in a page.

page_number
integer

The specific page number in the collection results.

Responses

Response samples

Content type
application/json
{
  • "item": {
    }
}

Delete DP Client Certificate

Remove a pinned dataplane client certificate associated to this runtime group. Removing a pinned dataplane certificate would invalidate any dataplanes currently connected to this runtime group using this certificate.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

certificateId
required
string

Responses

Custom Plugin Schemas

Custom Plugin Schemas

List custom plugin schemas associated with a runtime group

Returns an array of custom plugins schemas associated with a runtime group.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

query Parameters
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.

page[before]
string
Example: page[before]=ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ

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

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "page": {
    }
}

Upload custom plugin schema

Upload a custom plugin schema associated with a runtime group.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

Request Body schema: application/json
lua_schema
required
string

The custom plugin schema; jq -Rs '.' schema.lua.

Responses

Request samples

Content type
application/json
{
  • "lua_schema": "return { name = \\\"myplugin\\\", fields = { { config = { type = \\\"record\\\", fields = { } } } } }"
}

Response samples

Content type
application/json
{
  • "item": {
    }
}

Fetch custom plugin schema

Returns information about a custom plugin from a given name.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

name
required
string
Example: myplugin

The custom plugin name

Responses

Response samples

Content type
application/json
{
  • "item": {
    }
}

Delete custom plugin schema

Delete an individual custom plugin schema.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

name
required
string
Example: myplugin

The custom plugin name

Responses

Response samples

Content type
application/problem+json
{
  • "status": 401,
  • "title": "Unauthorized",
  • "instance": "kong:trace:8347343766220159418",
  • "detail": "Unauthorized"
}

Create or update a custom plugin schema

Create or update an individual custom plugin schema.

Authorizations:
konnectAccessTokenpersonalAccessToken
path Parameters
runtimeGroupId
required
string
Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

The ID of your runtime group. This variable is available in the Konnect manager

name
required
string
Example: myplugin

The custom plugin name

Request Body schema: application/json
lua_schema
required
string

The custom plugin schema; jq -Rs '.' schema.lua.

Responses

Request samples

Content type
application/json
{
  • "lua_schema": "return { name = \\\"myplugin\\\", fields = { { config = { type = \\\"record\\\", fields = { } } } } }"
}

Response samples

Content type
application/json
{
  • "item": {
    }
}