Fly.io

Models

View as Markdown

Schema reference for every object in the Fly Machines API.

These are the data models used across the Machines API requests and responses, generated from the OpenAPI specification.

AcmeChallenge

PropertyTypeRequiredDescription
namestringNo
targetstringNo

App

PropertyTypeRequiredDescription
idstringNo
internal_numeric_idintegerNo
machine_countintegerNo
namestringNo
networkstringNo
organizationAppOrganizationInfoNo
statusstringNo
volume_countintegerNo

AppOrganizationInfo

PropertyTypeRequiredDescription
internal_numeric_idintegerNo
namestringNo
slugstringNo

AppSecret

PropertyTypeRequiredDescription
created_atstringNo
digeststringNo
namestringNo
updated_atstringNo
valuestringNo

AppSecrets

PropertyTypeRequiredDescription
secretsAppSecret[]No

AppSecretsUpdateRequest

PropertyTypeRequiredDescription
valuesmap<string, string>No

AppSecretsUpdateResp

PropertyTypeRequiredDescription
VersionintegerNoDEPRECATED
secretsAppSecret[]No
versionintegerNo

assignIPRequest

PropertyTypeRequiredDescription
networkstringNo
org_slugstringNo
regionstringNo
service_namestringNo
typestringNo

authenticateTokenRequest

PropertyTypeRequiredDescription
headerstringNo

authorizeResponse

PropertyTypeRequiredDescription
accessflyio.AccessNo
verified_tokenroot.VerifiedTokenNo

authorizeTokenRequest

PropertyTypeRequiredDescription
accessmain.TokenAccessNo
headerstringNo

CertificateCheckResponse

PropertyTypeRequiredDescription
acme_requestedbooleanNo
certificatesCertificateEntry[]No
configuredbooleanNo
dns_providerstringNo
dns_recordsDNSRecordsNo
dns_requirementsDNSRequirementsNo
hostnamestringNo
rate_limited_untilstringNo
statusstringNo
validationCertificateValidationNo
validation_errorsCertificateValidationError[]No

CertificateDetail

PropertyTypeRequiredDescription
acme_requestedbooleanNo
certificatesCertificateEntry[]No
configuredbooleanNo
dns_providerstringNo
dns_requirementsDNSRequirementsNo
hostnamestringNo
rate_limited_untilstringNo
statusstringNo
validationCertificateValidationNo
validation_errorsCertificateValidationError[]No

CertificateEntry

PropertyTypeRequiredDescription
created_atstringNo
expires_atstringNo
issuedIssuedCertificate[]No
issuerstringNo
sourcestringNoEnum: custom, fly
statusstringNoEnum: active, pending_ownership, pending_validation

CertificateSummary

PropertyTypeRequiredDescription
acme_alpn_configuredbooleanNo
acme_dns_configuredbooleanNo
acme_http_configuredbooleanNo
acme_requestedbooleanNo
configuredbooleanNo
created_atstringNo
dns_providerstringNo
has_custom_certificatebooleanNo
has_fly_certificatebooleanNo
hostnamestringNo
ownership_txt_configuredbooleanNo
statusstringNo
updated_atstringNo

CertificateValidation

PropertyTypeRequiredDescription
alpn_configuredbooleanNo
dns_configuredbooleanNo
http_configuredbooleanNo
ownership_txt_configuredbooleanNo

CertificateValidationError

PropertyTypeRequiredDescription
codestringNo
messagestringNo
remediationstringNo
timestampstringNo

CheckStatus

PropertyTypeRequiredDescription
namestringNo
outputstringNo
statusstringNo
updated_atstringNo

createAcmeCertificateRequest

PropertyTypeRequiredDescription
hostnamestringNo

CreateAppDeployTokenRequest

PropertyTypeRequiredDescription
expirystringNo

CreateAppRequest

PropertyTypeRequiredDescription
enable_subdomainsbooleanNo
namestringNo
networkstringNo
org_slugstringNo

CreateAppResponse

PropertyTypeRequiredDescription
tokenstringNo

createCustomCertificateRequest

PropertyTypeRequiredDescription
fullchainstringNo
hostnamestringNo
private_keystringNo

CreateLeaseRequest

