Retrieves statistics information for instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidsw:ListInstanceStatistics |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v2/instancestatistics HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceIds |
string |
Yes |
The IDs of the workspaces. Separate multiple IDs with commas (,). For more information, see ListWorkspaces. |
27218,34956 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The statistics information for the instances. |
||
| RequestId |
string |
The request ID. |
E7D55162-4489-1619-AAF5-3F97D5FCA948 |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Message |
string |
The message returned. |
"XXX" |
| Code |
string |
The status code. Valid values:
|
InternalError |
| HttpStatusCode |
integer |
The HTTP status code. Valid values:
|
400 |
| Statistics |
object |
The statistics information. |
|
|
object |
A statistic, such as RunningCount: 3. |
||
|
integer |
The value of the statistic. |
5 |
Examples
Success response
JSON format
{
"RequestId": "E7D55162-4489-1619-AAF5-3F97D5FCA948",
"Success": true,
"Message": "\"XXX\"",
"Code": "InternalError",
"HttpStatusCode": 400,
"Statistics": {
"key": {
"key": 5
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.