Skip to main content
GET
List Machines

Authorizations

Authorization
string
header
required

A Fly API token with access to the requested organization or resource. Send it as Authorization: Bearer <Fly API token>.

Path Parameters

app_name
string
required

Fly App Name

Query Parameters

include_deleted
boolean

Include deleted machines

include_leases
boolean

Include machine leases

region
string

Region filter

state
string

comma separated list of states to filter (created, started, stopped, suspended)

summary
boolean

Only return summary info about machines (omit config, checks, events, host_status, nonce, etc.)

metadata.{key}
string

Filter by a machine metadata key and exact value. Replace {key} with the metadata key, for example metadata.foo=bar. Specify multiple metadata filters to require all matches.

cursor
string

Value of the fly-next-cursor response header from the previous page. Requires limit.

limit
integer

The number of machines to fetch (must be between 1 and 1000). Providing a limit enables pagination. This limit is advisory; responses may be shorter, or even empty, even when more machines remain.

Response

OK

checks
object[]
config
object
cordoned
boolean
created_at
string
events
object[]
host_features
string[]
host_status
enum<string>
Available options:
ok,
unknown,
unreachable
id
string
image_ref
object
incomplete_config
object
instance_id
string

InstanceID is the same value as version.

Deprecated: use version.

lease
object
name
string
nonce
string

Nonce is only every returned on machine creation if a lease_duration was provided.

private_ip
string

PrivateIP is the internal 6PN address of the machine.

region
string
state
string
updated_at
string
version
string

Version is unique for each version of the machine. Pass it as current_version when updating the Machine to reject the update if the Machine has changed since this version.