Skip to main content
GET
/
v1
/
kubernetes
/
cluster-templates
List cluster templates
const options = {method: 'GET'};

fetch('http://localhost:4065/v1/kubernetes/cluster-templates', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": {
    "items": [
      {}
    ],
    "continueToken": "<string>"
  },
  "meta": {
    "requestId": "<string>",
    "timestamp": "<string>"
  }
}

Query Parameters

labelSelector
string

Kubernetes label selector

Example:

"app.kubernetes.io/managed-by=k0rdent-ui"

namespace
string

Filter to a specific namespace (omit for all namespaces)

Example:

"kcm-system"

limit
integer

Maximum number of items to return

Required range: 1 <= x <= 1000
continueToken
string

Continuation token for paginated results

Response

List of cluster templates

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required