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
This commit is contained in:
24
doc/api_samples/os-volumes/os-volumes-detail-resp.json
Normal file
24
doc/api_samples/os-volumes/os-volumes-detail-resp.json
Normal file
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
9
doc/api_samples/os-volumes/os-volumes-detail-resp.xml
Normal file
9
doc/api_samples/os-volumes/os-volumes-detail-resp.xml
Normal file
@@ -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>
|
||||
22
doc/api_samples/os-volumes/os-volumes-get-resp.json
Normal file
22
doc/api_samples/os-volumes/os-volumes-get-resp.json
Normal file
@@ -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"
|
||||
}
|
||||
}
|
||||
7
doc/api_samples/os-volumes/os-volumes-get-resp.xml
Normal file
7
doc/api_samples/os-volumes/os-volumes-get-resp.xml
Normal file
@@ -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>
|
||||
24
doc/api_samples/os-volumes/os-volumes-index-resp.json
Normal file
24
doc/api_samples/os-volumes/os-volumes-index-resp.json
Normal file
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
9
doc/api_samples/os-volumes/os-volumes-index-resp.xml
Normal file
9
doc/api_samples/os-volumes/os-volumes-index-resp.xml
Normal file
@@ -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>
|
||||
9
doc/api_samples/os-volumes/os-volumes-post-req.json
Normal file
9
doc/api_samples/os-volumes/os-volumes-post-req.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"volume":
|
||||
{
|
||||
"availability_zone": "zone1:host1",
|
||||
"display_name": "Volume Name",
|
||||
"display_description": "Volume Description",
|
||||
"size": 100
|
||||
}
|
||||
}
|
||||
3
doc/api_samples/os-volumes/os-volumes-post-req.xml
Normal file
3
doc/api_samples/os-volumes/os-volumes-post-req.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<volume displayDescription="Volume Description" availabilityZone="zone1:host1" displayName="Volume Name" size="100"/>
|
||||
|
||||
22
doc/api_samples/os-volumes/os-volumes-post-resp.json
Normal file
22
doc/api_samples/os-volumes/os-volumes-post-resp.json
Normal file
@@ -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"
|
||||
}
|
||||
}
|
||||
7
doc/api_samples/os-volumes/os-volumes-post-resp.xml
Normal file
7
doc/api_samples/os-volumes/os-volumes-post-resp.xml
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user