Restarting an Instance
Function
This API is used to restart an instance.
Calling Method
For details, see Calling APIs.
URI
POST /v2/{project_id}/{engine}/instances/{instance_id}/restart
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID. |
engine |
Yes |
String |
Engine type. |
instance_id |
Yes |
String |
Instance ID. |
Request Parameters
Parameter |
Type |
Description |
---|---|---|
nodes |
Array of strings |
Node list. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
instance_id |
String |
Instance ID. |
nodes |
Array of strings |
Node list. |
result |
String |
Result. |
Example Requests
POST https://{endpoint}/v2/{project_id}/{engine}/instances/{instance_id}/restart
Example Responses
Status code: 200
Successful
{ "instance_id" : "68fdc9a8-805e-439d-8dd9-25adc1c58bf6", "nodes" : [ { "name" : "broker-0" }, { "name" : "broker-1" }, { "name" : "broker-2" } ], "result" : "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
Successful |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot