Creates a machine group.
Operation description
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /machinegroups HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
project | string | Yes | The name of the project. | ali-test-project |
body | object | Yes | The information about the machine group. | |
groupName | string | Yes | The name of the machine group. The name must meet the following requirements:
| test-machine-group |
machineIdentifyType | string | Yes | The type of the machine group identifier. Valid values:
| ip |
groupType | string | No | The type of the machine group. The parameter can be left empty. | "" |
groupAttribute | object | No | The attributes of the machine group. | |
groupTopic | string | No | The log topic of the machine group. | testtopic |
externalName | string | No | The identifier of the external management system on which the machine group depends. | testgroup |
machineList | array | Yes | The identifiers of machine group.
| |
string | No | The machine identifier. Enter an IP address or a custom identifier based on the type of the machine group. | 192.168.XX.XX |
Response parameters
Examples
Sample success responses
JSON
format
{}
Error codes
For a list of error codes, visit the Service error codes.