Creates a machine group.
Operation description
Usage notes
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:CreateMachineGroup |
create |
*Project
|
|
None |
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. |
ali-test-project |
| 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 elements
|
Element |
Type |
Description |
Example |
None defined.
Examples
Success response
JSON format
{}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.