Перейти к основному содержимому

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.

Clusters

Cluster management: create, get, and delete clusters, and change login credentials.

List clusters

Returns a list of active clusters in the current project.

Authorizations:
iam_token_project_scoped

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

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:
iam_token_project_scoped
Request Body schema: application/json
required
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

Content type
application/json
{
  • "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": {
    },
  • "worker_nodes_configuration": {
    }
}

Response samples

Content type
application/json
{
  • "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:
iam_token_project_scoped
path Parameters
id
required
string <uuid>

Cluster identifier.

Responses

Response samples

Content type
application/json
{
  • "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:
iam_token_project_scoped
path Parameters
id
required
string <uuid>

Cluster identifier.

Responses

Response samples

Content type
application/json
{
  • "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:
iam_token_project_scoped
path Parameters
id
required
string <uuid>

Cluster identifier.

Request Body schema: application/json
required
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

Content type
application/json
{
  • "deckhouse_admin_password": "Qwe12345!",
  • "deckhouse_admin_email": "admin@example.com"
}

Response samples

Content type
application/json
{
  • "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:
iam_token_project_scoped
path Parameters
id
required
string <uuid>

Cluster identifier.

Request Body schema: application/json
required
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

Content type
application/json
{
  • "deckhouse_admin_password": "Qwe12345!",
  • "deckhouse_admin_email": "admin@example.com"
}

Response samples

Content type
application/json
{
  • "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:
iam_token_project_scoped
path Parameters
id
required
string <uuid>

Cluster identifier.

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "status": "PENDING",
  • "change_type": "string",
  • "plan": {
    },
  • "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:
iam_token_project_scoped
path Parameters
id
required
string <uuid>

Cluster identifier.

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "status": "PENDING",
  • "change_type": "string",
  • "plan": {
    },
  • "approved_at": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Kubernetes versions

Kubernetes versions available for creating clusters.

List Kubernetes versions

Returns a list of Kubernetes versions available for creating clusters.

Authorizations:
iam_token_project_scoped

Responses

Response samples

Content type
application/json
{
  • "kube_versions": [
    ]
}