Control Planes

Create Control Plane

Changed on

Create a control plane in the Konnect Organization.

post/v2/control-planes

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Request body

CreateControlPlaneRequest required

The request schema for the create control plane request.

name, string required

The name of the control plane.

description, string

The description of the control plane in Konnect.

cluster_type, 'CLUSTER_TYPE_CONTROL_PLANE' | 'CLUSTER_TYPE_K8S_INGRESS_CONTROLLER' | 'CLUSTER_TYPE_CONTROL_PLANE_GROUP' | 'CLUSTER_TYPE_SERVERLESS' | 'CLUSTER_TYPE_KAFKA_NATIVE_EVENT_PROXY' | 'CLUSTER_TYPE_SERVERLESS_V1'

The ClusterType value of the cluster associated with the Control Plane.

auth_type, 'pinned_client_certs' | 'pki_client_certs'

The auth type value of the cluster associated with the Runtime Group.

cloud_gateway, boolean

Whether this control-plane can be used for cloud-gateways.

proxy_urls, ProxyURL[]

Array of proxy URLs associated with reaching the data-planes connected to a control-plane.

labels, Labels

Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

Example request

{
  "name": "Test Control Plane",
  "description": "A test control plane for exploration.",
  "cluster_type": "CLUSTER_TYPE_CONTROL_PLANE",
  "auth_type": "pinned_client_certs",
  "proxy_urls": [
    {
      "host": "example.com",
      "port": 443,
      "protocol": "https"
    }
  ],
  "labels": {
    "env": "test"
  }
}

Response

A response to creating a control plane.

ControlPlane required

The control plane object contains information about a Kong control plane.

id, string uuid required

The control plane ID.

name, string required

The name of the control plane.

description, string required

The description of the control plane in Konnect.

labels, Labels required

Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

config, object required

CP configuration object for related access endpoints.

created_at, string date-time required

An ISO-8604 timestamp representation of control plane creation date.

updated_at, string date-time required

An ISO-8604 timestamp representation of control plane update date.

Example response

{
  "id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "name": "Test Control Plane",
  "description": "A test control plane for exploration.",
  "labels": {
    "env": "test"
  },
  "config": {
    "control_plane_endpoint": "https://acfe5f253f.cp.konghq.com",
    "telemetry_endpoint": "https://acfe5f253f.tp0.konghq.com",
    "cluster_type": "CLUSTER_TYPE_CONTROL_PLANE",
    "auth_type": "pinned_client_certs",
    "proxy_urls": [
      {
        "host": "example.com",
        "port": 443,
        "protocol": "https"
      }
    ]
  },
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes

    • info

      the cloud_gateway request property default value false was removed

    • info

      the cloud_gateway request property default value false was added

    • info

      the response optional property detail became read-only for the status

    5 more changes in this revision