Get a file system snapshot size

NAS File Storage REST API v7 Reference

Version
14.7.x
14.6.x
Audience
anonymous
Part Number
MK-92HNAS088-05

Retrieves the preserved space that is in use by a snapshot. Note that if the snapshot is deleted, all of the space preserved for it may not be freed since some of the space may also be shared with older snapshots.

HTTP request syntax (URI)

GET <base_URI>/v7/storage/filesystem-snapshots/{snapshotObjectId}/snapshot-size

Parameters

Name Type Required Values Description
snapshotObjectId URI_PARAM Y string Unique object identity of the file system snapshot.

Return codes

Code Data Description
200 snapshotSize File system snapshot size successfully retrieved
400 No Data Missing or invalid request contents.
404 Error Message Requested resource not found.
500 Error message Error associated with the storage system.
501 No Data Server has not implemented the request operation on the resource.

Any HTTP status code other than 200 indicates that the API did not complete successfully.

Request example

curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" https://172.17.239.123:8444/v7/storage/filesystem-snapshots/41414531443338333030314638343733303030303030303030303030303030303a3a3a4d657 4726f2d617473656e672d736e617073686f742d30303031/snapshot-size

Response example

HTTP/1.1 200 OK
 {
 	"snapshotSize" : 8388608
 }