zun/api-ref/source/samples/container-rename-resp.json
miaohb 7816f21b98 Add api-ref for more container operations
This patch adds api-ref for container start, stop, pause,
unpause, restart, rename.

Co-Authored-By: Kien Nguyen <kiennt@vn.fujitsu.com>
Co-Authored-By: miaohb <miao.hongbao@zte.com.cn>
Change-Id: Ie761f3332c3650d43515c65b4bc6ed327d90bb80
Partially-Implements: bp zun-api-doc
2017-07-11 06:12:15 +00:00

48 lines
1.3 KiB
JSON

{
"addresses": {
"public": [{
"version": 4,
"addr": "172.24.4.3",
"port": "4b077255-9b4d-4068-b24f-b89594f870c2"
}, {
"version": 6,
"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"
},
"security_groups": [],
"image_pull_policy": "always",
"uuid": "b0694d40-70af-4488-b104-10f66b593347",
"hostname": "zun-sandbox-5812822d-6794-4839-85c0-1c01665c0d48",
"environment": {
"foo": "bar"
},
"memory": "500M",
"status": "Stopped",
"workdir": "/home/ubuntu",
"status_detail": "Exited(0) 8 mins ago ",
"host": "ubuntu",
"image_driver": "docker",
"task_state": null,
"status_reason": null,
"name": "test-new",
"restart_policy": {
"MaximumRetryCount": "0",
"Name": "no"
},
"ports": [],
"command": "/bin/sh -c 'echo hello'",
"cpu": 2.0,
"interactive": false
}