This API (PUT Bucket Accelerate) is used to enable or suspend global acceleration for the specified bucket.
Detail analysis
Enabled
and Suspended
, indicating that global acceleration is enabled or suspended, respectively.PUT /?accelerate HTTP 1.1
Host: <BucketName-APPID>.cos.<Region>.myqcloud.com
Date: GMT date
Authorization: Auth String
Authorization: Auth String (for more information, please see Request Signature).
This API only uses common request headers. For more information, please see Common Request Headers.
<AccelerateConfiguration xmlns="cos xmlns/">
<Status>Enabled</Status>
</AccelerateConfiguration>
Detailed nodes are as shown below:
Node Name (Keyword) | Parent Node | Description | Type |
---|---|---|---|
AccelerateConfiguration | None | Detailed information of global acceleration | Container |
Status | AccelerateConfiguration | Indicates whether global acceleration is enabled. Enumerated values: Suspended, Enabled | Enum |
This API only returns common response headers. For more information, please see Common Response Headers.
The response body return is empty.
This API uses standardized error responses and error codes. For more information, see Error Codes .
PUT /?accelerate HTTP/1.1
Host: examplebucket-1250000000.cos.ap-chengdu.myqcloud.com
Connection: keep-alive
Authorization: authorization string
Content-Type: text/plain
Content-Length: 83
<AccelerateConfiguration>
<Status>Enabled</Status>
</AccelerateConfiguration>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: 0
Connection: keep-alive
Date: Wed, 23 Aug 2019 08:14:53 GMT
Server: tencent-cos
x-cos-request-id: NTk5ZDM5N2RfMjNiMjM1MGFfMmRiX2Y0****
Was this page helpful?