Enter Maintenance
When in maintenance mode, users cannot access the machines. Each response entity in the result corresponds to a machine id in the input. All the listed privileges are required -
Privileges | Description |
---|---|
MACHINE_MAINTENANCE | Caller should have permission to this privilege, on the associated access group of machine's desktop pool to perform maintenance operation. |
FORENSICS | Caller should have permission to this privilege to enforce operations on held machines. |
Only Forensics admin can set this value. If passed as "true", then this action is applicable for both held and non held vms. If passed as "false", then this action is applicable for only non held vms. If not passed at all, then this action is applicable for only non held vms.
List of Machine Ids representing the machines to be put into maintenance mode.
[
{}
]
OK
[
{
"error_messages": [
"Entity does not exist.",
"Property is mandatory."
],
"errors": [
{
"error_key": "inventory.machine.not.found",
"error_message": "username cannot be empty"
}
],
"id": "6f85b3a5-e7d0-4ad6-a1e3-37168dd1ed51",
"key": "user1",
"status_code": 200,
"timestamp": 1561939200000
}
]
Bad Request
User is not authenticated
Access to the resource is forbidden