Skip to main content
Google Cloud Storage (GCS) is a scalable, fully managed object storage service that lets you store and retrieve any amount of data at any time. It supports storing unstructured data such as images, videos, backups, and datasets with high durability, availability, and security. The GCPStorageHandler enables seamless interaction with Google Cloud Storage for tasks like managing buckets, listing files, retrieving metadata, and fetching IAM policies.

Example

List Buckets:
Retrieve all buckets in the Google Cloud Storage project.
Get Bucket:
Retrieve detailed information about a specific bucket.
Get Bucket ACL:
Retrieve the Access Control List (ACL) of a bucket.
Get Bucket CORS:
Retrieve the CORS configuration for a bucket.
Get Bucket Encryption:
Retrieve the default KMS encryption key of a bucket.
Get Bucket Labels:
Retrieve all labels assigned to a bucket.
Get Bucket Lifecycle Rules:
Retrieve lifecycle rules applied to a bucket.
Get Bucket Location:
Retrieve the geographic location of a bucket.
Get Bucket Logging:
Retrieve the logging configuration of a bucket.
Get Bucket Notifications:
Retrieve the notification configurations of a bucket.
Get Bucket Owner:
Retrieve the ownership information of a bucket.
Get Bucket IAM Policy:
Retrieve the IAM policy attached to a bucket.
Get All Buckets Info:
Retrieve full details (ACL, encryption, IAM, logging, notifications) of all buckets.
List Files:
List all files (blobs) in a bucket with an optional prefix.
Get File Info:
Retrieve metadata and properties of a file (blob) in a bucket.