DeleteBucketWebsite
DeleteBucketWebsite操作用于关闭Bucket的静态网站托管模式。
请求语法
DELETE /?website HTTP/1.1
Host: bucketname.cos.chinac.com
Date: GMT Date
Authorization: SignatureValue
细节分析
- 如果Bucket不存在,返回404 Not Found错误,错误码:NoSuchBucket
- 只有Bucket的拥有者才能关闭Bucket的静态网站托管模式。如果试图操作一个不属于你的Bucket,COS返回403 Forbidden错误,错误码:AccessDenied
示例
请求示例
DELETE /?website HTTP/1.1
Host: test-bucket.cos.chinac.com
Date: Fri, 24 Feb 2012 05:45:34 GMT
Authorization: COS qn6qrrqxo2oawuk53otfjbyc:LnM4AZ1OeIduZF5vGFWicOMEkVg=
返回示例
HTTP/1.1 200 OK
x-cos-request-id: 534B371674E88A4D8906008B
Date: Fri, 24 Feb 2012 05:45:34 GMT
Connection: keep-alive
Content-Length: 0
Server: COS