Create Instance

Create one or more new instances of a container, if that container employs the manual deployment strategy.

Requires the containers-update permission.

query
  • include

    Accepted Values: ownerserverslocationsproviderscontainersenvironments

Returns

Returns a Task Descriptor Object, otherwise returns an Error.

POST /v1/containers/5b9c2a77b6393d0001eb45fd/instances

Example Request
$ curl https://api.cycle.io/v1/containers/5b9c2a77b6393d0001eb45fd/instances \
-H
"Authorization: Bearer API_KEY"
\
-H
"X-Hub-Id: HUB_ID"
-H 'Content-Type: application/json' \
-d '{"value":[{"server_id":"5dd333ee4146380001d9e3b5","new_instances":5}]}' \
-X POST
Example Response
{
"data": {
"action": "container.create_instances",
"job_id": "5d01b9b3db2ab00001508cd8"
}
}