This API is used to enable or suspend global acceleration for a bucket.
Notes
Status
are Enabled
and Suspended
.PUT /?accelerate HTTP 1.1
Host: <BucketName-APPID>.cos.<Region>.myqcloud.com
Date: GMT date
Authorization: Auth String
Note:
- In
Host: <bucketname-appid>.cos.<region>.myqcloud.com
,is the bucket name followed by the APPID, such as examplebucket-1250000000
(see Bucket Overview > Basic Information and Bucket Overview > Bucket Naming Conventions), andis a COS region (see Regions and Access Endpoints). - Authorization: Auth String (see Request Signature for more information).
This API only uses Common Request Headers.
<AccelerateConfiguration xmlns="cos xmlns/">
<Status>Enabled</Status>
</AccelerateConfiguration>
The nodes are described as follows:
Node Name (Keyword) | Parent Node | Description | Type |
---|---|---|---|
AccelerateConfiguration | None | Information about global acceleration | Container |
Status | AccelerateConfiguration | Whether to enable global acceleration. Enumerated values: Suspended , Enabled |
Enum |
This API only returns Common Response Headers.
The response body is empty.
This API returns common error responses and error codes. For more information, please 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****
Apakah halaman ini membantu?