Software Development Kit (SDK) and API Discussions

How to get snapshot size by SDK in c#?


I want to get the space that snapshot used in a volume like "df" command shows. which class and property should I use?


I have tried SanpshotRecliamableInfoResult class, it can give me the right number, but it takes lots of time and always fail when calculates large number of snapshots( over 90 ). Is there any better solutions?






You can use the snapshot-info API for this. The snapshot-info also contains an output field cumulative-total, the cumulative-total of the latest snapshot is the total snapshot space used by all snapshots.

Register for Insight 2021 Digital

INSIGHT 2021 Digital: Meet the Specialists 2

On October 20-22, gear up for a fully digital, totally immersive virtual experience with a downright legendary lineup of world-renowned specialists. Tune in for visionary conversations, solution deep dives, technical sessions and more.

NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner