Memulihkan file di Keranjang daur ulang tahap persiapan.
Deskripsi operasi
Hanya sistem file NAS General-purpose yang mendukung fitur ini.
Satu sistem file hanya dapat menjalankan satu tugas pemulihan atau pembersihan file dalam satu pengatur waktu. Saat memulihkan file, tidak ada tugas pemulihan atau pembersihan file baru yang dapat dimulai.
Satu tugas pemulihan hanya dapat memulihkan satu file atau direktori. Memulihkan direktori tertentu akan memulihkan semua file di dalam direktori tersebut secara rekursif.
Setelah memulihkan file, Pengurutan data dilakukan. Performa permintaan baca sedikit menurun selama Pengurutan data.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:CreateRecycleBinRestoreJob |
create |
*FileSystem
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
ID sistem file. |
1ca404**** |
| FileId |
string |
Yes |
FileId file atau direktori untuk memulihkan. Anda dapat memanggil operasi ListRecycledDirectoriesAndFiles untuk mengkueri informasi FileId data yang dihapus. |
04***08 |
| TargetFileId |
string |
Yes |
FileId direktori tempat file yang memulihkan disimpan.
|
13***15 |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan nilai ini, tetapi Anda harus memastikan nilainya unik di antara permintaan yang berbeda. ClientToken hanya mendukung karakter ASCII dan panjangnya tidak boleh melebihi 64 karakter. Untuk informasi selengkapnya, lihat Cara memastikan idempotensi. Catatan
Jika Anda tidak menentukan ClientToken, sistem secara otomatis menggunakan RequestId permintaan API sebagai ClientToken. RequestId setiap permintaan API mungkin berbeda. |
123e4567-e89b-12d3-a456-42665544**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
98696EF0-1607-4E9D-B01D-F20930B6**** |
| JobId |
string |
ID pekerjaan. |
rb-10****491ff-r-162****165400 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "98696EF0-1607-4E9D-B01D-F20930B6****",
"JobId": "rb-10****491ff-r-162****165400"
}
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 | MissingTargetFileId | TargetFileId is mandatory for this action. | |
| 400 | MissingFileId | FileId is mandatory for this action. | |
| 400 | InvalidParameter.KMSKeyId.KMSUnauthorized | KMS is not authorized. | |
| 400 | InvalidParameter.KMSKeyId.CMKNotEnabled | The CMK needs to be enabled. | |
| 403 | OperationDenied.RecycleBinDisabled | The operation is denied because the recycle bin is disabled. | |
| 403 | OperationDenied.Conflict | The operation is in conflict with (% JobId). Please try again later. | |
| 403 | OperationDenied.TooManyRunningJobs | The maximum number of running job is one. Please try again later. | |
| 403 | InvalidTargetFileId.NotDirectory | The specified TargetFileId(% TargetFileId) is not directory. | |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | |
| 404 | InvalidFileId.NotFound | The specified FileId(%FileId) does not exist. | |
| 404 | InvalidTargetFileId.NotFound | The specified TargetFileId(%TargetFileId) does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.