ByCloud Docs
GuidesCLIAPISDK
get/v1/kubernetes/clusters/{cluster_id}/kubeconfig

Get cluster kubeconfig

Get the kubeconfig file for a Kubernetes cluster

Path Parameters

cluster_id

string<uuid>required

path

Kubernetes Cluster ID

Example: "550e8400-e29b-41d4-a716-446655440000"

Responses

200

Kubeconfig content

Content-Type: application/json

kubeconfig

stringoptional

Base64-encoded kubeconfig file content

401

Authentication required or token invalid

Content-Type: application/json

error

objectrequired
404

Resource not found

Content-Type: application/json

error

objectrequired
409

Cluster is not ready

Content-Type: application/json

error

objectrequired
500

Internal server error

Content-Type: application/json

error

objectrequired
curl -X GET "https://api.spo1.mycloud.com/v1/kubernetes/clusters/550e8400-e29b-41d4-a716-446655440000/kubeconfig" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json"