Terraform · Schema

Terraform Run

A Terraform run represents a single instance of a plan and optional apply cycle for a workspace.

Infrastructure as CodeCloud InfrastructureDevOpsOpen-SourceHashiCorp

Properties

Name Type Description
id string Unique identifier for the run
type string JSON API resource type
attributes object
relationships object
View JSON Schema on GitHub

JSON Schema

terraform-run-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/terraform/main/json-schema/terraform-run-schema.json",
  "title": "Terraform Run",
  "description": "A Terraform run represents a single instance of a plan and optional apply cycle for a workspace.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the run"
    },
    "type": {
      "type": "string",
      "const": "runs",
      "description": "JSON API resource type"
    },
    "attributes": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "fetching",
            "planning",
            "planned",
            "applying",
            "applied",
            "discarded",
            "canceled",
            "errored",
            "policy_checked",
            "policy_override",
            "force_canceled"
          ],
          "description": "Current status of the run"
        },
        "message": {
          "type": "string",
          "description": "Human-readable message explaining why the run was triggered"
        },
        "is-destroy": {
          "type": "boolean",
          "description": "When true, this run will destroy all managed resources"
        },
        "auto-apply": {
          "type": "boolean",
          "description": "When true, the run automatically applies after a successful plan"
        },
        "refresh": {
          "type": "boolean",
          "description": "Whether Terraform should refresh state before planning"
        },
        "created-at": {
          "type": "string",
          "format": "date-time",
          "description": "ISO 8601 timestamp when the run was created"
        },
        "has-changes": {
          "type": "boolean",
          "description": "Whether the plan detected any resource changes"
        },
        "resource-additions": {
          "type": "integer",
          "description": "Number of resources to be added"
        },
        "resource-changes": {
          "type": "integer",
          "description": "Number of resources to be changed"
        },
        "resource-destructions": {
          "type": "integer",
          "description": "Number of resources to be destroyed"
        }
      },
      "required": ["status"]
    },
    "relationships": {
      "type": "object",
      "properties": {
        "workspace": {
          "type": "object",
          "description": "The workspace this run belongs to"
        },
        "plan": {
          "type": "object",
          "description": "The plan associated with this run"
        },
        "apply": {
          "type": "object",
          "description": "The apply associated with this run"
        }
      }
    }
  },
  "required": ["id", "type", "attributes"]
}

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/terraform-run"
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 form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

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