Skip to content

Download Cluster Kubeconfig

GET
/clusters/{cluster_id}/kubeconfig
curl --request GET \
--url https://api.mengi.cloud/clusters/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/kubeconfig

Download the kubeconfig for a cluster the user administers.

Hands out full cluster access, so org clusters require the ADMIN role (same gate as autoscaling changes). Management clusters are only downloadable through the platform-admin endpoint.

cluster_id
required
Cluster Id
string format: uuid

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}