From a94176e15bcaf9a557c4cf16bd83b6aedb6db07d Mon Sep 17 00:00:00 2001 From: Adalberto Medeiros Date: Thu, 14 Feb 2013 19:17:57 -0200 Subject: 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 --- .../os-volumes/os-volumes-detail-resp.json | 24 ++++++++++++++++++++++ .../os-volumes/os-volumes-detail-resp.xml | 9 ++++++++ .../os-volumes/os-volumes-get-resp.json | 22 ++++++++++++++++++++ doc/api_samples/os-volumes/os-volumes-get-resp.xml | 7 +++++++ .../os-volumes/os-volumes-index-resp.json | 24 ++++++++++++++++++++++ .../os-volumes/os-volumes-index-resp.xml | 9 ++++++++ .../os-volumes/os-volumes-post-req.json | 9 ++++++++ doc/api_samples/os-volumes/os-volumes-post-req.xml | 3 +++ .../os-volumes/os-volumes-post-resp.json | 22 ++++++++++++++++++++ .../os-volumes/os-volumes-post-resp.xml | 7 +++++++ 10 files changed, 136 insertions(+) create mode 100644 doc/api_samples/os-volumes/os-volumes-detail-resp.json create mode 100644 doc/api_samples/os-volumes/os-volumes-detail-resp.xml create mode 100644 doc/api_samples/os-volumes/os-volumes-get-resp.json create mode 100644 doc/api_samples/os-volumes/os-volumes-get-resp.xml create mode 100644 doc/api_samples/os-volumes/os-volumes-index-resp.json create mode 100644 doc/api_samples/os-volumes/os-volumes-index-resp.xml create mode 100644 doc/api_samples/os-volumes/os-volumes-post-req.json create mode 100644 doc/api_samples/os-volumes/os-volumes-post-req.xml create mode 100644 doc/api_samples/os-volumes/os-volumes-post-resp.json create mode 100644 doc/api_samples/os-volumes/os-volumes-post-resp.xml (limited to 'doc') 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 @@ + + + + + + + + + \ 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 @@ + + + + + + + \ 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 @@ + + + + + + + + + \ 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 @@ + + + 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 @@ + + + + + + + \ No newline at end of file -- cgit