Create a Machine within a specific app using the details provided in the request body.
Important: This request can fail, and you’re responsible for handling that failure. If you ask for a large Machine, or a Machine in a region we happen to be at capacity for, you might need to retry the request, or to fall back to another region. If you’re working directly with the Machines API, you’re taking some responsibility for your own orchestration!
The minimum version of the app's secrets the Machine must run with. Set it to the version
returned by the endpoints that set or delete app secrets, so that the Machine is guaranteed
to see those changes. This field belongs at the top level of the request body, not in
config. If omitted, the app's current secrets version is looked up for you.
The region to create the Machine in, such as iad. Also accepts a comma-separated list
of regions and region groups (any, us, na, sa, eu, apac, africa,
asia_pacific, europe, north_america, south_america), in which case Fly.io picks one
with capacity. If the Machine mounts a volume, defaults to the volume's region; the region
must include it. Otherwise defaults to the region of the API server handling the request,
which is usually the one closest to you.
Don't look up the app's current secrets version. The Machine still gets the app's
secrets, but may not see recent changes to them. Takes precedence over
min_secrets_version.
The Machine's configuration, as provided when it was created or last updated, with
metadata and mounts reflecting their current values. Null when the host is not
reachable (host_status is not ok) or summary=true was requested; see
incomplete_config.
Features of the Machine's host, for comparison with config.guest.required_host_features.
Only returned when the request sets the fly-include-host-features: true header.
Whether Fly.io could reach the Machine's host: ok if it could, unreachable if it
could not, in which case the response is built from last known state. unknown if the
host's status was not reported.
Last known configuration, returned in place of config when the host could not be
reached (host_status is not ok) or when listing Machines with summary=true. It
comes from Fly.io's replicated state rather than the host, so it may be stale or lack
fields.
Nonce of the lease acquired on the Machine at creation. Only returned when creating a
Machine with lease_ttl set. Pass it in the fly-machine-lease-nonce header to act on
the Machine while the lease is held.
Current state of the Machine, taken from the status of its most recent event. One of
created, starting, started, stopping, stopped, suspending, suspended,
replacing, replaced, destroying, destroyed, failed, migrating, migrated,
archived, or pending. See https://fly.io/docs/machines/machine-states/.
Time of the Machine's most recent event, truncated to whole seconds. The zero time
(0001-01-01T00:00:00Z) if the host could not be reached. With summary=true, the time
Fly.io last recorded a change to the Machine.
Unique ID of this version of the Machine. Every update creates a new version. Pass it
as current_version when updating the Machine to reject the update if the Machine has
changed since this version.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Fly.io","colors":{"primary":"#7C3BED","light":"#A78BFA","dark":"#5B21B6"},"logo":{"light":"https://mintcdn.com/fly-io/izaS1l2UMuz6sm1H/images/logo/light.svg?fit=max\u0026auto=format\u0026n=izaS1l2UMuz6sm1H\u0026q=85\u0026s=5f1256e06beb6fdd5ed68aad3dd32b39","dark":"https://mintcdn.com/fly-io/izaS1l2UMuz6sm1H/images/logo/dark.svg?fit=max\u0026auto=format\u0026n=izaS1l2UMuz6sm1H\u0026q=85\u0026s=67c887e4f1263581cb10ab19ddaf8181"},"favicon":"https://mintcdn.com/fly-io/izaS1l2UMuz6sm1H/images/logo/favicon.ico?fit=max\u0026auto=format\u0026n=izaS1l2UMuz6sm1H\u0026q=85\u0026s=b14504948f2e9d83cd3aa25e07454f22","background":{"decoration":"windows"},"navbar":{"links":[{"href":"https://fly.io/pricing/","label":"Pricing"},{"href":"/about/support","label":"Support"},{"href":"https://fly.io/app/sign-in/","label":"Log In"}],"primary":{"type":"button","label":"Sign Up","href":"https://fly.io/app/sign-up/?s=docs"}},"footer":{"links":[{"header":"Legal","items":[{"label":"Privacy Policy","href":"https://fly.io/legal/privacy-policy"}]}]},"fonts":{"heading":{"family":"P22 Mackinac Pro","source":"https://docs.fly.io/assets/fonts/mackinac-bold.woff2","format":"woff2"},"body":{"family":"Bricolage Grotesque"}},"integrations":{"plausible":{"domain":"docs.fly.io"},"telemetry":{"enabled":false}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"fly-io","hasAudioNarration":false,"actualSubdomain":"fly-io","customDomains":["docs.fly.io"],"gitSource":{"_id":"6ad7fb4f692c7c940ff1a2d1","type":"github","owner":"superfly","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af45bf011a64f5928889f94","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"Fly docs","count":1174},{"language":"default","tag":"Reference","count":273},{"language":"default","tag":"flyctl","count":254},{"language":"default","tag":"Commands","count":252},{"language":"default","tag":"Machines API","count":214},{"language":"default","tag":"Language \u0026 Framework Guides","count":96},{"language":"default","tag":"Sprites API","count":50},{"language":"default","tag":"Guides (Blueprints)","count":37},{"language":"default","tag":"Getting Started","count":34},{"language":"default","tag":"Machines","count":29}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"styles.css","content":"/* vietnamese */\n@font-face {\n font-family: 'Bricolage Grotesque';\n font-style: normal;\n font-weight: 200 800;\n font-stretch: 75% 100%;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/bricolagegrotesque/v9/3y996as8bTXq_nANBjzKo3IeZx8z6up5L-eNGe6N.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Bricolage Grotesque';\n font-style: normal;\n font-weight: 200 800;\n font-stretch: 75% 100%;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/bricolagegrotesque/v9/3y996as8bTXq_nANBjzKo3IeZx8z6up5L-aNGe6N.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Bricolage Grotesque';\n font-style: normal;\n font-weight: 200 800;\n font-stretch: 75% 100%;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/bricolagegrotesque/v9/3y996as8bTXq_nANBjzKo3IeZx8z6up5L-iNGQ.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Fragment Mono';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/fragmentmono/v6/4iC16K5wfMRRjxp0DA6-2CLnB4Z3ia0M31U.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Fragment Mono';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/fragmentmono/v6/4iC16K5wfMRRjxp0DA6-2CLnB4Z3iq0M31U.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Fragment Mono';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/fragmentmono/v6/4iC16K5wfMRRjxp0DA6-2CLnB4Z3hK0M.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Fragment Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/fragmentmono/v6/4iCr6K5wfMRRjxp0DA6-2CLnB45HhrUI.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Fragment Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/fragmentmono/v6/4iCr6K5wfMRRjxp0DA6-2CLnB41HhrUI.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Fragment Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/fragmentmono/v6/4iCr6K5wfMRRjxp0DA6-2CLnB4NHhg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n@font-face{font-family:\"P22 Mackinac Pro\";src:url(\"/assets/fonts/mackinac-medium.woff2\") format(\"woff2\");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:\"P22 Mackinac Pro\";src:url(\"/assets/fonts/mackinac-medium-italic.woff2\") format(\"woff2\");font-weight:500;font-style:italic;font-display:swap}@font-face{font-family:\"P22 Mackinac Pro\";src:url(\"/assets/fonts/mackinac-bold.woff2\") format(\"woff2\");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:\"P22 Mackinac Pro\";src:url(\"/assets/fonts/mackinac-bold-italic.woff2\") format(\"woff2\");font-weight:700;font-style:italic;font-display:swap}:root{--default-mono-font-family: \"Fragment Mono\"}#content{font-size:17px;line-height:1.6;font-weight:325;font-variation-settings:\"wdth\" 98.5, \"opsz\" 24}#content strong,#content b{font-weight:575;font-variation-settings:\"wdth\" 97.5, \"opsz\" 24}#content h2,#content h3,#content h4,#content h5,#content h6{font-weight:500}@media (min-width: 1536px){#content-area{max-width:48rem}}.hide_icon_card [data-component-part=\"card-icon\"],.hide_icon_card h2{display:none}div.frame_white>div>div>div.relative.rounded-xl.overflow-hidden.flex.justify-center{background-color:#fff;padding:8px}div.frame_purple>div>div>div.relative.rounded-xl.overflow-hidden.flex.justify-center{background-color:#281950;padding:8px}.small_img img{max-width:200px;padding:12px}.homepage_cards .columns{gap:calc(var(--spacing) * 4)}#fly-auth-nav{display:none}@media (min-width: 1024px){#fly-auth-nav{position:fixed;top:0;right:3rem;z-index:30;height:3rem;display:flex;align-items:center;gap:1.5rem}[data-banner-state=\"visible\"] #fly-auth-nav{top:2.5rem}#sidebar li[id^=\"https://fly.io/app/sign-in/\"],#sidebar li[id^=\"https://fly.io/app/sign-up/\"]{display:none}}#fly-auth-nav a{white-space:nowrap}.fly-auth-nav-signup{display:inline-flex;align-items:center;padding:0.375rem 0.875rem}#content-area:not(:has(#api-playground-2-operation-page)) #header>.prose{display:none}"}],"page":{"pagePath":"api/machines/machines/create-machine","slug":"/api/machines/machines/create-machine","pageMetadata":{"title":"Create Machine","description":"Create a Machine within a specific app using the details provided in the request body.\n\n**Important**: This request can fail, and you’re responsible for handling that failure. If you ask for a large Machine, or a Machine in a region we happen to be at capacity for, you might need to retry the request, or to fall back to another region. If you’re working directly with the Machines API, you’re taking some responsibility for your own orchestration!\n","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/machines","href":"/api/machines/machines/create-machine","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Create a Machine within a specific app using the details provided in the request body.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Important\"\n }), \": This request can fail, and you’re responsible for handling that failure. If you ask for a large Machine, or a Machine in a region we happen to be at capacity for, you might need to retry the request, or to fall back to another region. If you’re working directly with the Machines API, you’re taking some responsibility for your own orchestration!\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Machine","description":"Create a Machine within a specific app using the details provided in the request body.\n\n**Important**: This request can fail, and you’re responsible for handling that failure. If you ask for a large Machine, or a Machine in a region we happen to be at capacity for, you might need to retry the request, or to fall back to another region. If you’re working directly with the Machines API, you’re taking some responsibility for your own orchestration!\n","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/machines","href":"/api/machines/machines/create-machine","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/fly-io/08c1baa7d07c2458/auth-nav.js","/_mintlify/custom/fly-io/a1ce438e27d4ce9e/fly-analytics.js"],"openApiReferenceData":{"operation":{"tags":["Machines"],"summary":"Create Machine","description":"Create a Machine within a specific app using the details provided in the request body.\n\n**Important**: This request can fail, and you’re responsible for handling that failure. If you ask for a large Machine, or a Machine in a region we happen to be at capacity for, you might need to retry the request, or to fall back to another region. If you’re working directly with the Machines API, you’re taking some responsibility for your own orchestration!\n","operationId":"Machines_create","parameters":["c628d495-6548-4655-9103-98d795295210"],"requestBody":"bc199644-0ecb-4731-8cc6-f3cf8878c34e","responses":{"200":"5f3805d4-0a0d-4d1f-902c-97b0823fa346"},"x-codegen-request-body-name":"request","method":"post","type":"path","servers":["75e76283-7c3e-4c83-a680-9c56126d5a9f"],"security":["60a6557f-a501-4d66-85f6-3acee7846e5a"],"path":"/v1/apps/{app_name}/machines","baseUrlOptions":["https://api.machines.dev"],"title":"Create Machine","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"c628d495-6548-4655-9103-98d795295210":{"name":"app_name","in":"path","description":"Fly App Name","required":true,"schema":{"type":"string","isRequired":true,"description":"Fly App Name","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"description":"Create machine request","content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":"object","description":"An object defining the Machine configuration","properties":{"auto_destroy":{"type":"boolean","description":"Optional boolean telling the Machine to destroy itself once it’s complete (default false)","uniqueKey":"config.auto_destroy","typeLabel":"boolean"},"cache_drive":{"type":"object","description":"Beta: a cache drive attached to the Machine. This field may be removed in the future","properties":{"size_mb":{"type":"integer","description":"Beta: size of the cache drive in MiB. At most 51200; 0 uses the default","uniqueKey":"config.cache_drive.size_mb","typeLabel":"integer"}},"uniqueKey":"config.cache_drive","typeLabel":"object"},"checks":{"type":"object","additionalProperties":{"type":"object","properties":{"grace_period":{"type":"string","description":"The time to wait after a VM starts before checking its health","example":"1s","uniqueKey":"config.checks.additionalProperties.grace_period","typeLabel":"string"},"headers":{"type":"array","description":"For http checks, headers to send with the request","items":{"type":"object","properties":{"name":{"type":"string","description":"The header name","uniqueKey":"config.checks.additionalProperties.headers.items.[INDEX].name","typeLabel":"string"},"values":{"type":"array","description":"The header value","items":{"type":"string","uniqueKey":"config.checks.additionalProperties.headers.items.[INDEX].values.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.checks.additionalProperties.headers.items.[INDEX].values","typeLabel":"string[]"}},"description":"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.","uniqueKey":"config.checks.additionalProperties.headers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.checks.additionalProperties.headers","typeLabel":"object[]"},"interval":{"type":"string","description":"The time between connectivity checks","example":"15s","uniqueKey":"config.checks.additionalProperties.interval","typeLabel":"string"},"kind":{"type":"string","description":"Kind of the check (informational, readiness)","enum":["informational","readiness"],"uniqueKey":"config.checks.additionalProperties.kind","typeLabel":"enum\u003cstring>"},"method":{"type":"string","description":"For http checks, the HTTP method to use to when making the request","uniqueKey":"config.checks.additionalProperties.method","typeLabel":"string"},"path":{"type":"string","description":"For http checks, the path to send the request to","uniqueKey":"config.checks.additionalProperties.path","typeLabel":"string"},"port":{"type":"integer","description":"The port to connect to, often the same as internal_port","uniqueKey":"config.checks.additionalProperties.port","typeLabel":"integer"},"protocol":{"type":"string","description":"For http checks, whether to use http or https","uniqueKey":"config.checks.additionalProperties.protocol","typeLabel":"string"},"timeout":{"type":"string","description":"The maximum time a connection can take before being reported as failing its health check","example":"2s","uniqueKey":"config.checks.additionalProperties.timeout","typeLabel":"string"},"tls_server_name":{"type":"string","description":"If the protocol is https, the hostname to use for TLS certificate validation","uniqueKey":"config.checks.additionalProperties.tls_server_name","typeLabel":"string"},"tls_skip_verify":{"type":"boolean","description":"For http checks with https protocol, whether or not to verify the TLS certificate","uniqueKey":"config.checks.additionalProperties.tls_skip_verify","typeLabel":"boolean"},"type":{"type":"string","description":"tcp or http","uniqueKey":"config.checks.additionalProperties.type","typeLabel":"string"}},"uniqueKey":"config.checks.additionalProperties","typeLabel":"object"},"description":"An optional object that defines one or more named top-level checks. The key for each check is the check name.","uniqueKey":"config.checks","typeLabel":"object"},"containers":{"type":"array","description":"Containers are a list of containers that will run in the machine, each from its own image.","items":{"type":"object","properties":{"cmd":{"type":"array","description":"CmdOverride is used to override the default command of the image.","items":{"type":"string","uniqueKey":"config.containers.items.[INDEX].cmd.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.containers.items.[INDEX].cmd","typeLabel":"string[]"},"depends_on":{"type":"array","description":"DependsOn can be used to define dependencies between containers. The container will only be\nstarted after all of its dependent conditions have been satisfied.","items":{"type":"object","properties":{"condition":{"type":"any","uniqueKey":"config.containers.items.[INDEX].depends_on.items.[INDEX].condition","typeLabel":"any"},"name":{"type":"string","description":"Name of the container this one depends on","uniqueKey":"config.containers.items.[INDEX].depends_on.items.[INDEX].name","typeLabel":"string"}},"uniqueKey":"config.containers.items.[INDEX].depends_on.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.containers.items.[INDEX].depends_on","typeLabel":"object[]"},"entrypoint":{"type":"array","description":"EntrypointOverride is used to override the default entrypoint of the image.","items":{"type":"string","uniqueKey":"config.containers.items.[INDEX].entrypoint.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.containers.items.[INDEX].entrypoint","typeLabel":"string[]"},"env":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"config.containers.items.[INDEX].env.additionalProperties","typeLabel":"string"},"description":"ExtraEnv is used to add additional environment variables to the container.","uniqueKey":"config.containers.items.[INDEX].env","typeLabel":"object"},"env_from":{"type":"array","description":"EnvFrom can be provided to set environment variables from machine fields.","items":{"type":"object","properties":{"env_var":{"type":"string","description":"EnvVar is required and is the name of the environment variable that will be set from the\nsecret. It must be a valid environment variable name.","uniqueKey":"config.containers.items.[INDEX].env_from.items.[INDEX].env_var","typeLabel":"string"},"field_ref":{"type":"string","description":"FieldRef selects a field of the Machine: supports id, version, app_name, private_ip, region, image.","enum":["id","version","app_name","private_ip","region","image"],"uniqueKey":"config.containers.items.[INDEX].env_from.items.[INDEX].field_ref","typeLabel":"enum\u003cstring>"}},"description":"EnvVar defines an environment variable to be populated from a machine field, env_var","uniqueKey":"config.containers.items.[INDEX].env_from.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.containers.items.[INDEX].env_from","typeLabel":"object[]"},"exec":{"type":"array","description":"Image Config overrides - these fields are used to override the image configuration.\nIf not provided, the image configuration will be used.\nExecOverride is used to override the default command of the image.","items":{"type":"string","uniqueKey":"config.containers.items.[INDEX].exec.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.containers.items.[INDEX].exec","typeLabel":"string[]"},"files":{"type":"array","description":"Files are files that will be written to the container file system.","items":{"type":"object","properties":{"guest_path":{"type":"string","description":"GuestPath is the path on the machine where the file will be written and must be an absolute path.\nFor example: /full/path/to/file.json","uniqueKey":"config.containers.items.[INDEX].files.items.[INDEX].guest_path","typeLabel":"string"},"image_config":{"type":"string","description":"The name of an image to use the OCI image config as the file contents.","uniqueKey":"config.containers.items.[INDEX].files.items.[INDEX].image_config","typeLabel":"string"},"mode":{"type":"integer","description":"Mode bits used to set permissions on this file as accepted by chmod(2).","uniqueKey":"config.containers.items.[INDEX].files.items.[INDEX].mode","typeLabel":"integer"},"raw_value":{"type":"string","description":"The base64 encoded string of the file contents.","uniqueKey":"config.containers.items.[INDEX].files.items.[INDEX].raw_value","typeLabel":"string"},"secret_name":{"type":"string","description":"The name of the secret that contains the base64 encoded file contents.","uniqueKey":"config.containers.items.[INDEX].files.items.[INDEX].secret_name","typeLabel":"string"}},"description":"A file that will be written to the Machine. One of RawValue or SecretName must be set.","uniqueKey":"config.containers.items.[INDEX].files.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.containers.items.[INDEX].files","typeLabel":"object[]"},"healthchecks":{"type":"array","description":"Healthchecks determine the health of your containers. Healthchecks can use HTTP, TCP or an Exec command.","items":{"type":"object","properties":{"exec":{"type":"object","description":"Check that a command run in the container exits with status 0","properties":{"command":{"type":"array","description":"The command to run to check the health of the container (e.g. [\"cat\", \"/tmp/healthy\"])","items":{"type":"string","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].exec.command.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].exec.command","typeLabel":"string[]"}},"uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].exec","typeLabel":"object"},"failure_threshold":{"type":"integer","description":"The number of times the check must fail before considering the container unhealthy.","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].failure_threshold","typeLabel":"integer"},"grace_period":{"type":"integer","description":"The time in seconds to wait after a container starts before checking its health.","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].grace_period","typeLabel":"integer"},"http":{"type":"object","description":"Check that an HTTP request succeeds","properties":{"headers":{"type":"array","description":"Additional headers to send with the request","items":{"type":"object","properties":{"name":{"type":"string","description":"The header name","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.headers.items.[INDEX].name","typeLabel":"string"},"values":{"type":"array","description":"The header value","items":{"type":"string","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.headers.items.[INDEX].values.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.headers.items.[INDEX].values","typeLabel":"string[]"}},"description":"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.","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.headers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.headers","typeLabel":"object[]"},"method":{"type":"string","description":"The HTTP method to use to when making the request","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.method","typeLabel":"string"},"path":{"type":"string","description":"The path to send the request to","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.path","typeLabel":"string"},"port":{"type":"integer","description":"The port to connect to, often the same as internal_port","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.port","typeLabel":"integer"},"scheme":{"type":"any","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.scheme","typeLabel":"any"},"tls_server_name":{"type":"string","description":"If the protocol is https, the hostname to use for TLS certificate validation","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.tls_server_name","typeLabel":"string"},"tls_skip_verify":{"type":"boolean","description":"If the protocol is https, whether or not to verify the TLS certificate","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.tls_skip_verify","typeLabel":"boolean"}},"uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http","typeLabel":"object"},"interval":{"type":"integer","description":"The time in seconds between executing the defined check.","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].interval","typeLabel":"integer"},"kind":{"type":"any","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].kind","typeLabel":"any"},"name":{"type":"string","description":"The name of the check. Must be unique within the container.","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].name","typeLabel":"string"},"success_threshold":{"type":"integer","description":"The number of times the check must succeeed before considering the container healthy.","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].success_threshold","typeLabel":"integer"},"tcp":{"type":"object","description":"Check that a TCP connection can be opened","properties":{"port":{"type":"integer","description":"The port to connect to, often the same as internal_port","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].tcp.port","typeLabel":"integer"}},"uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].tcp","typeLabel":"object"},"timeout":{"type":"integer","description":"The time in seconds to wait for the check to complete.","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].timeout","typeLabel":"integer"},"unhealthy":{"type":"any","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].unhealthy","typeLabel":"any"}},"uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.containers.items.[INDEX].healthchecks","typeLabel":"object[]"},"image":{"type":"string","description":"Image is the docker image to run.","uniqueKey":"config.containers.items.[INDEX].image","typeLabel":"string"},"name":{"type":"string","description":"Name is used to identify the container in the machine.","uniqueKey":"config.containers.items.[INDEX].name","typeLabel":"string"},"restart":{"type":"object","description":"Restart is used to define the restart policy for the container.","properties":{"max_retries":{"type":"integer","description":"When policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop.","uniqueKey":"config.containers.items.[INDEX].restart.max_retries","typeLabel":"integer"},"policy":{"type":"string","description":"* no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash.\n* always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly.\n* 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.","enum":["no","always","on-failure"],"uniqueKey":"config.containers.items.[INDEX].restart.policy","typeLabel":"enum\u003cstring>"}},"uniqueKey":"config.containers.items.[INDEX].restart","typeLabel":"object"},"secrets":{"type":"array","description":"Secrets can be provided at the process level to explicitly indicate which secrets should be\nused for the process. If not provided, the secrets provided at the machine level will be used.","items":{"type":"object","properties":{"env_var":{"type":"string","description":"EnvVar is required and is the name of the environment variable that will be set from the\nsecret. It must be a valid environment variable name.","uniqueKey":"config.containers.items.[INDEX].secrets.items.[INDEX].env_var","typeLabel":"string"},"name":{"type":"string","description":"Name is optional and when provided is used to reference a secret name where the EnvVar is\ndifferent from what was set as the secret name.","uniqueKey":"config.containers.items.[INDEX].secrets.items.[INDEX].name","typeLabel":"string"}},"description":"A Secret needing to be set in the environment of the Machine. env_var is required","uniqueKey":"config.containers.items.[INDEX].secrets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.containers.items.[INDEX].secrets","typeLabel":"object[]"},"stop":{"type":"object","description":"Stop is used to define the signal and timeout for stopping the container.","properties":{"signal":{"type":"string","description":"Signal to send to the Machine's processes. Defaults to SIGINT","enum":["SIGHUP","SIGINT","SIGQUIT","SIGKILL","SIGUSR1","SIGUSR2","SIGTERM"],"uniqueKey":"config.containers.items.[INDEX].stop.signal","typeLabel":"enum\u003cstring>"},"timeout":{"type":"string","description":"How long to wait for the Machine to exit after sending the signal, before killing it. At most\n5 minutes (1 minute for spot Machines). Defaults to 5s (60s for spot Machines)","example":"10s","uniqueKey":"config.containers.items.[INDEX].stop.timeout","typeLabel":"string"}},"uniqueKey":"config.containers.items.[INDEX].stop","typeLabel":"object"},"user":{"type":"string","description":"UserOverride is used to override the default user of the image.","uniqueKey":"config.containers.items.[INDEX].user","typeLabel":"string"}},"uniqueKey":"config.containers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.containers","typeLabel":"object[]"},"disable_machine_autostart":{"type":"boolean","description":"Deprecated: use Service.Autostart instead","uniqueKey":"config.disable_machine_autostart","typeLabel":"boolean"},"dns":{"type":"object","description":"DNS settings for the Machine","properties":{"dns_forward_rules":{"type":"array","description":"Forward DNS queries for some domains to other DNS servers","items":{"type":"object","properties":{"addr":{"type":"string","description":"Address and port of the DNS server to forward queries to over TCP, e.g. `10.0.0.1:53`","uniqueKey":"config.dns.dns_forward_rules.items.[INDEX].addr","typeLabel":"string"},"basename":{"type":"string","description":"Domain to forward queries for, including subdomains. Must end in a dot, e.g. `example.com.`","uniqueKey":"config.dns.dns_forward_rules.items.[INDEX].basename","typeLabel":"string"}},"uniqueKey":"config.dns.dns_forward_rules.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.dns.dns_forward_rules","typeLabel":"object[]"},"hostname":{"type":"string","description":"Hostname of the Machine. Defaults to the Machine ID. Also added to /etc/hosts with the\nMachine's 6PN address","uniqueKey":"config.dns.hostname","typeLabel":"string"},"hostname_fqdn":{"type":"string","description":"Fully qualified domain name added to /etc/hosts for `hostname`","uniqueKey":"config.dns.hostname_fqdn","typeLabel":"string"},"nameservers":{"type":"array","description":"Nameservers to use instead of the default, Fly.io's private DNS server `fdaa::3`","items":{"type":"string","uniqueKey":"config.dns.nameservers.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.dns.nameservers","typeLabel":"string[]"},"options":{"type":"array","description":"Options for /etc/resolv.conf","items":{"type":"object","properties":{"name":{"type":"string","description":"Option name, e.g. `ndots`","uniqueKey":"config.dns.options.items.[INDEX].name","typeLabel":"string"},"value":{"type":"string","description":"Option value, e.g. `5`","uniqueKey":"config.dns.options.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"config.dns.options.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.dns.options","typeLabel":"object[]"},"searches":{"type":"array","description":"Search domains for /etc/resolv.conf","items":{"type":"string","uniqueKey":"config.dns.searches.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.dns.searches","typeLabel":"string[]"},"skip_registration":{"type":"boolean","description":"Currently has no effect","uniqueKey":"config.dns.skip_registration","typeLabel":"boolean"}},"uniqueKey":"config.dns","typeLabel":"object"},"env":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"config.env.additionalProperties","typeLabel":"string"},"description":"An object filled with key/value pairs to be set as environment variables","uniqueKey":"config.env","typeLabel":"object"},"files":{"type":"array","description":"Files to write into the Machine, from either a raw value or an app secret","items":{"type":"object","properties":{"guest_path":{"type":"string","description":"GuestPath is the path on the machine where the file will be written and must be an absolute path.\nFor example: /full/path/to/file.json","uniqueKey":"config.files.items.[INDEX].guest_path","typeLabel":"string"},"image_config":{"type":"string","description":"The name of an image to use the OCI image config as the file contents.","uniqueKey":"config.files.items.[INDEX].image_config","typeLabel":"string"},"mode":{"type":"integer","description":"Mode bits used to set permissions on this file as accepted by chmod(2).","uniqueKey":"config.files.items.[INDEX].mode","typeLabel":"integer"},"raw_value":{"type":"string","description":"The base64 encoded string of the file contents.","uniqueKey":"config.files.items.[INDEX].raw_value","typeLabel":"string"},"secret_name":{"type":"string","description":"The name of the secret that contains the base64 encoded file contents.","uniqueKey":"config.files.items.[INDEX].secret_name","typeLabel":"string"}},"description":"A file that will be written to the Machine. One of RawValue or SecretName must be set.","uniqueKey":"config.files.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.files","typeLabel":"object[]"},"guest":{"type":"object","description":"The resources (CPUs, memory, etc.) allocated to the Machine","properties":{"cpu_kind":{"type":"string","description":"Kind of CPU: shared or performance. Performance CPUs must be enabled for the organization.\nDefaults to shared when `guest` is omitted","uniqueKey":"config.guest.cpu_kind","typeLabel":"string"},"cpus":{"type":"integer","description":"Number of CPUs: 1, 2, 4, 6, 8, 10, 12, 14, 16, 32, 64 or 128, up to 8 for shared and 16 for\nperformance CPUs unless the organization's limit is higher. Defaults to 1 when `guest` is\nomitted","uniqueKey":"config.guest.cpus","typeLabel":"integer"},"gpu_kind":{"type":"string","description":"No longer supported. Requests that set it are rejected","uniqueKey":"config.guest.gpu_kind","typeLabel":"string"},"gpus":{"type":"integer","description":"No longer supported. Requests that set it are rejected","uniqueKey":"config.guest.gpus","typeLabel":"integer"},"host_dedication_id":{"type":"string","description":"Place the Machine on hosts dedicated to the organization under this ID. Only available to\norganizations with dedicated hosts","uniqueKey":"config.guest.host_dedication_id","typeLabel":"string"},"kernel_args":{"type":"array","description":"Extra arguments appended to the guest kernel command line","items":{"type":"string","uniqueKey":"config.guest.kernel_args.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.guest.kernel_args","typeLabel":"string[]"},"max_memory_mb":{"type":"integer","description":"Memory in MiB that the Machine's memory limit can later be raised to without a restart, using\nthe memory endpoints. Must be at least memory_mb and at most the per-CPU maximum. The Machine\nstarts with a limit of memory_mb","uniqueKey":"config.guest.max_memory_mb","typeLabel":"integer"},"memory_mb":{"type":"integer","description":"Memory in MiB. Must be a multiple of 256 for shared and 1024 for performance CPUs, and\nbetween 256 and 2048 (shared) or 2048 and 8192 (performance) per CPU. Defaults to 256 when\n`guest` is omitted","uniqueKey":"config.guest.memory_mb","typeLabel":"integer"},"persist_rootfs":{"type":"string","description":"Deprecated: use MachineConfig.Rootfs instead","enum":["never","always","restart"],"uniqueKey":"config.guest.persist_rootfs","typeLabel":"enum\u003cstring>"},"required_host_features":{"type":"array","description":"Host features the Machine's host must have, such as `storage-tier-1`. At most 16, each made\nof lowercase letters, digits and dashes. Each feature must be enabled for the organization","items":{"type":"string","uniqueKey":"config.guest.required_host_features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.guest.required_host_features","typeLabel":"string[]"}},"uniqueKey":"config.guest","typeLabel":"object"},"image":{"type":"string","description":"The docker image to run","uniqueKey":"config.image","typeLabel":"string"},"init":{"type":"object","description":"Arguments for init, Fly.io's footprint inside the Machine, which controls how your own code is run","properties":{"cmd":{"type":"array","description":"Replaces the image's CMD. It's appended to the entrypoint","items":{"type":"string","uniqueKey":"config.init.cmd.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.init.cmd","typeLabel":"string[]"},"entrypoint":{"type":"array","description":"Replaces the image's ENTRYPOINT","items":{"type":"string","uniqueKey":"config.init.entrypoint.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.init.entrypoint","typeLabel":"string[]"},"exec":{"type":"array","description":"Command to run instead of the image's ENTRYPOINT and CMD. Takes precedence over entrypoint\nand cmd","items":{"type":"string","uniqueKey":"config.init.exec.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.init.exec","typeLabel":"string[]"},"kernel_args":{"type":"array","description":"Currently has no effect. Use `guest.kernel_args` instead","items":{"type":"string","uniqueKey":"config.init.kernel_args.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.init.kernel_args","typeLabel":"string[]"},"swap_size_mb":{"type":"integer","description":"Size in MiB of a swap device to give the Machine. Machines with swap cannot be suspended","uniqueKey":"config.init.swap_size_mb","typeLabel":"integer"},"tty":{"type":"boolean","description":"Currently has no effect","uniqueKey":"config.init.tty","typeLabel":"boolean"}},"uniqueKey":"config.init","typeLabel":"object"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"config.metadata.additionalProperties","typeLabel":"string"},"description":"Key/value pairs of Machine metadata. Fly.io uses metadata internally for routing, process groups, and clusters","uniqueKey":"config.metadata","typeLabel":"object"},"metrics":{"type":"object","description":"An optional metrics endpoint for Prometheus on Fly.io to scrape","properties":{"https":{"type":"boolean","description":"Scrape over HTTPS instead of HTTP","uniqueKey":"config.metrics.https","typeLabel":"boolean"},"path":{"type":"string","description":"HTTP path to scrape. Defaults to `/`","uniqueKey":"config.metrics.path","typeLabel":"string"},"port":{"type":"integer","description":"Port in the Machine to scrape metrics from","uniqueKey":"config.metrics.port","typeLabel":"integer"}},"uniqueKey":"config.metrics","typeLabel":"object"},"mounts":{"type":"array","description":"Persistent volumes to mount in the Machine. A Machine can mount at most one volume, which must be on\nthe same host. The mounted volume cannot be changed by updating the Machine","items":{"type":"object","properties":{"add_size_gb":{"type":"integer","description":"With automatic extension, grow the volume by this many GB at a time. Between 1 and 100.\nMutually exclusive with add_size_percent","uniqueKey":"config.mounts.items.[INDEX].add_size_gb","typeLabel":"integer"},"add_size_percent":{"type":"integer","description":"AddSizePercent grows by a percentage of the current size, rounded up to GiB.\nIt is mutually exclusive with AddSizeGb.","uniqueKey":"config.mounts.items.[INDEX].add_size_percent","typeLabel":"integer"},"encrypted":{"type":"boolean","description":"Whether the volume is encrypted. Set by Fly.io; ignored in requests","uniqueKey":"config.mounts.items.[INDEX].encrypted","typeLabel":"boolean"},"extend_threshold_percent":{"type":"integer","description":"Enable automatic volume extension: grow the volume when its usage exceeds this percentage.\nBetween 50 and 99; 0 disables it","uniqueKey":"config.mounts.items.[INDEX].extend_threshold_percent","typeLabel":"integer"},"min_add_size_gb":{"type":"integer","description":"MinAddSizeGb is the minimum proportional growth in GiB (default 1).","uniqueKey":"config.mounts.items.[INDEX].min_add_size_gb","typeLabel":"integer"},"name":{"type":"string","description":"Name of the volume. Set by Fly.io; ignored in requests","uniqueKey":"config.mounts.items.[INDEX].name","typeLabel":"string"},"path":{"type":"string","description":"Absolute path in the Machine to mount the volume at. Required","uniqueKey":"config.mounts.items.[INDEX].path","typeLabel":"string"},"size_gb":{"type":"integer","description":"Size of the volume in GB. Set by Fly.io; ignored in requests","uniqueKey":"config.mounts.items.[INDEX].size_gb","typeLabel":"integer"},"size_gb_limit":{"type":"integer","description":"With automatic extension, never grow the volume beyond this size in GB. At most the\norganization's maximum volume size","uniqueKey":"config.mounts.items.[INDEX].size_gb_limit","typeLabel":"integer"},"volume":{"type":"string","description":"ID (`vol_...`) or name of the volume to mount. Required. With a name, any unattached volume\nof the app with that name in the Machine's region is used","uniqueKey":"config.mounts.items.[INDEX].volume","typeLabel":"string"}},"uniqueKey":"config.mounts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.mounts","typeLabel":"object[]"},"processes":{"type":"array","description":"Multiple processes to run within this one Machine, all from the Machine's image. Unrelated to the\nprocess groups in fly.toml, which run on separate Machines. To run processes from different\nimages, use containers instead","items":{"type":"object","properties":{"cmd":{"type":"array","description":"Replaces the image's CMD for this process. It's appended to the entrypoint","items":{"type":"string","uniqueKey":"config.processes.items.[INDEX].cmd.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.processes.items.[INDEX].cmd","typeLabel":"string[]"},"entrypoint":{"type":"array","description":"Replaces the image's ENTRYPOINT for this process","items":{"type":"string","uniqueKey":"config.processes.items.[INDEX].entrypoint.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.processes.items.[INDEX].entrypoint","typeLabel":"string[]"},"env":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"config.processes.items.[INDEX].env.additionalProperties","typeLabel":"string"},"description":"Environment variables for this process, in addition to the Machine's `env`","uniqueKey":"config.processes.items.[INDEX].env","typeLabel":"object"},"env_from":{"type":"array","description":"EnvFrom can be provided to set environment variables from machine fields.","items":{"type":"object","properties":{"env_var":{"type":"string","description":"EnvVar is required and is the name of the environment variable that will be set from the\nsecret. It must be a valid environment variable name.","uniqueKey":"config.processes.items.[INDEX].env_from.items.[INDEX].env_var","typeLabel":"string"},"field_ref":{"type":"string","description":"FieldRef selects a field of the Machine: supports id, version, app_name, private_ip, region, image.","enum":["id","version","app_name","private_ip","region","image"],"uniqueKey":"config.processes.items.[INDEX].env_from.items.[INDEX].field_ref","typeLabel":"enum\u003cstring>"}},"description":"EnvVar defines an environment variable to be populated from a machine field, env_var","uniqueKey":"config.processes.items.[INDEX].env_from.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.processes.items.[INDEX].env_from","typeLabel":"object[]"},"exec":{"type":"array","description":"Command to run instead of the image's ENTRYPOINT and CMD. Takes precedence over entrypoint\nand cmd","items":{"type":"string","uniqueKey":"config.processes.items.[INDEX].exec.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.processes.items.[INDEX].exec","typeLabel":"string[]"},"ignore_app_secrets":{"type":"boolean","description":"IgnoreAppSecrets can be set to true to ignore the secrets for the App the Machine belongs to\nand only use the secrets provided at the process level. The default/legacy behavior is to use\nthe secrets provided at the App level.","uniqueKey":"config.processes.items.[INDEX].ignore_app_secrets","typeLabel":"boolean"},"secrets":{"type":"array","description":"Secrets can be provided at the process level to explicitly indicate which secrets should be\nused for the process. If not provided, the secrets provided at the machine level will be used.","items":{"type":"object","properties":{"env_var":{"type":"string","description":"EnvVar is required and is the name of the environment variable that will be set from the\nsecret. It must be a valid environment variable name.","uniqueKey":"config.processes.items.[INDEX].secrets.items.[INDEX].env_var","typeLabel":"string"},"name":{"type":"string","description":"Name is optional and when provided is used to reference a secret name where the EnvVar is\ndifferent from what was set as the secret name.","uniqueKey":"config.processes.items.[INDEX].secrets.items.[INDEX].name","typeLabel":"string"}},"description":"A Secret needing to be set in the environment of the Machine. env_var is required","uniqueKey":"config.processes.items.[INDEX].secrets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.processes.items.[INDEX].secrets","typeLabel":"object[]"},"user":{"type":"string","description":"User to run the process as, instead of the image's USER","uniqueKey":"config.processes.items.[INDEX].user","typeLabel":"string"}},"uniqueKey":"config.processes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.processes","typeLabel":"object[]"},"restart":{"type":"object","description":"Whether and how the Machine is restarted after its main process exits","properties":{"max_retries":{"type":"integer","description":"When policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop.","uniqueKey":"config.restart.max_retries","typeLabel":"integer"},"policy":{"type":"string","description":"* no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash.\n* always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly.\n* 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.","enum":["no","always","on-failure"],"uniqueKey":"config.restart.policy","typeLabel":"enum\u003cstring>"}},"uniqueKey":"config.restart","typeLabel":"object"},"rootfs":{"type":"object","description":"Beta: the size of the Machine's root filesystem and whether it persists. This field may be\nremoved in the future","properties":{"persist":{"type":"string","description":"Whether changes to the root filesystem are kept. `never` (default): reset on every start.\n`restart`: kept across stops and restarts, reset when the Machine is updated. `always`: also\nkept across updates","enum":["never","always","restart"],"uniqueKey":"config.rootfs.persist","typeLabel":"enum\u003cstring>"},"size_gb":{"type":"integer","description":"Size of the root filesystem in GB. At most 50; 0 uses the default","uniqueKey":"config.rootfs.size_gb","typeLabel":"integer"}},"uniqueKey":"config.rootfs","typeLabel":"object"},"schedule":{"type":"string","description":"Run the Machine at an interval: one of hourly, daily, weekly or monthly. The interval starts when\nthe Machine is created","uniqueKey":"config.schedule","typeLabel":"string"},"services":{"type":"array","description":"Network services that Fly Proxy routes traffic to","items":{"type":"object","properties":{"autostart":{"type":"boolean","description":"Whether Fly Proxy starts stopped or suspended Machines when requests arrive. Defaults to true","uniqueKey":"config.services.items.[INDEX].autostart","typeLabel":"boolean"},"autostop":{"type":"string","description":"Accepts 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.\n* \"off\" or false - Do not autostop the Machine.\n* \"stop\" or true - Automatically stop the Machine.\n* \"suspend\" - Automatically suspend the Machine, falling back to a full stop if this is not possible.","enum":["off","stop","suspend"],"uniqueKey":"config.services.items.[INDEX].autostop","typeLabel":"enum\u003cstring>"},"checks":{"type":"array","description":"An optional list of service checks","items":{"type":"object","properties":{"grace_period":{"type":"string","description":"The time to wait after a VM starts before checking its health","example":"1s","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].grace_period","typeLabel":"string"},"headers":{"type":"array","description":"For http checks, headers to send with the request","items":{"type":"object","properties":{"name":{"type":"string","description":"The header name","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].headers.items.[INDEX].name","typeLabel":"string"},"values":{"type":"array","description":"The header value","items":{"type":"string","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].headers.items.[INDEX].values.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].headers.items.[INDEX].values","typeLabel":"string[]"}},"description":"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.","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].headers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].headers","typeLabel":"object[]"},"interval":{"type":"string","description":"The time between connectivity checks","example":"15s","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].interval","typeLabel":"string"},"method":{"type":"string","description":"For http checks, the HTTP method to use to when making the request","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].method","typeLabel":"string"},"path":{"type":"string","description":"For http checks, the path to send the request to","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].path","typeLabel":"string"},"port":{"type":"integer","description":"The port to connect to, often the same as internal_port","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].port","typeLabel":"integer"},"protocol":{"type":"string","description":"For http checks, whether to use http or https","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].protocol","typeLabel":"string"},"timeout":{"type":"string","description":"The maximum time a connection can take before being reported as failing its health check","example":"2s","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].timeout","typeLabel":"string"},"tls_server_name":{"type":"string","description":"If the protocol is https, the hostname to use for TLS certificate validation","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].tls_server_name","typeLabel":"string"},"tls_skip_verify":{"type":"boolean","description":"For http checks with https protocol, whether or not to verify the TLS certificate","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].tls_skip_verify","typeLabel":"boolean"},"type":{"type":"string","description":"tcp or http","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.services.items.[INDEX].checks","typeLabel":"object[]"},"concurrency":{"type":"object","description":"Load limits Fly Proxy uses to balance traffic across Machines","properties":{"hard_limit":{"type":"integer","description":"Fly Proxy sends no more than this many connections or requests to a Machine at once. 0 means\nno hard limit","uniqueKey":"config.services.items.[INDEX].concurrency.hard_limit","typeLabel":"integer"},"soft_limit":{"type":"integer","description":"Above this many connections or requests, Fly Proxy prefers other Machines. Defaults to 20,\nand is lowered to hard_limit if higher","uniqueKey":"config.services.items.[INDEX].concurrency.soft_limit","typeLabel":"integer"},"type":{"type":"string","description":"What to count: `connections` (default) or `requests`","uniqueKey":"config.services.items.[INDEX].concurrency.type","typeLabel":"string"}},"uniqueKey":"config.services.items.[INDEX].concurrency","typeLabel":"object"},"force_instance_description":{"type":"string","description":"Currently has no effect","uniqueKey":"config.services.items.[INDEX].force_instance_description","typeLabel":"string"},"force_instance_key":{"type":"string","description":"Currently has no effect","uniqueKey":"config.services.items.[INDEX].force_instance_key","typeLabel":"string"},"internal_port":{"type":"integer","description":"Port in the Machine that Fly Proxy forwards traffic to. Defaults to 8080","uniqueKey":"config.services.items.[INDEX].internal_port","typeLabel":"integer"},"min_machines_running":{"type":"integer","description":"When autostop is on, the number of Machines Fly Proxy keeps running in the app's primary\nregion (`PRIMARY_REGION` env var). Machines in other regions can all be stopped","uniqueKey":"config.services.items.[INDEX].min_machines_running","typeLabel":"integer"},"ports":{"type":"array","description":"Public ports that Fly Proxy accepts traffic on","items":{"type":"object","properties":{"end_port":{"type":"integer","description":"Last public port of a range","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].end_port","typeLabel":"integer"},"force_https":{"type":"boolean","description":"Redirect plain HTTP requests to HTTPS","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].force_https","typeLabel":"boolean"},"handlers":{"type":"array","description":"How Fly Proxy handles connections before forwarding them: `tls` terminates TLS, `pg_tls`\nterminates PostgreSQL TLS, `http` handles HTTP, `proxy_proto` adds a PROXY protocol header.\nWithout handlers, raw TCP is forwarded","items":{"type":"string","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].handlers.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].handlers","typeLabel":"string[]"},"http_options":{"type":"object","description":"Options for the `http` handler","properties":{"compress":{"type":"boolean","description":"Compress response bodies. Defaults to true","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.compress","typeLabel":"boolean"},"h2_backend":{"type":"boolean","description":"Use HTTP/2 to talk to the Machine","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.h2_backend","typeLabel":"boolean"},"headers_read_timeout":{"type":"integer","description":"Seconds Fly Proxy waits for a client to send request headers. Defaults to 5","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.headers_read_timeout","typeLabel":"integer"},"idle_timeout":{"type":"integer","description":"Seconds a client connection can be idle between requests before it's closed. Defaults to 300","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.idle_timeout","typeLabel":"integer"},"replay_cache":{"type":"array","description":"Cache `fly-replay` responses from the Machine: once a client is replayed, its further\nrequests are replayed directly, keyed on a cookie or header, without asking the Machine again","items":{"type":"object","properties":{"allow_bypass":{"type":"boolean","description":"Let clients skip the cache by sending the `fly-replay-cache-control: skip` header","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX].allow_bypass","typeLabel":"boolean"},"name":{"type":"string","description":"Name of the cookie or header to key the cache on","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX].name","typeLabel":"string"},"path_prefix":{"type":"string","description":"Requests whose path starts with this prefix use the rule. May start with a hostname, e.g.\n`example.com/api/*`","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX].path_prefix","typeLabel":"string"},"ttl_seconds":{"type":"integer","description":"How long a cached replay is used, in seconds","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX].ttl_seconds","typeLabel":"integer"},"type":{"type":"string","description":"Currently either \"cookie\" or \"header\"","enum":["cookie","header"],"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache","typeLabel":"object[]"},"response":{"type":"object","description":"Changes Fly Proxy makes to responses","properties":{"headers":{"type":"object","additionalProperties":{"type":"object","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.response.headers.additionalProperties","typeLabel":"object"},"description":"Response headers to set. A string sets the header, a list of strings sets it to multiple\nvalues, and false removes it","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.response.headers","typeLabel":"object"},"pristine":{"type":"boolean","description":"Don't let Fly Proxy add or change any response headers","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.response.pristine","typeLabel":"boolean"}},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.response","typeLabel":"object"}},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options","typeLabel":"object"},"port":{"type":"integer","description":"Public port. Use either port, or start_port and end_port","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].port","typeLabel":"integer"},"proxy_proto_options":{"type":"object","description":"Options for the `proxy_proto` handler","properties":{"fly_src":{"type":"boolean","description":"With version v2, add the Fly-Src header and its signature to the PROXY protocol header","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].proxy_proto_options.fly_src","typeLabel":"boolean"},"version":{"type":"string","description":"PROXY protocol version: v1 (default) or v2","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].proxy_proto_options.version","typeLabel":"string"}},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].proxy_proto_options","typeLabel":"object"},"start_port":{"type":"integer","description":"First public port of a range","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].start_port","typeLabel":"integer"},"tls_options":{"type":"object","description":"Options for the `tls` handler","properties":{"alpn":{"type":"array","description":"ALPN protocols to offer, e.g. `h2`, `http/1.1`. Defaults to `h2` and `http/1.1`","items":{"type":"string","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].tls_options.alpn.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].tls_options.alpn","typeLabel":"string[]"},"default_self_signed":{"type":"boolean","description":"Use a self-signed certificate when there is no certificate for the requested hostname","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].tls_options.default_self_signed","typeLabel":"boolean"},"versions":{"type":"array","description":"TLS versions to accept: `TLSv1.2`, `TLSv1.3`. Defaults to both","items":{"type":"string","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].tls_options.versions.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].tls_options.versions","typeLabel":"string[]"}},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].tls_options","typeLabel":"object"}},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.services.items.[INDEX].ports","typeLabel":"object[]"},"protocol":{"type":"string","description":"Protocol: tcp or udp. Defaults to tcp","uniqueKey":"config.services.items.[INDEX].protocol","typeLabel":"string"}},"uniqueKey":"config.services.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.services","typeLabel":"object[]"},"size":{"type":"string","description":"Deprecated: use Guest instead","uniqueKey":"config.size","typeLabel":"string"},"spot":{"type":"object","description":"Spot pricing settings for the Machine","properties":{"max_price_fraction":{"type":"number","description":"MaxPriceFraction is the maximum fraction of the full Machine price you will pay for this Machine. Range: (0, 1.0]","uniqueKey":"config.spot.max_price_fraction","typeLabel":"number"}},"uniqueKey":"config.spot","typeLabel":"object"},"standbys":{"type":"array","description":"Standbys enable a machine to be a standby for another. In the event of a hardware failure,\nthe standby machine will be started.","items":{"type":"string","uniqueKey":"config.standbys.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.standbys","typeLabel":"string[]"},"statics":{"type":"array","description":"Static files to serve under a URL prefix. Fly Proxy routes matching requests to a file server\ninside the Machine, bypassing your application's own process; the Machine must be running. The\nfiles are read either from a path inside the Machine or from a Tigris bucket that belongs to the\napp; no bucket is created for you","items":{"required":["guest_path","url_prefix"],"type":"object","properties":{"guest_path":{"type":"string","description":"The path inside the Machine, or inside tigris_bucket when set, where the files to serve are located","isRequired":true,"uniqueKey":"config.statics.items.[INDEX].guest_path","typeLabel":"string"},"url_prefix":{"type":"string","description":"The URL prefix under which the files are served","isRequired":true,"uniqueKey":"config.statics.items.[INDEX].url_prefix","typeLabel":"string"},"index_document":{"type":"string","description":"The document served for requests to the URL prefix or any of its subfolders. Only works with tigris_bucket","uniqueKey":"config.statics.items.[INDEX].index_document","typeLabel":"string"},"tigris_bucket":{"type":"string","description":"An existing Tigris bucket belonging to the app to read the files from, instead of the Machine's\nfilesystem. The files are still served through the Machine","uniqueKey":"config.statics.items.[INDEX].tigris_bucket","typeLabel":"string"}},"uniqueKey":"config.statics.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.statics","typeLabel":"object[]"},"stop_config":{"type":"object","description":"How the Machine is shut down gracefully: the signal sent to it and how long to wait before a hard shutdown","properties":{"signal":{"type":"string","description":"Signal to send to the Machine's processes. Defaults to SIGINT","enum":["SIGHUP","SIGINT","SIGQUIT","SIGKILL","SIGUSR1","SIGUSR2","SIGTERM"],"uniqueKey":"config.stop_config.signal","typeLabel":"enum\u003cstring>"},"timeout":{"type":"string","description":"How long to wait for the Machine to exit after sending the signal, before killing it. At most\n5 minutes (1 minute for spot Machines). Defaults to 5s (60s for spot Machines)","example":"10s","uniqueKey":"config.stop_config.timeout","typeLabel":"string"}},"uniqueKey":"config.stop_config","typeLabel":"object"}},"uniqueKey":"config","typeLabel":"object"},"lease_ttl":{"type":"integer","description":"Acquire a lease on the new Machine that lasts this many seconds. The response's `nonce`\nfield holds the lease nonce.","uniqueKey":"lease_ttl","typeLabel":"integer"},"min_secrets_version":{"type":"integer","description":"The minimum version of the app's secrets the Machine must run with. Set it to the `version`\nreturned by the endpoints that set or delete app secrets, so that the Machine is guaranteed\nto see those changes. This field belongs at the top level of the request body, not in\n`config`. If omitted, the app's current secrets version is looked up for you.","uniqueKey":"min_secrets_version","typeLabel":"integer"},"name":{"type":"string","description":"Name for this Machine. If omitted, one is generated for you. Names are not required to be\nunique.","uniqueKey":"name","typeLabel":"string"},"region":{"type":"string","description":"The region to create the Machine in, such as `iad`. Also accepts a comma-separated list\nof regions and region groups (`any`, `us`, `na`, `sa`, `eu`, `apac`, `africa`,\n`asia_pacific`, `europe`, `north_america`, `south_america`), in which case Fly.io picks one\nwith capacity. If the Machine mounts a volume, defaults to the volume's region; the region\nmust include it. Otherwise defaults to the region of the API server handling the request,\nwhich is usually the one closest to you.","uniqueKey":"region","typeLabel":"string"},"skip_launch":{"type":"boolean","description":"Create the Machine without starting it. It ends up `stopped`; start it with the Start\nMachine endpoint. Not allowed for spot Machines.","uniqueKey":"skip_launch","typeLabel":"boolean"},"skip_secrets":{"type":"boolean","description":"Don't look up the app's current secrets version. The Machine still gets the app's\nsecrets, but may not see recent changes to them. Takes precedence over\n`min_secrets_version`.","uniqueKey":"skip_secrets","typeLabel":"boolean"},"skip_service_registration":{"type":"boolean","description":"Create the Machine cordoned, so Fly Proxy doesn't route requests to it until it is\nuncordoned. Its services are still registered.","uniqueKey":"skip_service_registration","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"config":{"auto_destroy":true,"cache_drive":{"size_mb":123},"checks":{},"containers":[{"cmd":["\u003cstring>"],"depends_on":[{"condition":"\u003cunknown>","name":"\u003cstring>"}],"entrypoint":["\u003cstring>"],"env":{},"env_from":[{"env_var":"\u003cstring>"}],"exec":["\u003cstring>"],"files":[{"guest_path":"\u003cstring>","image_config":"\u003cstring>","mode":123,"raw_value":"\u003cstring>","secret_name":"\u003cstring>"}],"healthchecks":[{"exec":{"command":["\u003cstring>"]},"failure_threshold":123,"grace_period":123,"http":{"headers":[{"name":"\u003cstring>","values":["\u003cstring>"]}],"method":"\u003cstring>","path":"\u003cstring>","port":123,"scheme":"\u003cunknown>","tls_server_name":"\u003cstring>","tls_skip_verify":true},"interval":123,"kind":"\u003cunknown>","name":"\u003cstring>","success_threshold":123,"tcp":{"port":123},"timeout":123,"unhealthy":"\u003cunknown>"}],"image":"\u003cstring>","name":"\u003cstring>","restart":{"max_retries":123},"secrets":[{"env_var":"\u003cstring>","name":"\u003cstring>"}],"stop":{"timeout":"10s"},"user":"\u003cstring>"}],"disable_machine_autostart":true,"dns":{"dns_forward_rules":[{"addr":"\u003cstring>","basename":"\u003cstring>"}],"hostname":"\u003cstring>","hostname_fqdn":"\u003cstring>","nameservers":["\u003cstring>"],"options":[{"name":"\u003cstring>","value":"\u003cstring>"}],"searches":["\u003cstring>"],"skip_registration":true},"env":{},"files":[{"guest_path":"\u003cstring>","image_config":"\u003cstring>","mode":123,"raw_value":"\u003cstring>","secret_name":"\u003cstring>"}],"guest":{"cpu_kind":"\u003cstring>","cpus":123,"gpu_kind":"\u003cstring>","gpus":123,"host_dedication_id":"\u003cstring>","kernel_args":["\u003cstring>"],"max_memory_mb":123,"memory_mb":123,"required_host_features":["\u003cstring>"]},"image":"\u003cstring>","init":{"cmd":["\u003cstring>"],"entrypoint":["\u003cstring>"],"exec":["\u003cstring>"],"kernel_args":["\u003cstring>"],"swap_size_mb":123,"tty":true},"metadata":{},"metrics":{"https":true,"path":"\u003cstring>","port":123},"mounts":[{"add_size_gb":123,"add_size_percent":123,"encrypted":true,"extend_threshold_percent":123,"min_add_size_gb":123,"name":"\u003cstring>","path":"\u003cstring>","size_gb":123,"size_gb_limit":123,"volume":"\u003cstring>"}],"processes":[{"cmd":["\u003cstring>"],"entrypoint":["\u003cstring>"],"env":{},"env_from":[{"env_var":"\u003cstring>"}],"exec":["\u003cstring>"],"ignore_app_secrets":true,"secrets":[{"env_var":"\u003cstring>","name":"\u003cstring>"}],"user":"\u003cstring>"}],"restart":{"max_retries":123},"rootfs":{"size_gb":123},"schedule":"\u003cstring>","services":[{"autostart":true,"checks":[{"grace_period":"1s","headers":[{"name":"\u003cstring>","values":["\u003cstring>"]}],"interval":"15s","method":"\u003cstring>","path":"\u003cstring>","port":123,"protocol":"\u003cstring>","timeout":"2s","tls_server_name":"\u003cstring>","tls_skip_verify":true,"type":"\u003cstring>"}],"concurrency":{"hard_limit":123,"soft_limit":123,"type":"\u003cstring>"},"force_instance_description":"\u003cstring>","force_instance_key":"\u003cstring>","internal_port":123,"min_machines_running":123,"ports":[{"end_port":123,"force_https":true,"handlers":["\u003cstring>"],"http_options":{"compress":true,"h2_backend":true,"headers_read_timeout":123,"idle_timeout":123,"replay_cache":[{"allow_bypass":true,"name":"\u003cstring>","path_prefix":"\u003cstring>","ttl_seconds":123}],"response":{"headers":{},"pristine":true}},"port":123,"proxy_proto_options":{"fly_src":true,"version":"\u003cstring>"},"start_port":123,"tls_options":{"alpn":["\u003cstring>"],"default_self_signed":true,"versions":["\u003cstring>"]}}],"protocol":"\u003cstring>"}],"size":"\u003cstring>","spot":{"max_price_fraction":123},"standbys":["\u003cstring>"],"statics":[{"guest_path":"\u003cstring>","url_prefix":"\u003cstring>","index_document":"\u003cstring>","tigris_bucket":"\u003cstring>"}],"stop_config":{"timeout":"10s"}},"lease_ttl":123,"min_secrets_version":123,"name":"\u003cstring>","region":"\u003cstring>","skip_launch":true,"skip_secrets":true,"skip_service_registration":true}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"5f3805d4-0a0d-4d1f-902c-97b0823fa346":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"checks":{"type":"array","description":"Status of each health check: the Machine's top-level `checks` and its services'\nchecks.","items":{"type":"object","properties":{"name":{"type":"string","description":"Name of the check: the key of a top-level check in `config.checks`, or\n`servicecheck-\u003cindex>-\u003ctype>-\u003cinternal_port>` for a check defined in a service.","uniqueKey":"checks.items.[INDEX].name","typeLabel":"string"},"output":{"type":"string","description":"Output of the most recent check run, such as an error message.","uniqueKey":"checks.items.[INDEX].output","typeLabel":"string"},"status":{"type":"string","description":"Result of the check: `passing`, `warning`, or `critical`.","enum":["passing","warning","critical"],"uniqueKey":"checks.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"updated_at":{"type":"string","description":"When the check's status was last updated.","uniqueKey":"checks.items.[INDEX].updated_at","typeLabel":"string"}},"uniqueKey":"checks.items.[INDEX]","typeLabel":"object"},"uniqueKey":"checks","typeLabel":"object[]"},"config":{"type":"object","description":"The Machine's configuration, as provided when it was created or last updated, with\n`metadata` and `mounts` reflecting their current values. Null when the host is not\nreachable (`host_status` is not `ok`) or `summary=true` was requested; see\n`incomplete_config`.","properties":{"auto_destroy":{"type":"boolean","description":"Optional boolean telling the Machine to destroy itself once it’s complete (default false)","uniqueKey":"config.auto_destroy","typeLabel":"boolean"},"cache_drive":{"type":"object","description":"Beta: a cache drive attached to the Machine. This field may be removed in the future","properties":{"size_mb":{"type":"integer","description":"Beta: size of the cache drive in MiB. At most 51200; 0 uses the default","uniqueKey":"config.cache_drive.size_mb","typeLabel":"integer"}},"uniqueKey":"config.cache_drive","typeLabel":"object"},"checks":{"type":"object","additionalProperties":{"type":"object","properties":{"grace_period":{"type":"string","description":"The time to wait after a VM starts before checking its health","example":"1s","uniqueKey":"config.checks.additionalProperties.grace_period","typeLabel":"string"},"headers":{"type":"array","description":"For http checks, headers to send with the request","items":{"type":"object","properties":{"name":{"type":"string","description":"The header name","uniqueKey":"config.checks.additionalProperties.headers.items.[INDEX].name","typeLabel":"string"},"values":{"type":"array","description":"The header value","items":{"type":"string","uniqueKey":"config.checks.additionalProperties.headers.items.[INDEX].values.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.checks.additionalProperties.headers.items.[INDEX].values","typeLabel":"string[]"}},"description":"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.","uniqueKey":"config.checks.additionalProperties.headers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.checks.additionalProperties.headers","typeLabel":"object[]"},"interval":{"type":"string","description":"The time between connectivity checks","example":"15s","uniqueKey":"config.checks.additionalProperties.interval","typeLabel":"string"},"kind":{"type":"string","description":"Kind of the check (informational, readiness)","enum":["informational","readiness"],"uniqueKey":"config.checks.additionalProperties.kind","typeLabel":"enum\u003cstring>"},"method":{"type":"string","description":"For http checks, the HTTP method to use to when making the request","uniqueKey":"config.checks.additionalProperties.method","typeLabel":"string"},"path":{"type":"string","description":"For http checks, the path to send the request to","uniqueKey":"config.checks.additionalProperties.path","typeLabel":"string"},"port":{"type":"integer","description":"The port to connect to, often the same as internal_port","uniqueKey":"config.checks.additionalProperties.port","typeLabel":"integer"},"protocol":{"type":"string","description":"For http checks, whether to use http or https","uniqueKey":"config.checks.additionalProperties.protocol","typeLabel":"string"},"timeout":{"type":"string","description":"The maximum time a connection can take before being reported as failing its health check","example":"2s","uniqueKey":"config.checks.additionalProperties.timeout","typeLabel":"string"},"tls_server_name":{"type":"string","description":"If the protocol is https, the hostname to use for TLS certificate validation","uniqueKey":"config.checks.additionalProperties.tls_server_name","typeLabel":"string"},"tls_skip_verify":{"type":"boolean","description":"For http checks with https protocol, whether or not to verify the TLS certificate","uniqueKey":"config.checks.additionalProperties.tls_skip_verify","typeLabel":"boolean"},"type":{"type":"string","description":"tcp or http","uniqueKey":"config.checks.additionalProperties.type","typeLabel":"string"}},"uniqueKey":"config.checks.additionalProperties","typeLabel":"object"},"description":"An optional object that defines one or more named top-level checks. The key for each check is the check name.","uniqueKey":"config.checks","typeLabel":"object"},"containers":{"type":"array","description":"Containers are a list of containers that will run in the machine, each from its own image.","items":{"type":"object","properties":{"cmd":{"type":"array","description":"CmdOverride is used to override the default command of the image.","items":{"type":"string","uniqueKey":"config.containers.items.[INDEX].cmd.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.containers.items.[INDEX].cmd","typeLabel":"string[]"},"depends_on":{"type":"array","description":"DependsOn can be used to define dependencies between containers. The container will only be\nstarted after all of its dependent conditions have been satisfied.","items":{"type":"object","properties":{"condition":{"type":"any","uniqueKey":"config.containers.items.[INDEX].depends_on.items.[INDEX].condition","typeLabel":"any"},"name":{"type":"string","description":"Name of the container this one depends on","uniqueKey":"config.containers.items.[INDEX].depends_on.items.[INDEX].name","typeLabel":"string"}},"uniqueKey":"config.containers.items.[INDEX].depends_on.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.containers.items.[INDEX].depends_on","typeLabel":"object[]"},"entrypoint":{"type":"array","description":"EntrypointOverride is used to override the default entrypoint of the image.","items":{"type":"string","uniqueKey":"config.containers.items.[INDEX].entrypoint.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.containers.items.[INDEX].entrypoint","typeLabel":"string[]"},"env":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"config.containers.items.[INDEX].env.additionalProperties","typeLabel":"string"},"description":"ExtraEnv is used to add additional environment variables to the container.","uniqueKey":"config.containers.items.[INDEX].env","typeLabel":"object"},"env_from":{"type":"array","description":"EnvFrom can be provided to set environment variables from machine fields.","items":{"type":"object","properties":{"env_var":{"type":"string","description":"EnvVar is required and is the name of the environment variable that will be set from the\nsecret. It must be a valid environment variable name.","uniqueKey":"config.containers.items.[INDEX].env_from.items.[INDEX].env_var","typeLabel":"string"},"field_ref":{"type":"string","description":"FieldRef selects a field of the Machine: supports id, version, app_name, private_ip, region, image.","enum":["id","version","app_name","private_ip","region","image"],"uniqueKey":"config.containers.items.[INDEX].env_from.items.[INDEX].field_ref","typeLabel":"enum\u003cstring>"}},"description":"EnvVar defines an environment variable to be populated from a machine field, env_var","uniqueKey":"config.containers.items.[INDEX].env_from.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.containers.items.[INDEX].env_from","typeLabel":"object[]"},"exec":{"type":"array","description":"Image Config overrides - these fields are used to override the image configuration.\nIf not provided, the image configuration will be used.\nExecOverride is used to override the default command of the image.","items":{"type":"string","uniqueKey":"config.containers.items.[INDEX].exec.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.containers.items.[INDEX].exec","typeLabel":"string[]"},"files":{"type":"array","description":"Files are files that will be written to the container file system.","items":{"type":"object","properties":{"guest_path":{"type":"string","description":"GuestPath is the path on the machine where the file will be written and must be an absolute path.\nFor example: /full/path/to/file.json","uniqueKey":"config.containers.items.[INDEX].files.items.[INDEX].guest_path","typeLabel":"string"},"image_config":{"type":"string","description":"The name of an image to use the OCI image config as the file contents.","uniqueKey":"config.containers.items.[INDEX].files.items.[INDEX].image_config","typeLabel":"string"},"mode":{"type":"integer","description":"Mode bits used to set permissions on this file as accepted by chmod(2).","uniqueKey":"config.containers.items.[INDEX].files.items.[INDEX].mode","typeLabel":"integer"},"raw_value":{"type":"string","description":"The base64 encoded string of the file contents.","uniqueKey":"config.containers.items.[INDEX].files.items.[INDEX].raw_value","typeLabel":"string"},"secret_name":{"type":"string","description":"The name of the secret that contains the base64 encoded file contents.","uniqueKey":"config.containers.items.[INDEX].files.items.[INDEX].secret_name","typeLabel":"string"}},"description":"A file that will be written to the Machine. One of RawValue or SecretName must be set.","uniqueKey":"config.containers.items.[INDEX].files.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.containers.items.[INDEX].files","typeLabel":"object[]"},"healthchecks":{"type":"array","description":"Healthchecks determine the health of your containers. Healthchecks can use HTTP, TCP or an Exec command.","items":{"type":"object","properties":{"exec":{"type":"object","description":"Check that a command run in the container exits with status 0","properties":{"command":{"type":"array","description":"The command to run to check the health of the container (e.g. [\"cat\", \"/tmp/healthy\"])","items":{"type":"string","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].exec.command.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].exec.command","typeLabel":"string[]"}},"uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].exec","typeLabel":"object"},"failure_threshold":{"type":"integer","description":"The number of times the check must fail before considering the container unhealthy.","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].failure_threshold","typeLabel":"integer"},"grace_period":{"type":"integer","description":"The time in seconds to wait after a container starts before checking its health.","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].grace_period","typeLabel":"integer"},"http":{"type":"object","description":"Check that an HTTP request succeeds","properties":{"headers":{"type":"array","description":"Additional headers to send with the request","items":{"type":"object","properties":{"name":{"type":"string","description":"The header name","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.headers.items.[INDEX].name","typeLabel":"string"},"values":{"type":"array","description":"The header value","items":{"type":"string","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.headers.items.[INDEX].values.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.headers.items.[INDEX].values","typeLabel":"string[]"}},"description":"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.","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.headers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.headers","typeLabel":"object[]"},"method":{"type":"string","description":"The HTTP method to use to when making the request","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.method","typeLabel":"string"},"path":{"type":"string","description":"The path to send the request to","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.path","typeLabel":"string"},"port":{"type":"integer","description":"The port to connect to, often the same as internal_port","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.port","typeLabel":"integer"},"scheme":{"type":"any","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.scheme","typeLabel":"any"},"tls_server_name":{"type":"string","description":"If the protocol is https, the hostname to use for TLS certificate validation","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.tls_server_name","typeLabel":"string"},"tls_skip_verify":{"type":"boolean","description":"If the protocol is https, whether or not to verify the TLS certificate","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http.tls_skip_verify","typeLabel":"boolean"}},"uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].http","typeLabel":"object"},"interval":{"type":"integer","description":"The time in seconds between executing the defined check.","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].interval","typeLabel":"integer"},"kind":{"type":"any","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].kind","typeLabel":"any"},"name":{"type":"string","description":"The name of the check. Must be unique within the container.","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].name","typeLabel":"string"},"success_threshold":{"type":"integer","description":"The number of times the check must succeeed before considering the container healthy.","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].success_threshold","typeLabel":"integer"},"tcp":{"type":"object","description":"Check that a TCP connection can be opened","properties":{"port":{"type":"integer","description":"The port to connect to, often the same as internal_port","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].tcp.port","typeLabel":"integer"}},"uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].tcp","typeLabel":"object"},"timeout":{"type":"integer","description":"The time in seconds to wait for the check to complete.","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].timeout","typeLabel":"integer"},"unhealthy":{"type":"any","uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX].unhealthy","typeLabel":"any"}},"uniqueKey":"config.containers.items.[INDEX].healthchecks.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.containers.items.[INDEX].healthchecks","typeLabel":"object[]"},"image":{"type":"string","description":"Image is the docker image to run.","uniqueKey":"config.containers.items.[INDEX].image","typeLabel":"string"},"name":{"type":"string","description":"Name is used to identify the container in the machine.","uniqueKey":"config.containers.items.[INDEX].name","typeLabel":"string"},"restart":{"type":"object","description":"Restart is used to define the restart policy for the container.","properties":{"max_retries":{"type":"integer","description":"When policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop.","uniqueKey":"config.containers.items.[INDEX].restart.max_retries","typeLabel":"integer"},"policy":{"type":"string","description":"* no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash.\n* always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly.\n* 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.","enum":["no","always","on-failure"],"uniqueKey":"config.containers.items.[INDEX].restart.policy","typeLabel":"enum\u003cstring>"}},"uniqueKey":"config.containers.items.[INDEX].restart","typeLabel":"object"},"secrets":{"type":"array","description":"Secrets can be provided at the process level to explicitly indicate which secrets should be\nused for the process. If not provided, the secrets provided at the machine level will be used.","items":{"type":"object","properties":{"env_var":{"type":"string","description":"EnvVar is required and is the name of the environment variable that will be set from the\nsecret. It must be a valid environment variable name.","uniqueKey":"config.containers.items.[INDEX].secrets.items.[INDEX].env_var","typeLabel":"string"},"name":{"type":"string","description":"Name is optional and when provided is used to reference a secret name where the EnvVar is\ndifferent from what was set as the secret name.","uniqueKey":"config.containers.items.[INDEX].secrets.items.[INDEX].name","typeLabel":"string"}},"description":"A Secret needing to be set in the environment of the Machine. env_var is required","uniqueKey":"config.containers.items.[INDEX].secrets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.containers.items.[INDEX].secrets","typeLabel":"object[]"},"stop":{"type":"object","description":"Stop is used to define the signal and timeout for stopping the container.","properties":{"signal":{"type":"string","description":"Signal to send to the Machine's processes. Defaults to SIGINT","enum":["SIGHUP","SIGINT","SIGQUIT","SIGKILL","SIGUSR1","SIGUSR2","SIGTERM"],"uniqueKey":"config.containers.items.[INDEX].stop.signal","typeLabel":"enum\u003cstring>"},"timeout":{"type":"string","description":"How long to wait for the Machine to exit after sending the signal, before killing it. At most\n5 minutes (1 minute for spot Machines). Defaults to 5s (60s for spot Machines)","example":"10s","uniqueKey":"config.containers.items.[INDEX].stop.timeout","typeLabel":"string"}},"uniqueKey":"config.containers.items.[INDEX].stop","typeLabel":"object"},"user":{"type":"string","description":"UserOverride is used to override the default user of the image.","uniqueKey":"config.containers.items.[INDEX].user","typeLabel":"string"}},"uniqueKey":"config.containers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.containers","typeLabel":"object[]"},"disable_machine_autostart":{"type":"boolean","description":"Deprecated: use Service.Autostart instead","uniqueKey":"config.disable_machine_autostart","typeLabel":"boolean"},"dns":{"type":"object","description":"DNS settings for the Machine","properties":{"dns_forward_rules":{"type":"array","description":"Forward DNS queries for some domains to other DNS servers","items":{"type":"object","properties":{"addr":{"type":"string","description":"Address and port of the DNS server to forward queries to over TCP, e.g. `10.0.0.1:53`","uniqueKey":"config.dns.dns_forward_rules.items.[INDEX].addr","typeLabel":"string"},"basename":{"type":"string","description":"Domain to forward queries for, including subdomains. Must end in a dot, e.g. `example.com.`","uniqueKey":"config.dns.dns_forward_rules.items.[INDEX].basename","typeLabel":"string"}},"uniqueKey":"config.dns.dns_forward_rules.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.dns.dns_forward_rules","typeLabel":"object[]"},"hostname":{"type":"string","description":"Hostname of the Machine. Defaults to the Machine ID. Also added to /etc/hosts with the\nMachine's 6PN address","uniqueKey":"config.dns.hostname","typeLabel":"string"},"hostname_fqdn":{"type":"string","description":"Fully qualified domain name added to /etc/hosts for `hostname`","uniqueKey":"config.dns.hostname_fqdn","typeLabel":"string"},"nameservers":{"type":"array","description":"Nameservers to use instead of the default, Fly.io's private DNS server `fdaa::3`","items":{"type":"string","uniqueKey":"config.dns.nameservers.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.dns.nameservers","typeLabel":"string[]"},"options":{"type":"array","description":"Options for /etc/resolv.conf","items":{"type":"object","properties":{"name":{"type":"string","description":"Option name, e.g. `ndots`","uniqueKey":"config.dns.options.items.[INDEX].name","typeLabel":"string"},"value":{"type":"string","description":"Option value, e.g. `5`","uniqueKey":"config.dns.options.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"config.dns.options.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.dns.options","typeLabel":"object[]"},"searches":{"type":"array","description":"Search domains for /etc/resolv.conf","items":{"type":"string","uniqueKey":"config.dns.searches.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.dns.searches","typeLabel":"string[]"},"skip_registration":{"type":"boolean","description":"Currently has no effect","uniqueKey":"config.dns.skip_registration","typeLabel":"boolean"}},"uniqueKey":"config.dns","typeLabel":"object"},"env":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"config.env.additionalProperties","typeLabel":"string"},"description":"An object filled with key/value pairs to be set as environment variables","uniqueKey":"config.env","typeLabel":"object"},"files":{"type":"array","description":"Files to write into the Machine, from either a raw value or an app secret","items":{"type":"object","properties":{"guest_path":{"type":"string","description":"GuestPath is the path on the machine where the file will be written and must be an absolute path.\nFor example: /full/path/to/file.json","uniqueKey":"config.files.items.[INDEX].guest_path","typeLabel":"string"},"image_config":{"type":"string","description":"The name of an image to use the OCI image config as the file contents.","uniqueKey":"config.files.items.[INDEX].image_config","typeLabel":"string"},"mode":{"type":"integer","description":"Mode bits used to set permissions on this file as accepted by chmod(2).","uniqueKey":"config.files.items.[INDEX].mode","typeLabel":"integer"},"raw_value":{"type":"string","description":"The base64 encoded string of the file contents.","uniqueKey":"config.files.items.[INDEX].raw_value","typeLabel":"string"},"secret_name":{"type":"string","description":"The name of the secret that contains the base64 encoded file contents.","uniqueKey":"config.files.items.[INDEX].secret_name","typeLabel":"string"}},"description":"A file that will be written to the Machine. One of RawValue or SecretName must be set.","uniqueKey":"config.files.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.files","typeLabel":"object[]"},"guest":{"type":"object","description":"The resources (CPUs, memory, etc.) allocated to the Machine","properties":{"cpu_kind":{"type":"string","description":"Kind of CPU: shared or performance. Performance CPUs must be enabled for the organization.\nDefaults to shared when `guest` is omitted","uniqueKey":"config.guest.cpu_kind","typeLabel":"string"},"cpus":{"type":"integer","description":"Number of CPUs: 1, 2, 4, 6, 8, 10, 12, 14, 16, 32, 64 or 128, up to 8 for shared and 16 for\nperformance CPUs unless the organization's limit is higher. Defaults to 1 when `guest` is\nomitted","uniqueKey":"config.guest.cpus","typeLabel":"integer"},"gpu_kind":{"type":"string","description":"No longer supported. Requests that set it are rejected","uniqueKey":"config.guest.gpu_kind","typeLabel":"string"},"gpus":{"type":"integer","description":"No longer supported. Requests that set it are rejected","uniqueKey":"config.guest.gpus","typeLabel":"integer"},"host_dedication_id":{"type":"string","description":"Place the Machine on hosts dedicated to the organization under this ID. Only available to\norganizations with dedicated hosts","uniqueKey":"config.guest.host_dedication_id","typeLabel":"string"},"kernel_args":{"type":"array","description":"Extra arguments appended to the guest kernel command line","items":{"type":"string","uniqueKey":"config.guest.kernel_args.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.guest.kernel_args","typeLabel":"string[]"},"max_memory_mb":{"type":"integer","description":"Memory in MiB that the Machine's memory limit can later be raised to without a restart, using\nthe memory endpoints. Must be at least memory_mb and at most the per-CPU maximum. The Machine\nstarts with a limit of memory_mb","uniqueKey":"config.guest.max_memory_mb","typeLabel":"integer"},"memory_mb":{"type":"integer","description":"Memory in MiB. Must be a multiple of 256 for shared and 1024 for performance CPUs, and\nbetween 256 and 2048 (shared) or 2048 and 8192 (performance) per CPU. Defaults to 256 when\n`guest` is omitted","uniqueKey":"config.guest.memory_mb","typeLabel":"integer"},"persist_rootfs":{"type":"string","description":"Deprecated: use MachineConfig.Rootfs instead","enum":["never","always","restart"],"uniqueKey":"config.guest.persist_rootfs","typeLabel":"enum\u003cstring>"},"required_host_features":{"type":"array","description":"Host features the Machine's host must have, such as `storage-tier-1`. At most 16, each made\nof lowercase letters, digits and dashes. Each feature must be enabled for the organization","items":{"type":"string","uniqueKey":"config.guest.required_host_features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.guest.required_host_features","typeLabel":"string[]"}},"uniqueKey":"config.guest","typeLabel":"object"},"image":{"type":"string","description":"The docker image to run","uniqueKey":"config.image","typeLabel":"string"},"init":{"type":"object","description":"Arguments for init, Fly.io's footprint inside the Machine, which controls how your own code is run","properties":{"cmd":{"type":"array","description":"Replaces the image's CMD. It's appended to the entrypoint","items":{"type":"string","uniqueKey":"config.init.cmd.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.init.cmd","typeLabel":"string[]"},"entrypoint":{"type":"array","description":"Replaces the image's ENTRYPOINT","items":{"type":"string","uniqueKey":"config.init.entrypoint.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.init.entrypoint","typeLabel":"string[]"},"exec":{"type":"array","description":"Command to run instead of the image's ENTRYPOINT and CMD. Takes precedence over entrypoint\nand cmd","items":{"type":"string","uniqueKey":"config.init.exec.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.init.exec","typeLabel":"string[]"},"kernel_args":{"type":"array","description":"Currently has no effect. Use `guest.kernel_args` instead","items":{"type":"string","uniqueKey":"config.init.kernel_args.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.init.kernel_args","typeLabel":"string[]"},"swap_size_mb":{"type":"integer","description":"Size in MiB of a swap device to give the Machine. Machines with swap cannot be suspended","uniqueKey":"config.init.swap_size_mb","typeLabel":"integer"},"tty":{"type":"boolean","description":"Currently has no effect","uniqueKey":"config.init.tty","typeLabel":"boolean"}},"uniqueKey":"config.init","typeLabel":"object"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"config.metadata.additionalProperties","typeLabel":"string"},"description":"Key/value pairs of Machine metadata. Fly.io uses metadata internally for routing, process groups, and clusters","uniqueKey":"config.metadata","typeLabel":"object"},"metrics":{"type":"object","description":"An optional metrics endpoint for Prometheus on Fly.io to scrape","properties":{"https":{"type":"boolean","description":"Scrape over HTTPS instead of HTTP","uniqueKey":"config.metrics.https","typeLabel":"boolean"},"path":{"type":"string","description":"HTTP path to scrape. Defaults to `/`","uniqueKey":"config.metrics.path","typeLabel":"string"},"port":{"type":"integer","description":"Port in the Machine to scrape metrics from","uniqueKey":"config.metrics.port","typeLabel":"integer"}},"uniqueKey":"config.metrics","typeLabel":"object"},"mounts":{"type":"array","description":"Persistent volumes to mount in the Machine. A Machine can mount at most one volume, which must be on\nthe same host. The mounted volume cannot be changed by updating the Machine","items":{"type":"object","properties":{"add_size_gb":{"type":"integer","description":"With automatic extension, grow the volume by this many GB at a time. Between 1 and 100.\nMutually exclusive with add_size_percent","uniqueKey":"config.mounts.items.[INDEX].add_size_gb","typeLabel":"integer"},"add_size_percent":{"type":"integer","description":"AddSizePercent grows by a percentage of the current size, rounded up to GiB.\nIt is mutually exclusive with AddSizeGb.","uniqueKey":"config.mounts.items.[INDEX].add_size_percent","typeLabel":"integer"},"encrypted":{"type":"boolean","description":"Whether the volume is encrypted. Set by Fly.io; ignored in requests","uniqueKey":"config.mounts.items.[INDEX].encrypted","typeLabel":"boolean"},"extend_threshold_percent":{"type":"integer","description":"Enable automatic volume extension: grow the volume when its usage exceeds this percentage.\nBetween 50 and 99; 0 disables it","uniqueKey":"config.mounts.items.[INDEX].extend_threshold_percent","typeLabel":"integer"},"min_add_size_gb":{"type":"integer","description":"MinAddSizeGb is the minimum proportional growth in GiB (default 1).","uniqueKey":"config.mounts.items.[INDEX].min_add_size_gb","typeLabel":"integer"},"name":{"type":"string","description":"Name of the volume. Set by Fly.io; ignored in requests","uniqueKey":"config.mounts.items.[INDEX].name","typeLabel":"string"},"path":{"type":"string","description":"Absolute path in the Machine to mount the volume at. Required","uniqueKey":"config.mounts.items.[INDEX].path","typeLabel":"string"},"size_gb":{"type":"integer","description":"Size of the volume in GB. Set by Fly.io; ignored in requests","uniqueKey":"config.mounts.items.[INDEX].size_gb","typeLabel":"integer"},"size_gb_limit":{"type":"integer","description":"With automatic extension, never grow the volume beyond this size in GB. At most the\norganization's maximum volume size","uniqueKey":"config.mounts.items.[INDEX].size_gb_limit","typeLabel":"integer"},"volume":{"type":"string","description":"ID (`vol_...`) or name of the volume to mount. Required. With a name, any unattached volume\nof the app with that name in the Machine's region is used","uniqueKey":"config.mounts.items.[INDEX].volume","typeLabel":"string"}},"uniqueKey":"config.mounts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.mounts","typeLabel":"object[]"},"processes":{"type":"array","description":"Multiple processes to run within this one Machine, all from the Machine's image. Unrelated to the\nprocess groups in fly.toml, which run on separate Machines. To run processes from different\nimages, use containers instead","items":{"type":"object","properties":{"cmd":{"type":"array","description":"Replaces the image's CMD for this process. It's appended to the entrypoint","items":{"type":"string","uniqueKey":"config.processes.items.[INDEX].cmd.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.processes.items.[INDEX].cmd","typeLabel":"string[]"},"entrypoint":{"type":"array","description":"Replaces the image's ENTRYPOINT for this process","items":{"type":"string","uniqueKey":"config.processes.items.[INDEX].entrypoint.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.processes.items.[INDEX].entrypoint","typeLabel":"string[]"},"env":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"config.processes.items.[INDEX].env.additionalProperties","typeLabel":"string"},"description":"Environment variables for this process, in addition to the Machine's `env`","uniqueKey":"config.processes.items.[INDEX].env","typeLabel":"object"},"env_from":{"type":"array","description":"EnvFrom can be provided to set environment variables from machine fields.","items":{"type":"object","properties":{"env_var":{"type":"string","description":"EnvVar is required and is the name of the environment variable that will be set from the\nsecret. It must be a valid environment variable name.","uniqueKey":"config.processes.items.[INDEX].env_from.items.[INDEX].env_var","typeLabel":"string"},"field_ref":{"type":"string","description":"FieldRef selects a field of the Machine: supports id, version, app_name, private_ip, region, image.","enum":["id","version","app_name","private_ip","region","image"],"uniqueKey":"config.processes.items.[INDEX].env_from.items.[INDEX].field_ref","typeLabel":"enum\u003cstring>"}},"description":"EnvVar defines an environment variable to be populated from a machine field, env_var","uniqueKey":"config.processes.items.[INDEX].env_from.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.processes.items.[INDEX].env_from","typeLabel":"object[]"},"exec":{"type":"array","description":"Command to run instead of the image's ENTRYPOINT and CMD. Takes precedence over entrypoint\nand cmd","items":{"type":"string","uniqueKey":"config.processes.items.[INDEX].exec.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.processes.items.[INDEX].exec","typeLabel":"string[]"},"ignore_app_secrets":{"type":"boolean","description":"IgnoreAppSecrets can be set to true to ignore the secrets for the App the Machine belongs to\nand only use the secrets provided at the process level. The default/legacy behavior is to use\nthe secrets provided at the App level.","uniqueKey":"config.processes.items.[INDEX].ignore_app_secrets","typeLabel":"boolean"},"secrets":{"type":"array","description":"Secrets can be provided at the process level to explicitly indicate which secrets should be\nused for the process. If not provided, the secrets provided at the machine level will be used.","items":{"type":"object","properties":{"env_var":{"type":"string","description":"EnvVar is required and is the name of the environment variable that will be set from the\nsecret. It must be a valid environment variable name.","uniqueKey":"config.processes.items.[INDEX].secrets.items.[INDEX].env_var","typeLabel":"string"},"name":{"type":"string","description":"Name is optional and when provided is used to reference a secret name where the EnvVar is\ndifferent from what was set as the secret name.","uniqueKey":"config.processes.items.[INDEX].secrets.items.[INDEX].name","typeLabel":"string"}},"description":"A Secret needing to be set in the environment of the Machine. env_var is required","uniqueKey":"config.processes.items.[INDEX].secrets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.processes.items.[INDEX].secrets","typeLabel":"object[]"},"user":{"type":"string","description":"User to run the process as, instead of the image's USER","uniqueKey":"config.processes.items.[INDEX].user","typeLabel":"string"}},"uniqueKey":"config.processes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.processes","typeLabel":"object[]"},"restart":{"type":"object","description":"Whether and how the Machine is restarted after its main process exits","properties":{"max_retries":{"type":"integer","description":"When policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop.","uniqueKey":"config.restart.max_retries","typeLabel":"integer"},"policy":{"type":"string","description":"* no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash.\n* always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly.\n* 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.","enum":["no","always","on-failure"],"uniqueKey":"config.restart.policy","typeLabel":"enum\u003cstring>"}},"uniqueKey":"config.restart","typeLabel":"object"},"rootfs":{"type":"object","description":"Beta: the size of the Machine's root filesystem and whether it persists. This field may be\nremoved in the future","properties":{"persist":{"type":"string","description":"Whether changes to the root filesystem are kept. `never` (default): reset on every start.\n`restart`: kept across stops and restarts, reset when the Machine is updated. `always`: also\nkept across updates","enum":["never","always","restart"],"uniqueKey":"config.rootfs.persist","typeLabel":"enum\u003cstring>"},"size_gb":{"type":"integer","description":"Size of the root filesystem in GB. At most 50; 0 uses the default","uniqueKey":"config.rootfs.size_gb","typeLabel":"integer"}},"uniqueKey":"config.rootfs","typeLabel":"object"},"schedule":{"type":"string","description":"Run the Machine at an interval: one of hourly, daily, weekly or monthly. The interval starts when\nthe Machine is created","uniqueKey":"config.schedule","typeLabel":"string"},"services":{"type":"array","description":"Network services that Fly Proxy routes traffic to","items":{"type":"object","properties":{"autostart":{"type":"boolean","description":"Whether Fly Proxy starts stopped or suspended Machines when requests arrive. Defaults to true","uniqueKey":"config.services.items.[INDEX].autostart","typeLabel":"boolean"},"autostop":{"type":"string","description":"Accepts 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.\n* \"off\" or false - Do not autostop the Machine.\n* \"stop\" or true - Automatically stop the Machine.\n* \"suspend\" - Automatically suspend the Machine, falling back to a full stop if this is not possible.","enum":["off","stop","suspend"],"uniqueKey":"config.services.items.[INDEX].autostop","typeLabel":"enum\u003cstring>"},"checks":{"type":"array","description":"An optional list of service checks","items":{"type":"object","properties":{"grace_period":{"type":"string","description":"The time to wait after a VM starts before checking its health","example":"1s","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].grace_period","typeLabel":"string"},"headers":{"type":"array","description":"For http checks, headers to send with the request","items":{"type":"object","properties":{"name":{"type":"string","description":"The header name","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].headers.items.[INDEX].name","typeLabel":"string"},"values":{"type":"array","description":"The header value","items":{"type":"string","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].headers.items.[INDEX].values.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].headers.items.[INDEX].values","typeLabel":"string[]"}},"description":"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.","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].headers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].headers","typeLabel":"object[]"},"interval":{"type":"string","description":"The time between connectivity checks","example":"15s","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].interval","typeLabel":"string"},"method":{"type":"string","description":"For http checks, the HTTP method to use to when making the request","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].method","typeLabel":"string"},"path":{"type":"string","description":"For http checks, the path to send the request to","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].path","typeLabel":"string"},"port":{"type":"integer","description":"The port to connect to, often the same as internal_port","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].port","typeLabel":"integer"},"protocol":{"type":"string","description":"For http checks, whether to use http or https","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].protocol","typeLabel":"string"},"timeout":{"type":"string","description":"The maximum time a connection can take before being reported as failing its health check","example":"2s","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].timeout","typeLabel":"string"},"tls_server_name":{"type":"string","description":"If the protocol is https, the hostname to use for TLS certificate validation","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].tls_server_name","typeLabel":"string"},"tls_skip_verify":{"type":"boolean","description":"For http checks with https protocol, whether or not to verify the TLS certificate","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].tls_skip_verify","typeLabel":"boolean"},"type":{"type":"string","description":"tcp or http","uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"config.services.items.[INDEX].checks.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.services.items.[INDEX].checks","typeLabel":"object[]"},"concurrency":{"type":"object","description":"Load limits Fly Proxy uses to balance traffic across Machines","properties":{"hard_limit":{"type":"integer","description":"Fly Proxy sends no more than this many connections or requests to a Machine at once. 0 means\nno hard limit","uniqueKey":"config.services.items.[INDEX].concurrency.hard_limit","typeLabel":"integer"},"soft_limit":{"type":"integer","description":"Above this many connections or requests, Fly Proxy prefers other Machines. Defaults to 20,\nand is lowered to hard_limit if higher","uniqueKey":"config.services.items.[INDEX].concurrency.soft_limit","typeLabel":"integer"},"type":{"type":"string","description":"What to count: `connections` (default) or `requests`","uniqueKey":"config.services.items.[INDEX].concurrency.type","typeLabel":"string"}},"uniqueKey":"config.services.items.[INDEX].concurrency","typeLabel":"object"},"force_instance_description":{"type":"string","description":"Currently has no effect","uniqueKey":"config.services.items.[INDEX].force_instance_description","typeLabel":"string"},"force_instance_key":{"type":"string","description":"Currently has no effect","uniqueKey":"config.services.items.[INDEX].force_instance_key","typeLabel":"string"},"internal_port":{"type":"integer","description":"Port in the Machine that Fly Proxy forwards traffic to. Defaults to 8080","uniqueKey":"config.services.items.[INDEX].internal_port","typeLabel":"integer"},"min_machines_running":{"type":"integer","description":"When autostop is on, the number of Machines Fly Proxy keeps running in the app's primary\nregion (`PRIMARY_REGION` env var). Machines in other regions can all be stopped","uniqueKey":"config.services.items.[INDEX].min_machines_running","typeLabel":"integer"},"ports":{"type":"array","description":"Public ports that Fly Proxy accepts traffic on","items":{"type":"object","properties":{"end_port":{"type":"integer","description":"Last public port of a range","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].end_port","typeLabel":"integer"},"force_https":{"type":"boolean","description":"Redirect plain HTTP requests to HTTPS","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].force_https","typeLabel":"boolean"},"handlers":{"type":"array","description":"How Fly Proxy handles connections before forwarding them: `tls` terminates TLS, `pg_tls`\nterminates PostgreSQL TLS, `http` handles HTTP, `proxy_proto` adds a PROXY protocol header.\nWithout handlers, raw TCP is forwarded","items":{"type":"string","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].handlers.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].handlers","typeLabel":"string[]"},"http_options":{"type":"object","description":"Options for the `http` handler","properties":{"compress":{"type":"boolean","description":"Compress response bodies. Defaults to true","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.compress","typeLabel":"boolean"},"h2_backend":{"type":"boolean","description":"Use HTTP/2 to talk to the Machine","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.h2_backend","typeLabel":"boolean"},"headers_read_timeout":{"type":"integer","description":"Seconds Fly Proxy waits for a client to send request headers. Defaults to 5","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.headers_read_timeout","typeLabel":"integer"},"idle_timeout":{"type":"integer","description":"Seconds a client connection can be idle between requests before it's closed. Defaults to 300","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.idle_timeout","typeLabel":"integer"},"replay_cache":{"type":"array","description":"Cache `fly-replay` responses from the Machine: once a client is replayed, its further\nrequests are replayed directly, keyed on a cookie or header, without asking the Machine again","items":{"type":"object","properties":{"allow_bypass":{"type":"boolean","description":"Let clients skip the cache by sending the `fly-replay-cache-control: skip` header","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX].allow_bypass","typeLabel":"boolean"},"name":{"type":"string","description":"Name of the cookie or header to key the cache on","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX].name","typeLabel":"string"},"path_prefix":{"type":"string","description":"Requests whose path starts with this prefix use the rule. May start with a hostname, e.g.\n`example.com/api/*`","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX].path_prefix","typeLabel":"string"},"ttl_seconds":{"type":"integer","description":"How long a cached replay is used, in seconds","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX].ttl_seconds","typeLabel":"integer"},"type":{"type":"string","description":"Currently either \"cookie\" or \"header\"","enum":["cookie","header"],"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache","typeLabel":"object[]"},"response":{"type":"object","description":"Changes Fly Proxy makes to responses","properties":{"headers":{"type":"object","additionalProperties":{"type":"object","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.response.headers.additionalProperties","typeLabel":"object"},"description":"Response headers to set. A string sets the header, a list of strings sets it to multiple\nvalues, and false removes it","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.response.headers","typeLabel":"object"},"pristine":{"type":"boolean","description":"Don't let Fly Proxy add or change any response headers","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.response.pristine","typeLabel":"boolean"}},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options.response","typeLabel":"object"}},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].http_options","typeLabel":"object"},"port":{"type":"integer","description":"Public port. Use either port, or start_port and end_port","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].port","typeLabel":"integer"},"proxy_proto_options":{"type":"object","description":"Options for the `proxy_proto` handler","properties":{"fly_src":{"type":"boolean","description":"With version v2, add the Fly-Src header and its signature to the PROXY protocol header","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].proxy_proto_options.fly_src","typeLabel":"boolean"},"version":{"type":"string","description":"PROXY protocol version: v1 (default) or v2","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].proxy_proto_options.version","typeLabel":"string"}},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].proxy_proto_options","typeLabel":"object"},"start_port":{"type":"integer","description":"First public port of a range","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].start_port","typeLabel":"integer"},"tls_options":{"type":"object","description":"Options for the `tls` handler","properties":{"alpn":{"type":"array","description":"ALPN protocols to offer, e.g. `h2`, `http/1.1`. Defaults to `h2` and `http/1.1`","items":{"type":"string","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].tls_options.alpn.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].tls_options.alpn","typeLabel":"string[]"},"default_self_signed":{"type":"boolean","description":"Use a self-signed certificate when there is no certificate for the requested hostname","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].tls_options.default_self_signed","typeLabel":"boolean"},"versions":{"type":"array","description":"TLS versions to accept: `TLSv1.2`, `TLSv1.3`. Defaults to both","items":{"type":"string","uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].tls_options.versions.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].tls_options.versions","typeLabel":"string[]"}},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX].tls_options","typeLabel":"object"}},"uniqueKey":"config.services.items.[INDEX].ports.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.services.items.[INDEX].ports","typeLabel":"object[]"},"protocol":{"type":"string","description":"Protocol: tcp or udp. Defaults to tcp","uniqueKey":"config.services.items.[INDEX].protocol","typeLabel":"string"}},"uniqueKey":"config.services.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.services","typeLabel":"object[]"},"size":{"type":"string","description":"Deprecated: use Guest instead","uniqueKey":"config.size","typeLabel":"string"},"spot":{"type":"object","description":"Spot pricing settings for the Machine","properties":{"max_price_fraction":{"type":"number","description":"MaxPriceFraction is the maximum fraction of the full Machine price you will pay for this Machine. Range: (0, 1.0]","uniqueKey":"config.spot.max_price_fraction","typeLabel":"number"}},"uniqueKey":"config.spot","typeLabel":"object"},"standbys":{"type":"array","description":"Standbys enable a machine to be a standby for another. In the event of a hardware failure,\nthe standby machine will be started.","items":{"type":"string","uniqueKey":"config.standbys.items.[INDEX]","typeLabel":"string"},"uniqueKey":"config.standbys","typeLabel":"string[]"},"statics":{"type":"array","description":"Static files to serve under a URL prefix. Fly Proxy routes matching requests to a file server\ninside the Machine, bypassing your application's own process; the Machine must be running. The\nfiles are read either from a path inside the Machine or from a Tigris bucket that belongs to the\napp; no bucket is created for you","items":{"required":["guest_path","url_prefix"],"type":"object","properties":{"guest_path":{"type":"string","description":"The path inside the Machine, or inside tigris_bucket when set, where the files to serve are located","isRequired":true,"uniqueKey":"config.statics.items.[INDEX].guest_path","typeLabel":"string"},"url_prefix":{"type":"string","description":"The URL prefix under which the files are served","isRequired":true,"uniqueKey":"config.statics.items.[INDEX].url_prefix","typeLabel":"string"},"index_document":{"type":"string","description":"The document served for requests to the URL prefix or any of its subfolders. Only works with tigris_bucket","uniqueKey":"config.statics.items.[INDEX].index_document","typeLabel":"string"},"tigris_bucket":{"type":"string","description":"An existing Tigris bucket belonging to the app to read the files from, instead of the Machine's\nfilesystem. The files are still served through the Machine","uniqueKey":"config.statics.items.[INDEX].tigris_bucket","typeLabel":"string"}},"uniqueKey":"config.statics.items.[INDEX]","typeLabel":"object"},"uniqueKey":"config.statics","typeLabel":"object[]"},"stop_config":{"type":"object","description":"How the Machine is shut down gracefully: the signal sent to it and how long to wait before a hard shutdown","properties":{"signal":{"type":"string","description":"Signal to send to the Machine's processes. Defaults to SIGINT","enum":["SIGHUP","SIGINT","SIGQUIT","SIGKILL","SIGUSR1","SIGUSR2","SIGTERM"],"uniqueKey":"config.stop_config.signal","typeLabel":"enum\u003cstring>"},"timeout":{"type":"string","description":"How long to wait for the Machine to exit after sending the signal, before killing it. At most\n5 minutes (1 minute for spot Machines). Defaults to 5s (60s for spot Machines)","example":"10s","uniqueKey":"config.stop_config.timeout","typeLabel":"string"}},"uniqueKey":"config.stop_config","typeLabel":"object"}},"uniqueKey":"config","typeLabel":"object"},"cordoned":{"type":"boolean","description":"Whether the Machine is cordoned, meaning Fly Proxy does not route requests to it. See\nthe Cordon Machine endpoint.","uniqueKey":"cordoned","typeLabel":"boolean"},"created_at":{"type":"string","description":"When the Machine was created.","uniqueKey":"created_at","typeLabel":"string"},"events":{"type":"array","description":"Up to 5 of the most recent events of the current Machine version, newest first. Use\nthe List Events endpoint for more.","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique ID of the event (a ULID).","uniqueKey":"events.items.[INDEX].id","typeLabel":"string"},"request":{"type":"object","description":"Details that depend on the event type. For example, `exit` events carry the exit\ncode and whether the process was killed for running out of memory, and `update`\nevents carry the new version.","uniqueKey":"events.items.[INDEX].request","typeLabel":"object"},"source":{"type":"string","description":"Who triggered the event: `user` for requests to this API, `flyd` for the host's\nMachine manager acting on its own (for example when a Machine exits or restarts), or\n`proxy` for Fly Proxy starting and stopping Machines.","uniqueKey":"events.items.[INDEX].source","typeLabel":"string"},"status":{"type":"string","description":"The state the Machine moved to with this event, such as `created`, `started`, or\n`stopped`. The Machine's `state` is the status of its latest event.","uniqueKey":"events.items.[INDEX].status","typeLabel":"string"},"timestamp":{"type":"integer","description":"When the event happened, in Unix milliseconds.","uniqueKey":"events.items.[INDEX].timestamp","typeLabel":"integer"},"type":{"type":"string","description":"What happened, such as `launch`, `start`, `stop`, `exit`, `restart`, `update`,\n`suspension`, `cancel_suspension`, `migration`, `metadata_update`, `archive`, or\n`destroy`.","uniqueKey":"events.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"events.items.[INDEX]","typeLabel":"object"},"uniqueKey":"events","typeLabel":"object[]"},"host_features":{"type":"array","description":"Features of the Machine's host, for comparison with `config.guest.required_host_features`.\nOnly returned when the request sets the `fly-include-host-features: true` header.","items":{"type":"string","uniqueKey":"host_features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"host_features","typeLabel":"string[]"},"host_status":{"type":"string","description":"Whether Fly.io could reach the Machine's host: `ok` if it could, `unreachable` if it\ncould not, in which case the response is built from last known state. `unknown` if the\nhost's status was not reported.","enum":["ok","unknown","unreachable"],"uniqueKey":"host_status","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Unique ID of the Machine.","uniqueKey":"id","typeLabel":"string"},"image_ref":{"type":"object","description":"The image the Machine runs, as resolved when it was last created or updated.","properties":{"digest":{"type":"string","description":"Content digest of the image (`sha256:...`).","uniqueKey":"image_ref.digest","typeLabel":"string"},"labels":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"image_ref.labels.additionalProperties","typeLabel":"string"},"description":"The image's OCI labels.","uniqueKey":"image_ref.labels","typeLabel":"object"},"registry":{"type":"string","description":"Registry host of the image, such as `registry.fly.io`.","uniqueKey":"image_ref.registry","typeLabel":"string"},"repository":{"type":"string","description":"Repository of the image within the registry, such as `library/nginx`.","uniqueKey":"image_ref.repository","typeLabel":"string"},"tag":{"type":"string","description":"Tag the image was referenced by, if any.","uniqueKey":"image_ref.tag","typeLabel":"string"}},"uniqueKey":"image_ref","typeLabel":"object"},"incomplete_config":{"type":"object","description":"Last known configuration, returned in place of `config` when the host could not be\nreached (`host_status` is not `ok`) or when listing Machines with `summary=true`. It\ncomes from Fly.io's replicated state rather than the host, so it may be stale or lack\nfields.","properties":{"auto_destroy":{"type":"boolean","description":"Optional boolean telling the Machine to destroy itself once it’s complete (default false)","uniqueKey":"incomplete_config.auto_destroy","typeLabel":"boolean"},"cache_drive":{"type":"object","description":"Beta: a cache drive attached to the Machine. This field may be removed in the future","properties":{"size_mb":{"type":"integer","description":"Beta: size of the cache drive in MiB. At most 51200; 0 uses the default","uniqueKey":"incomplete_config.cache_drive.size_mb","typeLabel":"integer"}},"uniqueKey":"incomplete_config.cache_drive","typeLabel":"object"},"checks":{"type":"object","additionalProperties":{"type":"object","properties":{"grace_period":{"type":"string","description":"The time to wait after a VM starts before checking its health","example":"1s","uniqueKey":"incomplete_config.checks.additionalProperties.grace_period","typeLabel":"string"},"headers":{"type":"array","description":"For http checks, headers to send with the request","items":{"type":"object","properties":{"name":{"type":"string","description":"The header name","uniqueKey":"incomplete_config.checks.additionalProperties.headers.items.[INDEX].name","typeLabel":"string"},"values":{"type":"array","description":"The header value","items":{"type":"string","uniqueKey":"incomplete_config.checks.additionalProperties.headers.items.[INDEX].values.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.checks.additionalProperties.headers.items.[INDEX].values","typeLabel":"string[]"}},"description":"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.","uniqueKey":"incomplete_config.checks.additionalProperties.headers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.checks.additionalProperties.headers","typeLabel":"object[]"},"interval":{"type":"string","description":"The time between connectivity checks","example":"15s","uniqueKey":"incomplete_config.checks.additionalProperties.interval","typeLabel":"string"},"kind":{"type":"string","description":"Kind of the check (informational, readiness)","enum":["informational","readiness"],"uniqueKey":"incomplete_config.checks.additionalProperties.kind","typeLabel":"enum\u003cstring>"},"method":{"type":"string","description":"For http checks, the HTTP method to use to when making the request","uniqueKey":"incomplete_config.checks.additionalProperties.method","typeLabel":"string"},"path":{"type":"string","description":"For http checks, the path to send the request to","uniqueKey":"incomplete_config.checks.additionalProperties.path","typeLabel":"string"},"port":{"type":"integer","description":"The port to connect to, often the same as internal_port","uniqueKey":"incomplete_config.checks.additionalProperties.port","typeLabel":"integer"},"protocol":{"type":"string","description":"For http checks, whether to use http or https","uniqueKey":"incomplete_config.checks.additionalProperties.protocol","typeLabel":"string"},"timeout":{"type":"string","description":"The maximum time a connection can take before being reported as failing its health check","example":"2s","uniqueKey":"incomplete_config.checks.additionalProperties.timeout","typeLabel":"string"},"tls_server_name":{"type":"string","description":"If the protocol is https, the hostname to use for TLS certificate validation","uniqueKey":"incomplete_config.checks.additionalProperties.tls_server_name","typeLabel":"string"},"tls_skip_verify":{"type":"boolean","description":"For http checks with https protocol, whether or not to verify the TLS certificate","uniqueKey":"incomplete_config.checks.additionalProperties.tls_skip_verify","typeLabel":"boolean"},"type":{"type":"string","description":"tcp or http","uniqueKey":"incomplete_config.checks.additionalProperties.type","typeLabel":"string"}},"uniqueKey":"incomplete_config.checks.additionalProperties","typeLabel":"object"},"description":"An optional object that defines one or more named top-level checks. The key for each check is the check name.","uniqueKey":"incomplete_config.checks","typeLabel":"object"},"containers":{"type":"array","description":"Containers are a list of containers that will run in the machine, each from its own image.","items":{"type":"object","properties":{"cmd":{"type":"array","description":"CmdOverride is used to override the default command of the image.","items":{"type":"string","uniqueKey":"incomplete_config.containers.items.[INDEX].cmd.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.containers.items.[INDEX].cmd","typeLabel":"string[]"},"depends_on":{"type":"array","description":"DependsOn can be used to define dependencies between containers. The container will only be\nstarted after all of its dependent conditions have been satisfied.","items":{"type":"object","properties":{"condition":{"type":"any","uniqueKey":"incomplete_config.containers.items.[INDEX].depends_on.items.[INDEX].condition","typeLabel":"any"},"name":{"type":"string","description":"Name of the container this one depends on","uniqueKey":"incomplete_config.containers.items.[INDEX].depends_on.items.[INDEX].name","typeLabel":"string"}},"uniqueKey":"incomplete_config.containers.items.[INDEX].depends_on.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.containers.items.[INDEX].depends_on","typeLabel":"object[]"},"entrypoint":{"type":"array","description":"EntrypointOverride is used to override the default entrypoint of the image.","items":{"type":"string","uniqueKey":"incomplete_config.containers.items.[INDEX].entrypoint.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.containers.items.[INDEX].entrypoint","typeLabel":"string[]"},"env":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"incomplete_config.containers.items.[INDEX].env.additionalProperties","typeLabel":"string"},"description":"ExtraEnv is used to add additional environment variables to the container.","uniqueKey":"incomplete_config.containers.items.[INDEX].env","typeLabel":"object"},"env_from":{"type":"array","description":"EnvFrom can be provided to set environment variables from machine fields.","items":{"type":"object","properties":{"env_var":{"type":"string","description":"EnvVar is required and is the name of the environment variable that will be set from the\nsecret. It must be a valid environment variable name.","uniqueKey":"incomplete_config.containers.items.[INDEX].env_from.items.[INDEX].env_var","typeLabel":"string"},"field_ref":{"type":"string","description":"FieldRef selects a field of the Machine: supports id, version, app_name, private_ip, region, image.","enum":["id","version","app_name","private_ip","region","image"],"uniqueKey":"incomplete_config.containers.items.[INDEX].env_from.items.[INDEX].field_ref","typeLabel":"enum\u003cstring>"}},"description":"EnvVar defines an environment variable to be populated from a machine field, env_var","uniqueKey":"incomplete_config.containers.items.[INDEX].env_from.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.containers.items.[INDEX].env_from","typeLabel":"object[]"},"exec":{"type":"array","description":"Image Config overrides - these fields are used to override the image configuration.\nIf not provided, the image configuration will be used.\nExecOverride is used to override the default command of the image.","items":{"type":"string","uniqueKey":"incomplete_config.containers.items.[INDEX].exec.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.containers.items.[INDEX].exec","typeLabel":"string[]"},"files":{"type":"array","description":"Files are files that will be written to the container file system.","items":{"type":"object","properties":{"guest_path":{"type":"string","description":"GuestPath is the path on the machine where the file will be written and must be an absolute path.\nFor example: /full/path/to/file.json","uniqueKey":"incomplete_config.containers.items.[INDEX].files.items.[INDEX].guest_path","typeLabel":"string"},"image_config":{"type":"string","description":"The name of an image to use the OCI image config as the file contents.","uniqueKey":"incomplete_config.containers.items.[INDEX].files.items.[INDEX].image_config","typeLabel":"string"},"mode":{"type":"integer","description":"Mode bits used to set permissions on this file as accepted by chmod(2).","uniqueKey":"incomplete_config.containers.items.[INDEX].files.items.[INDEX].mode","typeLabel":"integer"},"raw_value":{"type":"string","description":"The base64 encoded string of the file contents.","uniqueKey":"incomplete_config.containers.items.[INDEX].files.items.[INDEX].raw_value","typeLabel":"string"},"secret_name":{"type":"string","description":"The name of the secret that contains the base64 encoded file contents.","uniqueKey":"incomplete_config.containers.items.[INDEX].files.items.[INDEX].secret_name","typeLabel":"string"}},"description":"A file that will be written to the Machine. One of RawValue or SecretName must be set.","uniqueKey":"incomplete_config.containers.items.[INDEX].files.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.containers.items.[INDEX].files","typeLabel":"object[]"},"healthchecks":{"type":"array","description":"Healthchecks determine the health of your containers. Healthchecks can use HTTP, TCP or an Exec command.","items":{"type":"object","properties":{"exec":{"type":"object","description":"Check that a command run in the container exits with status 0","properties":{"command":{"type":"array","description":"The command to run to check the health of the container (e.g. [\"cat\", \"/tmp/healthy\"])","items":{"type":"string","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].exec.command.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].exec.command","typeLabel":"string[]"}},"uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].exec","typeLabel":"object"},"failure_threshold":{"type":"integer","description":"The number of times the check must fail before considering the container unhealthy.","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].failure_threshold","typeLabel":"integer"},"grace_period":{"type":"integer","description":"The time in seconds to wait after a container starts before checking its health.","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].grace_period","typeLabel":"integer"},"http":{"type":"object","description":"Check that an HTTP request succeeds","properties":{"headers":{"type":"array","description":"Additional headers to send with the request","items":{"type":"object","properties":{"name":{"type":"string","description":"The header name","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].http.headers.items.[INDEX].name","typeLabel":"string"},"values":{"type":"array","description":"The header value","items":{"type":"string","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].http.headers.items.[INDEX].values.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].http.headers.items.[INDEX].values","typeLabel":"string[]"}},"description":"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.","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].http.headers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].http.headers","typeLabel":"object[]"},"method":{"type":"string","description":"The HTTP method to use to when making the request","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].http.method","typeLabel":"string"},"path":{"type":"string","description":"The path to send the request to","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].http.path","typeLabel":"string"},"port":{"type":"integer","description":"The port to connect to, often the same as internal_port","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].http.port","typeLabel":"integer"},"scheme":{"type":"any","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].http.scheme","typeLabel":"any"},"tls_server_name":{"type":"string","description":"If the protocol is https, the hostname to use for TLS certificate validation","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].http.tls_server_name","typeLabel":"string"},"tls_skip_verify":{"type":"boolean","description":"If the protocol is https, whether or not to verify the TLS certificate","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].http.tls_skip_verify","typeLabel":"boolean"}},"uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].http","typeLabel":"object"},"interval":{"type":"integer","description":"The time in seconds between executing the defined check.","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].interval","typeLabel":"integer"},"kind":{"type":"any","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].kind","typeLabel":"any"},"name":{"type":"string","description":"The name of the check. Must be unique within the container.","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].name","typeLabel":"string"},"success_threshold":{"type":"integer","description":"The number of times the check must succeeed before considering the container healthy.","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].success_threshold","typeLabel":"integer"},"tcp":{"type":"object","description":"Check that a TCP connection can be opened","properties":{"port":{"type":"integer","description":"The port to connect to, often the same as internal_port","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].tcp.port","typeLabel":"integer"}},"uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].tcp","typeLabel":"object"},"timeout":{"type":"integer","description":"The time in seconds to wait for the check to complete.","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].timeout","typeLabel":"integer"},"unhealthy":{"type":"any","uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX].unhealthy","typeLabel":"any"}},"uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.containers.items.[INDEX].healthchecks","typeLabel":"object[]"},"image":{"type":"string","description":"Image is the docker image to run.","uniqueKey":"incomplete_config.containers.items.[INDEX].image","typeLabel":"string"},"name":{"type":"string","description":"Name is used to identify the container in the machine.","uniqueKey":"incomplete_config.containers.items.[INDEX].name","typeLabel":"string"},"restart":{"type":"object","description":"Restart is used to define the restart policy for the container.","properties":{"max_retries":{"type":"integer","description":"When policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop.","uniqueKey":"incomplete_config.containers.items.[INDEX].restart.max_retries","typeLabel":"integer"},"policy":{"type":"string","description":"* no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash.\n* always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly.\n* 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.","enum":["no","always","on-failure"],"uniqueKey":"incomplete_config.containers.items.[INDEX].restart.policy","typeLabel":"enum\u003cstring>"}},"uniqueKey":"incomplete_config.containers.items.[INDEX].restart","typeLabel":"object"},"secrets":{"type":"array","description":"Secrets can be provided at the process level to explicitly indicate which secrets should be\nused for the process. If not provided, the secrets provided at the machine level will be used.","items":{"type":"object","properties":{"env_var":{"type":"string","description":"EnvVar is required and is the name of the environment variable that will be set from the\nsecret. It must be a valid environment variable name.","uniqueKey":"incomplete_config.containers.items.[INDEX].secrets.items.[INDEX].env_var","typeLabel":"string"},"name":{"type":"string","description":"Name is optional and when provided is used to reference a secret name where the EnvVar is\ndifferent from what was set as the secret name.","uniqueKey":"incomplete_config.containers.items.[INDEX].secrets.items.[INDEX].name","typeLabel":"string"}},"description":"A Secret needing to be set in the environment of the Machine. env_var is required","uniqueKey":"incomplete_config.containers.items.[INDEX].secrets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.containers.items.[INDEX].secrets","typeLabel":"object[]"},"stop":{"type":"object","description":"Stop is used to define the signal and timeout for stopping the container.","properties":{"signal":{"type":"string","description":"Signal to send to the Machine's processes. Defaults to SIGINT","enum":["SIGHUP","SIGINT","SIGQUIT","SIGKILL","SIGUSR1","SIGUSR2","SIGTERM"],"uniqueKey":"incomplete_config.containers.items.[INDEX].stop.signal","typeLabel":"enum\u003cstring>"},"timeout":{"type":"string","description":"How long to wait for the Machine to exit after sending the signal, before killing it. At most\n5 minutes (1 minute for spot Machines). Defaults to 5s (60s for spot Machines)","example":"10s","uniqueKey":"incomplete_config.containers.items.[INDEX].stop.timeout","typeLabel":"string"}},"uniqueKey":"incomplete_config.containers.items.[INDEX].stop","typeLabel":"object"},"user":{"type":"string","description":"UserOverride is used to override the default user of the image.","uniqueKey":"incomplete_config.containers.items.[INDEX].user","typeLabel":"string"}},"uniqueKey":"incomplete_config.containers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.containers","typeLabel":"object[]"},"disable_machine_autostart":{"type":"boolean","description":"Deprecated: use Service.Autostart instead","uniqueKey":"incomplete_config.disable_machine_autostart","typeLabel":"boolean"},"dns":{"type":"object","description":"DNS settings for the Machine","properties":{"dns_forward_rules":{"type":"array","description":"Forward DNS queries for some domains to other DNS servers","items":{"type":"object","properties":{"addr":{"type":"string","description":"Address and port of the DNS server to forward queries to over TCP, e.g. `10.0.0.1:53`","uniqueKey":"incomplete_config.dns.dns_forward_rules.items.[INDEX].addr","typeLabel":"string"},"basename":{"type":"string","description":"Domain to forward queries for, including subdomains. Must end in a dot, e.g. `example.com.`","uniqueKey":"incomplete_config.dns.dns_forward_rules.items.[INDEX].basename","typeLabel":"string"}},"uniqueKey":"incomplete_config.dns.dns_forward_rules.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.dns.dns_forward_rules","typeLabel":"object[]"},"hostname":{"type":"string","description":"Hostname of the Machine. Defaults to the Machine ID. Also added to /etc/hosts with the\nMachine's 6PN address","uniqueKey":"incomplete_config.dns.hostname","typeLabel":"string"},"hostname_fqdn":{"type":"string","description":"Fully qualified domain name added to /etc/hosts for `hostname`","uniqueKey":"incomplete_config.dns.hostname_fqdn","typeLabel":"string"},"nameservers":{"type":"array","description":"Nameservers to use instead of the default, Fly.io's private DNS server `fdaa::3`","items":{"type":"string","uniqueKey":"incomplete_config.dns.nameservers.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.dns.nameservers","typeLabel":"string[]"},"options":{"type":"array","description":"Options for /etc/resolv.conf","items":{"type":"object","properties":{"name":{"type":"string","description":"Option name, e.g. `ndots`","uniqueKey":"incomplete_config.dns.options.items.[INDEX].name","typeLabel":"string"},"value":{"type":"string","description":"Option value, e.g. `5`","uniqueKey":"incomplete_config.dns.options.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"incomplete_config.dns.options.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.dns.options","typeLabel":"object[]"},"searches":{"type":"array","description":"Search domains for /etc/resolv.conf","items":{"type":"string","uniqueKey":"incomplete_config.dns.searches.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.dns.searches","typeLabel":"string[]"},"skip_registration":{"type":"boolean","description":"Currently has no effect","uniqueKey":"incomplete_config.dns.skip_registration","typeLabel":"boolean"}},"uniqueKey":"incomplete_config.dns","typeLabel":"object"},"env":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"incomplete_config.env.additionalProperties","typeLabel":"string"},"description":"An object filled with key/value pairs to be set as environment variables","uniqueKey":"incomplete_config.env","typeLabel":"object"},"files":{"type":"array","description":"Files to write into the Machine, from either a raw value or an app secret","items":{"type":"object","properties":{"guest_path":{"type":"string","description":"GuestPath is the path on the machine where the file will be written and must be an absolute path.\nFor example: /full/path/to/file.json","uniqueKey":"incomplete_config.files.items.[INDEX].guest_path","typeLabel":"string"},"image_config":{"type":"string","description":"The name of an image to use the OCI image config as the file contents.","uniqueKey":"incomplete_config.files.items.[INDEX].image_config","typeLabel":"string"},"mode":{"type":"integer","description":"Mode bits used to set permissions on this file as accepted by chmod(2).","uniqueKey":"incomplete_config.files.items.[INDEX].mode","typeLabel":"integer"},"raw_value":{"type":"string","description":"The base64 encoded string of the file contents.","uniqueKey":"incomplete_config.files.items.[INDEX].raw_value","typeLabel":"string"},"secret_name":{"type":"string","description":"The name of the secret that contains the base64 encoded file contents.","uniqueKey":"incomplete_config.files.items.[INDEX].secret_name","typeLabel":"string"}},"description":"A file that will be written to the Machine. One of RawValue or SecretName must be set.","uniqueKey":"incomplete_config.files.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.files","typeLabel":"object[]"},"guest":{"type":"object","description":"The resources (CPUs, memory, etc.) allocated to the Machine","properties":{"cpu_kind":{"type":"string","description":"Kind of CPU: shared or performance. Performance CPUs must be enabled for the organization.\nDefaults to shared when `guest` is omitted","uniqueKey":"incomplete_config.guest.cpu_kind","typeLabel":"string"},"cpus":{"type":"integer","description":"Number of CPUs: 1, 2, 4, 6, 8, 10, 12, 14, 16, 32, 64 or 128, up to 8 for shared and 16 for\nperformance CPUs unless the organization's limit is higher. Defaults to 1 when `guest` is\nomitted","uniqueKey":"incomplete_config.guest.cpus","typeLabel":"integer"},"gpu_kind":{"type":"string","description":"No longer supported. Requests that set it are rejected","uniqueKey":"incomplete_config.guest.gpu_kind","typeLabel":"string"},"gpus":{"type":"integer","description":"No longer supported. Requests that set it are rejected","uniqueKey":"incomplete_config.guest.gpus","typeLabel":"integer"},"host_dedication_id":{"type":"string","description":"Place the Machine on hosts dedicated to the organization under this ID. Only available to\norganizations with dedicated hosts","uniqueKey":"incomplete_config.guest.host_dedication_id","typeLabel":"string"},"kernel_args":{"type":"array","description":"Extra arguments appended to the guest kernel command line","items":{"type":"string","uniqueKey":"incomplete_config.guest.kernel_args.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.guest.kernel_args","typeLabel":"string[]"},"max_memory_mb":{"type":"integer","description":"Memory in MiB that the Machine's memory limit can later be raised to without a restart, using\nthe memory endpoints. Must be at least memory_mb and at most the per-CPU maximum. The Machine\nstarts with a limit of memory_mb","uniqueKey":"incomplete_config.guest.max_memory_mb","typeLabel":"integer"},"memory_mb":{"type":"integer","description":"Memory in MiB. Must be a multiple of 256 for shared and 1024 for performance CPUs, and\nbetween 256 and 2048 (shared) or 2048 and 8192 (performance) per CPU. Defaults to 256 when\n`guest` is omitted","uniqueKey":"incomplete_config.guest.memory_mb","typeLabel":"integer"},"persist_rootfs":{"type":"string","description":"Deprecated: use MachineConfig.Rootfs instead","enum":["never","always","restart"],"uniqueKey":"incomplete_config.guest.persist_rootfs","typeLabel":"enum\u003cstring>"},"required_host_features":{"type":"array","description":"Host features the Machine's host must have, such as `storage-tier-1`. At most 16, each made\nof lowercase letters, digits and dashes. Each feature must be enabled for the organization","items":{"type":"string","uniqueKey":"incomplete_config.guest.required_host_features.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.guest.required_host_features","typeLabel":"string[]"}},"uniqueKey":"incomplete_config.guest","typeLabel":"object"},"image":{"type":"string","description":"The docker image to run","uniqueKey":"incomplete_config.image","typeLabel":"string"},"init":{"type":"object","description":"Arguments for init, Fly.io's footprint inside the Machine, which controls how your own code is run","properties":{"cmd":{"type":"array","description":"Replaces the image's CMD. It's appended to the entrypoint","items":{"type":"string","uniqueKey":"incomplete_config.init.cmd.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.init.cmd","typeLabel":"string[]"},"entrypoint":{"type":"array","description":"Replaces the image's ENTRYPOINT","items":{"type":"string","uniqueKey":"incomplete_config.init.entrypoint.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.init.entrypoint","typeLabel":"string[]"},"exec":{"type":"array","description":"Command to run instead of the image's ENTRYPOINT and CMD. Takes precedence over entrypoint\nand cmd","items":{"type":"string","uniqueKey":"incomplete_config.init.exec.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.init.exec","typeLabel":"string[]"},"kernel_args":{"type":"array","description":"Currently has no effect. Use `guest.kernel_args` instead","items":{"type":"string","uniqueKey":"incomplete_config.init.kernel_args.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.init.kernel_args","typeLabel":"string[]"},"swap_size_mb":{"type":"integer","description":"Size in MiB of a swap device to give the Machine. Machines with swap cannot be suspended","uniqueKey":"incomplete_config.init.swap_size_mb","typeLabel":"integer"},"tty":{"type":"boolean","description":"Currently has no effect","uniqueKey":"incomplete_config.init.tty","typeLabel":"boolean"}},"uniqueKey":"incomplete_config.init","typeLabel":"object"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"incomplete_config.metadata.additionalProperties","typeLabel":"string"},"description":"Key/value pairs of Machine metadata. Fly.io uses metadata internally for routing, process groups, and clusters","uniqueKey":"incomplete_config.metadata","typeLabel":"object"},"metrics":{"type":"object","description":"An optional metrics endpoint for Prometheus on Fly.io to scrape","properties":{"https":{"type":"boolean","description":"Scrape over HTTPS instead of HTTP","uniqueKey":"incomplete_config.metrics.https","typeLabel":"boolean"},"path":{"type":"string","description":"HTTP path to scrape. Defaults to `/`","uniqueKey":"incomplete_config.metrics.path","typeLabel":"string"},"port":{"type":"integer","description":"Port in the Machine to scrape metrics from","uniqueKey":"incomplete_config.metrics.port","typeLabel":"integer"}},"uniqueKey":"incomplete_config.metrics","typeLabel":"object"},"mounts":{"type":"array","description":"Persistent volumes to mount in the Machine. A Machine can mount at most one volume, which must be on\nthe same host. The mounted volume cannot be changed by updating the Machine","items":{"type":"object","properties":{"add_size_gb":{"type":"integer","description":"With automatic extension, grow the volume by this many GB at a time. Between 1 and 100.\nMutually exclusive with add_size_percent","uniqueKey":"incomplete_config.mounts.items.[INDEX].add_size_gb","typeLabel":"integer"},"add_size_percent":{"type":"integer","description":"AddSizePercent grows by a percentage of the current size, rounded up to GiB.\nIt is mutually exclusive with AddSizeGb.","uniqueKey":"incomplete_config.mounts.items.[INDEX].add_size_percent","typeLabel":"integer"},"encrypted":{"type":"boolean","description":"Whether the volume is encrypted. Set by Fly.io; ignored in requests","uniqueKey":"incomplete_config.mounts.items.[INDEX].encrypted","typeLabel":"boolean"},"extend_threshold_percent":{"type":"integer","description":"Enable automatic volume extension: grow the volume when its usage exceeds this percentage.\nBetween 50 and 99; 0 disables it","uniqueKey":"incomplete_config.mounts.items.[INDEX].extend_threshold_percent","typeLabel":"integer"},"min_add_size_gb":{"type":"integer","description":"MinAddSizeGb is the minimum proportional growth in GiB (default 1).","uniqueKey":"incomplete_config.mounts.items.[INDEX].min_add_size_gb","typeLabel":"integer"},"name":{"type":"string","description":"Name of the volume. Set by Fly.io; ignored in requests","uniqueKey":"incomplete_config.mounts.items.[INDEX].name","typeLabel":"string"},"path":{"type":"string","description":"Absolute path in the Machine to mount the volume at. Required","uniqueKey":"incomplete_config.mounts.items.[INDEX].path","typeLabel":"string"},"size_gb":{"type":"integer","description":"Size of the volume in GB. Set by Fly.io; ignored in requests","uniqueKey":"incomplete_config.mounts.items.[INDEX].size_gb","typeLabel":"integer"},"size_gb_limit":{"type":"integer","description":"With automatic extension, never grow the volume beyond this size in GB. At most the\norganization's maximum volume size","uniqueKey":"incomplete_config.mounts.items.[INDEX].size_gb_limit","typeLabel":"integer"},"volume":{"type":"string","description":"ID (`vol_...`) or name of the volume to mount. Required. With a name, any unattached volume\nof the app with that name in the Machine's region is used","uniqueKey":"incomplete_config.mounts.items.[INDEX].volume","typeLabel":"string"}},"uniqueKey":"incomplete_config.mounts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.mounts","typeLabel":"object[]"},"processes":{"type":"array","description":"Multiple processes to run within this one Machine, all from the Machine's image. Unrelated to the\nprocess groups in fly.toml, which run on separate Machines. To run processes from different\nimages, use containers instead","items":{"type":"object","properties":{"cmd":{"type":"array","description":"Replaces the image's CMD for this process. It's appended to the entrypoint","items":{"type":"string","uniqueKey":"incomplete_config.processes.items.[INDEX].cmd.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.processes.items.[INDEX].cmd","typeLabel":"string[]"},"entrypoint":{"type":"array","description":"Replaces the image's ENTRYPOINT for this process","items":{"type":"string","uniqueKey":"incomplete_config.processes.items.[INDEX].entrypoint.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.processes.items.[INDEX].entrypoint","typeLabel":"string[]"},"env":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"incomplete_config.processes.items.[INDEX].env.additionalProperties","typeLabel":"string"},"description":"Environment variables for this process, in addition to the Machine's `env`","uniqueKey":"incomplete_config.processes.items.[INDEX].env","typeLabel":"object"},"env_from":{"type":"array","description":"EnvFrom can be provided to set environment variables from machine fields.","items":{"type":"object","properties":{"env_var":{"type":"string","description":"EnvVar is required and is the name of the environment variable that will be set from the\nsecret. It must be a valid environment variable name.","uniqueKey":"incomplete_config.processes.items.[INDEX].env_from.items.[INDEX].env_var","typeLabel":"string"},"field_ref":{"type":"string","description":"FieldRef selects a field of the Machine: supports id, version, app_name, private_ip, region, image.","enum":["id","version","app_name","private_ip","region","image"],"uniqueKey":"incomplete_config.processes.items.[INDEX].env_from.items.[INDEX].field_ref","typeLabel":"enum\u003cstring>"}},"description":"EnvVar defines an environment variable to be populated from a machine field, env_var","uniqueKey":"incomplete_config.processes.items.[INDEX].env_from.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.processes.items.[INDEX].env_from","typeLabel":"object[]"},"exec":{"type":"array","description":"Command to run instead of the image's ENTRYPOINT and CMD. Takes precedence over entrypoint\nand cmd","items":{"type":"string","uniqueKey":"incomplete_config.processes.items.[INDEX].exec.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.processes.items.[INDEX].exec","typeLabel":"string[]"},"ignore_app_secrets":{"type":"boolean","description":"IgnoreAppSecrets can be set to true to ignore the secrets for the App the Machine belongs to\nand only use the secrets provided at the process level. The default/legacy behavior is to use\nthe secrets provided at the App level.","uniqueKey":"incomplete_config.processes.items.[INDEX].ignore_app_secrets","typeLabel":"boolean"},"secrets":{"type":"array","description":"Secrets can be provided at the process level to explicitly indicate which secrets should be\nused for the process. If not provided, the secrets provided at the machine level will be used.","items":{"type":"object","properties":{"env_var":{"type":"string","description":"EnvVar is required and is the name of the environment variable that will be set from the\nsecret. It must be a valid environment variable name.","uniqueKey":"incomplete_config.processes.items.[INDEX].secrets.items.[INDEX].env_var","typeLabel":"string"},"name":{"type":"string","description":"Name is optional and when provided is used to reference a secret name where the EnvVar is\ndifferent from what was set as the secret name.","uniqueKey":"incomplete_config.processes.items.[INDEX].secrets.items.[INDEX].name","typeLabel":"string"}},"description":"A Secret needing to be set in the environment of the Machine. env_var is required","uniqueKey":"incomplete_config.processes.items.[INDEX].secrets.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.processes.items.[INDEX].secrets","typeLabel":"object[]"},"user":{"type":"string","description":"User to run the process as, instead of the image's USER","uniqueKey":"incomplete_config.processes.items.[INDEX].user","typeLabel":"string"}},"uniqueKey":"incomplete_config.processes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.processes","typeLabel":"object[]"},"restart":{"type":"object","description":"Whether and how the Machine is restarted after its main process exits","properties":{"max_retries":{"type":"integer","description":"When policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop.","uniqueKey":"incomplete_config.restart.max_retries","typeLabel":"integer"},"policy":{"type":"string","description":"* no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash.\n* always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly.\n* 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.","enum":["no","always","on-failure"],"uniqueKey":"incomplete_config.restart.policy","typeLabel":"enum\u003cstring>"}},"uniqueKey":"incomplete_config.restart","typeLabel":"object"},"rootfs":{"type":"object","description":"Beta: the size of the Machine's root filesystem and whether it persists. This field may be\nremoved in the future","properties":{"persist":{"type":"string","description":"Whether changes to the root filesystem are kept. `never` (default): reset on every start.\n`restart`: kept across stops and restarts, reset when the Machine is updated. `always`: also\nkept across updates","enum":["never","always","restart"],"uniqueKey":"incomplete_config.rootfs.persist","typeLabel":"enum\u003cstring>"},"size_gb":{"type":"integer","description":"Size of the root filesystem in GB. At most 50; 0 uses the default","uniqueKey":"incomplete_config.rootfs.size_gb","typeLabel":"integer"}},"uniqueKey":"incomplete_config.rootfs","typeLabel":"object"},"schedule":{"type":"string","description":"Run the Machine at an interval: one of hourly, daily, weekly or monthly. The interval starts when\nthe Machine is created","uniqueKey":"incomplete_config.schedule","typeLabel":"string"},"services":{"type":"array","description":"Network services that Fly Proxy routes traffic to","items":{"type":"object","properties":{"autostart":{"type":"boolean","description":"Whether Fly Proxy starts stopped or suspended Machines when requests arrive. Defaults to true","uniqueKey":"incomplete_config.services.items.[INDEX].autostart","typeLabel":"boolean"},"autostop":{"type":"string","description":"Accepts 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.\n* \"off\" or false - Do not autostop the Machine.\n* \"stop\" or true - Automatically stop the Machine.\n* \"suspend\" - Automatically suspend the Machine, falling back to a full stop if this is not possible.","enum":["off","stop","suspend"],"uniqueKey":"incomplete_config.services.items.[INDEX].autostop","typeLabel":"enum\u003cstring>"},"checks":{"type":"array","description":"An optional list of service checks","items":{"type":"object","properties":{"grace_period":{"type":"string","description":"The time to wait after a VM starts before checking its health","example":"1s","uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX].grace_period","typeLabel":"string"},"headers":{"type":"array","description":"For http checks, headers to send with the request","items":{"type":"object","properties":{"name":{"type":"string","description":"The header name","uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX].headers.items.[INDEX].name","typeLabel":"string"},"values":{"type":"array","description":"The header value","items":{"type":"string","uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX].headers.items.[INDEX].values.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX].headers.items.[INDEX].values","typeLabel":"string[]"}},"description":"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.","uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX].headers.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX].headers","typeLabel":"object[]"},"interval":{"type":"string","description":"The time between connectivity checks","example":"15s","uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX].interval","typeLabel":"string"},"method":{"type":"string","description":"For http checks, the HTTP method to use to when making the request","uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX].method","typeLabel":"string"},"path":{"type":"string","description":"For http checks, the path to send the request to","uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX].path","typeLabel":"string"},"port":{"type":"integer","description":"The port to connect to, often the same as internal_port","uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX].port","typeLabel":"integer"},"protocol":{"type":"string","description":"For http checks, whether to use http or https","uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX].protocol","typeLabel":"string"},"timeout":{"type":"string","description":"The maximum time a connection can take before being reported as failing its health check","example":"2s","uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX].timeout","typeLabel":"string"},"tls_server_name":{"type":"string","description":"If the protocol is https, the hostname to use for TLS certificate validation","uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX].tls_server_name","typeLabel":"string"},"tls_skip_verify":{"type":"boolean","description":"For http checks with https protocol, whether or not to verify the TLS certificate","uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX].tls_skip_verify","typeLabel":"boolean"},"type":{"type":"string","description":"tcp or http","uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"incomplete_config.services.items.[INDEX].checks.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.services.items.[INDEX].checks","typeLabel":"object[]"},"concurrency":{"type":"object","description":"Load limits Fly Proxy uses to balance traffic across Machines","properties":{"hard_limit":{"type":"integer","description":"Fly Proxy sends no more than this many connections or requests to a Machine at once. 0 means\nno hard limit","uniqueKey":"incomplete_config.services.items.[INDEX].concurrency.hard_limit","typeLabel":"integer"},"soft_limit":{"type":"integer","description":"Above this many connections or requests, Fly Proxy prefers other Machines. Defaults to 20,\nand is lowered to hard_limit if higher","uniqueKey":"incomplete_config.services.items.[INDEX].concurrency.soft_limit","typeLabel":"integer"},"type":{"type":"string","description":"What to count: `connections` (default) or `requests`","uniqueKey":"incomplete_config.services.items.[INDEX].concurrency.type","typeLabel":"string"}},"uniqueKey":"incomplete_config.services.items.[INDEX].concurrency","typeLabel":"object"},"force_instance_description":{"type":"string","description":"Currently has no effect","uniqueKey":"incomplete_config.services.items.[INDEX].force_instance_description","typeLabel":"string"},"force_instance_key":{"type":"string","description":"Currently has no effect","uniqueKey":"incomplete_config.services.items.[INDEX].force_instance_key","typeLabel":"string"},"internal_port":{"type":"integer","description":"Port in the Machine that Fly Proxy forwards traffic to. Defaults to 8080","uniqueKey":"incomplete_config.services.items.[INDEX].internal_port","typeLabel":"integer"},"min_machines_running":{"type":"integer","description":"When autostop is on, the number of Machines Fly Proxy keeps running in the app's primary\nregion (`PRIMARY_REGION` env var). Machines in other regions can all be stopped","uniqueKey":"incomplete_config.services.items.[INDEX].min_machines_running","typeLabel":"integer"},"ports":{"type":"array","description":"Public ports that Fly Proxy accepts traffic on","items":{"type":"object","properties":{"end_port":{"type":"integer","description":"Last public port of a range","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].end_port","typeLabel":"integer"},"force_https":{"type":"boolean","description":"Redirect plain HTTP requests to HTTPS","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].force_https","typeLabel":"boolean"},"handlers":{"type":"array","description":"How Fly Proxy handles connections before forwarding them: `tls` terminates TLS, `pg_tls`\nterminates PostgreSQL TLS, `http` handles HTTP, `proxy_proto` adds a PROXY protocol header.\nWithout handlers, raw TCP is forwarded","items":{"type":"string","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].handlers.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].handlers","typeLabel":"string[]"},"http_options":{"type":"object","description":"Options for the `http` handler","properties":{"compress":{"type":"boolean","description":"Compress response bodies. Defaults to true","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options.compress","typeLabel":"boolean"},"h2_backend":{"type":"boolean","description":"Use HTTP/2 to talk to the Machine","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options.h2_backend","typeLabel":"boolean"},"headers_read_timeout":{"type":"integer","description":"Seconds Fly Proxy waits for a client to send request headers. Defaults to 5","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options.headers_read_timeout","typeLabel":"integer"},"idle_timeout":{"type":"integer","description":"Seconds a client connection can be idle between requests before it's closed. Defaults to 300","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options.idle_timeout","typeLabel":"integer"},"replay_cache":{"type":"array","description":"Cache `fly-replay` responses from the Machine: once a client is replayed, its further\nrequests are replayed directly, keyed on a cookie or header, without asking the Machine again","items":{"type":"object","properties":{"allow_bypass":{"type":"boolean","description":"Let clients skip the cache by sending the `fly-replay-cache-control: skip` header","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX].allow_bypass","typeLabel":"boolean"},"name":{"type":"string","description":"Name of the cookie or header to key the cache on","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX].name","typeLabel":"string"},"path_prefix":{"type":"string","description":"Requests whose path starts with this prefix use the rule. May start with a hostname, e.g.\n`example.com/api/*`","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX].path_prefix","typeLabel":"string"},"ttl_seconds":{"type":"integer","description":"How long a cached replay is used, in seconds","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX].ttl_seconds","typeLabel":"integer"},"type":{"type":"string","description":"Currently either \"cookie\" or \"header\"","enum":["cookie","header"],"uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options.replay_cache","typeLabel":"object[]"},"response":{"type":"object","description":"Changes Fly Proxy makes to responses","properties":{"headers":{"type":"object","additionalProperties":{"type":"object","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options.response.headers.additionalProperties","typeLabel":"object"},"description":"Response headers to set. A string sets the header, a list of strings sets it to multiple\nvalues, and false removes it","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options.response.headers","typeLabel":"object"},"pristine":{"type":"boolean","description":"Don't let Fly Proxy add or change any response headers","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options.response.pristine","typeLabel":"boolean"}},"uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options.response","typeLabel":"object"}},"uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].http_options","typeLabel":"object"},"port":{"type":"integer","description":"Public port. Use either port, or start_port and end_port","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].port","typeLabel":"integer"},"proxy_proto_options":{"type":"object","description":"Options for the `proxy_proto` handler","properties":{"fly_src":{"type":"boolean","description":"With version v2, add the Fly-Src header and its signature to the PROXY protocol header","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].proxy_proto_options.fly_src","typeLabel":"boolean"},"version":{"type":"string","description":"PROXY protocol version: v1 (default) or v2","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].proxy_proto_options.version","typeLabel":"string"}},"uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].proxy_proto_options","typeLabel":"object"},"start_port":{"type":"integer","description":"First public port of a range","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].start_port","typeLabel":"integer"},"tls_options":{"type":"object","description":"Options for the `tls` handler","properties":{"alpn":{"type":"array","description":"ALPN protocols to offer, e.g. `h2`, `http/1.1`. Defaults to `h2` and `http/1.1`","items":{"type":"string","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].tls_options.alpn.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].tls_options.alpn","typeLabel":"string[]"},"default_self_signed":{"type":"boolean","description":"Use a self-signed certificate when there is no certificate for the requested hostname","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].tls_options.default_self_signed","typeLabel":"boolean"},"versions":{"type":"array","description":"TLS versions to accept: `TLSv1.2`, `TLSv1.3`. Defaults to both","items":{"type":"string","uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].tls_options.versions.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].tls_options.versions","typeLabel":"string[]"}},"uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX].tls_options","typeLabel":"object"}},"uniqueKey":"incomplete_config.services.items.[INDEX].ports.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.services.items.[INDEX].ports","typeLabel":"object[]"},"protocol":{"type":"string","description":"Protocol: tcp or udp. Defaults to tcp","uniqueKey":"incomplete_config.services.items.[INDEX].protocol","typeLabel":"string"}},"uniqueKey":"incomplete_config.services.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.services","typeLabel":"object[]"},"size":{"type":"string","description":"Deprecated: use Guest instead","uniqueKey":"incomplete_config.size","typeLabel":"string"},"spot":{"type":"object","description":"Spot pricing settings for the Machine","properties":{"max_price_fraction":{"type":"number","description":"MaxPriceFraction is the maximum fraction of the full Machine price you will pay for this Machine. Range: (0, 1.0]","uniqueKey":"incomplete_config.spot.max_price_fraction","typeLabel":"number"}},"uniqueKey":"incomplete_config.spot","typeLabel":"object"},"standbys":{"type":"array","description":"Standbys enable a machine to be a standby for another. In the event of a hardware failure,\nthe standby machine will be started.","items":{"type":"string","uniqueKey":"incomplete_config.standbys.items.[INDEX]","typeLabel":"string"},"uniqueKey":"incomplete_config.standbys","typeLabel":"string[]"},"statics":{"type":"array","description":"Static files to serve under a URL prefix. Fly Proxy routes matching requests to a file server\ninside the Machine, bypassing your application's own process; the Machine must be running. The\nfiles are read either from a path inside the Machine or from a Tigris bucket that belongs to the\napp; no bucket is created for you","items":{"required":["guest_path","url_prefix"],"type":"object","properties":{"guest_path":{"type":"string","description":"The path inside the Machine, or inside tigris_bucket when set, where the files to serve are located","isRequired":true,"uniqueKey":"incomplete_config.statics.items.[INDEX].guest_path","typeLabel":"string"},"url_prefix":{"type":"string","description":"The URL prefix under which the files are served","isRequired":true,"uniqueKey":"incomplete_config.statics.items.[INDEX].url_prefix","typeLabel":"string"},"index_document":{"type":"string","description":"The document served for requests to the URL prefix or any of its subfolders. Only works with tigris_bucket","uniqueKey":"incomplete_config.statics.items.[INDEX].index_document","typeLabel":"string"},"tigris_bucket":{"type":"string","description":"An existing Tigris bucket belonging to the app to read the files from, instead of the Machine's\nfilesystem. The files are still served through the Machine","uniqueKey":"incomplete_config.statics.items.[INDEX].tigris_bucket","typeLabel":"string"}},"uniqueKey":"incomplete_config.statics.items.[INDEX]","typeLabel":"object"},"uniqueKey":"incomplete_config.statics","typeLabel":"object[]"},"stop_config":{"type":"object","description":"How the Machine is shut down gracefully: the signal sent to it and how long to wait before a hard shutdown","properties":{"signal":{"type":"string","description":"Signal to send to the Machine's processes. Defaults to SIGINT","enum":["SIGHUP","SIGINT","SIGQUIT","SIGKILL","SIGUSR1","SIGUSR2","SIGTERM"],"uniqueKey":"incomplete_config.stop_config.signal","typeLabel":"enum\u003cstring>"},"timeout":{"type":"string","description":"How long to wait for the Machine to exit after sending the signal, before killing it. At most\n5 minutes (1 minute for spot Machines). Defaults to 5s (60s for spot Machines)","example":"10s","uniqueKey":"incomplete_config.stop_config.timeout","typeLabel":"string"}},"uniqueKey":"incomplete_config.stop_config","typeLabel":"object"}},"uniqueKey":"incomplete_config","typeLabel":"object"},"instance_id":{"type":"string","description":"Same value as `version`.\n\nDeprecated: use `version`.","uniqueKey":"instance_id","typeLabel":"string"},"lease":{"type":"object","description":"The lease currently held on the Machine. Only returned when `include_leases=true`\nwas requested and a lease is held.","properties":{"description":{"type":"string","description":"Description given when the lease was acquired.","uniqueKey":"lease.description","typeLabel":"string"},"expires_at":{"type":"integer","description":"When the lease expires, in Unix seconds.","uniqueKey":"lease.expires_at","typeLabel":"integer"},"owner":{"type":"string","description":"Email address of the user who acquired the lease.","uniqueKey":"lease.owner","typeLabel":"string"}},"uniqueKey":"lease","typeLabel":"object"},"name":{"type":"string","description":"Name of the Machine. Generated when not provided at creation. Names are not required\nto be unique.","uniqueKey":"name","typeLabel":"string"},"nonce":{"type":"string","description":"Nonce of the lease acquired on the Machine at creation. Only returned when creating a\nMachine with `lease_ttl` set. Pass it in the `fly-machine-lease-nonce` header to act on\nthe Machine while the lease is held.","uniqueKey":"nonce","typeLabel":"string"},"private_ip":{"type":"string","description":"The Machine's address on the organization's private (6PN) IPv6 network.","uniqueKey":"private_ip","typeLabel":"string"},"region":{"type":"string","description":"Code of the region the Machine runs in, such as `iad`.","uniqueKey":"region","typeLabel":"string"},"state":{"type":"string","description":"Current state of the Machine, taken from the status of its most recent event. One of\n`created`, `starting`, `started`, `stopping`, `stopped`, `suspending`, `suspended`,\n`replacing`, `replaced`, `destroying`, `destroyed`, `failed`, `migrating`, `migrated`,\n`archived`, or `pending`. See https://fly.io/docs/machines/machine-states/.","uniqueKey":"state","typeLabel":"string"},"updated_at":{"type":"string","description":"Time of the Machine's most recent event, truncated to whole seconds. The zero time\n(0001-01-01T00:00:00Z) if the host could not be reached. With `summary=true`, the time\nFly.io last recorded a change to the Machine.","uniqueKey":"updated_at","typeLabel":"string"},"version":{"type":"string","description":"Unique ID of this version of the Machine. Every update creates a new version. Pass it\nas `current_version` when updating the Machine to reject the update if the Machine has\nchanged since this version.","uniqueKey":"version","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"checks":[{"name":"\u003cstring>","output":"\u003cstring>","status":"passing","updated_at":"\u003cstring>"}],"config":{"auto_destroy":true,"cache_drive":{"size_mb":123},"checks":{},"containers":[{"cmd":["\u003cstring>"],"depends_on":[{"condition":"\u003cunknown>","name":"\u003cstring>"}],"entrypoint":["\u003cstring>"],"env":{},"env_from":[{"env_var":"\u003cstring>","field_ref":"id"}],"exec":["\u003cstring>"],"files":[{"guest_path":"\u003cstring>","image_config":"\u003cstring>","mode":123,"raw_value":"\u003cstring>","secret_name":"\u003cstring>"}],"healthchecks":[{"exec":{"command":["\u003cstring>"]},"failure_threshold":123,"grace_period":123,"http":{"headers":[{"name":"\u003cstring>","values":["\u003cstring>"]}],"method":"\u003cstring>","path":"\u003cstring>","port":123,"scheme":"\u003cunknown>","tls_server_name":"\u003cstring>","tls_skip_verify":true},"interval":123,"kind":"\u003cunknown>","name":"\u003cstring>","success_threshold":123,"tcp":{"port":123},"timeout":123,"unhealthy":"\u003cunknown>"}],"image":"\u003cstring>","name":"\u003cstring>","restart":{"max_retries":123,"policy":"no"},"secrets":[{"env_var":"\u003cstring>","name":"\u003cstring>"}],"stop":{"signal":"SIGHUP","timeout":"10s"},"user":"\u003cstring>"}],"disable_machine_autostart":true,"dns":{"dns_forward_rules":[{"addr":"\u003cstring>","basename":"\u003cstring>"}],"hostname":"\u003cstring>","hostname_fqdn":"\u003cstring>","nameservers":["\u003cstring>"],"options":[{"name":"\u003cstring>","value":"\u003cstring>"}],"searches":["\u003cstring>"],"skip_registration":true},"env":{},"files":[{"guest_path":"\u003cstring>","image_config":"\u003cstring>","mode":123,"raw_value":"\u003cstring>","secret_name":"\u003cstring>"}],"guest":{"cpu_kind":"\u003cstring>","cpus":123,"gpu_kind":"\u003cstring>","gpus":123,"host_dedication_id":"\u003cstring>","kernel_args":["\u003cstring>"],"max_memory_mb":123,"memory_mb":123,"persist_rootfs":"never","required_host_features":["\u003cstring>"]},"image":"\u003cstring>","init":{"cmd":["\u003cstring>"],"entrypoint":["\u003cstring>"],"exec":["\u003cstring>"],"kernel_args":["\u003cstring>"],"swap_size_mb":123,"tty":true},"metadata":{},"metrics":{"https":true,"path":"\u003cstring>","port":123},"mounts":[{"add_size_gb":123,"add_size_percent":123,"encrypted":true,"extend_threshold_percent":123,"min_add_size_gb":123,"name":"\u003cstring>","path":"\u003cstring>","size_gb":123,"size_gb_limit":123,"volume":"\u003cstring>"}],"processes":[{"cmd":["\u003cstring>"],"entrypoint":["\u003cstring>"],"env":{},"env_from":[{"env_var":"\u003cstring>","field_ref":"id"}],"exec":["\u003cstring>"],"ignore_app_secrets":true,"secrets":[{"env_var":"\u003cstring>","name":"\u003cstring>"}],"user":"\u003cstring>"}],"restart":{"max_retries":123,"policy":"no"},"rootfs":{"persist":"never","size_gb":123},"schedule":"\u003cstring>","services":[{"autostart":true,"autostop":"off","checks":[{"grace_period":"1s","headers":[{"name":"\u003cstring>","values":["\u003cstring>"]}],"interval":"15s","method":"\u003cstring>","path":"\u003cstring>","port":123,"protocol":"\u003cstring>","timeout":"2s","tls_server_name":"\u003cstring>","tls_skip_verify":true,"type":"\u003cstring>"}],"concurrency":{"hard_limit":123,"soft_limit":123,"type":"\u003cstring>"},"force_instance_description":"\u003cstring>","force_instance_key":"\u003cstring>","internal_port":123,"min_machines_running":123,"ports":[{"end_port":123,"force_https":true,"handlers":["\u003cstring>"],"http_options":{"compress":true,"h2_backend":true,"headers_read_timeout":123,"idle_timeout":123,"replay_cache":[{"allow_bypass":true,"name":"\u003cstring>","path_prefix":"\u003cstring>","ttl_seconds":123,"type":"cookie"}],"response":{"headers":{},"pristine":true}},"port":123,"proxy_proto_options":{"fly_src":true,"version":"\u003cstring>"},"start_port":123,"tls_options":{"alpn":["\u003cstring>"],"default_self_signed":true,"versions":["\u003cstring>"]}}],"protocol":"\u003cstring>"}],"size":"\u003cstring>","spot":{"max_price_fraction":123},"standbys":["\u003cstring>"],"statics":[{"guest_path":"\u003cstring>","url_prefix":"\u003cstring>","index_document":"\u003cstring>","tigris_bucket":"\u003cstring>"}],"stop_config":{"signal":"SIGHUP","timeout":"10s"}},"cordoned":true,"created_at":"\u003cstring>","events":[{"id":"\u003cstring>","request":{},"source":"\u003cstring>","status":"\u003cstring>","timestamp":123,"type":"\u003cstring>"}],"host_features":["\u003cstring>"],"host_status":"ok","id":"\u003cstring>","image_ref":{"digest":"\u003cstring>","labels":{},"registry":"\u003cstring>","repository":"\u003cstring>","tag":"\u003cstring>"},"incomplete_config":{"auto_destroy":true,"cache_drive":{"size_mb":123},"checks":{},"containers":[{"cmd":["\u003cstring>"],"depends_on":[{"condition":"\u003cunknown>","name":"\u003cstring>"}],"entrypoint":["\u003cstring>"],"env":{},"env_from":[{"env_var":"\u003cstring>","field_ref":"id"}],"exec":["\u003cstring>"],"files":[{"guest_path":"\u003cstring>","image_config":"\u003cstring>","mode":123,"raw_value":"\u003cstring>","secret_name":"\u003cstring>"}],"healthchecks":[{"exec":{"command":["\u003cstring>"]},"failure_threshold":123,"grace_period":123,"http":{"headers":[{"name":"\u003cstring>","values":["\u003cstring>"]}],"method":"\u003cstring>","path":"\u003cstring>","port":123,"scheme":"\u003cunknown>","tls_server_name":"\u003cstring>","tls_skip_verify":true},"interval":123,"kind":"\u003cunknown>","name":"\u003cstring>","success_threshold":123,"tcp":{"port":123},"timeout":123,"unhealthy":"\u003cunknown>"}],"image":"\u003cstring>","name":"\u003cstring>","restart":{"max_retries":123,"policy":"no"},"secrets":[{"env_var":"\u003cstring>","name":"\u003cstring>"}],"stop":{"signal":"SIGHUP","timeout":"10s"},"user":"\u003cstring>"}],"disable_machine_autostart":true,"dns":{"dns_forward_rules":[{"addr":"\u003cstring>","basename":"\u003cstring>"}],"hostname":"\u003cstring>","hostname_fqdn":"\u003cstring>","nameservers":["\u003cstring>"],"options":[{"name":"\u003cstring>","value":"\u003cstring>"}],"searches":["\u003cstring>"],"skip_registration":true},"env":{},"files":[{"guest_path":"\u003cstring>","image_config":"\u003cstring>","mode":123,"raw_value":"\u003cstring>","secret_name":"\u003cstring>"}],"guest":{"cpu_kind":"\u003cstring>","cpus":123,"gpu_kind":"\u003cstring>","gpus":123,"host_dedication_id":"\u003cstring>","kernel_args":["\u003cstring>"],"max_memory_mb":123,"memory_mb":123,"persist_rootfs":"never","required_host_features":["\u003cstring>"]},"image":"\u003cstring>","init":{"cmd":["\u003cstring>"],"entrypoint":["\u003cstring>"],"exec":["\u003cstring>"],"kernel_args":["\u003cstring>"],"swap_size_mb":123,"tty":true},"metadata":{},"metrics":{"https":true,"path":"\u003cstring>","port":123},"mounts":[{"add_size_gb":123,"add_size_percent":123,"encrypted":true,"extend_threshold_percent":123,"min_add_size_gb":123,"name":"\u003cstring>","path":"\u003cstring>","size_gb":123,"size_gb_limit":123,"volume":"\u003cstring>"}],"processes":[{"cmd":["\u003cstring>"],"entrypoint":["\u003cstring>"],"env":{},"env_from":[{"env_var":"\u003cstring>","field_ref":"id"}],"exec":["\u003cstring>"],"ignore_app_secrets":true,"secrets":[{"env_var":"\u003cstring>","name":"\u003cstring>"}],"user":"\u003cstring>"}],"restart":{"max_retries":123,"policy":"no"},"rootfs":{"persist":"never","size_gb":123},"schedule":"\u003cstring>","services":[{"autostart":true,"autostop":"off","checks":[{"grace_period":"1s","headers":[{"name":"\u003cstring>","values":["\u003cstring>"]}],"interval":"15s","method":"\u003cstring>","path":"\u003cstring>","port":123,"protocol":"\u003cstring>","timeout":"2s","tls_server_name":"\u003cstring>","tls_skip_verify":true,"type":"\u003cstring>"}],"concurrency":{"hard_limit":123,"soft_limit":123,"type":"\u003cstring>"},"force_instance_description":"\u003cstring>","force_instance_key":"\u003cstring>","internal_port":123,"min_machines_running":123,"ports":[{"end_port":123,"force_https":true,"handlers":["\u003cstring>"],"http_options":{"compress":true,"h2_backend":true,"headers_read_timeout":123,"idle_timeout":123,"replay_cache":[{"allow_bypass":true,"name":"\u003cstring>","path_prefix":"\u003cstring>","ttl_seconds":123,"type":"cookie"}],"response":{"headers":{},"pristine":true}},"port":123,"proxy_proto_options":{"fly_src":true,"version":"\u003cstring>"},"start_port":123,"tls_options":{"alpn":["\u003cstring>"],"default_self_signed":true,"versions":["\u003cstring>"]}}],"protocol":"\u003cstring>"}],"size":"\u003cstring>","spot":{"max_price_fraction":123},"standbys":["\u003cstring>"],"statics":[{"guest_path":"\u003cstring>","url_prefix":"\u003cstring>","index_document":"\u003cstring>","tigris_bucket":"\u003cstring>"}],"stop_config":{"signal":"SIGHUP","timeout":"10s"}},"instance_id":"\u003cstring>","lease":{"description":"\u003cstring>","expires_at":123,"owner":"\u003cstring>"},"name":"\u003cstring>","nonce":"\u003cstring>","private_ip":"\u003cstring>","region":"\u003cstring>","state":"\u003cstring>","updated_at":"\u003cstring>","version":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"60a6557f-a501-4d66-85f6-3acee7846e5a":{"FlyBearerAuth":{"type":"http","scheme":"bearer","description":"A Fly API token with access to the requested organization or resource. Send it as `Authorization: Bearer \u003cFly API token>`.","scopes":[],"schemeName":"FlyBearerAuth"}}},"servers":{"75e76283-7c3e-4c83-a680-9c56126d5a9f":{"url":"https://api.machines.dev"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"A Fly API token with access to the requested organization or resource. Send it as `Authorization: Bearer \u003cFly API token>`.","scopes":[],"schemeName":"FlyBearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A Fly API token with access to the requested organization or resource. Send it as `Authorization: Bearer \u003cFly API token>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"FlyBearerAuth","name":"Authorization"}],"title":"FlyBearerAuth"}]},"originalFileLocation":"api/machines/openapi.json"},"subdomain":"fly-io","siteName":"Fly.io","title":"Create Machine - Fly.io","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-10T20:52:57.019Z","originalFileLocation":"api/machines/machines/create-machine.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a Machine within a specific app using the details provided in the request body. Important: This request can fail, and you’re responsible for handling that failure. If you ask for a large Machine, or a Machine in a region we happen to be at capacity for, you might need to retry the request, or to fall back to another region. If you’re working directly with the Machines API, you’re taking some responsibility for your own orchestration!\">\u003cmeta data-mint-head name=\"application-name\" content=\"Fly.io\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fly-io/pksrSrIEk6ICJvMM/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/fly-io/pksrSrIEk6ICJvMM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fly-io/pksrSrIEk6ICJvMM/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/fly-io/pksrSrIEk6ICJvMM/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/fly-io/pksrSrIEk6ICJvMM/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fly-io/pksrSrIEk6ICJvMM/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fly-io/pksrSrIEk6ICJvMM/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/fly-io/pksrSrIEk6ICJvMM/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/fly-io/pksrSrIEk6ICJvMM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Machine - Fly.io\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a Machine within a specific app using the details provided in the request body. Important: This request can fail, and you’re responsible for handling that failure. If you ask for a large Machine, or a Machine in a region we happen to be at capacity for, you might need to retry the request, or to fall back to another region. If you’re working directly with the Machines API, you’re taking some responsibility for your own orchestration!\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Fly.io\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.fly.io/api/machines/machines/create-machine\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://fly-io.mintlify.site/_mintlify/api/og/v2?division=Machines\u0026amp;title=Create+Machine\u0026amp;description=Create+a+Machine+within+a+specific+app+using+the+details+provided+in+the+request+body.%0A%0A**Important**%3A+This+request+can+fail%2C+and+you%E2%80%99re+responsible+for+handlin\u0026amp;theme=330e095e1cdff8ad27970bff\u0026amp;signature=5e22ebbe50b0749a8ac18b4cfd3a08d0d201a522374d41816d5c77f3249bed0c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Machine - Fly.io\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a Machine within a specific app using the details provided in the request body. Important: This request can fail, and you’re responsible for handling that failure. If you ask for a large Machine, or a Machine in a region we happen to be at capacity for, you might need to retry the request, or to fall back to another region. If you’re working directly with the Machines API, you’re taking some responsibility for your own orchestration!\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fly-io.mintlify.site/_mintlify/api/og/v2?division=Machines\u0026amp;title=Create+Machine\u0026amp;description=Create+a+Machine+within+a+specific+app+using+the+details+provided+in+the+request+body.%0A%0A**Important**%3A+This+request+can+fail%2C+and+you%E2%80%99re+responsible+for+handlin\u0026amp;theme=330e095e1cdff8ad27970bff\u0026amp;signature=5e22ebbe50b0749a8ac18b4cfd3a08d0d201a522374d41816d5c77f3249bed0c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/fly-io/pksrSrIEk6ICJvMM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Fly.io\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7C3BED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.fly.io/api/machines/machines/create-machine\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/machines/machines/create-machine.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.fly.io/#organization\",\"name\":\"Fly.io\",\"url\":\"https://docs.fly.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/fly-io/izaS1l2UMuz6sm1H/images/logo/light.svg?fit=max\u0026auto=format\u0026n=izaS1l2UMuz6sm1H\u0026q=85\u0026s=5f1256e06beb6fdd5ed68aad3dd32b39\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.fly.io#website\",\"name\":\"Fly.io\",\"url\":\"https://docs.fly.io\",\"publisher\":{\"@id\":\"https://docs.fly.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.fly.io/api/machines/machines/create-machine#webpage\",\"url\":\"https://docs.fly.io/api/machines/machines/create-machine\",\"name\":\"Create Machine\",\"description\":\"Create a Machine within a specific app using the details provided in the request body. Important: This request can fail, and you’re responsible for handling that failure. If you ask for a large Machine, or a Machine in a region we happen to be at capacity for, you might need to retry the request, or to fall back to another region. If you’re working directly with the Machines API, you’re taking some responsibility for your own orchestration!\",\"dateModified\":\"2026-11-10T20:52:57.019Z\",\"isPartOf\":{\"@id\":\"https://docs.fly.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.fly.io/api/machines/machines/create-machine#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.fly.io/api/machines/machines/create-machine#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Machines API\",\"item\":\"https://docs.fly.io/api/machines\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Machines\",\"item\":\"https://docs.fly.io/api/machines/machines/list-machines\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create Machine\",\"item\":\"https://docs.fly.io/api/machines/machines/create-machine\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.fly.io/api/machines/machines/create-machine#apireference\",\"headline\":\"Create Machine\",\"name\":\"Create Machine\",\"description\":\"Create a Machine within a specific app using the details provided in the request body. Important: This request can fail, and you’re responsible for handling that failure. If you ask for a large Machine, or a Machine in a region we happen to be at capacity for, you might need to retry the request, or to fall back to another region. If you’re working directly with the Machines API, you’re taking some responsibility for your own orchestration!\",\"url\":\"https://docs.fly.io/api/machines/machines/create-machine\",\"mainEntityOfPage\":{\"@id\":\"https://docs.fly.io/api/machines/machines/create-machine#webpage\"},\"dateModified\":\"2026-11-10T20:52:57.019Z\",\"publisher\":{\"@id\":\"https://docs.fly.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.fly.io#website\"}}]}\u003c/script>","agentPointerHref":"/api/machines/machines/create-machine.md","siteName":"Fly.io","nav":{"global":null,"tabs":[{"tab":"Fly docs","pages":[{"title":"Fly docs","href":"/getting-started"}]},{"tab":"Machines API","pages":[{"group":"Machines API","pages":[{"title":"Machines API overview","sidebarTitle":"Overview","icon":"book-open","href":"/api/machines"},{"group":"Apps","icon":"grid-2","pages":[{"title":"List Apps","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps","href":"/api/machines/apps/list-apps"},{"title":"Create App","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps","href":"/api/machines/apps/create-app"},{"title":"Get App","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}","href":"/api/machines/apps/get-app"},{"title":"Destroy App","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/apps/{app_name}","href":"/api/machines/apps/destroy-app"},{"title":"Create App deploy token","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/deploy_token","href":"/api/machines/apps/create-app-deploy-token"},{"title":"List IP assignments for app","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/ip_assignments","href":"/api/machines/apps/list-ip-assignments-for-app"},{"title":"Assign new IP address to app","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/ip_assignments","href":"/api/machines/apps/assign-new-ip-address-to-app"},{"title":"Remove IP assignment from app","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/apps/{app_name}/ip_assignments/{ip}","href":"/api/machines/apps/remove-ip-assignment-from-app"}]},{"group":"Machines","icon":"server","pages":[{"title":"List Machines","description":"List all Machines associated with a specific app, with optional filters for including deleted Machines and filtering by region.\n","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/machines","href":"/api/machines/machines/list-machines"},{"title":"Create Machine","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/machines","href":"/api/machines/machines/create-machine"},{"title":"Get Machine","description":"Get details of a specific Machine within an app by the Machine ID.\n","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/machines/{machine_id}","href":"/api/machines/machines/get-machine"},{"title":"Update Machine","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/machines/{machine_id}","href":"/api/machines/machines/update-machine"},{"title":"Destroy Machine","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/apps/{app_name}/machines/{machine_id}","href":"/api/machines/machines/destroy-machine"},{"title":"Cordon Machine","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/machines/{machine_id}/cordon","href":"/api/machines/machines/cordon-machine"},{"title":"List Events","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/machines/{machine_id}/events","href":"/api/machines/machines/list-events"},{"title":"Execute Command","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/machines/{machine_id}/exec","href":"/api/machines/machines/execute-command"},{"title":"Get Lease","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/machines/{machine_id}/lease","href":"/api/machines/machines/get-lease"},{"title":"Create Lease","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/machines/{machine_id}/lease","href":"/api/machines/machines/create-lease"},{"title":"Release Lease","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/apps/{app_name}/machines/{machine_id}/lease","href":"/api/machines/machines/release-lease"},{"title":"Get Machine Memory","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/machines/{machine_id}/memory","href":"/api/machines/machines/get-machine-memory"},{"title":"Set Machine Memory Limit","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json put /v1/apps/{app_name}/machines/{machine_id}/memory","href":"/api/machines/machines/set-machine-memory-limit"},{"title":"Reclaim Machine Memory","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/machines/{machine_id}/memory/reclaim","href":"/api/machines/machines/reclaim-machine-memory"},{"title":"Get Metadata","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/machines/{machine_id}/metadata","href":"/api/machines/machines/get-metadata"},{"title":"Update Metadata (deprecated PUT alias of PATCH)","deprecated":true,"version":null,"openapi":"/api/machines/openapi.json put /v1/apps/{app_name}/machines/{machine_id}/metadata","href":"/api/machines/machines/update-metadata-deprecated-put-alias-of-patch"},{"title":"Update Metadata (set/remove multiple keys)","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json patch /v1/apps/{app_name}/machines/{machine_id}/metadata","href":"/api/machines/machines/update-metadata-setremove-multiple-keys"},{"title":"Get Metadata Value","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/machines/{machine_id}/metadata/{key}","href":"/api/machines/machines/get-metadata-value"},{"title":"Upsert Metadata Key","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/machines/{machine_id}/metadata/{key}","href":"/api/machines/machines/upsert-metadata-key"},{"title":"Delete Metadata","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/apps/{app_name}/machines/{machine_id}/metadata/{key}","href":"/api/machines/machines/delete-metadata"},{"title":"List Processes","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/machines/{machine_id}/ps","href":"/api/machines/machines/list-processes"},{"title":"Restart Machine","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/machines/{machine_id}/restart","href":"/api/machines/machines/restart-machine"},{"title":"Signal Machine","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/machines/{machine_id}/signal","href":"/api/machines/machines/signal-machine"},{"title":"Start Machine","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/machines/{machine_id}/start","href":"/api/machines/machines/start-machine"},{"title":"Stop Machine","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/machines/{machine_id}/stop","href":"/api/machines/machines/stop-machine"},{"title":"Suspend Machine","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/machines/{machine_id}/suspend","href":"/api/machines/machines/suspend-machine"},{"title":"Uncordon Machine","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/machines/{machine_id}/uncordon","href":"/api/machines/machines/uncordon-machine"},{"title":"List Versions","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/machines/{machine_id}/versions","href":"/api/machines/machines/list-versions"},{"title":"Wait for State","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/machines/{machine_id}/wait","href":"/api/machines/machines/wait-for-state"}]},{"group":"Volumes","icon":"hard-drive","pages":[{"title":"List Volumes","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/volumes","href":"/api/machines/volumes/list-volumes"},{"title":"Create Volume","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/volumes","href":"/api/machines/volumes/create-volume"},{"title":"Get Volume","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/volumes/{volume_id}","href":"/api/machines/volumes/get-volume"},{"title":"Update Volume","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json put /v1/apps/{app_name}/volumes/{volume_id}","href":"/api/machines/volumes/update-volume"},{"title":"Destroy Volume","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/apps/{app_name}/volumes/{volume_id}","href":"/api/machines/volumes/destroy-volume"},{"title":"Extend Volume","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json put /v1/apps/{app_name}/volumes/{volume_id}/extend","href":"/api/machines/volumes/extend-volume"},{"title":"List Snapshots","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/volumes/{volume_id}/snapshots","href":"/api/machines/volumes/list-snapshots"},{"title":"Create Snapshot","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/volumes/{volume_id}/snapshots","href":"/api/machines/volumes/create-snapshot"}]},{"group":"Postgres Clusters","icon":"database","pages":[{"title":"List Postgres Clusters","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/postgres","href":"/api/machines/postgres-clusters/list-postgres-clusters"},{"title":"Create Postgres Cluster","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/postgres","href":"/api/machines/postgres-clusters/create-postgres-cluster"},{"title":"List Postgres Plans","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/postgres/plans","href":"/api/machines/postgres-clusters/list-postgres-plans"},{"title":"Get Postgres Cluster","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/postgres/{postgres_cluster_id}","href":"/api/machines/postgres-clusters/get-postgres-cluster"},{"title":"Delete Postgres Cluster","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/postgres/{postgres_cluster_id}","href":"/api/machines/postgres-clusters/delete-postgres-cluster"},{"title":"Attach Cluster to App","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/postgres/{postgres_cluster_id}/attachments","href":"/api/machines/postgres-clusters/attach-cluster-to-app"},{"title":"Detach Cluster from App","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/postgres/{postgres_cluster_id}/attachments/{app_name}","href":"/api/machines/postgres-clusters/detach-cluster-from-app"},{"title":"List Backups","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/postgres/{postgres_cluster_id}/backups","href":"/api/machines/postgres-clusters/list-backups"},{"title":"Create Backup","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/postgres/{postgres_cluster_id}/backups","href":"/api/machines/postgres-clusters/create-backup"},{"title":"List Databases","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/postgres/{postgres_cluster_id}/databases","href":"/api/machines/postgres-clusters/list-databases"},{"title":"Create Database","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/postgres/{postgres_cluster_id}/databases","href":"/api/machines/postgres-clusters/create-database"},{"title":"Drop Database","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/postgres/{postgres_cluster_id}/databases/{database_name}","href":"/api/machines/postgres-clusters/drop-database"},{"title":"List Extensions","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions","href":"/api/machines/postgres-clusters/list-extensions"},{"title":"Enable Extension","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions","href":"/api/machines/postgres-clusters/enable-extension"},{"title":"Disable Extension","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions/{extension_name}","href":"/api/machines/postgres-clusters/disable-extension"},{"title":"Query Database","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/postgres/{postgres_cluster_id}/databases/{database_name}/query","href":"/api/machines/postgres-clusters/query-database"},{"title":"Fork Cluster to New Cluster","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/postgres/{postgres_cluster_id}/fork","href":"/api/machines/postgres-clusters/fork-cluster-to-new-cluster"},{"title":"List Active Queries","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/postgres/{postgres_cluster_id}/queries/active","href":"/api/machines/postgres-clusters/list-active-queries"},{"title":"List Slow Queries","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/postgres/{postgres_cluster_id}/queries/slow","href":"/api/machines/postgres-clusters/list-slow-queries"},{"title":"Restore Backup or Point in Time to New Cluster","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/postgres/{postgres_cluster_id}/restore","href":"/api/machines/postgres-clusters/restore-backup-or-point-in-time-to-new-cluster"},{"title":"List Users","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/postgres/{postgres_cluster_id}/users","href":"/api/machines/postgres-clusters/list-users"},{"title":"Create User","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/postgres/{postgres_cluster_id}/users","href":"/api/machines/postgres-clusters/create-user"},{"title":"Delete User","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/postgres/{postgres_cluster_id}/users/{username}","href":"/api/machines/postgres-clusters/delete-user"},{"title":"Update User Role","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json patch /v1/postgres/{postgres_cluster_id}/users/{username}","href":"/api/machines/postgres-clusters/update-user-role"},{"title":"Get User Credentials","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/postgres/{postgres_cluster_id}/users/{username}/credentials","href":"/api/machines/postgres-clusters/get-user-credentials"},{"title":"Rotate User Password","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/postgres/{postgres_cluster_id}/users/{username}/rotate_password","href":"/api/machines/postgres-clusters/rotate-user-password"}]},{"group":"Secrets","icon":"lock","pages":[{"title":"List secret keys belonging to an app","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/secretkeys","href":"/api/machines/secrets/list-secret-keys-belonging-to-an-app"},{"title":"Get an app's secret key","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/secretkeys/{secret_name}","href":"/api/machines/secrets/get-an-apps-secret-key"},{"title":"Create or update a secret key","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/secretkeys/{secret_name}","href":"/api/machines/secrets/create-or-update-a-secret-key"},{"title":"Delete an app's secret key","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/apps/{app_name}/secretkeys/{secret_name}","href":"/api/machines/secrets/delete-an-apps-secret-key"},{"title":"Decrypt with a secret key","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/secretkeys/{secret_name}/decrypt","href":"/api/machines/secrets/decrypt-with-a-secret-key"},{"title":"Encrypt with a secret key","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/secretkeys/{secret_name}/encrypt","href":"/api/machines/secrets/encrypt-with-a-secret-key"},{"title":"Generate a random secret key","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/secretkeys/{secret_name}/generate","href":"/api/machines/secrets/generate-a-random-secret-key"},{"title":"Sign with a secret key","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/secretkeys/{secret_name}/sign","href":"/api/machines/secrets/sign-with-a-secret-key"},{"title":"Verify with a secret key","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/secretkeys/{secret_name}/verify","href":"/api/machines/secrets/verify-with-a-secret-key"},{"title":"List app secrets belonging to an app","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/secrets","href":"/api/machines/secrets/list-app-secrets-belonging-to-an-app"},{"title":"Update app secrets belonging to an app","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/secrets","href":"/api/machines/secrets/update-app-secrets-belonging-to-an-app"},{"title":"Get an app secret","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/secrets/{secret_name}","href":"/api/machines/secrets/get-an-app-secret"},{"title":"Create or update Secret","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/secrets/{secret_name}","href":"/api/machines/secrets/create-or-update-secret"},{"title":"Delete an app secret","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/apps/{app_name}/secrets/{secret_name}","href":"/api/machines/secrets/delete-an-app-secret"}]},{"group":"TLS Certificates","icon":"shield-check","pages":[{"title":"List certificates for app","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/certificates","href":"/api/machines/tls-certificates/list-certificates-for-app"},{"title":"Request ACME certificate","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/certificates/acme","href":"/api/machines/tls-certificates/request-acme-certificate"},{"title":"Upload custom certificate","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/certificates/custom","href":"/api/machines/tls-certificates/upload-custom-certificate"},{"title":"Get certificate details","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/apps/{app_name}/certificates/{hostname}","href":"/api/machines/tls-certificates/get-certificate-details"},{"title":"Remove certificate","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/apps/{app_name}/certificates/{hostname}","href":"/api/machines/tls-certificates/remove-certificate"},{"title":"Remove ACME certificates","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/apps/{app_name}/certificates/{hostname}/acme","href":"/api/machines/tls-certificates/remove-acme-certificates"},{"title":"Check DNS and re-validate certificate","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/apps/{app_name}/certificates/{hostname}/check","href":"/api/machines/tls-certificates/check-dns-and-re-validate-certificate"},{"title":"Remove custom certificate","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json delete /v1/apps/{app_name}/certificates/{hostname}/custom","href":"/api/machines/tls-certificates/remove-custom-certificate"}]},{"group":"Tokens","icon":"key","pages":[{"title":"Authenticate token header","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/tokens/authenticate","href":"/api/machines/tokens/authenticate-token-header"},{"title":"Authorize token for resource access","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/tokens/authorize","href":"/api/machines/tokens/authorize-token-for-resource-access"},{"title":"Get Current Token Information","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/tokens/current","href":"/api/machines/tokens/get-current-token-information"},{"title":"Request a Petsem token for accessing KMS","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/tokens/kms","href":"/api/machines/tokens/request-a-petsem-token-for-accessing-kms"},{"title":"Request an OIDC token","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/tokens/oidc","href":"/api/machines/tokens/request-an-oidc-token"}]},{"group":"Organizations","icon":"building","pages":[{"title":"List All Machines","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/orgs/{org_slug}/machines","href":"/api/machines/organizations/list-all-machines"},{"title":"List All Volumes","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/orgs/{org_slug}/volumes","href":"/api/machines/organizations/list-all-volumes"}]},{"group":"Platform","icon":"globe","pages":[{"title":"Get Placements","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json post /v1/platform/placements","href":"/api/machines/platform/get-placements"},{"title":"Get Regions","deprecated":null,"version":null,"openapi":"/api/machines/openapi.json get /v1/platform/regions","href":"/api/machines/platform/get-regions"}]},{"title":"Models","icon":"boxes","href":"/api/machines/models"}]}]},{"tab":"Sprite docs","pages":[{"title":"Sprite docs","href":"/sprites"}]},{"tab":"Sprites API","pages":[{"title":"Sprites API","href":"/sprites/api/connectors/list-connectors"}]}]},"basePath":"","title":"Create Machine - Fly.io","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-C9Wu0MeN.js","utils-jWgu-6Qf.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DBD8f9qn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BGuX1ui5.js","snippetPresets-Evy63nQB.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-D6S0Yh6q.js","ApiExamples-BQHO1lnV.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-B6C8m-t_.js","shallow-BG4cT0fH.js","getApiPlaygroundDisplay-CgEPrE-D.js","CodeSnippet-CU8JyZ9N.js","CodeSnippets-BnxHU32T.js","getPastedJson-CwiYOonh.js","icon-DYDpWmDf.js","MethodPill-C-J-l7_c.js","DuplicateIcon-B6ARwg9w.js","createIcon-Dsv4MtDq.js","DynamicMarkdown-CtasenyM.js","SectionHeading-YNcgYwjB.js","axios-vUo_bRtp.js","Markdown-CwLx6PAg.js","clsx-C3kuh_dz.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CmKHfscc.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-U3mI6Ljh.js"]}