zun/api-ref/source/samples/container-get-all-resp.json
Hongbin Lu 663f4840ea Add 'tty' property to container
Change-Id: I166c87b24eb0384ba32a3c47030d452d0b5a5ee2
2019-07-07 15:50:24 +00:00

76 lines
2.5 KiB
JSON

{
"containers": [
{
"addresses": {
"2ede1821-1334-4e8b-b731-d3a82b41f42f": [{
"subnet_id": "a3162b3e-2f02-432e-a18c-78fe2774d026",
"version": 4,
"preserve_on_delete": false,
"addr": "172.24.4.3",
"port": "4b077255-9b4d-4068-b24f-b89594f870c2"
}, {
"subnet_id": "7ca0d3d5-eeef-489f-8a40-ccb00456628c",
"version": 6,
"preserve_on_delete": false,
"addr": "2001:db8::9",
"port": "4b077255-9b4d-4068-b24f-b89594f870c2"
}]
},
"links": [{
"href": "http://openstack.example.com/v1/containers/b0694d40-70af-4488-b104-10f66b593347",
"rel": "self"
},
{"href": "http://openstack.example.com/containers/b0694d40-70af-4488-b104-10f66b593347", "rel": "bookmark"}
],
"image": "ubuntu",
"labels": {
"app": "hello"
},
"disk": 0,
"security_groups": [],
"user_id": "06c7fda2e74d4f5084bb8298bf8e313b",
"uuid": "b0694d40-70af-4488-b104-10f66b593347",
"hostname": "zun-sandbox-5812822d-6794-4839-85c0-1c01665c0d48",
"environment": {
"foo": "bar"
},
"memory": "500",
"project_id": "2cc8ed7104ca427c873cad82411bcebb",
"status": "Stopped",
"workdir": "/home/ubuntu",
"status_detail": "Exited(0) 10 mins ago ",
"auto_remove": false,
"auto_heal": false,
"privileged": false,
"host": "ubuntu",
"image_driver": "docker",
"task_state": null,
"status_reason": null,
"name": "test",
"restart_policy": {
"MaximumRetryCount": "0",
"Name": "no"
},
"runtime": "runc",
"ports": [],
"command": [
"/bin/sh",
"-c",
"'echo hello'"
],
"cpu": 2.0,
"interactive": false,
"tty": false,
"cpu_policy": "shared",
"registry_id": null,
"healthcheck": {
"test": "stat /etc/passwd || exit 1",
"interval": 3,
"retries": 2,
"timeout": 5
}
}
],
"next": null
}