PropertyTypeRequiredDescription
descriptionstringNo
ttlintegerNoseconds lease will be valid

CreateMachineRequest

PropertyTypeRequiredDescription
configfly.MachineConfigNoAn object defining the Machine configuration
lease_ttlintegerNo
min_secrets_versionintegerNo
namestringNoUnique name for this Machine. If omitted, one is generated for you
regionstringNoThe target region. Omitting this param launches in the same region as your WireGuard peer connection (somewhere near you).
skip_launchbooleanNo
skip_secretsbooleanNo
skip_service_registrationbooleanNo

CreateOIDCTokenRequest

Optional parameters

PropertyTypeRequiredDescription
audstringNo
aws_principal_tagsbooleanNo

CreateVolumeRequest

PropertyTypeRequiredDescription
auto_backup_enabledbooleanNoenable scheduled automatic snapshots. Defaults to `true`
computefly.MachineGuestNo
compute_imagestringNo
encryptedbooleanNo
fstypestringNo
namestringNo
regionstringNo
require_unique_zonebooleanNo
size_gbintegerNo
snapshot_idstringNorestore from snapshot
snapshot_retentionintegerNo
source_volume_idstringNofork from remote volume
unique_zone_app_widebooleanNo

CurrentTokenResponse

PropertyTypeRequiredDescription
tokensmain.tokenInfo[]No

DecryptSecretkeyRequest

PropertyTypeRequiredDescription
associated_datainteger[]No
ciphertextinteger[]No

DecryptSecretkeyResponse

PropertyTypeRequiredDescription
plaintextinteger[]No

DeleteAppSecretResponse

PropertyTypeRequiredDescription
VersionintegerNoDEPRECATED
versionintegerNo

DeleteSecretkeyResponse

PropertyTypeRequiredDescription
VersionintegerNoDEPRECATED
versionintegerNo

destroyCustomCertificateResponse

PropertyTypeRequiredDescription
acme_requestedbooleanNo
certificatesCertificateEntry[]No
configuredbooleanNo
dns_providerstringNo
dns_requirementsDNSRequirementsNo
hostnamestringNo
rate_limited_untilstringNo
statusstringNo
validationCertificateValidationNo
validation_errorsCertificateValidationError[]No
warningstringNo

DNSRecords

PropertyTypeRequiredDescription
astring[]No
aaaastring[]No
acme_challenge_cnamestringNo
cnamestring[]No
ownership_txtstringNo
resolved_addressesstring[]No
soastringNo

DNSRequirements

PropertyTypeRequiredDescription
astring[]No
aaaastring[]No
acme_challengeAcmeChallengeNo
cnamestringNo
ownershipOwnershipVerificationNo

EncryptSecretkeyRequest

PropertyTypeRequiredDescription
associated_datainteger[]No
plaintextinteger[]No

EncryptSecretkeyResponse

PropertyTypeRequiredDescription
ciphertextinteger[]No

ErrorResponse

PropertyTypeRequiredDescription
detailsobjectNoDeprecated
errorstringNo
statusmain.statusCodeNo

ExtendVolumeRequest

PropertyTypeRequiredDescription
size_gbintegerNo

ExtendVolumeResponse

PropertyTypeRequiredDescription
needs_restartbooleanNo
volumeVolumeNo

fly.ContainerConfig

PropertyTypeRequiredDescription
cmdstring[]NoCmdOverride is used to override the default command of the image.
depends_onfly.ContainerDependency[]NoDependsOn can be used to define dependencies between containers. The container will only be started after all of its dependent conditions have been satisfied.
entrypointstring[]NoEntrypointOverride is used to override the default entrypoint of the image.
envmap<string, string>NoExtraEnv is used to add additional environment variables to the container.
env_fromfly.EnvFrom[]NoEnvFrom can be provided to set environment variables from machine fields.
execstring[]NoImage Config overrides - these fields are used to override the image configuration. If not provided, the image configuration will be used. ExecOverride is used to override the default command of the image.
filesfly.File[]NoFiles are files that will be written to the container file system.
healthchecksfly.ContainerHealthcheck[]NoHealthchecks determine the health of your containers. Healthchecks can use HTTP, TCP or an Exec command.
imagestringNoImage is the docker image to run.
namestringNoName is used to identify the container in the machine.
restartfly.MachineRestartNoRestart is used to define the restart policy for the container. NOTE: spot-price is not supported for containers.
secretsfly.MachineSecret[]NoSecrets can be provided at the process level to explicitly indicate which secrets should be used for the process. If not provided, the secrets provided at the machine level will be used.
stopfly.StopConfigNoStop is used to define the signal and timeout for stopping the container.
userstringNoUserOverride is used to override the default user of the image.

