最近更新时间:2025-06-10 17:42:17
该接口用于开启/关闭传输加速功能的接口。使用传输加速功能必须是桶所有者(BucketOwner)或者拥有ks3:PutBucketTransferAcceleration
权限。
PUT /?transferAcceleration HTTP/1.1
Date: {date}
Host: {Bucketname}.{endpoint}
Authorization: {SignatureValue}
Content-Type: application/xml
Content-Length: {length}
<TransferAccelerationConfiguration>
<Enabled>false</Enabled>
</TransferAccelerationConfiguration>
该请求消息中不使用消息参数
该请求使用公共消息头
<TransferAccelerationConfiguration>
<Enabled>false</Enabled>
</TransferAccelerationConfiguration>
参数 | 是否必选 | 参数说明 |
TransferAccelerationConfiguration | 是 | 传输加速配置的容器。 类型:Container 父元素:无 子元素:Status |
Enabled | 是 | 目标Bucket是否开启传输加速 类型:String 父元素:TransferAccelerationConfiguration 子元素:无 取值:必须是小写 1.true:开启传输加速 2.fasle:关闭传输加速(默认值) |
该接口仅涉及常用响应头部。
该接口不返回响应内容。
PUT /?transferAcceleration HTTP/1.1
Host: ks3-example.ks3-cn-beijing.ksyuncs.com
Date: Wed, 14 May 2014 02:11:21 GMT
Content-MD5: xxx
Authorization: authorization string
Content-Length: yyy
Content-type: application/xml
<TransferAccelerationConfiguration>
<Enabled>false</Enabled>
</TransferAccelerationConfiguration>
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive
Date: Tue, 19 Jul 2017 09:14:23 GMT
Server: KS3
x-kss-request-id: 54a47bda18ac4e6e91de369add54218***
错误码 | HTTP状态码 | 描述 |
403 Forbidden | Access Denied | 没有权限/权限错误 |
400 BadRequest | MalformedXML | 请求的XML格式不合法 |
纯净模式