MeshExternalService

Creates MeshExternalService entity

Changed on

Creates a resource using the name in the body. An existing resource is never modified. Requires Kuma 3.0 or later.

post/v3/mesh/control-planes/{cpId}/meshes/{mesh}/meshexternalservices

Request

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

Path parameters

cpId, string uuid required

Id of the Konnect resource

mesh, string required

name of the mesh

Request body

MeshExternalServiceItem required

MeshExternalService represents external services (outside the mesh) that mesh services can communicate with securely. It enables mesh services to reach external APIs, databases, or third-party services by defining endpoints, ports, protocols, and optional TLS configuration for secure outbound connections with hostname-based routing support.

type, 'MeshExternalService' required

the type of the resource

mesh, string

Mesh is the name of the Kuma mesh this resource belongs to. It may be omitted for cluster-scoped resources.

kri, string

A unique identifier for this resource instance used by internal tooling and integrations. Typically derived from resource attributes and may be used for cross-references or indexing

snis, object[]

List of SNIs (Server Name Indication) advertised by xDS for this destination, one entry per port, sorted by port ascending. Present for MeshService, MeshMultiZoneService and MeshExternalService.

name, string required

Name of the Kuma resource

labels, object

The labels to help identity resources

spec, object required

Spec is the specification of the Kuma MeshExternalService resource.

creationTime, string date-time

Time at which the resource was created

modificationTime, string date-time

Time at which the resource was updated

status, object

Status is the current status of the Kuma MeshExternalService resource.

Example request

{
  "kri": "kri_extsvc_default_zone-east_kuma-system_myresource1_",
  "snis": [
    {
      "port": 8080,
      "sni": "sni.extsvc.default.zone-east.kuma-system.myresource1.8080"
    }
  ],
  "spec": {
    "endpoints": [
      {
        "address": "example.com"
      }
    ]
  },
  "creationTime": "1901-01-01T00:00:00.000Z",
  "modificationTime": "1901-01-01T00:00:00.000Z"
}

Response

Successful response

object required
warnings, string[]

warnings is a list of warning messages to return to the requesting Kuma API clients. Warning messages describe a problem the client making the API request should correct or be aware of.

Changes