Skip to main content
POST
/
api
/
disks
/
{id}
/
exec
Execute a command on a disk
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>"
  }
}

Authorizations

Authorization
string
header
required

API key (format key-{API_KEY})

Path Parameters

id
string
required

Disk ID (format dsk-{16 hex chars})

Pattern: ^dsk-[0-9a-f]{16}$
Example:

"dsk-0123456789abcdef"

Body

application/json
command
string
required

Shell command to execute inside the container

Example:

"ls -la /mnt/archil"

Response

Command completed

success
boolean
required
Example:

true

data
object
required