v7

latestSwagger 2.0raw.githubusercontent.com2018-12-0432161.7 KB
FileSystem

Sets or removes the expiration time on the specified file. This operation can only be executed against files. Folders are not supported.

put/WebHdfsExt/{path}

Path parameters

pathstring required

The Data Lake Store path (starting with '/') of the file on which to set or remove the expiration time.

Query parameters

expiryOption'NeverExpire' | 'RelativeToNow' | 'RelativeToCreationDate' | 'Absolute' required

Indicates the type of expiration to use for the file: 1. NeverExpire: ExpireTime is ignored. 2. RelativeToNow: ExpireTime is an integer in milliseconds representing the expiration date relative to when file expiration is updated. 3. RelativeToCreationDate: ExpireTime is an integer in milliseconds representing the expiration date relative to file creation. 4. Absolute: ExpireTime is an integer in milliseconds, as a Unix timestamp relative to 1/1/1970 00:00:00.

expireTimeinteger

The time that the file will expire, corresponding to the ExpiryOption that was set.

op'SETEXPIRY' required

The constant value for the operation.

api-versionstring required

Client Api Version.

Response

Successfully set the expiration time on the specified file.

All 3 operations