Get a file system snapshot

NAS File Storage REST API v7 Reference

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

Retrieves a file system snapshot.

HTTP request syntax (URI)

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

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 snapshot File system snapshot 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/ 38363442313232384142423134344143303030303030303030303030303030303a3a3a4155544f5f534e415053484f545f5441524745545f353a3a3a3a3a3a303a3a3a4f49445f24232140255f56

Response example

HTTP/1.1 200 OK
 {
    "snapshot" :
        {
                "creationReason" : "SNAPSHOT_CREATED_BY_HSR",
                "creationTime" : 1466555788,
                "displayName" : "AUTO_SNAPSHOT_TARGET_5",
                "filesystemId" : "864B1228ABB144AC0000000000000000",
                "objectId" : "38363442313232384142423134344143303030303030303030303030303030303a3a3a4155544f5f534e415053484f545f5441524745545f353a3a3a3a3a3a303a3a3a4f49445f24232140255f56",
                "state" : "SNAPSHOT_MANAGEMENT_STATE_USABLE"
        }
 }