fly-io · Schema

MachineConfig

Configuration for a Fly Machine.

Properties

Name Type Description
image string The container registry path for the image that defines this Machine.
guest object
env object Environment variables to inject into the Machine at runtime.
services array Network service definitions for exposing this Machine externally.
checks object Named health check definitions. Keys are check names; values are check configuration objects.
mounts array Persistent volume mount definitions.
init object
restart object
schedule string Run this Machine on a recurring schedule. Valid values are hourly, daily, weekly, and monthly.
auto_destroy boolean When true, the Machine is automatically destroyed after it exits.
metadata object Arbitrary key-value metadata for internal routing and configuration.
View JSON Schema on GitHub

JSON Schema

fly-io-machineconfig-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/MachineConfig",
  "title": "MachineConfig",
  "type": "object",
  "description": "Configuration for a Fly Machine.",
  "required": [
    "image"
  ],
  "properties": {
    "image": {
      "type": "string",
      "description": "The container registry path for the image that defines this Machine.",
      "example": "registry-1.docker.io/library/ubuntu:latest"
    },
    "guest": {
      "$ref": "#/components/schemas/MachineGuest"
    },
    "env": {
      "type": "object",
      "description": "Environment variables to inject into the Machine at runtime.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "services": {
      "type": "array",
      "description": "Network service definitions for exposing this Machine externally.",
      "items": {
        "$ref": "#/components/schemas/MachineService"
      }
    },
    "checks": {
      "type": "object",
      "description": "Named health check definitions. Keys are check names; values are check configuration objects.",
      "additionalProperties": {
        "$ref": "#/components/schemas/MachineCheck"
      }
    },
    "mounts": {
      "type": "array",
      "description": "Persistent volume mount definitions.",
      "items": {
        "$ref": "#/components/schemas/MachineMount"
      }
    },
    "init": {
      "$ref": "#/components/schemas/MachineInit"
    },
    "restart": {
      "$ref": "#/components/schemas/MachineRestart"
    },
    "schedule": {
      "type": "string",
      "description": "Run this Machine on a recurring schedule. Valid values are hourly, daily, weekly, and monthly.",
      "enum": [
        "hourly",
        "daily",
        "weekly",
        "monthly"
      ]
    },
    "auto_destroy": {
      "type": "boolean",
      "description": "When true, the Machine is automatically destroyed after it exits."
    },
    "metadata": {
      "type": "object",
      "description": "Arbitrary key-value metadata for internal routing and configuration.",
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/fly-io-machineconfig"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.