GET

/api/v1/environments/{id}/files/{path}

Read a file from the environment

Raw bytes response (application/octet-stream) with the content digest in

X-Eaas-File-Sha256; error paths still use the standard failure envelope. {path} is

the normalized workspace-relative path (the route is a catch-all, so it may contain

/ segments; .. traversal and absolute paths are rejected). Reads are capped at

1MB via maxBytes; a missing file is 404 not_owned. Principal sessions may read

files of their bound environment.

当前语言暂无代码示例

参数

FieldTypeReqDefaultDescription
stringN—
stringN—
maxBytesintegerN—Read cap in bytes (default and maximum 1048576).

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test