Membuat tugas untuk menghapus file atau direktori secara permanen dari Keranjang daur ulang.
Deskripsi operasi
Hanya sistem file NAS General-purpose yang mendukung fitur ini.
Keranjang daur ulang harus diaktifkan.
Memasang sistem file menggunakan NFS atau SMB (memasang sistem file pada Instance ECS di VPC yang sama), lalu hapus file target di direktori memasang untuk memindahkannya ke Keranjang daur ulang.
Saat Anda menghapus direktori secara permanen, konten direktori akan dihapus secara rekursif.
Hanya satu tugas penghapusan permanen yang dapat dijalankan pada satu waktu untuk satu sistem file. Saat file atau direktori sedang dihapus secara permanen, Anda tidak dapat memulai tugas pemulihan atau pembersihan baru.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:CreateRecycleBinDeleteJob |
delete |
*FileSystem
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
ID sistem file. |
1ca404**** |
| FileId |
string |
Yes |
FileId file atau direktori yang ingin Anda hapus secara permanen. Anda dapat memanggil operasi ListRecycledDirectoriesAndFiles untuk mengkueri FileId data yang dihapus. |
104 |
| ClientToken |
string |
No |
Memastikan idempotensi permintaan. Buat nilai parameter dari klien Anda untuk memastikan nilai tersebut unik di antara permintaan yang berbeda. Nilai ClientToken hanya dapat berisi 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 dari permintaan API sebagai ClientToken. RequestId dapat berbeda untuk setiap permintaan API. |
123e4567-e89b-12d3-a456-42665544**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Tanggapan. |
||
| RequestId |
string |
ID permintaan. |
98696EF0-1607-4E9D-B01D-F20930B6**** |
| JobId |
string |
ID tugas. |
8C****C54 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "98696EF0-1607-4E9D-B01D-F20930B6****",
"JobId": "8C****C54"
}
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 | 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.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. | |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | |
| 404 | InvalidFileId.NotFound | The specified FileId(%FileId) does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.