Software Development Kit (SDK) and API Discussions

How to get snapshot size by SDK in c#?

KIRK_LU__

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?

 

Thanks

1 REPLY 1

Re: How to get snapshot size by SDK in c#?

aashray

Hi,

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.

Earn Rewards for Your Review!
GPI Review Banner
All Community Forums
Public