文档中心 > ListBuckets
ListBuckets

最近更新时间:2021-12-24

使用ListBuckets接口返回请求者拥有的所有存储桶的列表。

要对请求进行身份验证,您必须使用有效的Access Key ID。


请求

请求语法

GET / HTTP/1.1

Host: region.unicloudsrv.com

Date: date

Authorization: authorization string


示例

请求示例

GET / HTTP/1.1

Host: test.oss-cn-north-1.unicloudsrv.com

Date: Wed, 01 Mar  2006 12:00:00 GMT

Authorization: authorization string

返回示例 

< ?xml version="1.0" encoding="UTF-8"? >

< ListAllMyBucketsResult xmlns="http://oss-cn-north-1.unicloudsrv.com/doc/2006-03-01" >

< Owner >

< ID >bcaf1ffd86f461ca5fb16fd081034f< /ID >

< DisplayName >webfile< /DisplayName >

< /Owner >

< Buckets >

< Bucket >

< Name >quotes< /Name >

< CreationDate >2006-02-03T16:45:09.000Z< /CreationDate >

< /Bucket >

< Bucket >

< Name >samples< /Name >

< CreationDate >2006-02-03T16:41:58.000Z< /CreationDate >

< /Bucket >

< /Buckets >

< /ListAllMyBucketsResult >