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.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:UpdateMachineGroupMachine |
update |
*All Resource
|
|
None |
Request syntax
PUT /machinegroups/{machineGroup}/machines HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| machineGroup |
string |
Yes |
The name of the machine group. |
test-group |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The name of the project. |
ali-test-project |
| body |
array |
Yes |
The machines to be added or removed. |
|
|
string |
No |
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 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.