Last update:2020-07-06 14:00:17
This interface provides the capability of acquiring the bucket list of WCS.
GET /bucket/list
Host:
Authorization: < AccessToken >
Parameter | Required | Description |
---|---|---|
Host | Yes | [Management Domain Name] (#/help/details/31/3006#goto_Domain Name Descriptions), which can be obtained from the User Management Interface. |
Authorization | Yes | [Management Credential] (#/help/details/31/3103) |
If a request is successful, a JSON string of the following content will be returned:
{
“code”:“200”,
“message”:“OK”,
“buckets”:[
{
“name”:"<bucket_name>"
},
……
]
}
Field name | Required | Description |
---|---|---|
buckets | Yes | All bucket information. |
name | Yes | Bucket name. |
If a request fails, a JSON character string of the following content will be returned:
{
"code": "<code string>",
"message": "<message string>"
}
Field name | Required | Description |
---|---|---|
code | Yes | HTTP request response code. Refer to the [HTTP Response Status Codes] (#/help/details/31/3705) |
message | Yes | Lists prompt messages upon bucket failure. |
curl -v -o bucketlist.json -H “Authorization:86622e227a50d49d858c2494a935bc2e4ac543a7:NTVjZWZmOThhYjUzMjhkMWQ3YzE3OGM0NTRhYzFmODc5MDQ0MWExNQ==” --url “http://mgrDomain/bucket/list”