• Object Storage Service

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

Examples

Sample Request

GET / HTTP/1.1 
 User-Agent: Jakarta Commons-HttpClient/3.1
 Host: bucketname.obs.example.com
 Accept: */*
 Date: Sun, 26 Sep 2010 08:24:46 GMT  
 Authorization: AWS 04RZT432N80TGDF2Y2G2:ZyEGq367GyGGyItzr5egJOjaqiM= 

Sample Response

HTTP/1.1 200 OK 
 Server: OBS 
 x-amz-request-id: 9D3CC717E561E4D37A1285489689346 
 x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc 
 x-amz-id-2: OUQzQ0M3MTdFNTYxRTREMzdBMTI4NTQ4OTY4OTM0NkFBQUFBQUFBYmJiYmJiYmJD 
 Content-Type: application/xml 
 Date: Sun, 26 Sep 2010 08:28:06 GMT 
 Content-Length: 485 

 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
 <ListAllMyBucketsResult xmlns="http://obs.example.com/doc/2015-06-30/"> 
 <Owner> 
 <ID>bcaf1ffd86f41caff1a493dc2ad8c2c281e37522a640e161ca5fb16fd081034f</ID> 
 <DisplayName>user01</DisplayName> 
 </Owner> 
 <Buckets> 
 <Bucket> 
 <Name>bucket01</Name> 
 <CreationDate>2010-09-26T03:10:23.211Z</CreationDate> 
 </Bucket> 
 <Bucket> 
 <Name>bucket02</Name> 
 <CreationDate>2010-09-20T12:05:46.187Z</CreationDate> 
 </Bucket> 
 <Bucket> 
 <Name>bucket03</Name> 
 <CreationDate>2010-09-26T08:25:13.059Z</CreationDate> 
 </Bucket> 
 </Buckets> 
 </ListAllMyBucketsResult>