List Bucket

Last update:2025-08-18 15:32:01

This interface is used to obtain the list of all Buckets for a user on the CDNetworks platform, applicable to scenarios such as space resource management and access control.

Request Description

Request Format

GET /bucket/list
Host:<MgrDomain>
Authorization: < AccessToken >

Header Description

Parameter Required Description
Host Yes Management domain name , which can be obtained on the Bucket Overview interface of the Console.
Authorization Yes Management Credential

Response Description

  • 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
message Yes Lists prompt messages upon bucket failure.

Example

curl -v -o bucketlist.json -H "Authorization:86622e227a50d49d858c2494a935bc2e4ac543a7:NTVjZWZmOThhYjUzMjhkMWQ3YzE3OGM0NTRhYzFmODc5MDQ0MWExNQ==" --url "http://mgrDomain/bucket/list"
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!