fly.ContainerDependency

PropertyTypeRequiredDescription
conditionfly.ContainerDependencyConditionNo
namestringNo

fly.ContainerDependencyCondition

Type: string

fly.ContainerHealthcheck

PropertyTypeRequiredDescription
execfly.ExecHealthcheckNo
failure_thresholdintegerNoThe number of times the check must fail before considering the container unhealthy.
grace_periodintegerNoThe time in seconds to wait after a container starts before checking its health.
httpfly.HTTPHealthcheckNo
intervalintegerNoThe time in seconds between executing the defined check.
kindfly.ContainerHealthcheckKindNoKind of healthcheck (readiness, liveness)
namestringNoThe name of the check. Must be unique within the container.
success_thresholdintegerNoThe number of times the check must succeeed before considering the container healthy.
tcpfly.TCPHealthcheckNo
timeoutintegerNoThe time in seconds to wait for the check to complete.
unhealthyfly.UnhealthyPolicyNoUnhealthy policy that determines what action to take if a container is deemed unhealthy

fly.ContainerHealthcheckKind

Type: string

fly.ContainerHealthcheckScheme

Type: string

fly.DNSConfig

PropertyTypeRequiredDescription
dns_forward_rulesfly.dnsForwardRule[]No
hostnamestringNo
hostname_fqdnstringNo
nameserversstring[]No
optionsfly.dnsOption[]No
searchesstring[]No
skip_registrationbooleanNo

fly.dnsForwardRule

PropertyTypeRequiredDescription
addrstringNo
basenamestringNo

fly.dnsOption

PropertyTypeRequiredDescription
namestringNo
valuestringNo

fly.EnvFrom

EnvVar defines an environment variable to be populated from a machine field, env_var

PropertyTypeRequiredDescription
env_varstringNoEnvVar is required and is the name of the environment variable that will be set from the secret. It must be a valid environment variable name.
field_refstringNoFieldRef selects a field of the Machine: supports id, version, app_name, private_ip, region, image. — Enum: id, version, app_name, private_ip, region, image

fly.ExecHealthcheck

PropertyTypeRequiredDescription
commandstring[]NoThe command to run to check the health of the container (e.g. ["cat", "/tmp/healthy"])

fly.File

A file that will be written to the Machine. One of RawValue or SecretName must be set.

PropertyTypeRequiredDescription
guest_pathstringNoGuestPath is the path on the machine where the file will be written and must be an absolute path. For example: /full/path/to/file.json
image_configstringNoThe name of an image to use the OCI image config as the file contents.
modeintegerNoMode bits used to set permissions on this file as accepted by chmod(2).
raw_valuestringNoThe base64 encoded string of the file contents.
secret_namestringNoThe name of the secret that contains the base64 encoded file contents.

fly.HTTPHealthcheck

PropertyTypeRequiredDescription
headersfly.MachineHTTPHeader[]NoAdditional headers to send with the request
methodstringNoThe HTTP method to use to when making the request
pathstringNoThe path to send the request to
portintegerNoThe port to connect to, often the same as internal_port
schemefly.ContainerHealthcheckSchemeNoWhether to use http or https
tls_server_namestringNoIf the protocol is https, the hostname to use for TLS certificate validation
tls_skip_verifybooleanNoIf the protocol is https, whether or not to verify the TLS certificate

fly.HTTPOptions

PropertyTypeRequiredDescription
compressbooleanNo
h2_backendbooleanNo
headers_read_timeoutintegerNo
idle_timeoutintegerNo
replay_cachefly.ReplayCache[]No
responsefly.HTTPResponseOptionsNo

fly.HTTPResponseOptions

PropertyTypeRequiredDescription
headersmap<string, object>No
pristinebooleanNo

