Skip to main content

/images/icons/xs_temp.svg Google Cloud Storage: List Directory of

cloud.google.storage.list_directory {
  service_account = ""
  bucket = ""
  path = ""
} as x1
ParameterPurposeExample
service_accountGCP service account JSON{"type": "service_account", ...}
bucketGCS bucket name"my-app-bucket"
pathDirectory path to list"folder/", "uploads/"
asAlias for directory listingx1, directory_contents
cloud.google.storage.list_directory {
  service_account = $env.GCP_SERVICE_ACCOUNT
  bucket = "app-assets"
  path = "images/2024/"
} as folder_listing
  • Lists contents of a GCS directory
  • Returns object names and metadata
  • Supports nested directories
  • Lists all objects in specified path

/images/icons/xs_temp.svg Google Cloud Storage: Get Signed URL of

cloud.google.storage.sign_url {
  service_account = ""
  bucket = ""
  filePath = ""
  method = "GET"
  ttl = 300
} as x2
ParameterPurposeExample
service_accountGCP service account JSON{"type": "service_account", ...}
bucketGCS bucket name"my-app-bucket"
filePathPath to file"documents/file.pdf"
methodHTTP method to allow"GET", "PUT"
ttlTime-to-live in seconds300, 3600
asAlias for signed URLx2, signed_url
cloud.google.storage.sign_url {
  service_account = $env.GCP_SERVICE_ACCOUNT
  bucket = "private-files"
  filePath = "secure/"|add:$file.path
  method = "GET"
  ttl = 1800
} as download_url
  • Generates signed URL for temporary access

/images/icons/xs_temp.svg Google Cloud Storage: Get Signed URL of

cloud.google.storage.sign_url {
  service_account = ""
  bucket = ""
  filePath = ""
  method = "GET"
  ttl = 300
} as x2
ParameterPurposeExample
service_accountGCP service account JSON{"type": "service_account", ...}
bucketGCS bucket name"my-app-bucket"
filePathPath to file"documents/file.pdf"
methodHTTP method to allow"GET", "PUT"
ttlTime-to-live in seconds300, 3600
asAlias for signed URLx2, signed_url
cloud.google.storage.sign_url {
  service_account = $env.GCP_SERVICE_ACCOUNT
  bucket = "private-files"
  filePath = "secure/"|add:$file.path
  method = "GET"
  ttl = 1800
} as download_url
  • Generates signed URL for temporary access

/images/icons/xs_temp.svg Google Cloud Storage: Upload file to

cloud.google.storage.upload_file {
  service_account = ""
  bucket = ""
  filePath = ""
  file = ""
  metadata =
}
ParameterPurposeExample
service_accountGCP service account JSON{"type": "service_account", ...}
bucketGCS bucket name"my-app-bucket"
filePathDestination path in bucket"uploads/file.jpg"
fileFile to upload$input.file
metadataCustom metadata for object{contentType: "image/jpeg"}
cloud.google.storage.upload_file {
  service_account = $env.GCP_SERVICE_ACCOUNT
  bucket = "user-content"
  filePath = $user.id|add:"/profile.jpg"
  file = $input.profile_photo
  metadata = {
    userId: $user.id,
    uploadTime: $now
  }
}
  • Uploads file to Google Cloud Storage
  • Supports custom metadata

/images/icons/xs_temp.svg Google Cloud Storage: Delete file

cloud.google.storage.delete_file {
  service_account = ""
  bucket = ""
  filePath = ""
}
ParameterPurposeExample
service_accountGCP service account JSON{"type": "service_account", ...}
bucketGCS bucket name"my-app-bucket"
filePathPath to file to delete"folder/file.txt"
cloud.google.storage.delete_file {
  service_account = $env.GCP_SERVICE_ACCOUNT
  bucket = "temp-storage"
  filePath = "temp/"|add:$file.name
}
  • Deletes an object from storage

/images/icons/xs_temp.svg Google Cloud Storage: Create Var From File Resource

cloud.google.storage.read_file {
  service_account = ""
  bucket = ""
  filePath = ""
} as x3
ParameterPurposeExample
service_accountGCP service account JSON{"type": "service_account", ...}
bucketGCS bucket name"my-app-bucket"
filePathPath to file to read"documents/file.txt"
asAlias for file contentsx3, file_data
cloud.google.storage.read_file {
  service_account = $env.GCP_SERVICE_ACCOUNT
  bucket = "app-data"
  filePath = "documents/"|add:$doc.id
} as document_contents
  • Reads object contents
  • Returns file data

/images/icons/xs_temp.svg Google Cloud Storage: Get File Metadata

cloud.google.storage.get_file_info {
  service_account = ""
  bucket = ""
  filePath = ""
} as x4
ParameterPurposeExample
service_accountGCP service account JSON{"type": "service_account", ...}
bucketGCS bucket name"my-app-bucket"
filePathPath to file"folder/file.txt"
asAlias for file metadatax4, object_info
cloud.google.storage.get_file_info {
  service_account = $env.GCP_SERVICE_ACCOUNT
  bucket = "media-files"
  filePath = "videos/"|add:$video.id
} as file_metadata
  • Retrieves object metadata
I