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
type | String | Task type identifier. In this case, "pool_action" |
---|---|---|
pool_id | String | Pool's unique identifier |
action | String | Action to be applied to this Pool. Either "disable" or "enable" |
JSON example
{ "type": "pool_modify", "pool_id": "testpool", "action": "disable" }