PutBucketTagging
更新时间:2023-07-25
接口描述
本接口用来为单个Bucket设置tag
注意: 只有bucket的owner且拥有FULL_CONTROL权限才能够进行此请求。
请求
PUT /?tagging HTTP/1.1
Host: <BucketName>.bj.bcebos.com
Date: <Date>
Authorization: <Authorization_String>
Content-Length: request-body length
Content-Type: application/json; charset=utf-8
名称 | 类型 | 描述 | 是否必须 | 备注 |
---|---|---|---|---|
tags |
|
需要设置的tag列表 | 是 | 列表,最多支持200个tagKey-tagValue健值对 |
响应
示例
PUT /?tagging HTTP/1.1
Host: <BucketName>.bj.bcebos.com
x-bce-date: date
Content-Length: request-body length
Content-Type: application/json; charset=utf-8
Authorization: AuthorizationString
{
"tags":[
{
"tagKey":"key1",
"tagValue":"value123"
},
{
"tagKey":"ttt2",
"tagValue":"6863gerg"
}
]
}