From c9273ab7974d72e935537c3c25110f15096a01e9 Mon Sep 17 00:00:00 2001 From: "Mauro S. M. Rodrigues" Date: Thu, 22 Nov 2012 14:22:52 -0500 Subject: Complete API samples for Hosts extension The API samples for Hosts extension missed power operations (shutdown, reboot and startup) and maintenance/status operations. Complete fix to bug 1070167 Change-Id: I07fd34e071eae9afc82f9320634df24f48623e0b --- doc/api_samples/os-hosts/host-get-reboot.json | 4 ++++ doc/api_samples/os-hosts/host-get-reboot.xml | 2 ++ doc/api_samples/os-hosts/host-get-shutdown.json | 4 ++++ doc/api_samples/os-hosts/host-get-shutdown.xml | 2 ++ doc/api_samples/os-hosts/host-get-startup.json | 4 ++++ doc/api_samples/os-hosts/host-get-startup.xml | 2 ++ doc/api_samples/os-hosts/host-put-maintenance-req.json | 4 ++++ doc/api_samples/os-hosts/host-put-maintenance-req.xml | 5 +++++ doc/api_samples/os-hosts/host-put-maintenance-resp.json | 5 +++++ doc/api_samples/os-hosts/host-put-maintenance-resp.xml | 2 ++ 10 files changed, 34 insertions(+) create mode 100644 doc/api_samples/os-hosts/host-get-reboot.json create mode 100644 doc/api_samples/os-hosts/host-get-reboot.xml create mode 100644 doc/api_samples/os-hosts/host-get-shutdown.json create mode 100644 doc/api_samples/os-hosts/host-get-shutdown.xml create mode 100644 doc/api_samples/os-hosts/host-get-startup.json create mode 100644 doc/api_samples/os-hosts/host-get-startup.xml create mode 100644 doc/api_samples/os-hosts/host-put-maintenance-req.json create mode 100644 doc/api_samples/os-hosts/host-put-maintenance-req.xml create mode 100644 doc/api_samples/os-hosts/host-put-maintenance-resp.json create mode 100644 doc/api_samples/os-hosts/host-put-maintenance-resp.xml (limited to 'doc') diff --git a/doc/api_samples/os-hosts/host-get-reboot.json b/doc/api_samples/os-hosts/host-get-reboot.json new file mode 100644 index 000000000..a93e48953 --- /dev/null +++ b/doc/api_samples/os-hosts/host-get-reboot.json @@ -0,0 +1,4 @@ +{ + "host": "066bf157ab50481d8c607cfe584b2230", + "power_action": "reboot" +} \ No newline at end of file diff --git a/doc/api_samples/os-hosts/host-get-reboot.xml b/doc/api_samples/os-hosts/host-get-reboot.xml new file mode 100644 index 000000000..3b3fe27b5 --- /dev/null +++ b/doc/api_samples/os-hosts/host-get-reboot.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/doc/api_samples/os-hosts/host-get-shutdown.json b/doc/api_samples/os-hosts/host-get-shutdown.json new file mode 100644 index 000000000..b584c9044 --- /dev/null +++ b/doc/api_samples/os-hosts/host-get-shutdown.json @@ -0,0 +1,4 @@ +{ + "host": "d2576862a2144ee6ad37d9e1938460a2", + "power_action": "shutdown" +} \ No newline at end of file diff --git a/doc/api_samples/os-hosts/host-get-shutdown.xml b/doc/api_samples/os-hosts/host-get-shutdown.xml new file mode 100644 index 000000000..4f5f1a758 --- /dev/null +++ b/doc/api_samples/os-hosts/host-get-shutdown.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/doc/api_samples/os-hosts/host-get-startup.json b/doc/api_samples/os-hosts/host-get-startup.json new file mode 100644 index 000000000..d66895ecf --- /dev/null +++ b/doc/api_samples/os-hosts/host-get-startup.json @@ -0,0 +1,4 @@ +{ + "host": "57f5de2fa5b44f14974a4f50b9ffcbf8", + "power_action": "startup" +} \ No newline at end of file diff --git a/doc/api_samples/os-hosts/host-get-startup.xml b/doc/api_samples/os-hosts/host-get-startup.xml new file mode 100644 index 000000000..8d6959946 --- /dev/null +++ b/doc/api_samples/os-hosts/host-get-startup.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/doc/api_samples/os-hosts/host-put-maintenance-req.json b/doc/api_samples/os-hosts/host-put-maintenance-req.json new file mode 100644 index 000000000..6accac164 --- /dev/null +++ b/doc/api_samples/os-hosts/host-put-maintenance-req.json @@ -0,0 +1,4 @@ +{ + "status": "enable", + "maintenance_mode": "disable" +} \ No newline at end of file diff --git a/doc/api_samples/os-hosts/host-put-maintenance-req.xml b/doc/api_samples/os-hosts/host-put-maintenance-req.xml new file mode 100644 index 000000000..42b995b5d --- /dev/null +++ b/doc/api_samples/os-hosts/host-put-maintenance-req.xml @@ -0,0 +1,5 @@ + + + enable + disable + \ No newline at end of file diff --git a/doc/api_samples/os-hosts/host-put-maintenance-resp.json b/doc/api_samples/os-hosts/host-put-maintenance-resp.json new file mode 100644 index 000000000..2feb88405 --- /dev/null +++ b/doc/api_samples/os-hosts/host-put-maintenance-resp.json @@ -0,0 +1,5 @@ +{ + "host": "0738dca90a8c43fdadd0be28715520e2", + "maintenance_mode": "off_maintenance", + "status": "enabled" +} \ No newline at end of file diff --git a/doc/api_samples/os-hosts/host-put-maintenance-resp.xml b/doc/api_samples/os-hosts/host-put-maintenance-resp.xml new file mode 100644 index 000000000..c4d165628 --- /dev/null +++ b/doc/api_samples/os-hosts/host-put-maintenance-resp.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file -- cgit