|
APIs in Category: snaplock |
API version 1.5 |
file-get-snaplock-retention-time |
| file-get-snaplock-retention-time | [top] |
Get the SnapLock retention attributes of a file.
Input Name Range Type Description path string
Absolute path of the file to query. The value must be prefixed with "/vol/ ". Output Name Range Type Description retention-time integer
Retention time in seconds since 01/01/1970 00:00:00. A zero value indicates that the file is not in WORM state. Range: [0..2^64-1]
Errno Description ENXIO EIO ENOENT EINVAL
| file-set-snaplock-retention-time | [top] |
Set the SnapLock retention attributes of a file.
Input Name Range Type Description path string
Absolute path of the file. The value must be prefixed with "/vol/ ". retention-time integer
Expiry time in seconds since 01-Jan-1970 00:00:00 at which time the file will be eligible for deletion. Range: [0..2^64-1]
Errno Description ENOENT EINVAL ERANGE ENXIO EIO