Team,
I need to pull the size of the snapshot of a specific volume.
============ code ==========================================
##S1 and V1 are Snapshot and Volume objects which are already initialized before the below code.
S11=Snapshot.from_dict({'uuid':S1.uuid,'volume.uuid': V1.uuid})
S11.get()
print ("final snap==================")
print (S11)
print ("final snap==================")
==========================================================
Returns the below:
**********************************************************************************************************
final snap==================
Snapshot({'volume': {'uuid': '0207959e-b04b-11ea-b611-d039ea073d7a', '_links': {'self': {'href': '/api/storage/volumes/0207959e-b04b-11ea-b611-d039ea073d7a'}}, 'name': 'XXXXXX'}, 'name': 'weekly.2021-02-07_0015', 'create_time': '2021-02-07T00:15:01+00:00', '_links': {'self': {'href': '/api/storage/volumes/0207959e-b04b-11ea-b611-d039ea073d7a/snapshots/15891d63-214a-4e7b-86da-942612280b39'}}, 'svm': {'uuid': '01a0b7f6-b04b-11ea-b611-d039ea073d7a', '_links': {'self': {'href': '/api/svm/svms/01a0b7f6-b04b-11ea-b611-d039ea073d7a'}}, 'name': 'XXXXX'}, 'uuid': '15891d63-214a-4e7b-86da-942612280b39'})
final snap==================
I am not able to get the size of the snapshot but getting all other details [ like name, creation_time etc].
Appreciate your help.
Thanks
Suneel
Appreciate if you