v1

latestOpenAPI 3.0.1Apache 2.02026-07-1476137102.3 KB
Machines

Stop Machine

Stop a specific Machine within an app, with an optional request body to specify signal and timeout.

post/apps/{app_name}/machines/{machine_id}/stop

Path parameters

app_namestring required

Fly App Name

machine_idstring required

Machine ID

Request body

signal'SIGHUP' | 'SIGINT' | 'SIGQUIT' | 'SIGKILL' | 'SIGUSR1' | 'SIGUSR2' | 'SIGTERM'
timeoutstring

Example request

{
  "signal": "SIGTERM",
  "timeout": "1s"
}

Response

OK