Memanggil PutBucketAcl untuk mengubah izin baca/tulis sebuah bucket.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:PutBucketAcl |
none |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| BucketName |
string |
Yes |
Nama bucket. |
test |
| BucketAcl |
string |
Yes |
Tipe izin baca/tulis bucket:
|
private |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
ID permintaan. |
C0066F05-3116-4BAA-B588-52EB2E7F5D23 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "C0066F05-3116-4BAA-B588-52EB2E7F5D23"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Invalid%s | Specified parameter %s is not valid. | |
| 400 | InvalidBucketName | Specified parameter BucketName is not valid. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | InvalidBucketAcl | Specified parameter BucketAcl is not valid. | |
| 403 | AccessDenied | auth is not valid | |
| 403 | UserDisable | The user has been disabled due to arrears. | |
| 404 | NoSuchBucket | The specified bucket does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.