Modifies the machines in a machine group. You can add machine to or remove machines from the machine group.
Operation description
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
PUT /machinegroups/{machineGroup}/machines HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
project | string | Yes | The name of the project. | ali-test-project |
machineGroup | string | Yes | The name of the machine group. | test-group |
body | array | Yes | The machines to be added or removed. | |
string | Yes | The machine ID. The value can be an IP address or a custom ID. | 192.168.xx.x | |
action | string | No | The operation on the machine. Valid values: add and delete. A value of add specifies to add the machine to the machine group. A value of delete specifies to remove the machine from the machine group. | add |
Response parameters
Examples
Sample success responses
JSON
format
{}
Error codes
For a list of error codes, visit the Service error codes.