CreateTransfer
A one-request URL moving one file straight between you and the machine: run command in a shell, or send http_method to url yourself, before expire_time.
upload_archive: the project's directory, packed, for CreateProject's or DeployProject's upload_id once the PUT answered 200 with what it holds.
upload_file: one file into a container or volume, replacing any file there (replaces), creating parents.
download: a file, or a directory as a .tar (file_name).
download_database: a database project's dump, made as it downloads: Postgres's for pg_restore (roles are not in it), Valkey's .rdb. One at a time per database. Plain-text answers: 404 used or expired URL, 409 FAILED_PRECONDITION, 413 archive over 2 GiB, 422 unsafe archive (a reason per line), 503 UNAVAILABLE, 507 disk full. A failed transfer keeps nothing: get a new URL. Errors as ReadPath; FAILED_PRECONDITION also = downloading neither a file nor a directory, uploading onto a non-file, a mount point, /proc or /sys, the hostname not yet certified, or a dump of a project that is no database or is not running. NOT_FOUND also = a Postgres database the server lacks (the message lists its databases). RESOURCE_EXHAUSTED = disk full, or too many transfers. UNAVAILABLE = Postgres runs but does not answer yet: try again shortly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| download | No | A directory comes as a .tar of what ReadPath shows; symlinks kept. At most one of service, volume. Where the path is. Neither = the project's deployed files. | |
| upload_file | No | At most one of service, volume. | |
| upload_archive | No | The project's directory as a zip, tar or tar.gz (told by content), for CreateProject's or DeployProject's upload_id: {} is enough. A single top folder is unwrapped; .git, __MACOSX, .DS_Store, ._* are dropped. Leave out what the build makes again (node_modules, .venv, target). | |
| download_database | No | A database project's dump: Postgres's in its custom format, Valkey's .rdb. |