Terraform Cloud
communityHashiCorp managed platform for Terraform infrastructure-as-code with remote state, runs, and policy.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
GET
https://app.terraform.io/api/v2/organizations/{org}/workspacesList workspaces in an organization
Parameters
orgorganization name (stringrequiredpage[size]results per page (integeroptionalsearch[name]name filter (stringoptionalReturns
data[] with id, attributes.name, attributes.terraform-version, attributes.created-at, attributes.updated-at, attributes.resource-countGET
https://app.terraform.io/api/v2/runs/{run_id}Get run details
Parameters
run_idrun ID (stringrequiredReturns
data with id, attributes.status, attributes.has-changes, attributes.resource-additions, attributes.resource-changes, attributes.resource-destructionsGET
https://app.terraform.io/api/v2/workspaces/{workspace_id}/current-state-versionList state versions
Parameters
workspace_idworkspace ID (stringrequiredReturns
data with id, attributes.serial, attributes.terraform-version, attributes.resources-processed, attributes.created-at