ListObjects
Queries a list of object items under the bucket.
Path Parameters
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 [
- ]
- ]
object_infos object[]
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 object. When an object is public, everyone can access it.
content_type define the format of the object which should be a standard MIME type.
Possible values: [OBJECT_STATUS_CREATED
, OBJECT_STATUS_SEALED
, OBJECT_STATUS_DISCONTINUED
]
Default value: OBJECT_STATUS_CREATED
object_status define the upload status of the object.
Possible values: [REDUNDANCY_EC_TYPE
, REDUNDANCY_REPLICA_TYPE
]
Default value: REDUNDANCY_EC_TYPE
redundancy_type define the type of the redundancy which can be multi-replication or EC.
Possible values: [SOURCE_TYPE_ORIGIN
, SOURCE_TYPE_MIRROR_PENDING
, SOURCE_TYPE_BSC_CROSS_CHAIN
, SOURCE_TYPE_OP_CROSS_CHAIN
]
Default value: SOURCE_TYPE_ORIGIN
source_type define the source of the object.
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.
{
"object_infos": [
{
"owner": "string",
"creator": "string",
"bucket_name": "string",
"object_name": "string",
"id": "string",
"local_virtual_group_id": 0,
"payload_size": "string",
"visibility": "VISIBILITY_TYPE_UNSPECIFIED",
"content_type": "string",
"create_at": "string",
"object_status": "OBJECT_STATUS_CREATED",
"redundancy_type": "REDUNDANCY_EC_TYPE",
"source_type": "SOURCE_TYPE_ORIGIN",
"checksums": [
"string"
],
"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"
}
]
}