Getting Server Group Bound to Log Topic

Last updated: 2020-05-21 14:20:24

    Feature Description

    This API is used to get the information of the server group bound to a log topic.

    Request

    Sample request

    GET /topic/machinegroup?topic_id=xxxx-xx-xx-xx-xxxxxxxx HTTP/1.1
    Host: <Region>.cls.tencentyun.com
    Authorization: <Authorization String>

    Request line

    GET /topic/machinegroup

    Request header

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

    Request parameters

    Field Name Type Location Required Description
    topic_id string query Yes ID of the log topic to be queried

    Response

    Sample response

    HTTP/1.1 200 OK
    Content-Type: application/json
    Content-Length: 123
    {
        "machine_groups": [
        {
            "group_id": "xxxx-xx-xx-xx-yyyyyyyy",
            "group_name": "testname"},    
            {"group_id": "xxxx-xx-xx-xx-zzzzzzzz", 
            "group_name": "testname1"}
        ]
    }

    Response header

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

    Response parameters

    Field Name Type Required Description
    machine_groups JsonArray Yes Array of server groups bound to log topic

    machine_groups is in the following format:

    Field Name Type Required Description
    group_id string Yes Server group ID
    group_name string Yes Server group name

    Error codes

    For more information, please see Error Codes.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help