ontap-rest-python icon indicating copy to clipboard operation
ontap-rest-python copied to clipboard

Size field not available in Snapshot

Open ItsDevMonk opened this issue 1 year ago • 2 comments

I want to collect the list of snapshot along with its size. But under this api /api/storage/volumes/{volume.uuid}/snapshots, I couldn't find the size of the snapshot. Is there any other api to get the size?

ItsDevMonk avatar Jul 11 '23 14:07 ItsDevMonk

Thank you for reporting an issue! If you haven't already joined our Discord community, then we invite you to do so. This is a great place to get help and ask questions from our community.

github-actions[bot] avatar Jul 11 '23 14:07 github-actions[bot]

Hello, Every snapshot object returned by /storage/volumes/{volume.uuid}/snapshots and /storage/volumes/{volume.uuid}/snapshots/{uuid} has a property called size. You can find the documentation on it here: https://library.netapp.com/ecmdocs/ECMLP2885777/html/resources/snapshot.html#netapp_ontap.resources.snapshot.SnapshotSchema.size

Is this what you're looking for?

noorbuchi avatar Sep 25 '23 20:09 noorbuchi