Changing a Pool desired state
Format
Method | POST |
---|---|
URL | /tasks/create |
Request contents | PoolAction Object |
Successful answer | TaskResult Object |
Unexpected error | HTTP 500 |
PoolAction Object
Schema
repeat | String | Reserved |
---|---|---|
retries | String | Number of times this task will be retried, in case of an error |
type | String | Task type identifier. In this case, "pool_create" |
pool_id | String | Pool's unique identifier |
action | String | Action to be applied to this Pool. Either "disable" or "enable" |
JSON example
{ "repeat" : "0" , "retries" : "0" , "type" : "pool_modify" , "pool_id" : "pruebapool" , "action" : "disable" } |