Queries information about one or more tasks in the recycle bin.
Operation description
Only General-purpose NAS file systems support this feature.
You can query up to 50 most recently executed tasks.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:ListRecycleBinJobs |
get |
*FileSystem
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
The file system ID. |
1ca404**** |
| JobId |
string |
No |
The task ID. |
rb-15****ed-r-1625****2441 |
| PageSize |
integer |
No |
The number of entries per page in a paged query. Valid values: 1 to 100. Default value: 10. |
10 |
| PageNumber |
integer |
No |
The page number of the current page in a paged query. Start value (default value): 1. |
1 |
| Status |
string |
No |
The task status. Valid values:
Valid values:
|
All |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
9E15E394-38A6-457A-A62A-D9797C9A**** |
| TotalCount |
integer |
The total number of tasks in the recycle bin. |
1 |
| PageNumber |
integer |
The page number of the returned page. |
1 |
| PageSize |
integer |
The number of tasks per page. |
10 |
| Jobs |
array<object> |
The collection of task information in the recycle bin. |
|
|
object |
|||
| Id |
string |
The task ID. |
8C****C54 |
| Type |
string |
The task type. Valid values:
|
Restore |
| FileId |
string |
The FileId of the file or directory associated with the task. |
04***08 |
| Status |
string |
The task status. Valid values:
|
Fail |
| ErrorCode |
string |
The error code. This value is valid only when Status is Fail or PartialSuccess. |
InvalidFileId.NotFound |
| Progress |
string |
The execution progress of the task. Valid values: 1 to 100. |
100 |
| CreateTime |
string |
The time when the task was created. The time follows the ISO 8601 standard in UTC. Format: yyyy-MM-ddTHH:mm:ssZ. |
2021-05-30T10:08:08Z |
| FileName |
string |
The name of the file or directory associated with the task. |
test001 |
| ErrorMessage |
string |
The error message. This value is valid only when JobStatus is Fail or PartialSuccess. |
The Target File or Directory does not exist. |
Examples
Success response
JSON format
{
"RequestId": "9E15E394-38A6-457A-A62A-D9797C9A****",
"TotalCount": 1,
"PageNumber": 1,
"PageSize": 10,
"Jobs": [
{
"Id": "8C****C54",
"Type": "Restore",
"FileId": "04***08",
"Status": "Fail",
"ErrorCode": "InvalidFileId.NotFound",
"Progress": "100",
"CreateTime": "2021-05-30T10:08:08Z",
"FileName": "test001",
"ErrorMessage": "The Target File or Directory does not exist."
}
]
}
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. | The FileSystemId parameter is not specified. |
| 400 | InvalidStatus | Specified parameter Status is not valid. | The specified parameter Status is invalid. |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | The specified file system does not exist. |
| 404 | InvalidJobId.NotFound | The specified JobId(%JobId) does not exist. | The specified JobId (%JobId) does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.