This API is used to get the server status in a specified server group.
GET /machines?group_id=xxxx-xx-xx-xx-xxxxxxxx HTTP/1.1
Host: <Region>.cls.tencentyun.com
Authorization: <AuthorizationString>
GET /machines
There are only common response headers but no special response headers.
Field Name | Type | Location | Required | Description |
---|---|---|---|---|
group_id | string | query | Yes | ID of the group to be queried |
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 123
{
"machines": [
{"ip": "10.10.10.10","status": 0},
{"ip": "10.10.10.11","status": 1}
]
}
There are only common response headers but no special response headers.
Field Name | Type | Required | Description |
---|---|---|---|
machines | JsonArray | Yes | Server information array |
MachineInfo
is in the following format:
Field Name | Type | Required | Description |
---|---|---|---|
ip | string | Yes | Server IP |
status | int | Yes | 0: exceptional, 1: normal |
For more information, please see Error Codes.
Was this page helpful?