AI Gateways

Create an AI Gateway

Changed on

Creates a new AI Gateway in the organization.

post/v1/ai-gateways

Request

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

Request body

CreateAIGatewayRequest required
deployment_type, 'hybrid' | 'managed' | 'serverless'

How this AI Gateway's control plane is deployed. Set at creation time and cannot be changed afterward.

min_runtime_version, string

The minimum AI Gateway runtime version supported by this AI Gateway. This is the lowest data plane version that may receive configuration from it, and it controls which features the API accepts.

Data planes older than this version still connect for topology visibility.

Can only be set when deployment_type is hybrid. For managed and serverless deployments, Konnect manages this value and it is read-only.

When not specified, the latest generally available runtime version is used.

When runtime_auto_upgrade is enabled (the default), this value is raised automatically to track the minimum runtime version reported across connected data planes, so any value set here may be superseded as the fleet upgrades.

runtime_auto_upgrade, boolean

Whether the control plane should automatically raise min_runtime_version to match the DP fleet's minimum runtime version (the lowest AI Gateway runtime version reported across all connected data planes) as that value increases.

Can only be set when deployment_type is hybrid. For managed and serverless deployments, Konnect manages runtime upgrades and this value is read-only.

display_name, string required

The display name for this AI Gateway.

name, string required

The name for this AI Gateway. This value is immutable after creation.

description, string

The description of the AI Gateway.

proxy_urls, AIGatewayProxyURL[]

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

labels, PublicLabels

Public labels store information about an entity that can be used for filtering a list of objects.

Public labels are intended to store PUBLIC metadata.

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

managed_by, ManagedBy

Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, terraform).

Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (-), underscores (_), and dots (.). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.

Example request

{
  "deployment_type": "hybrid",
  "min_runtime_version": "2.0",
  "display_name": "My AI Gateway",
  "name": "my-ai-gateway",
  "description": "An AI Gateway for my organization.",
  "proxy_urls": [
    {
      "host": "example.com",
      "port": 443,
      "protocol": "https"
    }
  ],
  "labels": {
    "category": "finance"
  },
  "managed_by": {
    "owner": "terraform"
  }
}

Response

AI Gateway created successfully.

AIGateway required
display_name, string required

The display name for this AI Gateway.

name, string required

The name for this AI Gateway. This value is immutable after creation.

description, string

The description of the AI Gateway.

proxy_urls, AIGatewayProxyURL[]

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

labels, PublicLabels

Public labels store information about an entity that can be used for filtering a list of objects.

Public labels are intended to store PUBLIC metadata.

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

managed_by, ManagedBy

Stores information about what manages this entity, such as the tool or system responsible for its lifecycle (for example, terraform).

Keys must be 1–63 characters long, start and end with an alphanumeric character, and may contain dashes (-), underscores (_), and dots (.). Values must be 1–127 characters long and must not be empty. Keys and values must not contain spaces or control characters.

id, string uuid required

Contains a unique identifier used for this resource.

min_runtime_version, string

The minimum AI Gateway runtime version supported by this AI Gateway. This is the lowest data plane version that may receive configuration from it, and it controls which features the API accepts.

Data planes older than this version still connect for topology visibility.

Can only be set when deployment_type is hybrid. For managed and serverless deployments, Konnect manages this value and it is read-only.

When not specified, the latest generally available runtime version is used.

When runtime_auto_upgrade is enabled (the default), this value is raised automatically to track the minimum runtime version reported across connected data planes, so any value set here may be superseded as the fleet upgrades.

runtime_auto_upgrade, boolean

Whether the control plane should automatically raise min_runtime_version to match the DP fleet's minimum runtime version (the lowest AI Gateway runtime version reported across all connected data planes) as that value increases.

Can only be set when deployment_type is hybrid. For managed and serverless deployments, Konnect manages runtime upgrades and this value is read-only.

deployment_type, 'hybrid' | 'managed' | 'serverless' required

How this AI Gateway's control plane is deployed.

endpoints, object required

Object containing AI Gateway access endpoints.

config_version, string

The version identification of the latest configuration of the gateway. Any change to an entity under this gateway can result in a new version. The config_version is generated in the control plane and used to verify if an AI Gateway node configuration is up to date.

created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time required

An ISO-8601 timestamp representation of entity update date.

konnect_managed, boolean

An immutable read-only flag to identify resource managed by Konnect services.

Example response

{
  "display_name": "My AI Gateway",
  "name": "my-ai-gateway",
  "description": "An AI Gateway for my organization.",
  "proxy_urls": [
    {
      "host": "example.com",
      "port": 443,
      "protocol": "https"
    }
  ],
  "labels": {
    "category": "finance"
  },
  "managed_by": {
    "owner": "terraform"
  },
  "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "min_runtime_version": "2.0",
  "deployment_type": "hybrid",
  "endpoints": {
    "configuration": "https://acfe5f253f.cp.konghq.com",
    "telemetry": "https://acfe5f253f.tp0.konghq.com"
  },
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z",
  "konnect_managed": true
}

Changes

    • breaking

      the proxy_urls/items/host request property's minLength was increased from 0 to 1

    • breaking

      the proxy_urls/items/protocol request property's minLength was increased from 0 to 1

    • breaking

      the response's body type changed from no type to object for status

    43 more changes in this revision