天翼云对象存储(经典版)I型API参考-GET Bucket WebSite | |||||||||||||||||||||||||||||||||||||||||
产品推荐: 1、安全稳定的云服务器租用,2核/2G/5M仅37元,点击抢购>>>; 2、高防物理服务器20核/16G/50M/500G防御仅350元,点击抢购>>> 3、百度智能建站(五合一网站)仅880元/年,点击抢购>>> 模板建站(PC+手机站)仅480元/年,点击抢购>>> 4、阿里云服务器2核2G3M仅99元/年、2核4G5M仅199元/年,新老同享,点击抢购>>> 5、腾讯云服务器2核2G4M仅99元/年、新老同享,点击抢购>>> 点击这里注册天翼云特邀VIP帐号,立即体验天翼云对象存储>>> 天翼云对象存储(经典版)I型API参考-GET Bucket WebSite 此操作用来获得指定Bucket的website。只有根用户和拥有GET Bucket WebSite权限的子用户才能执行此操作,否则会返回403 AccessDenied错误。 请求语法
请求参数
响应结果
请求示例GET /?website HTTP/1.1 x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 Authorization: AWS4-HMAC-SHA256 Credential=userak2222222227856/20220718/cd/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=c0097ce18aa148bad9760bccd91975c7aa52d7724e6aaeb68cd880c01e8f38f9 x-amz-date: 20220718T091530Z Host: test-bucket.oos-cn.ctyunapi.cn Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive 响应示例HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Date: Mon, 18 Jul 2022 09:15:30 GMT x-amz-request-id: 88d52b33bef4440b3a867d8e9491947396a0828487828b9778 Content-Length: 430 Server: CTYUN <?xml version="1.0" encoding="UTF-8"?> <WebsiteConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <IndexDocument> <Suffix>index.html</Suffix> </IndexDocument> <ErrorDocument> <Key>error.html</Key> </ErrorDocument> <RoutingRules> <RoutingRule> <Condition> <KeyPrefixEquals>images/</KeyPrefixEquals> </Condition> <Redirect> <ReplaceKeyWith>errorpage.html</ReplaceKeyWith> </Redirect> </RoutingRule> </RoutingRules> </WebsiteConfiguration> |