• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (OBS)
  4. Operations on Buckets
  5. GET Bucket website
  6. Examples

Examples

Sample Request

GET /?website HTTP/1.1
 User-Agent: curl/7.29.0
 Host: bucketname.obs.example.com
 Accept: */*
 Date: Sat, 04 Jan 2014 06:47:16 +0000
 Authorization: AWS C6630CD15B645CB8A3BA:XrepYUF0mA/m1RPvpA0M18FdCfg=

Sample Response

HTTP/1.1 200 OK 
 Server: OBS 
 x-amz-request-id: DCD2FC9CAB78000001435C0176F28223 
 x-amz-id-2: 8BSYBZcQKwR5nCgMsLY86TRLwhUZpLbQTxAKIAuMJqx3OURwOMhILeVNwTrEQWyc 
 x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc 
 Content-Type: application/xml
 Date: Sat, 04 Jan 2014 06:47:16 GMT 
 Content-Length: 230 

 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
 <WebsiteConfiguration xmlns="http://obs.example.com/doc/2015-06-30/"> 
 <RedirectAllRequestsTo> 
 <HostName>www.example.com</HostName>
 </RedirectAllRequestsTo> 
 </WebsiteConfiguration>