PUT /machinegroup HTTP/1.1Host: <Region>.cls.tencentyun.comAuthorization: <AuthorizationString>Content-Type: application/json{"group_id": "xxxx-xx-xx-xx-xxxxxxx","group_name": "testname","type": "ip","ips": ["10.10.10.10", "10.10.10.11"]}
PUT /machinegroup
Field Name | Type | Location | Required | Description |
group_id | string | body | Yes | ID of the machine group to be modified |
group_name | string | body | No | Machine group name, which must be unique |
type | string | body | No | Machine group type. Valid values: ip and label. Default value: ip |
ips | JsonArray | body | No | List of IPs in machine group |
labels | JsonArray | body | No | List of labels in the machine group |
Eithergroup_name,ipsorlabelsmust be provided.
HTTP/1.1 200 OKContent-Length: 0
Feedback