Doel
Generate a short-lived signed URL for a tenant-scoped GCS object.
Elements runtime reference / Tenant GCS files
signGcsFileGenerate a short-lived signed URL for a tenant-scoped GCS object.
signGcsFile(path, bucket=None, prefix=None, ttlSeconds=None, method='GET', contentType=None)
Generate a short-lived signed URL for a tenant-scoped GCS object.
sign_gcs_filegcs.signgcs.sign_filegcs.signed_urlUse these fields as the Python call arguments or keyword payload for this helper.
{
"path": "exports/report.json",
"ttlSeconds": 900,
"method": "GET"
}
| Field | Description |
|---|---|
path | Relative path, filestore/{tenantId}-prefixed object path, or gs:// URI inside the current tenant filestore folder. |
ttlSeconds | Signed URL TTL. Defaults to the worker helper default and is capped by the worker. |
method | HTTP method, usually GET for downloads or PUT for upload-style access. |
contentType | Optional content type required for PUT/POST signed URLs. |
{
"signedUrl": "https://storage.googleapis.com/...",
"url": "https://storage.googleapis.com/...",
"downloadUrl": "https://storage.googleapis.com/...",
"expiresAt": "2026-07-06T12:15:00Z",
"method": "GET",
"gcsUri": "gs://dashview-cache/filestore/tenant/exports/report.json"
}
def run():
signed = gcs.sign("exports/report.json", ttlSeconds=900)
return {"downloadUrl": signed["signedUrl"]}