Deckhouse Kubernetes as a Service API (v1.0)
Managing Deckhouse Kubernetes as a Service clusters: create and delete clusters, get cluster information, change the Deckhouse Platform password, and more.
List clusters
Returns a list of active clusters in the current project.
Authorizations:
Responses
Response samples
- 200
- 401
- 403
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "kubernetes_version": "1.29",
- "release_channel": "EarlyAccess",
- "segment": "ru-6a",
- "status": "CREATING",
- "console_url": "string",
- "admin_fqdn": "string",
- "error": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}Create cluster
Starts creating a cluster. Creation may take up to an hour. The progress can be checked with the
Get cluster information method.
Authorizations:
Request Body schema: application/jsonrequired
| name required | string Cluster name. The name must be unique within the project. |
| kubernetes_version required | string Kubernetes version. |
| release_channel required | string Enum: "EarlyAccess" "Stable" Release channel for cluster updates. |
| segment required | string Pool segment where the cluster will be deployed. |
| deckhouse_admin_login required | string <email> Email address used to log in to the Deckhouse Kubernetes web interface. |
| deckhouse_admin_password required | string <password> >= 8 characters ^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%... Password used to log in to the Deckhouse Kubernetes web interface. Must contain at least 8 characters, including an uppercase Latin letter, a lowercase Latin letter, a digit, and one of the following special characters: |
required | object Master node configuration. |
required | object Worker node autoscaling configuration. |
Responses
Request samples
- Payload
{- "name": "string",
- "kubernetes_version": "1.29",
- "release_channel": "EarlyAccess",
- "segment": "ru-6a",
- "deckhouse_admin_login": "admin@example.com",
- "deckhouse_admin_password": "Qwe12345!",
- "master_nodes_configuration": {
- "count": 1,
- "flavor_id": "1014",
- "root_disk_size": 50
}, - "worker_nodes_configuration": {
- "flavor_id": "1022",
- "min": 0,
- "max": 1
}
}Response samples
- 201
- 400
- 401
- 403
- 409
- 500
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "kubernetes_version": "1.29",
- "release_channel": "EarlyAccess",
- "segment": "ru-6a",
- "status": "CREATING",
- "console_url": "string",
- "admin_fqdn": "string",
- "error": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Get cluster information
Returns information about a cluster by its identifier.
Authorizations:
path Parameters
| id required | string <uuid> Cluster identifier. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "kubernetes_version": "1.29",
- "release_channel": "EarlyAccess",
- "segment": "ru-6a",
- "status": "CREATING",
- "console_url": "string",
- "admin_fqdn": "string",
- "error": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Delete cluster
Deletes a cluster: changes its status to DELETING and queues asynchronous deletion. Repeated
requests for a cluster in the DELETING status do not return an error.
Authorizations:
path Parameters
| id required | string <uuid> Cluster identifier. |
Responses
Response samples
- 400
- 401
- 403
- 404
- 500
{- "code": "string",
- "message": "string"
}Update Deckhouse Kubernetes login credentials
Updates the password and, optionally, the email address used to log in to the Deckhouse Kubernetes
web interface. If deckhouse_admin_email is omitted, the current email address is not changed.
Authorizations:
path Parameters
| id required | string <uuid> Cluster identifier. |
Request Body schema: application/jsonrequired
| deckhouse_admin_password required | string <password> >= 8 characters ^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%... New password used to log in to the Deckhouse Kubernetes web interface. Must contain at least 8 characters, including an uppercase Latin letter, a lowercase Latin letter, a digit, and one of the following special characters: |
| deckhouse_admin_email | string <email> New email address used to log in to the Deckhouse Kubernetes web interface. If this value is omitted, the current email address is not changed. |
Responses
Request samples
- Payload
{- "deckhouse_admin_password": "Qwe12345!",
- "deckhouse_admin_email": "admin@example.com"
}Response samples
- 400
- 401
- 403
- 404
- 409
- 500
{- "code": "string",
- "message": "string"
}Replace Deckhouse Kubernetes login credentials
Replaces both email and password required to log in to the Deckhouse Kubernetes web interface.
Authorizations:
path Parameters
| id required | string <uuid> Cluster identifier. |
Request Body schema: application/jsonrequired
| deckhouse_admin_password required | string <password> >= 8 characters ^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%... New password used to log in to the Deckhouse Kubernetes web interface. Must contain at least 8 characters, including an uppercase Latin letter, a lowercase Latin letter, a digit, and one of the following special characters: |
| deckhouse_admin_email required | string <email> New email address used to log in to the Deckhouse Kubernetes web interface. |
Responses
Request samples
- Payload
{- "deckhouse_admin_password": "Qwe12345!",
- "deckhouse_admin_email": "admin@example.com"
}Response samples
- 400
- 401
- 403
- 404
- 409
- 500
{- "code": "string",
- "message": "string"
}Get pending destructive change
Returns the destructive change request for a cluster in the DESTRUCTIVE_CHANGES status (awaiting
approval) or the SYNCHRONIZING status (approved and being applied), including the resources that
will be recreated. Returns 404 if the cluster has no pending destructive change.
Authorizations:
path Parameters
| id required | string <uuid> Cluster identifier. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "PENDING",
- "change_type": "string",
- "plan": {
- "cluster_status": "ok",
- "configuration_status": "InSync",
- "opentofu_migration_status": "InSync",
- "node_templates": [
- {
- "name": "master",
- "status": "ok"
}
], - "nodes": [
- {
- "name": "node-1",
- "group": "master",
- "status": "destructively_changed",
- "destructive_changes": {
- "resourced_recreated": [
- {
- "resource_type": "openstack_compute_instance_v2",
- "reason": "image_id, image_name changed",
- "current_value": {
- "id": "a",
- "image_id": "old-image",
- "image_name": "Ubuntu 22.04"
}, - "next_value": {
- "image_id": "new-image",
- "image_name": "Ubuntu 24.04"
}
}
]
}
}
]
}, - "approved_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Approve pending destructive change
Approves the destructive change request currently awaiting approval for a cluster in the
DESTRUCTIVE_CHANGES status and queues its application. Before approving, review the pending change
with the Get pending destructive change method.
Authorizations:
path Parameters
| id required | string <uuid> Cluster identifier. |
Responses
Response samples
- 202
- 400
- 401
- 403
- 404
- 409
- 500
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "PENDING",
- "change_type": "string",
- "plan": {
- "cluster_status": "ok",
- "configuration_status": "InSync",
- "opentofu_migration_status": "InSync",
- "node_templates": [
- {
- "name": "master",
- "status": "ok"
}
], - "nodes": [
- {
- "name": "node-1",
- "group": "master",
- "status": "destructively_changed",
- "destructive_changes": {
- "resourced_recreated": [
- {
- "resource_type": "openstack_compute_instance_v2",
- "reason": "image_id, image_name changed",
- "current_value": {
- "id": "a",
- "image_id": "old-image",
- "image_name": "Ubuntu 22.04"
}, - "next_value": {
- "image_id": "new-image",
- "image_name": "Ubuntu 24.04"
}
}
]
}
}
]
}, - "approved_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}