Restarting Instances
Function
This API is used to restart cloud phone instances in batches.
URI
POST /v1/instances/reboot
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
x-request-id |
Yes |
String |
Unique ID of a request. |
|
X-Auth-Token |
Yes |
String |
Tenant-level token. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
instance_ids |
Yes |
Array of strings |
Instance list. The value can contain a maximum of 100 columns. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Response code. The error code specification is KooPhone.API.1001, and the number increases in ascending order. |
|
error_msg |
String |
Error description. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
0: successful. KOOPHONE.API.1000: The request parameter is incorrect. KOOPHONE.API.1001: Insufficient instance permissions. KOOPHONE.API.5005: Not all instances are running. KOOPHONE.API.9999: Internal service error. |
|
error_msg |
String |
Error message. |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
0: successful. KOOPHONE.API.1000: The request parameter is incorrect. KOOPHONE.API.1001: Insufficient instance permissions. KOOPHONE.API.5005: Not all instances are running. KOOPHONE.API.9999: Internal service error. |
|
error_msg |
String |
Error message. |
Example Requests
/v1/instances/reboot
{
"instance_ids" : [ "a44uhlf7" ]
}
Example Responses
Status code: 200
Response to the request for restarting an instance.
{
"error_code" : "0",
"error_msg" : "OK"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Response to the request for restarting an instance. |
|
400 |
Request error. |
|
500 |
Internal error. |
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