Skip to content

Get Kubeconfig

GET
/tenant_clusters/{tenant_cluster_id}/kubeconfig/
curl --request GET \
--url 'https://api.e2enetworks.com/myaccount/api/v1/gpu/tenant_clusters/{tenant_cluster_id}/kubeconfig/?project_id=<PROJECT_ID>&location=<LOCATION>&apikey=<API_KEY>' \
--header 'Authorization: Bearer <API_TOKEN>'

Returns the cluster’s kubeconfig as YAML text in data.kubeconfig. It is available while the cluster is worker_joined or ready; in any other status the call returns 412.

The kubeconfig gives full administrative access to the cluster and cannot be rotated or revoked; keep it as you would a private key.

tenant_cluster_id
required
integer

Kubernetes cluster ID, as returned by List Kubernetes Clusters.

project_id
required
integer

Project ID

active_iam
integer

Active IAM ID (To access contact person account) Find your Active IAM ID here

location
required
string
Allowed values: Delhi Chennai

Location

The cluster’s kubeconfig.

Media typeapplication/json
object
code
integer
data
object
tenant_cluster_id
integer
kubeconfig

The kubeconfig file’s contents.

string
errors
object
message
string

Example

{
"code": 200,
"data": {
"tenant_cluster_id": 103,
"kubeconfig": "<KUBECONFIG_YAML>"
},
"errors": {},
"message": "Tenant cluster kubeconfig fetched successfully"
}