Mengkueri informasi tentang satu atau beberapa tugas di Keranjang daur ulang.
Deskripsi operasi
Hanya sistem file NAS General-purpose yang mendukung fitur ini.
Anda dapat mengkueri hingga 50 tugas yang paling baru dieksekusi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:ListRecycleBinJobs |
get |
*FileSystem
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
ID sistem file. |
1ca404**** |
| JobId |
string |
No |
ID tugas. |
rb-15****ed-r-1625****2441 |
| PageSize |
integer |
No |
Jumlah baris per halaman dalam kueri berhalaman. Nilai valid: 1 hingga 100. Nilai default: 10. |
10 |
| PageNumber |
integer |
No |
Nomor halaman saat ini dalam kueri berhalaman. Nilai awal (nilai default): 1. |
1 |
| Status |
string |
No |
Status tugas. Nilai valid:
|
All |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Tanggapan. |
||
| RequestId |
string |
ID permintaan. |
9E15E394-38A6-457A-A62A-D9797C9A**** |
| TotalCount |
integer |
Jumlah total tugas di Keranjang daur ulang. |
1 |
| PageNumber |
integer |
Nomor halaman yang dikembalikan. |
1 |
| PageSize |
integer |
Jumlah tugas per halaman. |
10 |
| Jobs |
array<object> |
Kumpulan informasi tugas di Keranjang daur ulang. |
|
|
object |
|||
| Id |
string |
ID tugas. |
8C****C54 |
| Type |
string |
Tipe tugas. Nilai valid:
|
Restore |
| FileId |
string |
ID file atau direktori yang terkait dengan tugas. |
04***08 |
| Status |
string |
Status tugas. Nilai valid:
|
Fail |
| ErrorCode |
string |
Kode kesalahan. Nilai ini hanya valid ketika Status adalah Fail atau PartialSuccess. |
InvalidFileId.NotFound |
| Progress |
string |
Progres eksekusi tugas. Nilai valid: 1 hingga 100. |
100 |
| CreateTime |
string |
Waktu pembuatan tugas. |
2021-05-30T10:08:08Z |
| FileName |
string |
Nama file atau direktori yang terkait dengan tugas. |
test001 |
| ErrorMessage |
string |
Pesan kesalahan. Nilai ini hanya valid ketika JobStatus adalah Fail atau PartialSuccess. |
The Target File or Directory does not exist. |
Contoh
Respons sukses
JSONformat
{
"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."
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalCharacters | The parameter contains illegal characters. | |
| 400 | MissingFileSystemId | FileSystemId is mandatory for this action. | |
| 400 | InvalidStatus | Specified parameter Status is not valid. | |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | |
| 404 | InvalidJobId.NotFound | The specified JobId(%JobId) does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.