Kong · Schema

Kong Gateway Service

A Service object represents an upstream API or microservice that Kong Gateway proxies requests to. Services are the core entities used to configure the upstream URL that incoming requests are forwarded to. Each Service can have multiple Routes associated with it.

API GatewayLuaNGINXOpen Source

Properties

Name Type Description
id string The unique identifier (UUID) of the Service, auto-generated by Kong upon creation.
name string An optional unique human-readable name for the Service. Used for identification and as an alternative to the UUID when referencing the Service in the Admin API.
protocol string The protocol used to communicate with the upstream. Accepted values are http, https, grpc, grpcs, tcp, tls, udp, ws, and wss.
host string The host of the upstream server. This can be a hostname or an IP address. Note that the host value is case-sensitive.
port integer The upstream server port.
path stringnull The path to be used in requests to the upstream server. This is prepended to the path specified in the incoming request.
retries integer The number of retries to execute upon failure to proxy. Zero means no retries.
connect_timeout integer The timeout in milliseconds for establishing a connection to the upstream server.
write_timeout integer The timeout in milliseconds between two successive write operations for transmitting a request to the upstream server.
read_timeout integer The timeout in milliseconds between two successive read operations for receiving a response from the upstream server.
url string Shorthand attribute to set protocol, host, port, and path at once. This field is write-only and is not returned in GET responses.
tags arraynull An optional set of strings associated with the Service for grouping and filtering. Each tag must be composed of printable ASCII characters.
client_certificate objectnull Certificate to be used as client certificate while TLS handshaking to the upstream server. Referenced by UUID of a Certificate entity.
tls_verify booleannull Whether to enable verification of upstream server TLS certificate. If set to null, the Nginx default is respected.
tls_verify_depth integernull Maximum depth of chain while verifying upstream server TLS certificate. If set to null, the Nginx default is respected.
ca_certificates arraynull Array of CA Certificate object UUIDs that are used to build the trust store while verifying upstream server TLS certificate.
enabled boolean Whether the Service is active. If set to false, the proxy behavior will act as if any Routes attached to it do not exist.
created_at integer Unix epoch timestamp (in seconds) of when the Service entity was created.
updated_at integer Unix epoch timestamp (in seconds) of when the Service entity was last updated.
View JSON Schema on GitHub