Changing Host desired state
Format
Method | POST |
---|---|
URL | /tasks/create |
Request contents | HostAction Object |
Successful answer | TaskResult Object |
Unexpected error | HTTP 500 |
HostAction Object
Schema
type | String | Task type identifier. In this case, "host_action" |
---|---|---|
host_id | String | Host's unique identifier |
action | String | Action to be applied to this Host. Either "enable", "disable" or "shutdown".
|
JSON example
{ "type": "host_action", "host_id": "flexdemo", "action": "disable" }