summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAdalberto Medeiros <adalbas@linux.vnet.ibm.com>2013-02-14 19:17:57 -0200
committerAdalberto Medeiros <adalbas@linux.vnet.ibm.com>2013-03-01 11:31:25 -0300
commita94176e15bcaf9a557c4cf16bd83b6aedb6db07d (patch)
tree5c828a1f2f915dc15d5dab7c00cd2c1c49f20c99 /doc
parent11764e5250dc2ea4a92cf7402271e7d4e407113f (diff)
Add os-volumes extension to api samples
Add samples and templates to api samples for volumes extensions Fixes: bug 1071338 Implements: blueprint nova-api-samples Change-Id: Ia021cc4d6c29ccaa3e81f4c5fdbb7e88d9f02dc6
Diffstat (limited to 'doc')
-rw-r--r--doc/api_samples/os-volumes/os-volumes-detail-resp.json24
-rw-r--r--doc/api_samples/os-volumes/os-volumes-detail-resp.xml9
-rw-r--r--doc/api_samples/os-volumes/os-volumes-get-resp.json22
-rw-r--r--doc/api_samples/os-volumes/os-volumes-get-resp.xml7
-rw-r--r--doc/api_samples/os-volumes/os-volumes-index-resp.json24
-rw-r--r--doc/api_samples/os-volumes/os-volumes-index-resp.xml9
-rw-r--r--doc/api_samples/os-volumes/os-volumes-post-req.json9
-rw-r--r--doc/api_samples/os-volumes/os-volumes-post-req.xml3
-rw-r--r--doc/api_samples/os-volumes/os-volumes-post-resp.json22
-rw-r--r--doc/api_samples/os-volumes/os-volumes-post-resp.xml7
10 files changed, 136 insertions, 0 deletions
diff --git a/doc/api_samples/os-volumes/os-volumes-detail-resp.json b/doc/api_samples/os-volumes/os-volumes-detail-resp.json
new file mode 100644
index 000000000..95be0419e
--- /dev/null
+++ b/doc/api_samples/os-volumes/os-volumes-detail-resp.json
@@ -0,0 +1,24 @@
+{
+ "volumes": [
+ {
+ "attachments": [
+ {
+ "device": "/",
+ "id": "a26887c6-c47b-4654-abb5-dfadf7d3f803",
+ "serverId": "3912f2b4-c5ba-4aec-9165-872876fe202e",
+ "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f803"
+ }
+ ],
+ "availabilityZone": "zone1:host1",
+ "createdAt": "1999-01-01T01:01:01",
+ "displayDescription": "Volume Description",
+ "displayName": "Volume Name",
+ "id": "a26887c6-c47b-4654-abb5-dfadf7d3f803",
+ "metadata": {},
+ "size": 100,
+ "snapshotId": null,
+ "status": "in-use",
+ "volumeType": "Backup"
+ }
+ ]
+} \ No newline at end of file
diff --git a/doc/api_samples/os-volumes/os-volumes-detail-resp.xml b/doc/api_samples/os-volumes/os-volumes-detail-resp.xml
new file mode 100644
index 000000000..b849c2d2e
--- /dev/null
+++ b/doc/api_samples/os-volumes/os-volumes-detail-resp.xml
@@ -0,0 +1,9 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<volumes>
+ <volume status="in-use" displayDescription="Volume Description" availabilityZone="zone1:host1" displayName="Volume Name" volumeType="Backup" snapshotId="None" id="a26887c6-c47b-4654-abb5-dfadf7d3f803" createdAt="2008-12-01T11:01:55" size="100">
+ <attachments>
+ <attachment device="/" serverId="3912f2b4-c5ba-4aec-9165-872876fe202e" id="a26887c6-c47b-4654-abb5-dfadf7d3f803" volumeId="a26887c6-c47b-4654-abb5-dfadf7d3f803"/>
+ </attachments>
+ <metadata/>
+ </volume>
+</volumes> \ No newline at end of file
diff --git a/doc/api_samples/os-volumes/os-volumes-get-resp.json b/doc/api_samples/os-volumes/os-volumes-get-resp.json
new file mode 100644
index 000000000..5c8429cb1
--- /dev/null
+++ b/doc/api_samples/os-volumes/os-volumes-get-resp.json
@@ -0,0 +1,22 @@
+{
+ "volume": {
+ "attachments": [
+ {
+ "device": "/",
+ "id": "a26887c6-c47b-4654-abb5-dfadf7d3f803",
+ "serverId": "3912f2b4-c5ba-4aec-9165-872876fe202e",
+ "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f803"
+ }
+ ],
+ "availabilityZone": "zone1:host1",
+ "createdAt": "2013-02-18T14:51:18.528085",
+ "displayDescription": "Volume Description",
+ "displayName": "Volume Name",
+ "id": "a26887c6-c47b-4654-abb5-dfadf7d3f803",
+ "metadata": {},
+ "size": 100,
+ "snapshotId": null,
+ "status": "in-use",
+ "volumeType": "Backup"
+ }
+} \ No newline at end of file
diff --git a/doc/api_samples/os-volumes/os-volumes-get-resp.xml b/doc/api_samples/os-volumes/os-volumes-get-resp.xml
new file mode 100644
index 000000000..1a516d5d2
--- /dev/null
+++ b/doc/api_samples/os-volumes/os-volumes-get-resp.xml
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<volume status="in-use" displayDescription="Volume Description" availabilityZone="zone1:host1" displayName="Volume Name" volumeType="Backup" snapshotId="None" id="a26887c6-c47b-4654-abb5-dfadf7d3f803" createdAt="2008-12-01T11:01:55" size="100">
+ <attachments>
+ <attachment device="/" serverId="3912f2b4-c5ba-4aec-9165-872876fe202e" id="a26887c6-c47b-4654-abb5-dfadf7d3f803" volumeId="a26887c6-c47b-4654-abb5-dfadf7d3f803"/>
+ </attachments>
+ <metadata/>
+</volume> \ No newline at end of file
diff --git a/doc/api_samples/os-volumes/os-volumes-index-resp.json b/doc/api_samples/os-volumes/os-volumes-index-resp.json
new file mode 100644
index 000000000..c0fa4b891
--- /dev/null
+++ b/doc/api_samples/os-volumes/os-volumes-index-resp.json
@@ -0,0 +1,24 @@
+{
+ "volumes": [
+ {
+ "attachments": [
+ {
+ "device": "/",
+ "id": "a26887c6-c47b-4654-abb5-dfadf7d3f803",
+ "serverId": "3912f2b4-c5ba-4aec-9165-872876fe202e",
+ "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f803"
+ }
+ ],
+ "availabilityZone": "zone1:host1",
+ "createdAt": "2013-02-19T20:01:40.274897",
+ "displayDescription": "Volume Description",
+ "displayName": "Volume Name",
+ "id": "a26887c6-c47b-4654-abb5-dfadf7d3f803",
+ "metadata": {},
+ "size": 100,
+ "snapshotId": null,
+ "status": "in-use",
+ "volumeType": "Backup"
+ }
+ ]
+} \ No newline at end of file
diff --git a/doc/api_samples/os-volumes/os-volumes-index-resp.xml b/doc/api_samples/os-volumes/os-volumes-index-resp.xml
new file mode 100644
index 000000000..b849c2d2e
--- /dev/null
+++ b/doc/api_samples/os-volumes/os-volumes-index-resp.xml
@@ -0,0 +1,9 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<volumes>
+ <volume status="in-use" displayDescription="Volume Description" availabilityZone="zone1:host1" displayName="Volume Name" volumeType="Backup" snapshotId="None" id="a26887c6-c47b-4654-abb5-dfadf7d3f803" createdAt="2008-12-01T11:01:55" size="100">
+ <attachments>
+ <attachment device="/" serverId="3912f2b4-c5ba-4aec-9165-872876fe202e" id="a26887c6-c47b-4654-abb5-dfadf7d3f803" volumeId="a26887c6-c47b-4654-abb5-dfadf7d3f803"/>
+ </attachments>
+ <metadata/>
+ </volume>
+</volumes> \ No newline at end of file
diff --git a/doc/api_samples/os-volumes/os-volumes-post-req.json b/doc/api_samples/os-volumes/os-volumes-post-req.json
new file mode 100644
index 000000000..c8b218adb
--- /dev/null
+++ b/doc/api_samples/os-volumes/os-volumes-post-req.json
@@ -0,0 +1,9 @@
+{
+ "volume":
+ {
+ "availability_zone": "zone1:host1",
+ "display_name": "Volume Name",
+ "display_description": "Volume Description",
+ "size": 100
+ }
+}
diff --git a/doc/api_samples/os-volumes/os-volumes-post-req.xml b/doc/api_samples/os-volumes/os-volumes-post-req.xml
new file mode 100644
index 000000000..68a0b5864
--- /dev/null
+++ b/doc/api_samples/os-volumes/os-volumes-post-req.xml
@@ -0,0 +1,3 @@
+<?xml version='1.0' encoding='UTF-8'?>
+ <volume displayDescription="Volume Description" availabilityZone="zone1:host1" displayName="Volume Name" size="100"/>
+
diff --git a/doc/api_samples/os-volumes/os-volumes-post-resp.json b/doc/api_samples/os-volumes/os-volumes-post-resp.json
new file mode 100644
index 000000000..ba3795a0b
--- /dev/null
+++ b/doc/api_samples/os-volumes/os-volumes-post-resp.json
@@ -0,0 +1,22 @@
+{
+ "volume": {
+ "attachments": [
+ {
+ "device": "/",
+ "id": "a26887c6-c47b-4654-abb5-dfadf7d3f803",
+ "serverId": "3912f2b4-c5ba-4aec-9165-872876fe202e",
+ "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f803"
+ }
+ ],
+ "availabilityZone": "zone1:host1",
+ "createdAt": "2013-02-18T14:51:17.970024",
+ "displayDescription": "Volume Description",
+ "displayName": "Volume Name",
+ "id": "a26887c6-c47b-4654-abb5-dfadf7d3f803",
+ "metadata": {},
+ "size": 100,
+ "snapshotId": null,
+ "status": "in-use",
+ "volumeType": "Backup"
+ }
+} \ No newline at end of file
diff --git a/doc/api_samples/os-volumes/os-volumes-post-resp.xml b/doc/api_samples/os-volumes/os-volumes-post-resp.xml
new file mode 100644
index 000000000..1a516d5d2
--- /dev/null
+++ b/doc/api_samples/os-volumes/os-volumes-post-resp.xml
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<volume status="in-use" displayDescription="Volume Description" availabilityZone="zone1:host1" displayName="Volume Name" volumeType="Backup" snapshotId="None" id="a26887c6-c47b-4654-abb5-dfadf7d3f803" createdAt="2008-12-01T11:01:55" size="100">
+ <attachments>
+ <attachment device="/" serverId="3912f2b4-c5ba-4aec-9165-872876fe202e" id="a26887c6-c47b-4654-abb5-dfadf7d3f803" volumeId="a26887c6-c47b-4654-abb5-dfadf7d3f803"/>
+ </attachments>
+ <metadata/>
+</volume> \ No newline at end of file