SNIs

Create a new SNI

Changed on

Create a new SNI

post/{workspace}/snis

Request

  • Base URL
    http://localhost:8001
  • Auth
    API key in header Kong-Admin-Token

Path parameters

workspace, string required
Example:team-payments

The name of the workspace

Request body

SNI required

An SNI object represents a many-to-one mapping of hostnames to a certificate. That is, a certificate object can have many hostnames associated with it; when Kong receives an SSL request, it uses the SNI field in the Client Hello to lookup the certificate object based on the SNI associated with the certificate.

certificate, object required

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 nullable

Unix epoch when the resource was created.

id, string nullable

A string representing a UUID (universally unique identifier).

name, string required

The SNI name to associate with the given certificate.

tags, string[] nullable

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

updated_at, integer nullable

Unix epoch when the resource was last updated.

Example request

{
  "certificate": {
    "id": "bd380f99-659d-415e-b0e7-72ea05df3218"
  },
  "id": "36c4566c-14cc-4132-9011-4139fcbbe50a",
  "name": "some.example.org"
}

Response

Successfully created SNI

SNI required

An SNI object represents a many-to-one mapping of hostnames to a certificate. That is, a certificate object can have many hostnames associated with it; when Kong receives an SSL request, it uses the SNI field in the Client Hello to lookup the certificate object based on the SNI associated with the certificate.

certificate, object required

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 nullable

Unix epoch when the resource was created.

id, string nullable

A string representing a UUID (universally unique identifier).

name, string required

The SNI name to associate with the given certificate.

tags, string[] nullable

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

updated_at, integer nullable

Unix epoch when the resource was last updated.

Example response

{
  "certificate": {
    "id": "bd380f99-659d-415e-b0e7-72ea05df3218"
  },
  "id": "36c4566c-14cc-4132-9011-4139fcbbe50a",
  "name": "some.example.org"
}

Changes