tencent cloud

Cloud Log Service

DocumentationCloud Log Service

Getting Machine Status

Focus Mode
Font Size
Last updated: 2024-12-16 16:18:21

Feature Description

This API is used to get the status of the machines in a specified machine group.

Request

Sample request

GET /machines?group_id=xxxx-xx-xx-xx-xxxxxxxx HTTP/1.1
Host: <Region>.cls.tencentyun.com
Authorization: <AuthorizationString>

Request line

GET /machines

Request header

There are only common request headers but no special request headers.

Request parameters

Field Name
Type
Location
Required
Description
group_id
string
query
Yes
ID of the group to be queried

Response

Sample response

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}
]
}

Response header

There are only common response headers but no special response headers.

Response parameters

Field Name
Type
Required
Description
machines
JsonArray
Yes
Machine information array
MachineInfo is in the following format:
Field Name
Type
Required
Description
ip
string
Yes
Machine IP
status
int
Yes
0: abnormal, 1: normal

Error Codes

For more information, please see Error Codes.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback