Terraform · JSON Structure

Terraform Workspace Structure

JSON structure documentation for the Terraform Workspace resource

Type: object Properties: 0
Infrastructure as CodeCloud InfrastructureDevOpsOpen-SourceHashiCorp

Terraform Workspace Structure is a JSON Structure definition published by Terraform.

Meta-schema:

JSON Structure

Raw ↑
{
  "title": "Terraform Workspace Structure",
  "description": "JSON structure documentation for the Terraform Workspace resource",
  "type": "object",
  "fields": [
    {
      "name": "id",
      "type": "string",
      "description": "Unique workspace identifier (format: ws-xxxxxxxxxxxxxxxxxx)"
    },
    {
      "name": "type",
      "type": "string",
      "description": "JSON API type — always 'workspaces'"
    },
    {
      "name": "attributes.name",
      "type": "string",
      "description": "Workspace name, unique within the organization",
      "required": true
    },
    {
      "name": "attributes.description",
      "type": "string",
      "description": "Optional description of what this workspace manages"
    },
    {
      "name": "attributes.auto-apply",
      "type": "boolean",
      "description": "If true, approved plans are automatically applied",
      "default": false
    },
    {
      "name": "attributes.locked",
      "type": "boolean",
      "description": "If true, workspace is locked and new runs cannot be queued"
    },
    {
      "name": "attributes.execution-mode",
      "type": "string",
      "description": "Where Terraform runs execute: remote, local, or agent",
      "enum": ["remote", "local", "agent"]
    },
    {
      "name": "attributes.terraform-version",
      "type": "string",
      "description": "Terraform CLI version used for runs (e.g., 1.7.0)"
    },
    {
      "name": "attributes.working-directory",
      "type": "string",
      "description": "Subdirectory within the connected VCS repository"
    },
    {
      "name": "attributes.created-at",
      "type": "string (ISO 8601 datetime)",
      "description": "Timestamp when workspace was created"
    },
    {
      "name": "attributes.updated-at",
      "type": "string (ISO 8601 datetime)",
      "description": "Timestamp of most recent workspace update"
    },
    {
      "name": "attributes.resource-count",
      "type": "integer",
      "description": "Number of managed infrastructure resources"
    },
    {
      "name": "relationships.organization.data.id",
      "type": "string",
      "description": "Organization name this workspace belongs to"
    },
    {
      "name": "relationships.project.data.id",
      "type": "string",
      "description": "Project ID this workspace is grouped under"
    }
  ]
}

Work with this as data

Every JSON Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure 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 Structure
curl "https://apis.io/api/v1/json-structures/terraform-workspace-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?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.