Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
16 KiB
Querying DCS Instance Status
Function
This API is used to query the number of instances in different states.
URI
GET /v1.0/{project_id}/instances/status?includeFailure={includeFailure}
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
project_id |
String |
Yes |
Project ID. |
includeFailure |
String |
No |
An indicator of whether the number of DCS instances that failed to be created will be returned to the API caller. Options:
|
Request
Request parameters
None
Example request
GET https://{dcs_endpoint}/v1.0/{project_id}/instances/status?includeFailure=true
Response
Response parameters
Parameter |
Type |
Description |
|---|---|---|
creating_count |
Integer |
Number of instances that are being created. |
deleting_count |
Integer |
Number of instances that are being deleted. |
running_count |
Integer |
Number of running instances. |
error_count |
Integer |
Number of abnormal instances. |
restarting_count |
Integer |
Number of instances that are being restarted. |
createfailed_count |
Integer |
Number of instances that fail to be created. |
extending_count |
Integer |
Number of instances that are being scaled up. |
upgrading_count |
Integer |
Number of instances that are being upgraded. |
paying_count |
Integer |
Number of instances for which payment is in progress. |
migrating_count |
Integer |
Number of instances on which data migration is in progress. |
flushing_count |
Integer |
Number of instances whose data is being cleared. |
closed_count |
Integer |
Number of instances that have been stopped. |
starting_count |
Integer |
Number of instances that are being started. |
closing_count |
Integer |
Number of instances that are being stopped. |
restoring_count |
Integer |
Number of instances for which data restoration is in progress. |
Example response
{"memcached":{
"paying_count":0,
"migrating_count":0,
"error_count":0,
"restarting_count":0,
"createfailed_count":0,
"flushing_count":0,
"closed_count":0,
"extending_count":0,
"creating_count":0,
"starting_count":0,
"closing_count":0,
"running_count":0,
"upgrading_count":0,
"restoring_count":0
},
"paying_count":0,
"migrating_count":0,
"error_count":0,
"restarting_count":0,
"createfailed_count":0,
"flushing_count":0,
"redis":{
"paying_count":0,
"migrating_count":0,
"error_count":0,
"restarting_count":0,
"createfailed_count":0,
"flushing_count":0,
"closed_count":0,
"extending_count":2,
"creating_count":0,
"starting_count":0,
"closing_count":0,
"running_count":1,
"upgrading_count":0,
"restoring_count":0
},
"closed_count":0,
"extending_count":2,
"creating_count":0,
"starting_count":0,
"closing_count":0,
"running_count":1,
"upgrading_count":0,
"restoring_count":0}
}