ListBuckets
Queries a list of bucket items.
Query Parameters
key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.
offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.
limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.
count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
- 200
- default
A successful response.
Schema
- Array [
- Array [
- ]
- ]
bucket_infos object[]
owner is the account address of bucket creator, it is also the bucket owner.
Possible values: [VISIBILITY_TYPE_UNSPECIFIED
, VISIBILITY_TYPE_PUBLIC_READ
, VISIBILITY_TYPE_PRIVATE
, VISIBILITY_TYPE_INHERIT
]
Default value: VISIBILITY_TYPE_UNSPECIFIED
visibility defines the highest permissions for bucket. When a bucket is public, everyone can get storage objects in it.
id is the unique identification for bucket.
Possible values: [SOURCE_TYPE_ORIGIN
, SOURCE_TYPE_MIRROR_PENDING
, SOURCE_TYPE_BSC_CROSS_CHAIN
, SOURCE_TYPE_OP_CROSS_CHAIN
]
Default value: SOURCE_TYPE_ORIGIN
create_at define the block timestamp when the bucket created.
charged_read_quota defines the traffic quota for read in bytes per month. The available read data for each user is the sum of the free read data provided by SP and the ChargeReadQuota specified here.
Possible values: [BUCKET_STATUS_CREATED
, BUCKET_STATUS_DISCONTINUED
, BUCKET_STATUS_MIGRATING
]
Default value: BUCKET_STATUS_CREATED
bucket_status define the status of the bucket.
tags object
tags object[]
pagination object
PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.
message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }
next_key is the key to be passed to PageRequest.key to query the next page most efficiently. It will be empty if there are no more results.
{
"bucket_infos": [
{
"owner": "string",
"bucket_name": "string",
"visibility": "VISIBILITY_TYPE_UNSPECIFIED",
"id": "string",
"source_type": "SOURCE_TYPE_ORIGIN",
"create_at": "string",
"payment_address": "string",
"global_virtual_group_family_id": 0,
"charged_read_quota": "string",
"bucket_status": "BUCKET_STATUS_CREATED",
"tags": {
"tags": [
{
"key": "string",
"value": "string"
}
]
}
}
],
"pagination": {
"next_key": "string",
"total": "string"
}
}
An unexpected error response.
Schema
- Array [
- ]
details object[]
{
"error": "string",
"code": 0,
"message": "string",
"details": [
{
"type_url": "string",
"value": "string"
}
]
}