Create Virtual Cluster
Changed onCreates a new virtual cluster associated with the specified Event Gateway.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
The UUID of your Gateway.
Request body
The name of the virtual cluster.
A human-readable description of the virtual cluster.
The backend cluster associated with the virtual cluster.
Either id or name must be provided. Following changes to the backend cluster name won't affect the reference, as the system will create the entities relationship by id.
How to handle authentication from clients.
It tries to authenticate with every rule sequentially one by one. It succeeds on the first match, and fails if no rule matches.
Namespace allows to implement multitenancy using a single backend cluster. It allows to either hide or enforce a static prefix on resources (topics, consumer group IDs, transaction IDs).
Topic aliases allow exposing backend topics under additional names. An alias creates a new entry point to the same physical data. The alias topic field references namespace-visible names (if namespace is configured). Aliases are independent of namespace and can be used without it.
Requires a minimum runtime version of 1.2.
Configures whether or not ACL policies are enforced on the gateway.
- enforce_on_gateway means the gateway enforces its own ACL policies for this virtual cluster and does not forward ACL-related commands to the backend cluster. Note that if there are no ACL policies configured, all access is denied.
- passthrough tells the gateway to forward all ACL-related commands.
The DNS label used in the bootstrap server URL to identify the virtual cluster when using SNI routing. The format follows the RFC1035: 1-63 chars, lowercase alphanumeric or '-', must start and end with an alphanumeric character.
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
{
"authentication": [
{
"principals": [
{
"password": "${vault.env['MY_ENV_VAR']}"
}
]
}
],
"dns_label": "vcluster-1",
"labels": {
"env": "test"
}
}Response
Created
A representation of a Kafka cluster that maps to a backend cluster.
The unique identifier of the virtual cluster.
A human-readable description of the virtual cluster.
The backend cluster associated with the virtual cluster.
How to handle authentication from clients.
It tries to authenticate with every rule sequentially one by one. It succeeds on the first match, and fails if no rule matches.
Namespace allows to implement multitenancy using a single backend cluster. It allows to either hide or enforce a static prefix on resources (topics, consumer group IDs, transaction IDs).
Topic aliases allow exposing backend topics under additional names. An alias creates a new entry point to the same physical data. The alias topic field references namespace-visible names (if namespace is configured). Aliases are independent of namespace and can be used without it.
Requires a minimum runtime version of 1.2.
The name of the virtual cluster.
The DNS label used in the bootstrap server URL to identify the virtual cluster when using SNI routing. The format follows the RFC1035: 1-63 chars, lowercase alphanumeric or '-', must start and end with an alphanumeric character.
Configures whether or not ACL policies are enforced on the gateway.
- enforce_on_gateway means the gateway enforces its own ACL policies for this virtual cluster and does not forward ACL-related commands to the backend cluster. Note that if there are no ACL policies configured, all access is denied.
- passthrough tells the gateway to forward all ACL-related commands.
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 "_".
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Example response
{
"authentication": [
{
"principals": [
{
"password": "${vault.env['MY_ENV_VAR']}"
}
]
}
],
"dns_label": "vcluster-1",
"labels": {
"env": "test"
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- breaking
added the pattern
^[A-Za-z0-9._-]*[A-Za-z0-9_-][A-Za-z0-9._-]*$to the request propertynamespace/prefix - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status
22 more changes in this revision
- breaking