Skip to main content
Glama

terraform-cloud-mcp

download_state_file

Retrieve raw or JSON-formatted state file content from a specific version in Terraform Cloud using the state version ID. Streamlines access to infrastructure state details for analysis or backup.

Instructions

Download the state file content.

Retrieves the raw state file or JSON formatted state file for a specific state version.

API endpoint: Uses the hosted URLs from GET /state-versions/

Args: state_version_id: The ID of the state version (format: "sv-xxxxxxxx") json_format: Whether to download the JSON formatted state (default: False)

Returns: The raw state file content or JSON formatted state content

See: docs/tools/state_versions.md for reference documentation

Input Schema

NameRequiredDescriptionDefault
json_formatNo
state_version_idYes

Input Schema (JSON Schema)

{ "properties": { "json_format": { "default": false, "title": "Json Format", "type": "boolean" }, "state_version_id": { "title": "State Version Id", "type": "string" } }, "required": [ "state_version_id" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/severity1/terraform-cloud-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server