Buat ruang penyimpanan Bucket untuk penyimpanan kolaboratif.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:PutBucket |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| BucketName |
string |
Yes |
Nama Bucket. 3 hingga 50 karakter. Hanya huruf kecil, angka, dan tanda hubung (-) yang diperbolehkan, dan tidak boleh diawali atau diakhiri dengan tanda hubung. |
my-bucket |
| LogicalBucketType |
string |
No |
Jenis bucket logis. Nilai yang valid: sink: sink (node yang ditentukan) standard: standar (global) (nilai default) |
sink |
| Comment |
string |
No |
Keterangan. Panjangnya 0 hingga 128 karakter, termasuk karakter Tionghoa atau emoji. |
this is comment |
| BucketAcl |
string |
No |
Jenis izin Bucket: private: privat (nilai default) public-read-write: baca dan tulis publik public-read: baca publik |
private |
| EnsRegionId |
string |
No |
ID region node. Jika tidak ditentukan, node default global akan digunakan. |
xx-xx-xx |
| DispatchScope |
string |
No |
Cakupan pengiriman. Nilai yang valid:
Catatan
Parameter ini harus ditentukan saat membuat bucket global. |
sink |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID Permintaan. |
85123E71-7710-4620-8AAB-133CCE49EC83 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "85123E71-7710-4620-8AAB-133CCE49EC83"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | TooManyBuckets | The number of buckets created exceeds the limit. | |
| 400 | Invalid%s | Specified parameter %s is not valid. | |
| 400 | UnSupportedCity | The city is not supported. | |
| 400 | BucketAlreadyExists | The bucket already exists or is occupied by other users. | |
| 400 | InvalidEngineId | The engineId does not belong to the city. | |
| 400 | InvalidBucketName | Specified parameter BucketName is not valid. | |
| 400 | InvalidComment | Specified parameter Comment is not valid. | |
| 400 | InvalidDataRedundancyType | Specified parameter DataRedundancyType is not valid. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | EnsRegionIdIsMandatory | The parameter EnsRegionId is mandatory while creating a single node bucket. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessDenied | auth is not valid | |
| 403 | OperationDenied | The current ens region has not been purchased | |
| 403 | UserDisable | The user has been disabled due to arrears. | |
| 404 | NoSuchEnsRegion | The ens region does not exist | |
| 404 | NoSuchStorageDomain | The specified storageDomain does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.