Get kubeconfig for a Kubernetes cluster
GET/api/v1/clusters/:clusterId/kubeconfig
Retrieves the kubeconfig file for a specific Kubernetes cluster. Only admin or platform-admin can fetch kubeconfig.
Request
Path Parameters
clusterId stringrequired
Cluster Id
Header Parameters
X-API-KEY stringrequired
APIKey
Responses
- 200
- 403
- 404
- 500
kubeconfig file
- application/json
- Schema
- Example (from schema)
Schema
data string
id string
message string
status string
{
"data": "string",
"id": "string",
"message": "string",
"status": "string"
}
forbidden to fetch kubeconfig, only admin or platform-admin can fetch kubeconfig.
- application/json
- Schema
- Example (from schema)
Schema
error string
error_code string
{
"error": "string",
"error_code": "string"
}
cluster not found
- application/json
- Schema
- Example (from schema)
Schema
error string
error_code string
{
"error": "string",
"error_code": "string"
}
internal server error
- application/json
- Schema
- Example (from schema)
Schema
error string
error_code string
{
"error": "string",
"error_code": "string"
}
Loading...