Changing Host desired state

Format

MethodPOST
URL

/tasks/create

Request contentsHostAction Object
Successful answerTaskResult Object
Unexpected errorHTTP 500

HostAction Object

Schema

repeatStringReserved
retriesStringNumber of times this task will be retried in case of error
typeStringTask type identifier. In this case, "host_action"
host_idStringHost's unique identifier
actionStringAction to be applied to this Host. Either "enable" or "disable"

JSON example

 

{
    "repeat": "0",   
    "retries": "0",
    "type": "host_modify",
    "host_id": "flexdemo",
    "action": "disable"
}