summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/v3/api_samples/os-hosts/host-get-reboot.json6
-rw-r--r--doc/v3/api_samples/os-hosts/host-get-reboot.xml5
-rw-r--r--doc/v3/api_samples/os-hosts/host-get-resp.json31
-rw-r--r--doc/v3/api_samples/os-hosts/host-get-resp.xml24
-rw-r--r--doc/v3/api_samples/os-hosts/host-get-shutdown.json6
-rw-r--r--doc/v3/api_samples/os-hosts/host-get-shutdown.xml5
-rw-r--r--doc/v3/api_samples/os-hosts/host-get-startup.json6
-rw-r--r--doc/v3/api_samples/os-hosts/host-get-startup.xml5
-rw-r--r--doc/v3/api_samples/os-hosts/host-put-maintenance-req.json6
-rw-r--r--doc/v3/api_samples/os-hosts/host-put-maintenance-req.xml5
-rw-r--r--doc/v3/api_samples/os-hosts/host-put-maintenance-resp.json7
-rw-r--r--doc/v3/api_samples/os-hosts/host-put-maintenance-resp.xml6
-rw-r--r--doc/v3/api_samples/os-hosts/hosts-list-resp.json39
-rw-r--r--doc/v3/api_samples/os-hosts/hosts-list-resp.xml10
14 files changed, 161 insertions, 0 deletions
diff --git a/doc/v3/api_samples/os-hosts/host-get-reboot.json b/doc/v3/api_samples/os-hosts/host-get-reboot.json
new file mode 100644
index 0000000000..2167d81d0f
--- /dev/null
+++ b/doc/v3/api_samples/os-hosts/host-get-reboot.json
@@ -0,0 +1,6 @@
+{
+ "host": {
+ "host": "9557750dbc464741a89c907921c1cb31",
+ "power_action": "reboot"
+ }
+} \ No newline at end of file
diff --git a/doc/v3/api_samples/os-hosts/host-get-reboot.xml b/doc/v3/api_samples/os-hosts/host-get-reboot.xml
new file mode 100644
index 0000000000..8b6534e7ec
--- /dev/null
+++ b/doc/v3/api_samples/os-hosts/host-get-reboot.xml
@@ -0,0 +1,5 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<host>
+ <host>34e0a2409dab4052b17b4172a2a44172</host>
+ <power_action>reboot</power_action>
+</host> \ No newline at end of file
diff --git a/doc/v3/api_samples/os-hosts/host-get-resp.json b/doc/v3/api_samples/os-hosts/host-get-resp.json
new file mode 100644
index 0000000000..fc19d3a170
--- /dev/null
+++ b/doc/v3/api_samples/os-hosts/host-get-resp.json
@@ -0,0 +1,31 @@
+{
+ "host": [
+ {
+ "resource": {
+ "cpu": 1,
+ "disk_gb": 1028,
+ "host": "c1a7de0ac9d94e4baceae031d05caae3",
+ "memory_mb": 8192,
+ "project": "(total)"
+ }
+ },
+ {
+ "resource": {
+ "cpu": 0,
+ "disk_gb": 0,
+ "host": "c1a7de0ac9d94e4baceae031d05caae3",
+ "memory_mb": 512,
+ "project": "(used_now)"
+ }
+ },
+ {
+ "resource": {
+ "cpu": 0,
+ "disk_gb": 0,
+ "host": "c1a7de0ac9d94e4baceae031d05caae3",
+ "memory_mb": 0,
+ "project": "(used_max)"
+ }
+ }
+ ]
+} \ No newline at end of file
diff --git a/doc/v3/api_samples/os-hosts/host-get-resp.xml b/doc/v3/api_samples/os-hosts/host-get-resp.xml
new file mode 100644
index 0000000000..cb58012c35
--- /dev/null
+++ b/doc/v3/api_samples/os-hosts/host-get-resp.xml
@@ -0,0 +1,24 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<host>
+ <resource>
+ <project>(total)</project>
+ <memory_mb>8192</memory_mb>
+ <host>ee7466478092405c8f8e001b9ca0afb0</host>
+ <cpu>1</cpu>
+ <disk_gb>1028</disk_gb>
+ </resource>
+ <resource>
+ <project>(used_now)</project>
+ <memory_mb>512</memory_mb>
+ <host>ee7466478092405c8f8e001b9ca0afb0</host>
+ <cpu>0</cpu>
+ <disk_gb>0</disk_gb>
+ </resource>
+ <resource>
+ <project>(used_max)</project>
+ <memory_mb>0</memory_mb>
+ <host>ee7466478092405c8f8e001b9ca0afb0</host>
+ <cpu>0</cpu>
+ <disk_gb>0</disk_gb>
+ </resource>
+</host> \ No newline at end of file
diff --git a/doc/v3/api_samples/os-hosts/host-get-shutdown.json b/doc/v3/api_samples/os-hosts/host-get-shutdown.json
new file mode 100644
index 0000000000..8977ad905c
--- /dev/null
+++ b/doc/v3/api_samples/os-hosts/host-get-shutdown.json
@@ -0,0 +1,6 @@
+{
+ "host": {
+ "host": "77cfa0002e4d45fe97f185968111b27b",
+ "power_action": "shutdown"
+ }
+} \ No newline at end of file
diff --git a/doc/v3/api_samples/os-hosts/host-get-shutdown.xml b/doc/v3/api_samples/os-hosts/host-get-shutdown.xml
new file mode 100644
index 0000000000..28c5ae6b6d
--- /dev/null
+++ b/doc/v3/api_samples/os-hosts/host-get-shutdown.xml
@@ -0,0 +1,5 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<host>
+ <host>9c1d73144d4d43e28fe32840e35fec91</host>
+ <power_action>shutdown</power_action>
+</host> \ No newline at end of file
diff --git a/doc/v3/api_samples/os-hosts/host-get-startup.json b/doc/v3/api_samples/os-hosts/host-get-startup.json
new file mode 100644
index 0000000000..e61e3b2837
--- /dev/null
+++ b/doc/v3/api_samples/os-hosts/host-get-startup.json
@@ -0,0 +1,6 @@
+{
+ "host": {
+ "host": "4b392b27930343bbaa27fd5d8328a564",
+ "power_action": "startup"
+ }
+} \ No newline at end of file
diff --git a/doc/v3/api_samples/os-hosts/host-get-startup.xml b/doc/v3/api_samples/os-hosts/host-get-startup.xml
new file mode 100644
index 0000000000..9c97f43ab5
--- /dev/null
+++ b/doc/v3/api_samples/os-hosts/host-get-startup.xml
@@ -0,0 +1,5 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<host>
+ <host>f6bf5a52bd0645cdb7e1b28a1d647f3c</host>
+ <power_action>startup</power_action>
+</host> \ No newline at end of file
diff --git a/doc/v3/api_samples/os-hosts/host-put-maintenance-req.json b/doc/v3/api_samples/os-hosts/host-put-maintenance-req.json
new file mode 100644
index 0000000000..309a287f1e
--- /dev/null
+++ b/doc/v3/api_samples/os-hosts/host-put-maintenance-req.json
@@ -0,0 +1,6 @@
+{
+ "host": {
+ "status": "enable",
+ "maintenance_mode": "disable"
+ }
+} \ No newline at end of file
diff --git a/doc/v3/api_samples/os-hosts/host-put-maintenance-req.xml b/doc/v3/api_samples/os-hosts/host-put-maintenance-req.xml
new file mode 100644
index 0000000000..0a17686178
--- /dev/null
+++ b/doc/v3/api_samples/os-hosts/host-put-maintenance-req.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<host>
+ <status>enable</status>
+ <maintenance_mode>disable</maintenance_mode>
+</host> \ No newline at end of file
diff --git a/doc/v3/api_samples/os-hosts/host-put-maintenance-resp.json b/doc/v3/api_samples/os-hosts/host-put-maintenance-resp.json
new file mode 100644
index 0000000000..591e13ac69
--- /dev/null
+++ b/doc/v3/api_samples/os-hosts/host-put-maintenance-resp.json
@@ -0,0 +1,7 @@
+{
+ "host": {
+ "host": "65c5d5b7e3bd44308e67fc50f362aee6",
+ "maintenance_mode": "off_maintenance",
+ "status": "enabled"
+ }
+} \ No newline at end of file
diff --git a/doc/v3/api_samples/os-hosts/host-put-maintenance-resp.xml b/doc/v3/api_samples/os-hosts/host-put-maintenance-resp.xml
new file mode 100644
index 0000000000..8ed40b442e
--- /dev/null
+++ b/doc/v3/api_samples/os-hosts/host-put-maintenance-resp.xml
@@ -0,0 +1,6 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<host>
+ <status>enabled</status>
+ <maintenance_mode>off_maintenance</maintenance_mode>
+ <host>966158fd3a084a7791a11c592d1a5fcb</host>
+</host> \ No newline at end of file
diff --git a/doc/v3/api_samples/os-hosts/hosts-list-resp.json b/doc/v3/api_samples/os-hosts/hosts-list-resp.json
new file mode 100644
index 0000000000..854ca4a767
--- /dev/null
+++ b/doc/v3/api_samples/os-hosts/hosts-list-resp.json
@@ -0,0 +1,39 @@
+{
+ "hosts": [
+ {
+ "host_name": "b6e4adbc193d428ea923899d07fb001e",
+ "service": "conductor",
+ "zone": "internal"
+ },
+ {
+ "host_name": "09c025b0efc64211bd23fc50fa974cdf",
+ "service": "compute",
+ "zone": "nova"
+ },
+ {
+ "host_name": "a942ebfa00064d9d89a9e5a175cb9ba8",
+ "service": "cert",
+ "zone": "internal"
+ },
+ {
+ "host_name": "e73ec0bd35c64de4a1adfa8b8969a1f6",
+ "service": "consoleauth",
+ "zone": "internal"
+ },
+ {
+ "host_name": "396a8a0a234f476eb05fb9fbc5802ba7",
+ "service": "network",
+ "zone": "internal"
+ },
+ {
+ "host_name": "abffda96592c4eacaf4111c28fddee17",
+ "service": "scheduler",
+ "zone": "internal"
+ },
+ {
+ "host_name": "a8820f04962a4b4ba9fe2e9540c24094",
+ "service": "cells",
+ "zone": "internal"
+ }
+ ]
+} \ No newline at end of file
diff --git a/doc/v3/api_samples/os-hosts/hosts-list-resp.xml b/doc/v3/api_samples/os-hosts/hosts-list-resp.xml
new file mode 100644
index 0000000000..d935cd9799
--- /dev/null
+++ b/doc/v3/api_samples/os-hosts/hosts-list-resp.xml
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<hosts>
+ <host zone="internal" host_name="dbd50e387bcf4ad4a7cb82c0d4cd1a29" service="conductor"/>
+ <host zone="nova" host_name="548b88fe0ad1461b8f2d297ffb6ebb90" service="compute"/>
+ <host zone="internal" host_name="5c03090b25a04e46be1b77b6bcca515e" service="cert"/>
+ <host zone="internal" host_name="d354e5c745424dd5829d2af58d5647fc" service="consoleauth"/>
+ <host zone="internal" host_name="15136bf1ba7040e691cb48ea72ec9fef" service="network"/>
+ <host zone="internal" host_name="0577e9f8391c436b9ea55226738c8e66" service="scheduler"/>
+ <host zone="internal" host_name="8d07b10240d14df7b7bf5cdbf178f969" service="cells"/>
+</hosts> \ No newline at end of file