Kubernetes clusters
Get all Kubernetes clusters for a project
Authorizations
Query parameters
projectstringRequired
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
/v2/kubernetes/clustersGET /v2/kubernetes/clusters?project=text HTTP/1.1
Host: api.mithril.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"fid": "text",
"project": "text",
"name": "text",
"region": "us-central1-a",
"created_at": "2024-01-01T00:00:00Z",
"kube_host": "text",
"ssh_keys": [
"sshkey_abc123456"
],
"instances": [
"inst_abc123456"
],
"join_command": "text",
"status": "Pending",
"deleted_at": "2024-01-01T00:00:00Z"
}
]Create a new Kubernetes cluster
Authorizations
Body
namestringRequired
projectstringRequiredExample:
proj_abc123456regionstringRequiredExample:
us-central1-assh_keysstring[] · min: 1Required
instance_typestringRequiredExample:
it_abc123456Responses
201
Successful Response
application/json
422
Validation Error
application/json
post
/v2/kubernetes/clustersPOST /v2/kubernetes/clusters HTTP/1.1
Host: api.mithril.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 130
{
"name": "text",
"project": "proj_abc123456",
"region": "us-central1-a",
"ssh_keys": [
"sshkey_abc123456"
],
"instance_type": "it_abc123456"
}{
"fid": "text",
"project": "text",
"name": "text",
"region": "us-central1-a",
"created_at": "2024-01-01T00:00:00Z",
"kube_host": "text",
"ssh_keys": [
"sshkey_abc123456"
],
"instances": [
"inst_abc123456"
],
"join_command": "text",
"status": "Pending",
"deleted_at": "2024-01-01T00:00:00Z"
}Get a specific Kubernetes cluster
Authorizations
Path parameters
cluster_fidstringRequired
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
/v2/kubernetes/clusters/{cluster_fid}GET /v2/kubernetes/clusters/{cluster_fid} HTTP/1.1
Host: api.mithril.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"fid": "text",
"project": "text",
"name": "text",
"region": "us-central1-a",
"created_at": "2024-01-01T00:00:00Z",
"kube_host": "text",
"ssh_keys": [
"sshkey_abc123456"
],
"instances": [
"inst_abc123456"
],
"join_command": "text",
"status": "Pending",
"deleted_at": "2024-01-01T00:00:00Z"
}Delete a Kubernetes cluster
Authorizations
Path parameters
cluster_fidstringRequired
Responses
204
Successful Response
No content
422
Validation Error
application/json
delete
/v2/kubernetes/clusters/{cluster_fid}DELETE /v2/kubernetes/clusters/{cluster_fid} HTTP/1.1
Host: api.mithril.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content