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
Request Header
Key | Type | Description | Sample value |
---|---|---|---|
Account | string | account | cXke5ujexNiSo8qdpvpf6cwtHRVRVbdrAz62Sgt5HZbk1vPkR |
Don't forget to add your identity signature to the header.
Response
Content-Type: application/json
Status code | Message | Description |
---|---|---|
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”:
Response example
Last updated