GET /?logging HTTP 1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
Host: <BucketName-APPID>.cos.<Region>.myqcloud.com
, <BucketName-APPID> is the bucket name followed by the APPID, such as examplebucket-1250000000
(see Bucket Overview > Basic Information and Bucket Overview > Bucket Naming Conventions), and <Region> is a COS region (see Regions and Access Endpoints).<BucketLoggingStatus><LoggingEnabled><TargetBucket>examplebucket-1250000000</TargetBucket><TargetPrefix>prefix</TargetPrefix></LoggingEnabled></BucketLoggingStatus>
Node Name (Keyword) | Parent Node | Description | Type |
BucketLoggingStatus | None | Logging status of the bucket | Container |
BucketLoggingStatus
:Node Name (Keyword) | Parent Node | Description | Type |
LoggingEnabled | BucketLoggingStatus | Detailed configuration of bucket logging | Container |
LoggingEnabled
:Node Name (Keyword) | Parent Node | Description | Type |
TargetBucket | LoggingEnabled | Destination bucket that stores logs. It can be a bucket under the same account or in the same region as the source bucket, or the source bucket itself (not recommended). | String |
TargetPrefix | LoggingEnabled | Path in the destination bucket that stores logs | String |
GET /?logging HTTP 1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Wed, 28 Oct 2017 21:32:00 GMTAuthorization: q-sign-algorithm=sha1&q-ak=AKIDWtTCBYjM5O****&q-sign-time=1484815944;32557711944&q-key-time=1484815944;32557711944&q-header-list=host&q-url-param-list=accelerate&q-signature=a2d28e1b9023d09f9277982775a4b3b705d0****
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 142Connection: keep-aliveDate: Wed, 28 Oct 2017 21:32:00 GMTServer: tencent-cosx-cos-request-id: NTg4MDdlNGZfNDYyMDRlXzM0YWFf****<BucketLoggingStatus><LoggingEnabled><TargetBucket>examplebucket-1250000000</TargetBucket><TargetPrefix>prefix</TargetPrefix></LoggingEnabled></BucketLoggingStatus>
この記事はお役に立ちましたか?