Stops a batch of instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidsw:StopInstance |
none |
*All Resource
|
None | None |
Request syntax
PUT /api/v2/batch/instances/stop HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| InstanceIds |
array |
Yes |
The list of instance IDs to stop. |
|
|
string |
No |
The ID of the instance to stop. |
['dsw-msq7tjk9kox7v26il3'] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
E7D55162-4489-1619-AAF5-3F97D5FCA948 |
| Success |
boolean |
Indicates whether the request was successful. |
True |
| Message |
string |
The returned message. |
"XXX" |
| Code |
string |
The error code for the instance operation. |
PermissionError |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| AccessDeniedDetail |
object |
Details about the access denial. |
|
|
string |
Details about the access denial. |
{} |
|
| InstanceIds |
array |
The list of IDs for the stopped instances. |
|
|
string |
The ID of the instance that was stopped. |
['dsw-fcbhy7b9nseilom7fw'] |
Examples
Success response
JSON format
{
"RequestId": "E7D55162-4489-1619-AAF5-3F97D5FCA948",
"Success": true,
"Message": "\"XXX\"",
"Code": "PermissionError",
"HttpStatusCode": 200,
"AccessDeniedDetail": {
"key": "{}"
},
"InstanceIds": [
"['dsw-fcbhy7b9nseilom7fw']"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.