Last update:2025-08-22 15:16:41
The GetService interface is used to obtain all the buckets of the user in the area. In the case a user has buckets in multiple areas, only the bucket belonging to that area is listed. This operation requires IAM permission wos:GetGetService.
GET / HTTP/1.1
Host: Bucket.Endpoint
Date: Date
Authorization: Authorization
There are no request parameters in the request message.
Use common request headers .
No request body.
HTTP/1.1 StatusCode
x-wos-request-id: RequestId
Date: Date
Content-Type: type
Content-Length: length
Server: WS-web-server
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ListAllMyBucketsResult xmlns="https://www.wangsu.com/document">
<Owner>
<ID>id</ID>
<DisplayName>name</DisplayName>
</Owner>
<Buckets>
<Bucket>
<Name>bucketName</Name>
<CreationDate>date</CreationDate>
</Bucket>
...
</Buckets>
</ListAllMyBucketsResult>
Use common response headers .
In the response message of this request, the bucket owned by the user will be listed in XML form. The specific meaning of the elements is shown in the following table.
| Element Name | Description |
|---|---|
| ListAllMyBucketsResult | The user's bucket list. Type: XML. |
| Owner | User information, including user ID and user name. Type: XML. |
| ID | The DomainId of the user. Type: string. |
| DisplayName | username. Type: string. |
| Buckets | The list of buckets owned by the user. Type: XML. |
| Bucket | Specific bucket information. Type: XML. |
| Name | Bucket name. Type: string. |
| CreationDate | The creation time of the bucket. Type: string. |
GET / HTTP/1.1
Host: s3-cn-south-1.wcsapi.com
Date: Wed, 04 Nov 2020 03:09:24 GMT
Authorization: WOS-HMAC-SHA256 BF6C09F302931425E9A7:tQ+A280jUgPCAdSTuUis35T9gWI=
HTTP/1.1 200 OK
x-wos-request-id: 9D3CC717E561E4D37A1285489689346
Content-Type: application/xml
Date: Sun, 26 Sep 2010 08:28:06 GMT
Content-Length: 485
Server: WS-web-server
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ListAllMyBucketsResult xmlns="http://wcs.chinanetcenter.com/document">
<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>