You need to enable JavaScript to run this app.
导航

ListBuckets

最近更新时间2023.11.21 10:22:21

首次发布时间2021.10.13 16:14:07

功能描述

此接口用于查询当前请求用户拥有的所有桶。

请求消息样式

GET / HTTP/1.1
Host: tos-cn-beijing.volces.com
Date: Fri, 30 Jul 2021 08:05:36 +0000
Authorization: authorization string

请求参数和消息头

该请求使用的公共请求消息头,请参见公共参数

请求元素

该请求不使用消息元素。

响应消息头

该请求返回的公共响应消息头,请参见公共参数

响应元素

该请求会返回用户拥有的桶列表。

名称

参数类型

说明

Buckets

Array

您拥有的桶列表信息。

Name

String

桶名。

CreationDate

String

桶的创建时间。

Location

String

桶所在区域。

ExtranetEndpoint

String

外部域名。

IntranetEndpoint

String

内部域名。

Owner

Object

桶的所有者。

ID

String

账号ID。

请求示例

GET / HTTP/1.1
Host: tos-cn-beijing.volces.com
Date: Fri, 30 Jul 2021 13:53:55 +0000
Authorization: authorization string

响应示例

HTTP/1.1 200 OK
Date: Fri, 30 Jul 2021 13:53:55 GMT
Server: TosServer
x-tos-id-2: 1e89f203jld00006-a444fd0
x-tos-request-id: 1e89f203b2d00006-a444ed0
Content-Length: 643

{
    "Buckets": [
        {
            "CreationDate": "2021-08-19T09:16:05.000Z",
            "Name": "buckettest001",
            "Location": "cn-beijing",
            "ExtranetEndpoint": "tos-cn-beijing.volces.com",
            "IntranetEndpoint": "tos-cn-beijing.ivolces.com"
        },
        {
            "CreationDate": "2021-05-06T02:27:04.000Z",
            "Name": "lynch-peking-bucket",
            "Location": "cn-beijing",
            "ExtranetEndpoint": "tos-cn-beijing.volces.com",
            "IntranetEndpoint": "tos-cn-beijing.ivolces.com"
        },
        {
            "CreationDate": "2021-08-19T03:58:02.000Z",
            "Name": "lynch-peking-bucket1",
            "Location": "cn-beijing",
            "ExtranetEndpoint": "tos-cn-beijing.volces.com",
            "IntranetEndpoint": "tos-cn-beijing.ivolces.com"
        }
    ],
    "Owner": {
        "ID": "AccountID"
    }
}