List Container Servers

List servers this container has instances deployed on.

Requires the containers-view permission.

Returns

Returns a collection of servers instance resources, otherwise returns an Error.

Server Instance Resource
  • instances
    integer

    The number of instances deployed to this server.

  • server_id
    string

    An ID designating the server this container count references.

GET /v1/containers/{ID}/servers/

Example Request
$ curl https://api.cycle.io/v1/containers/5b9c2a77b6393d0001eb45fd/servers \
-H
"Authorization: Bearer API_KEY"
\
-H
"X-HUB-ID: HUB_ID"
Example Response
{
"data": [
{
"server_id": "5b9c2a77b6393d0001eb45fd",
"instances": 1
},
{
"server_id": "5a232a77b6393d0001ac2df2",
"instances": 4
},
{
"server_id": "5ccc2a2226393d1231eb4abd",
"instances": 6
}
]
}