更改Bucket属性-UpdateBucket

更改Bucket的属性

Request Parameters

Parameter nameTypeDescriptionRequired
ProjectIdstring项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口Yes
BucketNamestring待修改Bucket的名称Yes
TypestringBucket访问类型;public或privateYes

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
BucketNamestringBucket的名称No
BucketIdstringBucket的IDNo

Request Example

https://api.ucloud.cn/?Action=UpdateBucket
&BucketName=blue
&Type=private

Response Example

{
    "Action": "UpdateBucketResponse",
    "BucketId": "ufile-xxx",
    "Retcode": 0,
    "BucketName": "blue"
}