GetBucket

Interface description

Query the information of one storage container under the specified account address, including the number of stored files and fid.

Request Syntax

GET GatewayURL/BucketName

Request Header

KeyTypeDescriptionSample value

Account

string

account

cXke5ujexNiSo8qdpvpf6cwtHRVRVbdrAz62Sgt5HZbk1vPkR

Don't forget to add your identity signature to the header.

Response

Content-Type: application/json

Status codeMessageDescription

200

success

Query successful, return bucket information

400

InvalidHead.MissingAccount

The account does not exist

400

InvalidHead.Account

Account error

400

InvalidParameter.Name

Bucket name error

404

NotFound

The bucket was not found

500

InternalError

Server internal error

Request example

Request to return information of a storage container named “samplebucket”:

# curl -X GET URL/BucketName -H "Account: cXke5ujexNiSo8qdpvpf6cwtHRVRVbdrAz62Sgt5HZbk1vPkR"

Response example

Last updated