get_current_state_version
Retrieve the current state version of a Terraform Cloud workspace to access input state details and download URLs for terraform operations. Use the workspace ID as input.
Instructions
Get the current state version for a workspace.
Retrieves the current state version for a workspace, which is the input state when running terraform operations.
API endpoint: GET /workspaces//current-state-version
Args: workspace_id: The ID of the workspace (format: "ws-xxxxxxxx")
Returns: The current state version including details and download URLs
See: docs/tools/state_versions.md for reference documentation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
workspace_id | Yes |