POST /machinegroup HTTP/1.1Host: <Region>.cls.tencentyun.comAuthorization: <AuthorizationString>Content-Type: application/json{"group_name": "testname","type": "label","labels": ["defined_label_1", "defined_label_2"]}
POST /machinegroup
Field Name | Type | Location | Required | Description |
group_name | string | body | Yes | 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 |
HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 123{"group_id": "xxxx-xx-xx-xx-xxxxxxxx"}
Field Name | Type | Required | Description |
group_id | string | Yes | Machine group ID |
Feedback