From d6e0fdf752cf67ff9729b3fdcdeb925bd0c1cd3f Mon Sep 17 00:00:00 2001 From: "Mauro S. M. Rodrigues" Date: Wed, 10 Oct 2012 22:22:31 -0400 Subject: Add Server diagnostics extension api samples Change-Id: Id53e17caa75dcab01dd3209f771891b4e92debec --- .../server-diagnostics-get-resp.json | 17 +++++++++++++++++ .../server-diagnostics-get-resp.xml | 18 ++++++++++++++++++ .../os-server-diagnostics/server-post-req.json | 16 ++++++++++++++++ .../os-server-diagnostics/server-post-req.xml | 19 +++++++++++++++++++ .../os-server-diagnostics/server-post-resp.json | 16 ++++++++++++++++ .../os-server-diagnostics/server-post-resp.xml | 6 ++++++ 6 files changed, 92 insertions(+) create mode 100644 doc/api_samples/os-server-diagnostics/server-diagnostics-get-resp.json create mode 100644 doc/api_samples/os-server-diagnostics/server-diagnostics-get-resp.xml create mode 100644 doc/api_samples/os-server-diagnostics/server-post-req.json create mode 100644 doc/api_samples/os-server-diagnostics/server-post-req.xml create mode 100644 doc/api_samples/os-server-diagnostics/server-post-resp.json create mode 100644 doc/api_samples/os-server-diagnostics/server-post-resp.xml (limited to 'doc') diff --git a/doc/api_samples/os-server-diagnostics/server-diagnostics-get-resp.json b/doc/api_samples/os-server-diagnostics/server-diagnostics-get-resp.json new file mode 100644 index 000000000..d33654392 --- /dev/null +++ b/doc/api_samples/os-server-diagnostics/server-diagnostics-get-resp.json @@ -0,0 +1,17 @@ +{ + "cpu0_time": 17300000000, + "memory": 524288, + "vda_errors": -1, + "vda_read": 262144, + "vda_read_req": 112, + "vda_write": 5778432, + "vda_write_req": 488, + "vnet1_rx": 2070139, + "vnet1_rx_drop": 0, + "vnet1_rx_errors": 0, + "vnet1_rx_packets": 26701, + "vnet1_tx": 140208, + "vnet1_tx_drop": 0, + "vnet1_tx_errors": 0, + "vnet1_tx_packets": 662 +} \ No newline at end of file diff --git a/doc/api_samples/os-server-diagnostics/server-diagnostics-get-resp.xml b/doc/api_samples/os-server-diagnostics/server-diagnostics-get-resp.xml new file mode 100644 index 000000000..776419f82 --- /dev/null +++ b/doc/api_samples/os-server-diagnostics/server-diagnostics-get-resp.xml @@ -0,0 +1,18 @@ + + + 524288 + 5778432 + 26701 + 0 + 0 + 2070139 + 262144 + 488 + 140208 + 0 + 662 + 0 + 17300000000 + 112 + -1 + \ No newline at end of file diff --git a/doc/api_samples/os-server-diagnostics/server-post-req.json b/doc/api_samples/os-server-diagnostics/server-post-req.json new file mode 100644 index 000000000..d88eb4122 --- /dev/null +++ b/doc/api_samples/os-server-diagnostics/server-post-req.json @@ -0,0 +1,16 @@ +{ + "server" : { + "name" : "new-server-test", + "imageRef" : "http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b", + "flavorRef" : "http://openstack.example.com/openstack/flavors/1", + "metadata" : { + "My Server Name" : "Apache1" + }, + "personality" : [ + { + "path" : "/etc/banner.txt", + "contents" : "ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBpdCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5kIGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVsc2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4gQnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRoZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlvdSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vyc2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6b25zLiINCg0KLVJpY2hhcmQgQmFjaA==" + } + ] + } +} \ No newline at end of file diff --git a/doc/api_samples/os-server-diagnostics/server-post-req.xml b/doc/api_samples/os-server-diagnostics/server-post-req.xml new file mode 100644 index 000000000..0a3c8bb53 --- /dev/null +++ b/doc/api_samples/os-server-diagnostics/server-post-req.xml @@ -0,0 +1,19 @@ + + + + Apache1 + + + + ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBp + dCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5k + IGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVs + c2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4g + QnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRo + ZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlv + dSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vy + c2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6 + b25zLiINCg0KLVJpY2hhcmQgQmFjaA== + + + \ No newline at end of file diff --git a/doc/api_samples/os-server-diagnostics/server-post-resp.json b/doc/api_samples/os-server-diagnostics/server-post-resp.json new file mode 100644 index 000000000..b14c071cc --- /dev/null +++ b/doc/api_samples/os-server-diagnostics/server-post-resp.json @@ -0,0 +1,16 @@ +{ + "server": { + "adminPass": "gSLumCiGg3V9", + "id": "b10a33d1-6fb5-45d4-876d-4e68962db878", + "links": [ + { + "href": "http://openstack.example.com/v2/openstack/servers/b10a33d1-6fb5-45d4-876d-4e68962db878", + "rel": "self" + }, + { + "href": "http://openstack.example.com/openstack/servers/b10a33d1-6fb5-45d4-876d-4e68962db878", + "rel": "bookmark" + } + ] + } +} \ No newline at end of file diff --git a/doc/api_samples/os-server-diagnostics/server-post-resp.xml b/doc/api_samples/os-server-diagnostics/server-post-resp.xml new file mode 100644 index 000000000..b7210473d --- /dev/null +++ b/doc/api_samples/os-server-diagnostics/server-post-resp.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file -- cgit