Hi,
I'am trying to list snapshots of pool using ceph-rest-api. The json format only display the last snapshot of the pool not all.
the ceph version is ceph version 0.67.3 (408cd61584c72c0d97b774b3d8f95c6b1b06341a)
http://@ip/api/v0.1/osd/dump :
<pool_snaps><pool_snap_info><snapid>3</snapid><stamp>2013-11-25 11:37:34.695874</stamp><name>ericsnap1</name></pool_snap_info><pool_snap_info><snapid>4</snapid><stamp>2013-11-25 11:40:30.832976</stamp><name>ericsnap2</name></pool_snap_info><pool_snap_info><snapid>5</snapid><stamp>2013-11-25 12:40:02.365069</stamp><name>ericsnap2wq</name></pool_snap_info>
versusI'am trying to list snapshots of pool using ceph-rest-api. The json format only display the last snapshot of the pool not all.
the ceph version is ceph version 0.67.3 (408cd61584c72c0d97b774b3d8f95c6b1b06341a)
http://@ip/api/v0.1/osd/dump :
<pool_snaps><pool_snap_info><snapid>3</snapid><stamp>2013-11-25 11:37:34.695874</stamp><name>ericsnap1</name></pool_snap_info><pool_snap_info><snapid>4</snapid><stamp>2013-11-25 11:40:30.832976</stamp><name>ericsnap2</name></pool_snap_info><pool_snap_info><snapid>5</snapid><stamp>2013-11-25 12:40:02.365069</stamp><name>ericsnap2wq</name></pool_snap_info>
http://@ip/api/v0.1/osd/dump.json or with headers={"Accept":"application/json"}
I"pool_snaps": {
"pool_snap_info": {
"stamp": "2013-11-25 12:40:02.365069",
"snapid": 5,
"name": "ericsnap2wq"
}
},
have you also have the same problem?
--
Eric Mourgaya,
Respectons la planete!
Luttons contre la mediocrite!
Eric Mourgaya,
Respectons la planete!
Luttons contre la mediocrite!
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com