Fly.io
Machines

Reclaim Machine Memory

View as Markdown

Trigger the balloon device to reclaim memory from a machine

POST
/apps/{app_name}/machines/{machine_id}/memory/reclaim

Trigger the balloon device to reclaim memory from a machine

Authorization

bearerAuth
AuthorizationBearer <token>

A Fly.io access token. Create one with fly tokens create.

In: header

Path Parameters

app_name*string

Fly App Name

machine_id*string

Machine ID

Request Body

application/json

Reclaim memory request

amount_mb?integer

Response Body

application/json

curl -X POST "https://example.com/apps/string/machines/string/memory/reclaim" \  -H "Content-Type: application/json" \  -d '{}'
{  "actual_mb": 0}