Doel
List tenant-scoped GCS files under the current tenant folder.
Elements runtime reference / Tenant GCS files
listGcsFilesList tenant-scoped GCS files under the current tenant folder.
listGcsFiles(prefix=None, bucket=None, maxResults=None, withMetadata=False)
List tenant-scoped GCS files under the current tenant folder.
list_gcs_filesgcs.listgcs.list_filesUse these fields as the Python call arguments or keyword payload for this helper.
{
"prefix": "exports",
"maxResults": 100,
"withMetadata": true
}
| Field | Description |
|---|---|
prefix | Optional relative prefix under filestore/{tenantId}/, or a filestore-prefixed/gs:// prefix. |
bucket | Optional bucket override; must match the configured file artifact/output bucket. |
maxResults | Optional list cap bounded by the worker. |
withMetadata | When true, return the full envelope with bucket/prefix/files. |
{
"bucket": "dashview-cache",
"prefix": "filestore/tenant/exports/",
"tenantPrefix": "filestore/tenant/",
"files": [
{
"relativePath": "exports/report.json",
"contentType": "application/json",
"size": 18
}
]
}
def run():
files = gcs.list("exports")
return {"files": files}