Download kubeconfig contents
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.k0rdent.ai/v1/regions/{region}/projects/{project}/compute/clusters/{clusterId}/kubeconfigs/{id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.k0rdent.ai/v1/regions/{region}/projects/{project}/compute/clusters/{clusterId}/kubeconfigs/{id}/download"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url https://api.k0rdent.ai/v1/regions/{region}/projects/{project}/compute/clusters/{clusterId}/kubeconfigs/{id}/download \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.k0rdent.ai/v1/regions/{region}/projects/{project}/compute/clusters/{clusterId}/kubeconfigs/{id}/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)"<string>"{
"error": {
"code": 123,
"message": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": 123,
"message": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": 123,
"message": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": 123,
"message": "<string>",
"details": [
{}
]
}
}kubeconfigs
Download kubeconfig contents
Visibility: internal · public ( OpenAPI Custom Extension: x-visibility )
“Kubeconfig issuance API”; Download kubeconfig.
GET
/
v1
/
regions
/
{region}
/
projects
/
{project}
/
compute
/
clusters
/
{clusterId}
/
kubeconfigs
/
{id}
/
download
Download kubeconfig contents
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.k0rdent.ai/v1/regions/{region}/projects/{project}/compute/clusters/{clusterId}/kubeconfigs/{id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.k0rdent.ai/v1/regions/{region}/projects/{project}/compute/clusters/{clusterId}/kubeconfigs/{id}/download"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url https://api.k0rdent.ai/v1/regions/{region}/projects/{project}/compute/clusters/{clusterId}/kubeconfigs/{id}/download \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.k0rdent.ai/v1/regions/{region}/projects/{project}/compute/clusters/{clusterId}/kubeconfigs/{id}/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)"<string>"{
"error": {
"code": 123,
"message": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": 123,
"message": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": 123,
"message": "<string>",
"details": [
{}
]
}
}{
"error": {
"code": 123,
"message": "<string>",
"details": [
{}
]
}
}Authorizations
Bearer token authentication using OAuth2/OIDC tokens
Path Parameters
Region identifier
Project identifier
Unique cluster identifier
Unique kubeconfig identifier
Response
Kubeconfig body
The response is of type string.
Was this page helpful?