List Containers

Fetches a list of containers that are running on the same server as this instance.

Returns

Returns a list of container resources, otherwise returns an Error.

GET /v1/server/containers

Example Request
$ curl --unix-socket /var/run/cycle/api/api.sock http://internal.cycle/v1/server/containers \
-H "x-cycle-token: $CYCLE_API_TOKEN"
Example Response
{
"data": {
"id": "3h2h4g4w1417597772g6e8k3",
"name": "redis",
"identifier": "redis",
"creator": {
"id": "3h2h4g4w1417597772g6e8k3",
"type": "account"
},
"environment": {
"id": "5e1d3b9a4146380001f5a0d6",
"container_subnet": "645b",
"ipv6": {
"ip": "fd00::f4f0:645b:0:0",
"cidr": "fd00::f4f0:645b:0:0/96"
},
"legacy": null
},
"hub_id": "3h2h4g4w1417597772g6e8k3",
"image": {
"id": "5e182528b894940001237b94",
"service": null
},
"config": {
"network": {
"public": "egress-only",
"hostname": "redis",
"ports": null
},
"deploy": {
"instances": 1,
"strategy": null,
"stateful": null,
"constraints": {
"node": {
"tags": {
"any": null,
"all": null
}
},
"secrets": null,
"containers": null
},
"shutdown": null,
"startup": null,
"restart": null,
"health_check": null,
"update": null
},
"runtime": null,
"scaling": null,
"resources": null,
"integrations": {
"lets_encrypt": {
"enable": false,
"certificate_path": null,
"chain_path": null,
"key_path": null,
"bundle_path": null,
"additional_certs_path": null
}
}
},
"instances": 1,
"stateful": false,
"role": null,
"state": {
"changed": "2020-01-23T00:02:23.75Z",
"job": {
"id": "5e28e26ddb2ab00001c8ced0",
"queued": "2020-01-23T00:01:49.143Z",
"queue": "environment-3h2h4g4w1417597772g6e8k3"
},
"current": "running",
"desired": "running"
},
"events": {
"created": "2020-01-22T23:49:48.148Z",
"updated": "0001-01-01T00:00:00Z",
"deleted": "0001-01-01T00:00:00Z",
"started": "2020-01-23T00:02:23.749Z"
},
"meta": {
"domains": null
}
}
}