Modifying Server Group

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

    Feature Description

    This API is used to modify a server group.

    Request

    Sample request

    PUT /machinegroup HTTP/1.1
    Host: <Region>.cls.tencentyun.com
    Authorization: <AuthorizationString>
    Content-Type: application/json
    
    {"group_id": "xxxx-xx-xx-xx-xxxxxxx", "group_name": "testname", "ips": ["10.10.10.10", "10.10.10.11"]}

    Request line

    PUT /machinegroup

    Request header

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

    Request parameters

    Field Name Type Location Required Description
    group_id string body Yes ID of the server group to be modified
    group_name string body No Server group name, which must be unique
    ips JsonArray body No List of IPs in server group

    Either group_name or ips must be provided.

    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.

    Was this page helpful?

    Was this page helpful?

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