Reconfigure a Container
Modify a container's volumes, including remote access settings.
Requires the containers-volumes-manage permission.
Arguments
- actionstring
Set to
reconfigure_volumes
to reconfigure the volumes. - contentsarray of objects
Data required to create the task.
Show child fields
Returns
Returns a Task Descriptor Object, otherwise returns an Error.
POST /v1/containers/{ID}/tasks
Example Request
$ curl https://api.cycle.io/v1/containers/5b9c2a77b6393d0001eb45fd/tasks \-H"Authorization: Bearer API_KEY"\-H"X-HUB-ID: HUB_ID"\-H 'Content-Type: application/json' \-d '{"action":"reconfigure_volumes","contents":[{"id":"5dcc73374c51ea0001600241","hash":"40d1b2","config":{"local":{"max_size":"2G"},"destination":"/var/www/html","read_only":false,"remote_access":{"enable":true,"web_hook":"","password":{"algorithm":"raw","data":"password"}}}}]}' \-X POST
Example Response
{"data": {"action": "reconfigure_volumes","job_id": "5d01b9b3db2ab00001508cd8"}}