Found 0 result in total
Content is empty
If you don't find the content you expect, please try another search term
Last updated:2021-09-14 16:17:59
The GET operation will return a list of all buckets to the requesting authentication user. You need to use the accessKey issued by KS3 to verify the request. Anonymous requests do not receive a list of buckets, and you cannot get a list of buckets that do not belong to you.
GET / HTTP/1.1
Host: ks3-cn-beijing.ksyuncs.com
Date: date
Authorization: authorization string
GET /?projectIds={projectId} HTTP/1.1
Host: ks3-cn-beijing.ksyuncs.com
Date: date
Authorization: authorization string
Explanation:
If you need to return the bucket list under the project with project ID 2345, the request is: /?projectIds=2345
To return the bucket list under multiple items, for example, to return all bucket lists under item ID 1234, 3456 and 3344, multiple item IDs need to be separated by half a comma in English, and the request is:/?projectIds=1234,3456,3344
The interface does not use request parameters.
This interface only uses common request headers. For more information, please click Public request headers.
Name | Description |
---|---|
Bucket | Container containing bucket information Type:Container Child nodes: Name, CreationDate Parent node: ListAllMyBucketsResult.Buckets |
Buckets | Container containing one or more buckets Type: Container Child nodes: Bucket Parent node: ListAllMyBucketsResult |
CreationDate | Creation date of bucket Type: date(yyyy-mm-ddThh:mm:ss.timezone, e.g., 2009-02-03T16:45:09.000Z) Parent node: ListAllMyBucketsResult.Buckets.Bucket |
DisplayName | Name of bucket owner Type: String Parent node: ListAllMyBucketsResult.Owner |
ID | User ID of Bucket owner Type: String Parent node: ListAllMyBucketsResult.Owner |
ListAllMyBucketsResult | Response information container Type: Container Child nodes: Owner, Buckets Parent node: None |
Name | Bucket name Type: String Parent node: ListAllMyBucketsResult.Buckets.Bucket |
Type | Bucket type: NORMAL is non archive storage, which can upload standard storage and infrequent access storage; ARCHIVE is archive, which can only upload archive files Type: String Parent node: ListAllMyBucketsResult.Buckets.Bucket |
Region | The region of bucket Type: String Parent node: ListAllMyBucketsResult.Buckets.Bucket |
Owner | Container containing bucket owner information Type: Container Parent node: ListAllMyBucketsResult |
The interface does not return any special errors.
Request example
GET / HTTP/1.1
Host: ks3-cn-beijing.ksyuncs.com
Date: Wed, 01 Jan 2014 12:00:00 GMT
Authorization: authorization string
Response example
<?xml version="1.0" encoding="UTF-8"?>
<ListAllMyBucketsResult>
<Owner>
<ID>bcaf1ffd86f461ca5fb16fd081034f</ID>
<DisplayName>webfile</DisplayName>
</Owner>
<Buckets>
<Bucket>
<Name>quotes</Name>
<CreationDate>2014-01-01T16:45:09.000Z</CreationDate>
<Type>NORMAL</Type>
<Region>SHANGHAI</Region>
</Bucket>
<Bucket>
<Name>samples</Name>
<CreationDate>2014-01-01T16:41:58.000Z</CreationDate>
<Type>ARCHIVE</Type>
<Region>BEIJING</Region>
</Bucket>
</Buckets>
</ListAllMyBucketsResult>
Pure Mode