Mengaktifkan fitur recycle bin.
Deskripsi operasi
Hanya sistem file NAS Tujuan Umum (General-purpose) yang mendukung operasi ini.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:EnableRecycleBin |
update |
*FileSystem
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
ID sistem file yang fitur recycle bin-nya ingin Anda aktifkan. |
1ca404**** |
| ReservedDays |
integer |
No |
Periode penyimpanan file di recycle bin. Satuan: hari. Nilai valid: 1 hingga 180. Nilai default: 3. |
3 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID permintaan. |
9E15E394-38A6-457A-A62A-D9797C9A**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "9E15E394-38A6-457A-A62A-D9797C9A****"
}
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. | |
| 403 | OperationDenied.RecycleBinEnabled | The recycle bin is already enabled. | |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.