GET /api/storage_snapshots/:snapshot_id does not return 'DELETE' as an action -
xml does not return 'state'
-----------------------------------------------------------------------------------------------------------
Key: DTACLOUD-183
URL: https://issues.apache.org/jira/browse/DTACLOUD-183
Project: DeltaCloud
Issue Type: Bug
Components: Server
Environment: deltacloud git commit version:
a16c34de06776f91fb68cc49e6e1f7d2c815fc01 - branch 'master' of
https://git-wip-us.apache.org/repos/asf/deltacloud
Fedora 16
ec2 provider
Reporter: Ronelle Landy
Assignee: David Lutterkort
Two outputs of GET /api/storage_snapshots/:storage_snapshot_id are copied below
- first xml and then json.
- Neither output shows actions listed, although it is possible to delete a
snapshot and the GUI does show DELETE as an available action.
- The json output shows a state item and the xml output does not.
curl -X GET --user "username:password"
"http://localhost:3009/api/storage_snapshots/snap-372caf4d?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<storage_snapshot
href='http://localhost:3009/api/storage_snapshots/snap-372caf4d'
id='snap-372caf4d'>
<created>Mon Mar 19 17:01:58 UTC 2012</created>
<storage_volume href='http://localhost:3009/api/storage_volumes/vol-efb79583'
id='vol-efb79583'></storage_volume>
</storage_snapshot>
[rlandy@localhost /]$ curl -X GET --user username:password"
"http://localhost:3009/api/storage_snapshots/snap-372caf4d?format=json"
{"storage_snapshot":{"storage_volume_id":"vol-efb79583","href":"http://localhost:3009/api/storage_snapshots/snap-372caf4d","created":"Mon
Mar 19 17:01:58 UTC
2012","state":"completed","id":"snap-372caf4d"}}[rlandy@localhost /]$
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira