文档

PutBucket - 创建Bucket

调用PutBucket创建协同存储的Bucket存储空间。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
LogicalBucketTypestring

单节点存储,取值:sink

sink
Commentstring

备注。⻓度为 0-128 个字符或汉字。

numb
BucketAclstring

Bucket 权限类型:

  • private:私有(默认值)

  • public-read-write:公共读写

  • public-read:公共读

private
BucketNamestring

Bucket 名称。 3~50 个字符,只允许小写字母、数字、短横线(-),且不能以短横线开头或结尾。

test
EnsRegionIdstring

节点区域 id,不指定时为全局默认节点

cn-beijing-15

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID。

85123E71-7710-4620-8AAB-133CCE49EC83

示例

正常返回示例

JSON格式

{
  "RequestId": "85123E71-7710-4620-8AAB-133CCE49EC83"
}

错误码

HTTP status code错误码错误信息描述
400TooManyBucketsThe number of buckets created exceeds the limit.-
400Invalid%sSpecified parameter %s is not valid.-
400UnSupportedCityThe city is not supported.-
400BucketAlreadyExistsThe bucket already exists or is occupied by other users.-
400InvalidEngineIdThe engineId does not belong to the city.-
400InvalidBucketNameSpecified parameter BucketName is not valid.-
400InvalidCommentSpecified parameter Comment is not valid.-
400InvalidDataRedundancyTypeSpecified parameter DataRedundancyType is not valid.-
400NoPermissionPermission denied.没有足够的权限,请联系云账号管理员授予您相应权限。
400InvalidParameter.%sThe specified field %s invalid. Please check it again.-
403AccessDeniedauth is not valid-
403OperationDeniedThe current ens region has not been purchased-
404NoSuchEnsRegionThe ens region does not exist-
404NoSuchStorageDomainThe specified storageDomain does not exist.-
500InternalErrorThe request processing has failed due to some unknown error.-

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (1)
文档反馈