Skip to main content
GET
/
v1
/
clusters
/
{id}
/
kube
/
{path}
Proxy to Kubernetes API
curl --request GET \
  --url https://api.cnap.tech/v1/clusters/{id}/kube/{path} \
  --header 'Authorization: Bearer <token>'
{
  "error": {
    "code": "not_found",
    "message": "Resource not found",
    "param": "name",
    "suggestion": "Run `cnap clusters list` to see available clusters",
    "details": null
  }
}

Authorizations

Authorization
string
header
required

Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://cnap.tech/account/tokens

Path Parameters

id
string
required

Cluster ID

path
string
required

Kubernetes API path

Example:

"api/v1/namespaces"

Response

Kubernetes API response