🚀 You can now run code directly on your disks with serverless execution!
Launches a container with the specified disk mounted, runs the given command to completion, and shuts down the container. Returns immediately with the container info; poll the container endpoint for completion.
curl --request POST \
--url https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/exec \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"command": "ls -la /mnt/archil"
}
'{
"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})
Disk ID (format dsk-{16 hex chars})
^dsk-[0-9a-f]{16}$"dsk-0123456789abcdef"
Shell command to execute inside the container
"ls -la /mnt/archil"
Was this page helpful?
curl --request POST \
--url https://control.green.us-east-1.aws.prod.archil.com/api/disks/{id}/exec \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"command": "ls -la /mnt/archil"
}
'{
"success": true,
"data": {
"exitCode": 0,
"stdout": "<string>",
"stderr": "<string>",
"timing": {
"totalMs": 2450,
"queueMs": 150,
"executeMs": 2300
}
}
}