Get Bucket Logging用于查看Bucket的访问日志配置情况。
请求语法GET /?logging HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue
响应元素(Response Elements)
名称 | 描述 |
BucketLoggingStatus | 访问日志状态信息的容器类型: 容器子元素: LoggingEnabled父元素: 无 |
LoggingEnabled | 访问日志信息的容器。这个元素在开启时需要,关闭时不需要。类型: 容器子元素: TargetBucket, TargetPrefix父元素: BucketLoggingStatus |
TargetBucket | 指定存放访问日志的Bucket。类型: 字符子元素: 无父元素: BucketLoggingStatus.LoggingEnabled |
TargetPrefix | 指定最终被保存的访问日志文件前缀。类型: 字符子元素: None父元素: BucketLoggingStatus.LoggingEnabled |
Get /?logging HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 04 May 2012 05:31:04 GMT
Authorization: OSS qn6qrrqxo2oawuk53otfj byc:ceOEyZavKY4QcjoUWYSpYbJ3naA=
HTTP/1.1 200
x-oss-request-id: 534B371674E88A4D8906008B
Date: Fri, 04 May 2012 05:31:04 GMT
Connection: keep-alive
Content-Length: 210
Server: AliyunOSS
<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus xmlns=”http://doc.oss-cn-hangzhou.aliyuncs.com”>
<LoggingEnabled>
<TargetBucket>mybucketlogs</TargetBucket>
<TargetPrefix>mybucket-access_log/</TargetPrefix>
</LoggingEnabled>
</BucketLoggingStatus>
HTTP/1.1 200
x-oss-request-id: 534B371674E88A4D8906008B
Date: Fri, 04 May 2012 05:31:04 GMT
Connection: keep-alive
Content-Length: 110
Server: AliyunOSS
<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus xmlns=”http://doc.oss-cn-hangzhou.aliyuncs.com”>
</BucketLoggingStatus>
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。