api-ref: update the sample request/ressponse
Change-Id: I7441c3514872305107293e355f4b27d5d9950ddf
This commit is contained in:
parent
499863e18a
commit
3f2066e899
@ -1,9 +1,9 @@
|
||||
{
|
||||
"environment":{
|
||||
"foo": "bar"
|
||||
"foo": "bar"
|
||||
},
|
||||
"labels":{
|
||||
"app": "hello"
|
||||
"app": "hello"
|
||||
},
|
||||
"image": "ubuntu",
|
||||
"command": "/bin/sh -c 'echo hello'",
|
||||
@ -13,12 +13,14 @@
|
||||
"workdir": "/home/ubuntu",
|
||||
"image_pull_policy": "always",
|
||||
"restart_policy":{
|
||||
"Name": "no",
|
||||
"MaximumRetryCount": 0
|
||||
"Name": "no",
|
||||
"MaximumRetryCount": 0
|
||||
},
|
||||
"interactive": "False",
|
||||
"interactive": false,
|
||||
"image_driver": "docker",
|
||||
"security_groups": null,
|
||||
"security_groups": [
|
||||
"default"
|
||||
],
|
||||
"nets": [
|
||||
{
|
||||
"v4-fixed-ip": "",
|
||||
@ -29,6 +31,16 @@
|
||||
],
|
||||
"runtime": "runc",
|
||||
"hostname": "testhost",
|
||||
"auto_remove": "False",
|
||||
"auto_heal": "False"
|
||||
"auto_remove": false,
|
||||
"auto_heal": false,
|
||||
"availability_zone": "nova",
|
||||
"hints": {
|
||||
"foo": "bar"
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"source": "myvol",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -5,37 +5,41 @@
|
||||
"rel": "self"
|
||||
},
|
||||
{"href": "http://openstack.example.com/containers/b0694d40-70af-4488-b104-10f66b593347", "rel": "bookmark"}
|
||||
],
|
||||
"image": "ubuntu",
|
||||
"labels": {
|
||||
"app": "hello"
|
||||
},
|
||||
"security_groups": null,
|
||||
"image_pull_policy": "always",
|
||||
"uuid": "b0694d40-70af-4488-b104-10f66b593347",
|
||||
"hostname": null,
|
||||
"environment": {
|
||||
"foo": "bar"
|
||||
},
|
||||
"memory": "500M",
|
||||
"status": "Creating",
|
||||
"workdir": "/home/ubuntu",
|
||||
"status_detail": null,
|
||||
"host": null,
|
||||
"image_driver": "docker",
|
||||
"task_state": null,
|
||||
"status_reason": null,
|
||||
"name": "test",
|
||||
"restart_policy": {
|
||||
"MaximumRetryCount": "0",
|
||||
"Name": "no"
|
||||
},
|
||||
"ports": null,
|
||||
"command": "/bin/sh -c 'echo hello'",
|
||||
"cpu": 2.0,
|
||||
"interactive": false,
|
||||
"runtime": "runc",
|
||||
"hostname": "testhost",
|
||||
"auto_remove": "False",
|
||||
"auto_heal": "False"
|
||||
],
|
||||
"image": "ubuntu",
|
||||
"labels": {
|
||||
"app": "hello"
|
||||
},
|
||||
"security_groups": [
|
||||
"7e4eae5d-8b7b-4673-91b3-70dfb577e620"
|
||||
],
|
||||
"image_pull_policy": "always",
|
||||
"uuid": "b0694d40-70af-4488-b104-10f66b593347",
|
||||
"environment": {
|
||||
"foo": "bar"
|
||||
},
|
||||
"memory": "500M",
|
||||
"status": "Creating",
|
||||
"workdir": "/home/ubuntu",
|
||||
"status_detail": null,
|
||||
"host": null,
|
||||
"image_driver": "docker",
|
||||
"task_state": null,
|
||||
"status_reason": null,
|
||||
"name": "test",
|
||||
"restart_policy": {
|
||||
"MaximumRetryCount": "0",
|
||||
"Name": "no"
|
||||
},
|
||||
"ports": null,
|
||||
"command": "/bin/sh -c 'echo hello'",
|
||||
"cpu": 2.0,
|
||||
"interactive": false,
|
||||
"runtime": "runc",
|
||||
"hostname": "testhost",
|
||||
"auto_remove": false,
|
||||
"auto_heal": false,
|
||||
"disk": 0,
|
||||
"user_id": "0a9cdb65757b4216935e27f333d1c48b",
|
||||
"project_id": "77a89a275765486d86144caad70825e4"
|
||||
}
|
||||
|
@ -3,11 +3,15 @@
|
||||
{
|
||||
"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"
|
||||
}]
|
||||
@ -22,17 +26,22 @@
|
||||
"labels": {
|
||||
"app": "hello"
|
||||
},
|
||||
"disk": 0,
|
||||
"security_groups": [],
|
||||
"image_pull_policy": "always",
|
||||
"user_id": "06c7fda2e74d4f5084bb8298bf8e313b",
|
||||
"uuid": "b0694d40-70af-4488-b104-10f66b593347",
|
||||
"hostname": "zun-sandbox-5812822d-6794-4839-85c0-1c01665c0d48",
|
||||
"environment": {
|
||||
"foo": "bar"
|
||||
},
|
||||
"memory": "500M",
|
||||
"project_id": "2cc8ed7104ca427c873cad82411bcebb",
|
||||
"status": "Stopped",
|
||||
"workdir": "/home/ubuntu",
|
||||
"status_detail": "Exited(0) 10 mins ago ",
|
||||
"auto_remove": false,
|
||||
"auto_heal": false,
|
||||
"host": "ubuntu",
|
||||
"image_driver": "docker",
|
||||
"task_state": null,
|
||||
@ -42,6 +51,7 @@
|
||||
"MaximumRetryCount": "0",
|
||||
"Name": "no"
|
||||
},
|
||||
"runtime": "runc",
|
||||
"ports": [],
|
||||
"command": "/bin/sh -c 'echo hello'",
|
||||
"cpu": 2.0,
|
||||
|
@ -1,11 +1,15 @@
|
||||
{
|
||||
"addresses": {
|
||||
"c0c5f8ed-6654-4d25-b0de-c858b9f620be": [{
|
||||
"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"
|
||||
}]
|
||||
@ -15,33 +19,38 @@
|
||||
"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",
|
||||
"restart_policy": {
|
||||
"MaximumRetryCount": "0",
|
||||
"Name": "no"
|
||||
},
|
||||
"ports": [],
|
||||
"command": "/bin/sh -c 'echo hello'",
|
||||
"cpu": 2.0,
|
||||
"interactive": false
|
||||
],
|
||||
"image": "ubuntu",
|
||||
"labels": {
|
||||
"app": "hello"
|
||||
},
|
||||
"disk": 0,
|
||||
"security_groups": [],
|
||||
"image_pull_policy": "always",
|
||||
"user_id": "06c7fda2e74d4f5084bb8298bf8e313b",
|
||||
"uuid": "b0694d40-70af-4488-b104-10f66b593347",
|
||||
"hostname": "zun-sandbox-5812822d-6794-4839-85c0-1c01665c0d48",
|
||||
"environment": {
|
||||
"foo": "bar"
|
||||
},
|
||||
"memory": "500M",
|
||||
"project_id": "2cc8ed7104ca427c873cad82411bcebb",
|
||||
"status": "Stopped",
|
||||
"workdir": "/home/ubuntu",
|
||||
"auto_remove": false,
|
||||
"auto_heal": false,
|
||||
"status_detail": "Exited(0) 8 mins ago ",
|
||||
"host": "ubuntu",
|
||||
"image_driver": "docker",
|
||||
"task_state": null,
|
||||
"status_reason": null,
|
||||
"name": "test",
|
||||
"restart_policy": {
|
||||
"MaximumRetryCount": "0",
|
||||
"Name": "no"
|
||||
},
|
||||
"ports": [],
|
||||
"command": "/bin/sh -c 'echo hello'",
|
||||
"cpu": 2.0,
|
||||
"interactive": false
|
||||
}
|
||||
|
@ -1,11 +1,15 @@
|
||||
{
|
||||
"addresses": {
|
||||
"eb7a3ee0-ad55-417b-ba11-6c57b1dbd4c6": [{
|
||||
"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"
|
||||
}]
|
||||
@ -15,33 +19,35 @@
|
||||
"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": "200M",
|
||||
"status": "Stopped",
|
||||
"workdir": "/home/ubuntu",
|
||||
"status_detail": "Exited(0) 18 mins ago ",
|
||||
"host": "ubuntu",
|
||||
"image_driver": "docker",
|
||||
"task_state": null,
|
||||
"status_reason": null,
|
||||
"name": "test",
|
||||
"restart_policy": {
|
||||
"MaximumRetryCount": "0",
|
||||
"Name": "no"
|
||||
},
|
||||
"ports": [],
|
||||
"command": "/bin/sh -c 'echo hello'",
|
||||
"cpu": 3.0,
|
||||
"interactive": false
|
||||
],
|
||||
"image": "ubuntu",
|
||||
"labels": {
|
||||
"app": "hello"
|
||||
},
|
||||
"security_groups": [],
|
||||
"image_pull_policy": "always",
|
||||
"user_id": "06c7fda2e74d4f5084bb8298bf8e313b",
|
||||
"uuid": "b0694d40-70af-4488-b104-10f66b593347",
|
||||
"hostname": "zun-sandbox-5812822d-6794-4839-85c0-1c01665c0d48",
|
||||
"environment": {
|
||||
"foo": "bar"
|
||||
},
|
||||
"memory": "200M",
|
||||
"status": "Stopped",
|
||||
"workdir": "/home/ubuntu",
|
||||
"status_detail": "Exited(0) 18 mins ago ",
|
||||
"host": "ubuntu",
|
||||
"image_driver": "docker",
|
||||
"task_state": null,
|
||||
"status_reason": null,
|
||||
"name": "test",
|
||||
"restart_policy": {
|
||||
"MaximumRetryCount": "0",
|
||||
"Name": "no"
|
||||
},
|
||||
"ports": [],
|
||||
"command": "/bin/sh -c 'echo hello'",
|
||||
"runtime": "runc",
|
||||
"cpu": 3.0,
|
||||
"interactive": false
|
||||
}
|
||||
|
@ -1,23 +1,31 @@
|
||||
{
|
||||
"hosts": [
|
||||
{
|
||||
"hostname": "testhost",
|
||||
"uuid": "d0405f06-101e-4340-8735-d1bf9fa8b8ad",
|
||||
"links": [{
|
||||
"href": "http://192.168.2.200:9517/v1/hosts/d0405f06-101e-4340-8735-d1bf9fa8b8ad",
|
||||
"rel": "self"
|
||||
},
|
||||
"hosts": [
|
||||
{
|
||||
"hostname": "testhost",
|
||||
"uuid": "d0405f06-101e-4340-8735-d1bf9fa8b8ad",
|
||||
"links": [{
|
||||
"href": "http://192.168.2.200:9517/v1/hosts/d0405f06-101e-4340-8735-d1bf9fa8b8ad",
|
||||
"rel": "self"
|
||||
},
|
||||
{"href": "http://192.168.2.200:9517/hosts/d0405f06-101e-4340-8735-d1bf9fa8b8ad",
|
||||
"rel": "bookmark"
|
||||
}
|
||||
],
|
||||
"labels": {
|
||||
"type": "test"
|
||||
},
|
||||
"cpus": 48,
|
||||
"mem_total": 128446,
|
||||
"os": "CentOS Linux 7 (Core)"
|
||||
}
|
||||
],
|
||||
"kernel_version": "4.4.0-109-generic",
|
||||
"labels": {
|
||||
"type": "test"
|
||||
},
|
||||
"cpus": 48,
|
||||
"mem_used": 512,
|
||||
"disk_total": 16,
|
||||
"mem_total": 128446,
|
||||
"total_containers": 2,
|
||||
"cpu_used": 0.2,
|
||||
"disk_used": 10,
|
||||
"os_type": "linux",
|
||||
"architecture": "x86_64"
|
||||
"os": "CentOS Linux 7 (Core)"
|
||||
}
|
||||
],
|
||||
"next": null
|
||||
}
|
||||
|
@ -11,9 +11,13 @@
|
||||
"kernel_version": "3.10.0-123.el7.x86_64",
|
||||
"labels": {"type": "test"},
|
||||
"cpus": 48,
|
||||
"mem_used": 512,
|
||||
"disk_total": 16,
|
||||
"mem_total": 128446,
|
||||
"total_containers": 3,
|
||||
"total_containers": 2,
|
||||
"cpu_used": 0.2,
|
||||
"disk_used": 10,
|
||||
"os_type": "linux",
|
||||
"os": "CentOS Linux 7 (Core)",
|
||||
"architecture": "x86_64"
|
||||
"os": "CentOS Linux 7 (Core)"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user