fly.MachineCacheDrive

PropertyTypeRequiredDescription
size_mbintegerNo

fly.MachineCheck

PropertyTypeRequiredDescription
grace_periodstringNoThe time to wait after a VM starts before checking its health
headersfly.MachineHTTPHeader[]No
intervalstringNoThe time between connectivity checks
kindstringNoKind of the check (informational, readiness) — Enum: informational, readiness
methodstringNoFor http checks, the HTTP method to use to when making the request
pathstringNoFor http checks, the path to send the request to
portintegerNoThe port to connect to, often the same as internal_port
protocolstringNoFor http checks, whether to use http or https
timeoutstringNoThe maximum time a connection can take before being reported as failing its health check
tls_server_namestringNoIf the protocol is https, the hostname to use for TLS certificate validation
tls_skip_verifybooleanNoFor http checks with https protocol, whether or not to verify the TLS certificate
typestringNotcp or http

fly.MachineConfig

PropertyTypeRequiredDescription
auto_destroybooleanNoOptional boolean telling the Machine to destroy itself once it’s complete (default false)
cache_drivefly.MachineCacheDriveNo
checksmap<string, fly.MachineCheck>NoAn optional object that defines one or more named top-level checks. The key for each check is the check name.
containersfly.ContainerConfig[]NoContainers are a list of containers that will run in the machine. Currently restricted to only specific organizations.
disable_machine_autostartbooleanNoDeprecated: use Service.Autostart instead
dnsfly.DNSConfigNo
envmap<string, string>NoAn object filled with key/value pairs to be set as environment variables
filesfly.File[]No
guestfly.MachineGuestNo
imagestringNoThe docker image to run
initfly.MachineInitNo
metadatamap<string, string>No
metricsfly.MachineMetricsNo
mountsfly.MachineMount[]No
processesfly.MachineProcess[]No
restartfly.MachineRestartNo
rootfsfly.MachineRootfsNo
schedulestringNo
servicesfly.MachineService[]No
sizestringNoDeprecated: use Guest instead
spotfly.MachineSpotNo
standbysstring[]NoStandbys enable a machine to be a standby for another. In the event of a hardware failure, the standby machine will be started.
staticsfly.Static[]No
stop_configfly.StopConfigNo

fly.MachineGuest

PropertyTypeRequiredDescription
cpu_kindstringNo
cpusintegerNo
gpu_kindstringNo
gpusintegerNo
host_dedication_idstringNo
kernel_argsstring[]No
max_memory_mbintegerNo
memory_mbintegerNo
persist_rootfsstringNoDeprecated: use MachineConfig.Rootfs instead — Enum: never, always, restart

fly.MachineHTTPHeader

For http checks, an array of objects with string field Name and array of strings field Values. The key/value pairs specify header and header values that will get passed with the check call.

PropertyTypeRequiredDescription
namestringNoThe header name
valuesstring[]NoThe header value

fly.MachineInit

PropertyTypeRequiredDescription
cmdstring[]No
entrypointstring[]No
execstring[]No
kernel_argsstring[]No
swap_size_mbintegerNo
ttybooleanNo

fly.MachineMetrics

PropertyTypeRequiredDescription
httpsbooleanNo
pathstringNo
portintegerNo

fly.MachineMount

PropertyTypeRequiredDescription
add_size_gbintegerNo
encryptedbooleanNo
extend_threshold_percentintegerNo
namestringNo
pathstringNo
size_gbintegerNo
size_gb_limitintegerNo
volumestringNo

fly.MachinePort

PropertyTypeRequiredDescription
end_portintegerNo
force_httpsbooleanNo
handlersstring[]No
http_optionsfly.HTTPOptionsNo
portintegerNo
proxy_proto_optionsfly.ProxyProtoOptionsNo
start_portintegerNo
tls_optionsfly.TLSOptionsNo

fly.MachineProcess

PropertyTypeRequiredDescription
cmdstring[]No
entrypointstring[]No
envmap<string, string>No
env_fromfly.EnvFrom[]NoEnvFrom can be provided to set environment variables from machine fields.
execstring[]No
ignore_app_secretsbooleanNoIgnoreAppSecrets can be set to true to ignore the secrets for the App the Machine belongs to and only use the secrets provided at the process level. The default/legacy behavior is to use the secrets provided at the App level.
secretsfly.MachineSecret[]NoSecrets can be provided at the process level to explicitly indicate which secrets should be used for the process. If not provided, the secrets provided at the machine level will be used.
userstringNo

