Scale A Container

Scale an individual container up or down.

Requires the containers-update permission.

Arguments
  • instances
    integer

    The number of instances this container will be scaled to.

Returns

Returns a Task Descriptor Object, otherwise returns an Error.

POST /v1/containers/5b9c2a77b6393d0001eb45fd/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":"scale","contents":{"instances":5}}' \
-X POST
Example Response
{
"data": {
"action": "scale",
"job_id": "5d01b9b3db2ab00001508cd8"
}
}