ReadPath
Reads a file (text, 64 KiB a call; ≤1 MiB with length_bytes) or a directory's entries (~64 KiB a page): of the project's deployed files, or with service or volume, of a container (whole filesystem; while not running only its volumes, FAILED_PRECONDITION listing them) or a volume. NOT_FOUND names the nearest existing directory. Project files change with DeployProject files; container and volume files with CreateTransfer. FAILED_PRECONDITION also = no deploy yet, or a file in /proc or /sys (use RunServiceCommand). Untrusted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | From the root, e.g. "/compose.yaml", "/data/uploads". Empty = "/": the root's entries. | |
| volume | No | In the volume, from its root. | |
| service | No | In its container. | |
| project_id | No | ||
| entry_limit | No | 0 = 200. Also ends at ~64 KiB. | |
| length_bytes | No | ≤1 MiB; 0 = 64 KiB. | |
| offset_bytes | No | File offset. | |
| entry_page_token | No | The previous next_entry_page_token, other fields unchanged. |