fly.MachineRestart

The Machine restart policy defines whether and how flyd restarts a Machine after its main process exits. See https://fly.io/docs/machines/guides-examples/machine-restart-policy/.

PropertyTypeRequiredDescription
gpu_bid_pricenumberNoGPU bid price for spot Machines.
max_retriesintegerNoWhen policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop.
policystringNo* no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash. * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly. * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules. * spot-price - Starts the Machine only when there is capacity and the spot price is less than or equal to the bid price. — Enum: no, always, on-failure, spot-price

fly.MachineRootfs

PropertyTypeRequiredDescription
persiststringNoEnum: never, always, restart
size_gbintegerNo

fly.MachineSecret

A Secret needing to be set in the environment of the Machine. env_var is required

PropertyTypeRequiredDescription
env_varstringNoEnvVar is required and is the name of the environment variable that will be set from the secret. It must be a valid environment variable name.
namestringNoName is optional and when provided is used to reference a secret name where the EnvVar is different from what was set as the secret name.

fly.MachineService

PropertyTypeRequiredDescription
autostartbooleanNo
autostopstringNoAccepts a string (new format) or a boolean (old format). For backward compatibility with older clients, the API continues to use booleans for "off" and "stop" in responses. * "off" or false - Do not autostop the Machine. * "stop" or true - Automatically stop the Machine. * "suspend" - Automatically suspend the Machine, falling back to a full stop if this is not possible. — Enum: off, stop, suspend
checksfly.MachineServiceCheck[]NoAn optional list of service checks
concurrencyfly.MachineServiceConcurrencyNo
force_instance_descriptionstringNo
force_instance_keystringNo
internal_portintegerNo
min_machines_runningintegerNo
portsfly.MachinePort[]No
protocolstringNo

fly.MachineServiceCheck

PropertyTypeRequiredDescription
grace_periodstringNoThe time to wait after a VM starts before checking its health
headersfly.MachineHTTPHeader[]No
intervalstringNoThe time between connectivity checks
methodstringNoFor http checks, the HTTP method to use to when making the request
pathstringNoFor http checks, the path to send the request to
portintegerNoThe port to connect to, often the same as internal_port
protocolstringNoFor http checks, whether to use http or https
timeoutstringNoThe maximum time a connection can take before being reported as failing its health check
tls_server_namestringNoIf the protocol is https, the hostname to use for TLS certificate validation
tls_skip_verifybooleanNoFor http checks with https protocol, whether or not to verify the TLS certificate
typestringNotcp or http

fly.MachineServiceConcurrency

PropertyTypeRequiredDescription
hard_limitintegerNo
soft_limitintegerNo
typestringNo

fly.MachineSpot

PropertyTypeRequiredDescription
max_price_fractionnumberNoMaxPriceFraction is the maximum fraction of the full Machine price you will pay for this Machine. Range: (0, 1.0]

fly.ProxyProtoOptions

PropertyTypeRequiredDescription
versionstringNo

fly.ReplayCache

PropertyTypeRequiredDescription
allow_bypassbooleanNo
namestringNoName of the cookie or header to key the cache on
path_prefixstringNo
ttl_secondsintegerNo
typestringNoCurrently either "cookie" or "header" — Enum: cookie, header

fly.Static

PropertyTypeRequiredDescription
guest_pathstringYes
index_documentstringNo
tigris_bucketstringNo
url_prefixstringYes

fly.StopConfig

PropertyTypeRequiredDescription
signalstringNoEnum: SIGHUP, SIGINT, SIGQUIT, SIGKILL, SIGUSR1, SIGUSR2, SIGTERM
timeoutstringNo

fly.TCPHealthcheck

PropertyTypeRequiredDescription
portintegerNoThe port to connect to, often the same as internal_port

fly.TLSOptions

PropertyTypeRequiredDescription
alpnstring[]No
default_self_signedbooleanNo
versionsstring[]No

fly.UnhealthyPolicy

