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
Name | Required | Description | Default |
---|---|---|---|
json_format | No | ||
state_version_id | Yes |