What can you do with it?
Google Cloud Storage allows you to manage cloud storage objects programmatically. You can list all buckets in a project, upload files to specific buckets, download objects, manage object metadata, and organize your cloud storage resources. This integration is perfect for backup solutions, file storage workflows, and cloud-based content management.
How to use it?
Basic Command Structure
/your-Google-Cloud-Storage-connection [action] [required-parameters] [optional-parameters]
Parameters
Required:
action
- The operation to perform on Google Cloud Storage
List Buckets
List all storage buckets in a Google Cloud project
Parameters:
project-name
(required) - The Google Cloud project name
Example:
/your-Google-Cloud-Storage-connection
action: list-buckets
project-name: my-project-123
Response:
{
"items": [
{
"id": "my-bucket-123",
"name": "my-bucket-123",
"timeCreated": "2024-01-15T10:30:00.000Z",
"location": "US",
"storageClass": "STANDARD"
},
{
"id": "backup-bucket-456",
"name": "backup-bucket-456",
"timeCreated": "2024-02-20T14:45:00.000Z",
"location": "EU",
"storageClass": "NEARLINE"
}
]
}
Upload File
Upload a file to a specific bucket
Parameters:
bucket-name
(required) - Name of the target bucket
file-name
(required) - Name for the file in the bucket
file-content
(required) - Content of the file to upload
Example:
/your-Google-Cloud-Storage-connection
action: upload-file
bucket-name: my-bucket-123
file-name: reports/quarterly-report.txt
file-content: This is the content of my quarterly report...
Response:
{
"id": "my-bucket-123/reports/quarterly-report.txt",
"name": "reports/quarterly-report.txt",
"bucket": "my-bucket-123",
"size": "45",
"timeCreated": "2024-03-15T09:30:00.000Z",
"contentType": "text/plain"
}
List Objects
List all objects in a bucket
Parameters:
bucket-name
(required) - Name of the bucket to list objects from
prefix
(optional) - Filter results to objects with names that begin with this prefix
max-results
(optional) - Maximum number of items to return
Example:
/your-Google-Cloud-Storage-connection
action: list-objects
bucket-name: my-bucket-123
prefix: reports/
max-results: 50
Response:
{
"items": [
{
"name": "reports/quarterly-report.txt",
"size": "45",
"timeCreated": "2024-03-15T09:30:00.000Z"
},
{
"name": "reports/annual-summary.pdf",
"size": "102400",
"timeCreated": "2024-01-10T11:20:00.000Z"
}
]
}
Download Object
Download an object from a bucket
Parameters:
bucket-name
(required) - Name of the bucket containing the object
object-name
(required) - Name of the object to download
Example:
/your-Google-Cloud-Storage-connection
action: download-object
bucket-name: my-bucket-123
object-name: reports/quarterly-report.txt
Response:
{
"name": "reports/quarterly-report.txt",
"content": "This is the content of my quarterly report...",
"contentType": "text/plain",
"size": "45"
}
Delete Object
Delete an object from a bucket
Parameters:
bucket-name
(required) - Name of the bucket containing the object
object-name
(required) - Name of the object to delete
Example:
/your-Google-Cloud-Storage-connection
action: delete-object
bucket-name: my-bucket-123
object-name: reports/old-report.txt
Response:
{
"status": "deleted",
"object": "reports/old-report.txt"
}
Get metadata information about an object
Parameters:
bucket-name
(required) - Name of the bucket containing the object
object-name
(required) - Name of the object
Example:
/your-Google-Cloud-Storage-connection
action: get-object-metadata
bucket-name: my-bucket-123
object-name: reports/quarterly-report.txt
Response:
{
"name": "reports/quarterly-report.txt",
"bucket": "my-bucket-123",
"size": "45",
"timeCreated": "2024-03-15T09:30:00.000Z",
"updated": "2024-03-15T09:30:00.000Z",
"contentType": "text/plain",
"storageClass": "STANDARD",
"md5Hash": "rL0Y20zC+Fzt72VPzMSk2A=="
}
Notes
File paths in bucket names use forward slashes (/) to create a folder-like structure. The content type is automatically detected for common file types when uploading. Storage classes include STANDARD, NEARLINE, COLDLINE, and ARCHIVE. When uploading files, text content can be provided directly, while binary files should be base64-encoded.