Type: string

flydv1.ExecResponse

PropertyTypeRequiredDescription
exit_codeintegerNo
exit_signalintegerNo
stderrstringNo
stdoutstringNo

flyio.Access

PropertyTypeRequiredDescription
actionresset.ActionNo
app_featurestringNo
appidintegerNo
clusterstringNo
commandstring[]No
featurestringNo
machinestringNo
machine_featurestringNo
mutationstringNo
orgidintegerNo
sourceAppstringNo
sourceMachinestringNo
sourceOrganizationstringNo
storage_objectstringNo
volumestringNo

ImageRef

PropertyTypeRequiredDescription
digeststringNo
labelsmap<string, string>No
registrystringNo
repositorystringNo
tagstringNo

IPAssignment

PropertyTypeRequiredDescription
created_atstringNo
ipstringNo
regionstringNo
service_namestringNo
sharedbooleanNo

IssuedCertificate

PropertyTypeRequiredDescription
certificate_authoritystringNo
expires_atstringNo
typestringNoEnum: rsa, ecdsa

Lease

PropertyTypeRequiredDescription
descriptionstringNoDescription or reason for the Lease.
expires_atintegerNoExpiresAt is the unix timestamp in UTC to denote when the Lease will no longer be valid.
noncestringNoNonce is the unique ID autogenerated and associated with the Lease.
ownerstringNoOwner is the user identifier which acquired the Lease.
versionstringNoMachine version

ListAppsResponse

PropertyTypeRequiredDescription
appsApp[]No
total_appsintegerNo

listCertificatesResponse

PropertyTypeRequiredDescription
certificatesCertificateSummary[]No
next_cursorstringNo
total_countintegerNo

ListenSocket

PropertyTypeRequiredDescription
addressstringNo
protostringNo

listIPAssignmentsResponse

PropertyTypeRequiredDescription
ipsIPAssignment[]No

macaroon.CaveatSet

PropertyTypeRequiredDescription
caveatsobject[]No

macaroon.Nonce

PropertyTypeRequiredDescription
kidinteger[]No
proofbooleanNo
rndinteger[]No

Machine

PropertyTypeRequiredDescription
checksCheckStatus[]No
configfly.MachineConfigNo
cordonedbooleanNo
created_atstringNo
eventsMachineEvent[]No
host_statusstringNoEnum: ok, unknown, unreachable
idstringNo
image_refImageRefNo
incomplete_configfly.MachineConfigNo
instance_idstringNoInstanceID is unique for each version of the machine
leaseStrippedLeaseNo
namestringNo
noncestringNoNonce is only every returned on machine creation if a lease_duration was provided.
private_ipstringNoPrivateIP is the internal 6PN address of the machine.
regionstringNo
statestringNo
updated_atstringNo

MachineEvent

PropertyTypeRequiredDescription
idstringNo
requestobjectNo
sourcestringNo
statusstringNo
timestampintegerNo
typestringNo

MachineExecRequest

PropertyTypeRequiredDescription
cmdstringNoDeprecated: use Command instead
commandstring[]No
containerstringNo
stdinstringNo
timeoutintegerNo

MachineOverviewConfig

PropertyTypeRequiredDescription
guestfly.MachineGuestNo
imagestringNo
metadatamap<string, string>No

MachineVersion

PropertyTypeRequiredDescription
user_configfly.MachineConfigNo
versionstringNo

main.getPlacementsRequest

PropertyTypeRequiredDescription
computefly.MachineGuestNoResource requirements for the Machine to simulate. Defaults to a performance-1x machine
countintegerNoNumber of machines to simulate placement. Defaults to 0, which returns the org-specific limit for each region.
org_slugstringYes
regionstringNoRegion expression for placement as a comma-delimited set of regions or aliases. Defaults to "[region],any", to prefer the API endpoint's local region with any other region as fallback.
volume_namestringNo
volume_size_bytesintegerNo
weightsplacement.WeightsNoOptional weights to override default placement preferences.

main.getPlacementsResponse

PropertyTypeRequiredDescription
regionsplacement.RegionPlacement[]No

main.memoryResponse

PropertyTypeRequiredDescription
available_mbintegerNo
limit_mbintegerNo

