{ "opencollection": "1.0.0", "info": { "name": "HCP Terraform Modules Runs API", "version": "2.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Runs", "type": "folder" }, "items": [ { "info": { "name": "Create a Run", "type": "http" }, "http": { "method": "POST", "url": "https://app.terraform.io/api/v2/runs", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new run for a workspace." }, { "info": { "name": "Get a Run", "type": "http" }, "http": { "method": "GET", "url": "https://app.terraform.io/api/v2/runs/:run_id", "params": [ { "name": "run_id", "value": "", "type": "path" } ] }, "docs": "Retrieves details for a specific run." }, { "info": { "name": "Apply a Run", "type": "http" }, "http": { "method": "POST", "url": "https://app.terraform.io/api/v2/runs/:run_id/actions/apply", "params": [ { "name": "run_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Applies a run that is paused waiting for confirmation." }, { "info": { "name": "Discard a Run", "type": "http" }, "http": { "method": "POST", "url": "https://app.terraform.io/api/v2/runs/:run_id/actions/discard", "params": [ { "name": "run_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Discards a run that has not yet been applied." }, { "info": { "name": "Cancel a Run", "type": "http" }, "http": { "method": "POST", "url": "https://app.terraform.io/api/v2/runs/:run_id/actions/cancel", "params": [ { "name": "run_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Cancels a run that is currently in progress." }, { "info": { "name": "List Workspace Runs", "type": "http" }, "http": { "method": "GET", "url": "https://app.terraform.io/api/v2/workspaces/:workspace_id/runs", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "page[number]", "value": "", "type": "query" }, { "name": "page[size]", "value": "", "type": "query" }, { "name": "filter[status]", "value": "", "type": "query", "description": "Filter runs by status" } ] }, "docs": "Lists all runs for a given workspace." } ] } ], "bundled": true }