From 940e1cfd7dc8b382453e03215aeceefbc2afa173 Mon Sep 17 00:00:00 2001 From: "Mauro S. M. Rodrigues" Date: Thu, 13 Sep 2012 02:12:31 -0400 Subject: Add api samples to Scheduler hints extension Change-Id: Ic324d796dac0cfc7b36c47a181b55e09cb1503e2 --- .../os-scheduler-hints/scheduler-hints-post-req.json | 11 +++++++++++ .../os-scheduler-hints/scheduler-hints-post-req.xml | 10 ++++++++++ .../os-scheduler-hints/scheduler-hints-post-resp.json | 16 ++++++++++++++++ .../os-scheduler-hints/scheduler-hints-post-resp.xml | 6 ++++++ 4 files changed, 43 insertions(+) create mode 100644 doc/api_samples/os-scheduler-hints/scheduler-hints-post-req.json create mode 100644 doc/api_samples/os-scheduler-hints/scheduler-hints-post-req.xml create mode 100644 doc/api_samples/os-scheduler-hints/scheduler-hints-post-resp.json create mode 100644 doc/api_samples/os-scheduler-hints/scheduler-hints-post-resp.xml (limited to 'doc') diff --git a/doc/api_samples/os-scheduler-hints/scheduler-hints-post-req.json b/doc/api_samples/os-scheduler-hints/scheduler-hints-post-req.json new file mode 100644 index 000000000..3e437e63f --- /dev/null +++ b/doc/api_samples/os-scheduler-hints/scheduler-hints-post-req.json @@ -0,0 +1,11 @@ +{ + "server": { + "name": "new-server-test", + "imageRef": "70a599e0-31e7-49b7-b260-868f441e862b", + "flavorRef": "1" + }, + "os:scheduler_hints": { + "hypervisor": "xen", + "near": "2b7c42eb-7736-4a0f-afab-f23969a35ada" + } +} \ No newline at end of file diff --git a/doc/api_samples/os-scheduler-hints/scheduler-hints-post-req.xml b/doc/api_samples/os-scheduler-hints/scheduler-hints-post-req.xml new file mode 100644 index 000000000..079289de0 --- /dev/null +++ b/doc/api_samples/os-scheduler-hints/scheduler-hints-post-req.xml @@ -0,0 +1,10 @@ + + + xen + eb999657-dd6b-464e-8713-95c532ac3b18 + + \ No newline at end of file diff --git a/doc/api_samples/os-scheduler-hints/scheduler-hints-post-resp.json b/doc/api_samples/os-scheduler-hints/scheduler-hints-post-resp.json new file mode 100644 index 000000000..cc3a87316 --- /dev/null +++ b/doc/api_samples/os-scheduler-hints/scheduler-hints-post-resp.json @@ -0,0 +1,16 @@ +{ + "server": { + "adminPass": "yjzytFHb7XHc", + "id": "f8f4f3ce-f6e0-4e05-8f79-bf984fdfce45", + "links": [ + { + "href": "http://openstack.example.com/v2/openstack/servers/f8f4f3ce-f6e0-4e05-8f79-bf984fdfce45", + "rel": "self" + }, + { + "href": "http://openstack.example.com/openstack/servers/f8f4f3ce-f6e0-4e05-8f79-bf984fdfce45", + "rel": "bookmark" + } + ] + } +} \ No newline at end of file diff --git a/doc/api_samples/os-scheduler-hints/scheduler-hints-post-resp.xml b/doc/api_samples/os-scheduler-hints/scheduler-hints-post-resp.xml new file mode 100644 index 000000000..59929d808 --- /dev/null +++ b/doc/api_samples/os-scheduler-hints/scheduler-hints-post-resp.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file -- cgit