doc-exports/docs/css/api-ref/css_03_0021.html
gtema 72909318a9 Add css docs
Reviewed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
2022-10-19 13:04:46 +00:00

7.8 KiB

Restarting a Cluster

Function

This API is used to restart a cluster. Restarting the cluster will interrupt ongoing services.

URI

POST /v1.0/{project_id}/clusters/{cluster_id}/restart
Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

cluster_id

Yes

String

ID of the cluster to be restarted.

Request

None

Response

Table 2 Parameter description

Parameter

Type

Description

jobId

String

ID of the restart task.

Examples

Example request

POST /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/47e49a5e-8ced-4d0d-ae15-2af62ac468e3/restart

Example response

{ 
 "jobId": [  
"ff8080815fa0fa5e015fa365b6300007" 
 ]
 }

Status Code

Table 3 describes the status code.

Table 3 Status code

Status Code

Code

Status Code Description

400

BadRequest

Invalid request.

The client should not repeat the request without modifications.

404

NotFound

The requested resource cannot be found.

The client should not repeat the request without modifications.

200

OK

The request is processed successfully.