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
repeat | String | Reserved |
---|---|---|
retries | String | Number of times this task will be retried in case of error |
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" or "disable" |
JSON example
{ "repeat" : "0" , "retries" : "0" , "type" : "host_modify" , "host_id" : "flexdemo" , "action" : "disable" } |