Modifies the retention period of data in the recycle bin of a file system.
Operation description
Only General-purpose NAS file systems support this operation.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
FileSystemId | string | Yes | The ID of the file system. | 1ca404**** |
ReservedDays | long | Yes | The retention period of the files in the recycle bin. Unit: days. Valid values: 1 to 180. Default value: 3. | 3 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "BC7C825C-5F65-4B56-BEF6-98C5****546E"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalCharacters | The parameter contains illegal characters. | The parameter contains illegal characters. |
400 | MissingFileSystemId | FileSystemId is mandatory for this action. | - |
403 | OperationDenied.RecycleBinDisabled | The operation is denied because the recycle bin is disabled. | The operation is denied because the recycle bin is disabled. |
404 | InvalidFileSystem.NotFound | The specified file system does not exist. | The specified file system does not exist. |
For a list of error codes, visit the Service error codes.