🚀 You can now run code directly on your disks with serverless execution!
Launches a container with the supplied set of disks each mounted at its
own relative path under /mnt/archil, runs the command to completion,
and shuts down the container. Activation is atomic: every disk mounts
or none of them do.
Relative paths must be non-empty, non-absolute, and contain no . /
.. segments. Mounting two disks at the same relative path is an
error.
curl --request POST \
--url https://control.green.us-east-1.aws.prod.archil.com/api/exec \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"disks": {
"data": "dsk-abc123",
"logs": "dsk-def456"
},
"command": "ls -la /mnt/archil/data /mnt/archil/logs"
}
'{
"success": true,
"data": {
"exitCode": 0,
"stdout": "<string>",
"stderr": "<string>",
"timing": {
"totalMs": 2450,
"queueMs": 150,
"executeMs": 2300
}
}
}Documentation Index
Fetch the complete documentation index at: https://docs.archil.com/llms.txt
Use this file to discover all available pages before exploring further.
API key (format key-{API_KEY})
Map of relative path under /mnt/archil to the disk to mount
there. At least one entry is required. Relative paths must be
non-empty, non-absolute, and contain no . or .. segments.
Show child attributes
{
"data": "dsk-abc123",
"logs": "dsk-def456"
}
Shell command to execute inside the container
"ls -la /mnt/archil/data /mnt/archil/logs"
Was this page helpful?
curl --request POST \
--url https://control.green.us-east-1.aws.prod.archil.com/api/exec \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"disks": {
"data": "dsk-abc123",
"logs": "dsk-def456"
},
"command": "ls -la /mnt/archil/data /mnt/archil/logs"
}
'{
"success": true,
"data": {
"exitCode": 0,
"stdout": "<string>",
"stderr": "<string>",
"timing": {
"totalMs": 2450,
"queueMs": 150,
"executeMs": 2300
}
}
}