Setting Server Group Bound to Log Topic

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

    Feature Description

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

    Request

    Sample request

    PUT /topic/machinegroup?topic_id=xxxx-xx-xx-xx-xxxxxxxx HTTP/1.1
    Host: <Region>.cls.tencentyun.com
    Authorization: <Authorization String>
    Content-Type: application/json
    {  
        "machine_groups": ["xxxxxx-xx-xx-xx-yyyyyyyy"]
    }

    Request line

    PUT /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 Configured log topic ID
    machine_groups JsonArray (string) body Yes Array of server group IDs bound to log topic

    Response

    Sample response

    HTTP/1.1 200 OK
    Content-Length: 0

    Response header

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

    Response parameters

    None.

    Error Codes

    For more information, please see Error Codes.