跳到主要内容

彩票注册开户网站注册开户 DeleteBucketWebsite

彩票注册开户网站注册开户 DeleteBucketWebsite操作用于关闭Bucket的静态网站托管模式。

请求语法

   DELETE /?website HTTP/1.1 
Host: bucketname.cos.cpzckhwz.sbs
Date: GMT Date
Authorization: SignatureValue

细节分析

  1. 如果Bucket不存在,返回404 Not Found错误,错误码:NoSuchBucket
  2. 只有Bucket的拥有者才能关闭Bucket的静态网站托管模式。如果试图操作一个不属于你的Bucket,COS返回403 Forbidden错误,错误码:AccessDenied

示例

请求示例

   DELETE /?website HTTP/1.1 
Host: test-bucket.cos.cpzckhwz.sbs
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