Modifying Server Group

Last updated: 2020-10-26 15:41:04

    Feature Description

    This API is used to modify a server group.


    Sample request

    PUT /machinegroup HTTP/1.1
    Host: <Region>
    Authorization: <AuthorizationString>
    Content-Type: application/json
        "group_id": "xxxx-xx-xx-xx-xxxxxxx", 
        "group_name": "testname", 
        "type": "ip", 
        "ips": ["", ""]

    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
    type string body No Server group type. Valid values: ip and label. Default value: ip
    ips JsonArray body No List of IPs in server group
    labels JsonArray body No List of labels in the server group

    Either group_name, ips or labels must be provided.


    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


    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