main.reclaimMemoryRequest

PropertyTypeRequiredDescription
amount_mbintegerNo

main.reclaimMemoryResponse

PropertyTypeRequiredDescription
actual_mbintegerNo

main.regionResponse

PropertyTypeRequiredDescription
neareststringNo
regionsmain.regionRow[]No

main.regionRow

PropertyTypeRequiredDescription
codestringNo
deprecatedbooleanNo
gateway_availablebooleanNo
geo_regionstringNo
latitudenumberNo
longitudenumberNo
namestringNo
requires_paid_planbooleanNo

main.setMemoryLimitRequest

PropertyTypeRequiredDescription
limit_mbintegerNo

main.statusCode

Type: string

main.TokenAccess

PropertyTypeRequiredDescription
actionresset.ActionNoAction is the action being taken on the specified resource. This is the combination of individual action characters (e.g "rw") - r: read - w: write - c: create - d: delete - C: control
app_featurestringNoAppFeature is a named set of functionality associated with the app. If this is specified, the AppName field must be set. - images: images in the fly.io registry
app_namestringNoAppName is the name of the app being accessed.
commandstring[]NoCommand is the command being executed on a machine. If this is specified, the Machine must be set.
machine_featurestringNoMachineFeature is a named set of functionality associated with the machine. If this is specified, the Machine field must be set. - metadata: machine metadata service - oidc: OIDC tokens - kmstoken: Petsem tokens for KMS access
machine_idstringNoMachineID is the ID of the machine being accessed (e.g. 7811701f564258).
mutationstringNoMutation is the GraphQL mutation being performed.
org_featurestringNoOrgFeature is a named set of functionality associated with the organization. If this is specified, the OrgSlug field must be set. - wg: WireGuard peers - builder: remote builders - addon: addons - membership: organization membership - billing: billing - litefs-cloud: LiteFS Cloud - authentication: authentication settings
org_slugstringNoOrgSlug is the slug of the organization being accessed.
source_machinestringNoSourceMachine is the machine ID of the actor attempting access.
storage_objectstringNoStorageObject is the storage object being accessed. If this is specified, the OrgSlug must be set.
volume_idstringNoVolumeID is the encoded ID of the volume being accessed (e.g. vol_r1p6pln1k9m9j7zr).

main.tokenInfo

PropertyTypeRequiredDescription
appsstring[]No
org_slugstringNo
organizationstringNo
restricted_to_machinestringNoMachine the token is restricted to (FromMachine caveat)
source_machine_idstringNoMachine making the request
token_idstringNo
userstringNoUser identifier if token is for a user

metadataValueResponse

PropertyTypeRequiredDescription
valuestringNo

OrgMachine

PropertyTypeRequiredDescription
app_namestringNo
configMachineOverviewConfigNo
created_atstringNo
idstringNo
namestringNo
private_ipstringNo
regionstringNo
statestringNo
updated_atstringNo
versionstringNo

OrgMachinesResponse

PropertyTypeRequiredDescription
error_regionsstring[]No
last_machine_idstringNo
last_updated_atstringNo
machinesOrgMachine[]No
next_cursorstringNo

OrgVolume

PropertyTypeRequiredDescription
app_namestringNo
attached_alloc_idstringNo
attached_machine_idstringNo
auto_backup_enabledbooleanNo
block_sizeintegerNo
blocksintegerNo
blocks_availintegerNo
blocks_freeintegerNo
bytes_totalintegerNo
bytes_usedintegerNo
created_atstringNo
encryptedbooleanNo
fstypestringNo
host_statusstringNoEnum: ok, unknown, unreachable
idstringNo
namestringNo
regionstringNo
size_gbintegerNo
snapshot_retentionintegerNo
statestringNo
typestringNoEnum: local, cache
updated_atstringNo
zonestringNo

OrgVolumesResponse

PropertyTypeRequiredDescription
last_updated_atstringNo
last_volume_idstringNo
next_cursorstringNo
volumesOrgVolume[]No

OwnershipVerification

PropertyTypeRequiredDescription
app_valuestringNo
namestringNo
org_valuestringNo

placement.RegionPlacement

PropertyTypeRequiredDescription
concurrencyintegerNo
countintegerNo
regionstringNo

