115a78d452
Ports v2 volumes extension and adapts it to the v2.1/v3 API framework. API behaviour is identical with the exception that there is no support for XML. Also - unittest code modified to share testing with both v2/v2.1 where appropriate - Adds expected error decorators for API methods Note that there will be further code cleanup in the future but the code currently is mostly as-is from the v2 codebase. Partially implements blueprint v2-on-v3-api Change-Id: If2a9dd1f5233812a1177b54ded6f0ae115c54e97
25 lines
781 B
JSON
25 lines
781 B
JSON
{
|
|
"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.000000",
|
|
"displayDescription": "Volume Description",
|
|
"displayName": "Volume Name",
|
|
"id": "a26887c6-c47b-4654-abb5-dfadf7d3f803",
|
|
"metadata": {},
|
|
"size": 100,
|
|
"snapshotId": null,
|
|
"status": "in-use",
|
|
"volumeType": "Backup"
|
|
}
|
|
]
|
|
}
|