Modifies the retention period of data in the recycle bin of a specified General-purpose NAS file system.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UpdateRecycleBinAttribute |
The operation that you want to perform. Set the value to UpdateRecycleBinAttribute. |
FileSystemId | String | Yes | 1ca404**** |
The ID of the file system. |
ReservedDays | Long | Yes | 3 |
The period for which the files in the recycle bin are retained. Unit: days. Valid values: 1 to 180. Default value: 3. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | BC7C825C-5F65-4B56-BEF6-98C5****546E |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=UpdateRecycleBinAttribute
&FileSystemId=1ca404****
&ReservedDays=3
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<UpdateRecycleBinAttributeResponse>
<RequestId>BC7C825C-5F65-4B56-BEF6-98C5****546E</RequestId>
</UpdateRecycleBinAttributeResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "BC7C825C-5F65-4B56-BEF6-98C5****546E"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | IllegalCharacters | The parameter contains illegal characters. | The error message returned because the specified value of a parameter is invalid. |
400 | MissingFileSystemId | FileSystemId is mandatory for this action. | The error message returned because the FileSystemId parameter is not specified. |
403 | OperationDenied.RecycleBinDisabled | The operation is denied because the recycle bin is disabled. | The error message returned because the request is not supported if the recycle bin feature is disabled. |
404 | InvalidFileSystem.NotFound | The specified file system does not exist. | The error message returned because the specified file system does not exist. |
For a list of error codes, visit the API Error Center.