placement.Weights

Type: map<string, integer>

ProcessStat

PropertyTypeRequiredDescription
commandstringNo
cpuintegerNo
directorystringNo
listen_socketsListenSocket[]No
pidintegerNo
rssintegerNo
rtimeintegerNo
stimeintegerNo

resset.Action

Type: integer

root.VerifiedToken

PropertyTypeRequiredDescription
caveatsmacaroon.CaveatSetNo
headerstringNo
noncemacaroon.NonceNo
permission_tokeninteger[]No

SecretKey

PropertyTypeRequiredDescription
created_atstringNo
namestringNo
public_keyinteger[]No
typestringNo
updated_atstringNo

SecretKeys

PropertyTypeRequiredDescription
secret_keysSecretKey[]No

SetAppSecretRequest

PropertyTypeRequiredDescription
valuestringNo

SetAppSecretResponse

PropertyTypeRequiredDescription
VersionintegerNoDEPRECATED
created_atstringNo
digeststringNo
namestringNo
updated_atstringNo
valuestringNo
versionintegerNo

SetSecretkeyRequest

PropertyTypeRequiredDescription
typestringNo
valueinteger[]No

SetSecretkeyResponse

PropertyTypeRequiredDescription
VersionintegerNoDEPRECATED
created_atstringNo
namestringNo
public_keyinteger[]No
typestringNo
updated_atstringNo
versionintegerNo

SignalRequest

PropertyTypeRequiredDescription
signalstringNoEnum: SIGABRT, SIGALRM, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGKILL, SIGPIPE, SIGQUIT, SIGSEGV, SIGTERM, SIGTRAP, SIGUSR1, SIGUSR2

SignSecretkeyRequest

PropertyTypeRequiredDescription
plaintextinteger[]No

SignSecretkeyResponse

PropertyTypeRequiredDescription
signatureinteger[]No

StopRequest

PropertyTypeRequiredDescription
signalstringNoEnum: SIGHUP, SIGINT, SIGQUIT, SIGKILL, SIGUSR1, SIGUSR2, SIGTERM
timeoutstringNo

StrippedLease

PropertyTypeRequiredDescription
descriptionstringNo
expires_atintegerNo
ownerstringNo

UpdateMachineRequest

PropertyTypeRequiredDescription
configfly.MachineConfigNoAn object defining the Machine configuration
current_versionstringNo
lease_ttlintegerNo
min_secrets_versionintegerNo
namestringNoUnique name for this Machine. If omitted, one is generated for you
regionstringNoThe target region. Omitting this param launches in the same region as your WireGuard peer connection (somewhere near you).
skip_launchbooleanNo
skip_secretsbooleanNo
skip_service_registrationbooleanNo

updateMetadataRequest

PropertyTypeRequiredDescription
machine_versionstringNo
metadatamap<string, string>No
updated_atstringNo

UpdateVolumeRequest

PropertyTypeRequiredDescription
auto_backup_enabledbooleanNo
snapshot_retentionintegerNo

upsertMetadataKeyRequest

PropertyTypeRequiredDescription
updated_atstringNo
valuestringNo

VerifySecretkeyRequest

PropertyTypeRequiredDescription
plaintextinteger[]No
signatureinteger[]No

Volume

PropertyTypeRequiredDescription
attached_alloc_idstringNo
attached_machine_idstringNo
auto_backup_enabledbooleanNo
block_sizeintegerNo
blocksintegerNo
blocks_availintegerNo
blocks_freeintegerNo
bytes_totalintegerNo
bytes_usedintegerNo
created_atstringNo
encryptedbooleanNo
fstypestringNo
host_statusstringNoEnum: ok, unknown, unreachable
idstringNo
namestringNo
regionstringNo
size_gbintegerNo
snapshot_retentionintegerNo
statestringNo
typestringNoEnum: local, cache
zonestringNo

VolumeSnapshot

PropertyTypeRequiredDescription
created_atstringNo
digeststringNo
idstringNo
retention_daysintegerNo
sizeintegerNo
statusstringNo
volume_sizeintegerNo

WaitMachineResponse

PropertyTypeRequiredDescription
event_idstringNo
okbooleanNo
statestringNo
versionstringNo