List GCS buckets
Returns a list of GCS buckets.
Query Parameters
- limit int64
Limits the size of the response on each page to the specified number of items.
- start string
Sets the page number used to browse the collection. Pages are indexed starting from 1 (i.e.,
?start=1). - filter string
Narrows down the results to only the items that satisfy the filter criteria. Supported filter fields:
Field Condition Description id $eq,$in The Clumio-assigned ID of the GCS bucket. native_id $eq,$in The native GCP identifier of the bucket. project_id $eq,$in The native GCP project ID that owns the bucket. project_uuid $eq,$in The Clumio-assigned UUID of the GCP project that owns the bucket. region_uuid $eq,$in The Clumio-assigned UUID of the GCP region associated with the bucket. is_deleted $eq Boolean flag indicating whether to return deleted ( true) or active (false) buckets.name $eq,$contains,$in The display name of the GCS bucket. - bucket_matcher string
The bucket_matcher query parameter filters buckets using the same expression format as protection group bucket rules. Matches buckets by GCP labels, project ID, and location. For example,
?bucket_matcher={"gcp_label":{"$eq":{"key":"env","value":"prod"}}, "gcp_project_id":{"$eq":"my-project"},"gcp_location":{"$in":["us-central1","us-west1"]}}
- 200
- default
Success
- application/api.clumio.gcp-gcs-buckets=v1+json
- Schema
- Example (from schema)
Schema
_embedded object
items object[]
bucket_name stringThe name of the bucket
created_timestamp stringCreation time of the bucket in RFC-3339 format.
id stringThe Clumio-assigned ID that represents the bucket.
is_deleted booleanDetermines whether the bucket has been deleted
is_versioning_enabled booleanDetermines whether versioning is enabled for the bucket.
labels object[]
GCP labels (key-value pairs) associated with the bucket, similar to AWS tags.
key stringThe GCP-assigned label key.
value stringThe GCP-assigned label value.
last_backup_timestamp stringTime of the last backup in RFC-3339 format.
location stringThe GCP location associated with the bucket.
location_type stringThe location type of the bucket (e.g., "Region", "Dual-region", "Multi-region").
location_uuid stringThe Clumio-assigned UUID of the GCP location associated with the bucket.
object_count int64The number of objects in the bucket.
organizational_unit_id stringThe Clumio-assigned ID of the organizational unit associated with the bucket.
project_id stringThe GCP project ID associated with the bucket.
project_uuid stringThe Clumio-assigned UUID of the GCP project associated with the bucket.
protection_group_count int64The number of protection groups associated with the bucket.
size_bytes int64Total size in bytes of all objects in the bucket.
- current_count int64
The number of items listed on the current page.
- limit int64
The maximum number of items displayed per page in the response.
- start string
The page number used to get this response. Pages are indexed starting from 1 (i.e.,
"start": "1"). - total_count int64
The total number of items, summed across all pages.
- total_pages_count int64
The total number of pages of results.
{
"_embedded": {
"items": [
{
"bucket_name": "string",
"created_timestamp": "string",
"id": "string",
"is_deleted": true,
"is_versioning_enabled": true,
"labels": [
{
"key": "string",
"value": "string"
}
],
"last_backup_timestamp": "string",
"location": "string",
"location_type": "string",
"location_uuid": "string",
"object_count": 0,
"organizational_unit_id": "string",
"project_id": "string",
"project_uuid": "string",
"protection_group_count": 0,
"size_bytes": 0
}
]
},
"current_count": 0,
"limit": 0,
"start": "string",
"total_count": 0,
"total_pages_count": 0
}
Error
- application/json
- Schema
- Example (from schema)
Schema
errors object[]
A list of errors encountered during runtime.
error_code uint32error_message stringThe reason for the error.
{
"errors": [
{
"error_code": 0,
"error_message": "string"
}
]
}