Skip to main content
Glama

terraform-cloud-mcp

download_state_file

Retrieve raw or JSON-formatted state file content for a specific Terraform state version using the state version ID. Supports integration with Terraform Cloud API for infrastructure management.

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/:state_version_id

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" }

Other Tools from terraform-cloud-mcp

Related Tools

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