Mengambil informasi aturan siklus hidup.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:GetBucketLifecycle |
get |
*Semua sumber daya.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| BucketName |
string |
Yes |
Nama bucket. |
tese |
| RuleId |
string |
No |
ID aturan yang akan diambil. Jika parameter ini tidak ditentukan, informasi semua aturan akan diambil. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema respons. |
||
| RequestId |
string |
ID permintaan. |
A2583E8B-B930-4F59-ADC0-0E209A90C46E |
| Rule |
array<object> |
Detail aturan. |
|
|
array<object> |
|||
| ID |
string |
ID unik aturan. |
1 |
| Expiration |
object |
Waktu kedaluwarsa. |
|
| Days |
string |
Jumlah hari sebelum kedaluwarsa. |
5 |
| CreatedBeforeDate |
string |
Tanggal kedaluwarsa dalam format ISO 8601 UTC, yaitu YYYY-MM-DDTHH:mm:ssZ. |
yyy-MM-DDThh:mm:ssZ |
| Prefix |
string |
Awalan tempat aturan berlaku. |
image |
| Status |
string |
Status aturan. Nilai valid:
|
Enabled |
Contoh
Respons sukses
JSONformat
{
"RequestId": "A2583E8B-B930-4F59-ADC0-0E209A90C46E",
"Rule": [
{
"ID": "1",
"Expiration": {
"Days": "5",
"CreatedBeforeDate": "yyy-MM-DDThh:mm:ssZ"
},
"Prefix": "image",
"Status": "Enabled"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidBucketName | Specified parameter BucketName is not valid. | Parameter BucketName yang ditentukan tidak valid. |
| 400 | AccessDenied | auth is not valid | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 403 | UserDisable | The user has been disabled due to arrears. | Pengguna dinonaktifkan karena pembayaran tertunda. |
| 404 | NoSuchBucket | The specified bucket does not exist. | Bucket tujuan yang ditentukan tidak ada. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.