tencent cloud

Feedback

Getting Machine Status

Last updated: 2022-02-24 17:06:29

    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: .cls.tencentyun.com
    Authorization: 
    

    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.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support