How to list Azure blob snapshots with .Net client
-
24-09-2019 - |
Question
In the REST interface for Azure blobs, when you request a list of blobs there is a parameter for specifying that you want to list snapshots. Has this been exposed anywhere in the .Net client?
Solution
See http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.storageclient.bloblistingdetails.aspx.
I think you want something like
container.ListBlobs(new BlobRequestOptions() { BlobListingDetails = BlobListingDetails.Snapshots });
(Sorry if that code isn't quite right... don't have VS open.)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow