Skip to main content
POST
/
v1
/
regions
/
{region}
/
compute
/
clusters
/
{clusterId}
/
kubeconfigs
Issue kubeconfig
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({ttl: 3600})
};

fetch('https://api.example.com/v1/regions/{region}/compute/clusters/{clusterId}/kubeconfigs', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": {
    "kubeconfig": "<string>",
    "expiresAt": "2023-11-07T05:31:56Z"
  }
}

Path Parameters

region
string
required

Region identifier

clusterId
string
required

Cluster identifier

Body

application/json
ttl
number
default:3600

TTL in seconds

Response

200 - application/json

Kubeconfig issued

success
enum<boolean>
Available options:
true
data
object