GetService

对于服务地址作Get请求可以返回请求者拥有的所有Bucket。

请求语法

GET / HTTP/1.1
HOST: cos.chinac.com
Date: GMT Date
Authorization: SignatureValue

响应元素

Name Type Description
Owner Object 桶的建立者
DisplayName String 桶所有者的名称
ID String 桶所有者的ID
Buckets Array 多个桶信息的容器
Name String 桶名称
CreationDate String 桶创建的日期
格式:yyyy-MM-dd”T”HH:mm:ss.SSSZ
Location String 桶所在的分区

示例

请求示例
GET / HTTP/1.1
Date: Thu, 15 May 2014 11:18:32 GMT
Host: cos.chinac.com
Authorization: COS nxj7dtl1c24jwhcyl5hpvnhi:COS3OQkfQPnKmYZTEHYv2qUl5jI=
响应示例
HTTP/1.1 200 OK
X-Cos-Request-Id: 17b21e42ac11000001390ab891440240
Date: Wed, 01 Mar 2012 21:34:55 GMT
Connection: close
Server: ChinacCOS

{
    "Owner":{"ID": "test","DisplayName": "test"},
    "Buckets":[
            {
                "Name": "costest",
                "CreationDate":"2016-02-25T13:11:11+0800",
                "Location": "SZ"
            },
            {
                "Name": "costest2",
                "CreationDate":"2016-02-25T13:11:24+0800",
                "Location": "SZ"
            }
    ]
}

results matching ""

    No results matching ""