mirror of
https://gerrit.ovirt.org/vdsm
synced 2026-02-05 12:46:23 +01:00
This Patch adds new verb to get the snapshot
list for a volume and across cluster.
*glusterVolumeSnapshotList: gives the list of all the snapshots
present in a volume if volume name is provided. Else It gives
list of all snapshot across the cluster
Returns:
{'v1': {'snapshots': [{'name': 'snap1_v1',
'description': description of the snapshot,
'id': '8add41ae-c60c-4023-'
'a1a6-5093a5d35603',
'createTime': {'timeZone': 'IST',
'epochTime': 1414427114},
'snapVolume': '5eeaf23def3f446d898e1de8461a6aa7'
'snapVolumeStatus': 'ACTIVATED'}, ...],
'snapRemaining': 252},
'v2': {'snapshots': [{'name': 'snap1_v2',
'description': description of the snapshot,
'id': '8add41ae-c60c-4023'
'-a1a6-1233a5d35603',
'createTime': {'timeZone': 'IST',
'epochTime': 1414427114},
'snapVolume': '5eeaf23def3f446d898e1123461a6aa7'
'snapVolumeStatus': 'DEACTIVATED'}, ...],
'snapRemaining': 252},...
}
Change-Id: I06945d6781432b7fb40e417dd21c0ecf107de132
Signed-off-by: Darshan N <dnarayan@redhat.com>
Reviewed-on: https://gerrit.ovirt.org/36087
Reviewed-by: Dan Kenigsberg <danken@redhat.com>
48 lines
1.4 KiB
XML
48 lines
1.4 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<cliOutput>
|
|
<opRet>0</opRet>
|
|
<opErrno>0</opErrno>
|
|
<opErrstr/>
|
|
<snapInfo>
|
|
<originVolume>
|
|
<name>snap-vol</name>
|
|
<snapCount>3</snapCount>
|
|
<snapRemaining>252</snapRemaining>
|
|
</originVolume>
|
|
<count>3</count>
|
|
<snapshots>
|
|
<snapshot>
|
|
<name>snap7</name>
|
|
<uuid>a5967958-705e-4835-9089-66e6358d7514</uuid>
|
|
<createTime>2014-12-08 17:52:50</createTime>
|
|
<volCount>1</volCount>
|
|
<snapVolume>
|
|
<name>fca1ad5a73e9447ea541a7d2d141c979</name>
|
|
<status>Started</status>
|
|
</snapVolume>
|
|
</snapshot>
|
|
<snapshot>
|
|
<name>snap6</name>
|
|
<uuid>cc8b262f-a6d5-4d41-ad5d-e5ac90d73ca4</uuid>
|
|
<createTime>2014-12-08 17:52:55</createTime>
|
|
<volCount>1</volCount>
|
|
<snapVolume>
|
|
<name>b25e8490fdef46dd82bff94b27df15a8</name>
|
|
<status>Started</status>
|
|
</snapVolume>
|
|
</snapshot>
|
|
<snapshot>
|
|
<name>snap10</name>
|
|
<uuid>8f7135a8-452b-4c14-ba7a-8bf9cbd0efb2</uuid>
|
|
<description>this is a sample description</description>
|
|
<createTime>2014-12-11 10:28:07</createTime>
|
|
<volCount>1</volCount>
|
|
<snapVolume>
|
|
<name>9368c4cd2b8d42e494c929357dd1bc44</name>
|
|
<status>Started</status>
|
|
</snapVolume>
|
|
</snapshot>
|
|
</snapshots>
|
|
</snapInfo>
|
|
</cliOutput>
|