latestOpenAPI 3.0.32026-08-10152216352.3 KB
eea119b4113f
Workspaces
List Workspace Runs
Lists all Runs for a specific Workspace
post/workspaces/{workspaceId}/runs/search
Query parameters
pageinteger
pageSizeinteger
Request body
Example request
{
"filters": {
"runId": [
"run-123456"
],
"runName": [
"Deploy to Production"
],
"status": [
"plan_success"
],
"pullRequestUrl": [
"https://github.com/org/repo/pull/123"
],
"branch": [
"main"
],
"commitId": [
"abc123def456"
],
"ciTool": [
"github-actions"
],
"buildId": [
"build-789012"
],
"buildName": [
"CI Build"
],
"buildUrl": [
"https://github.com/org/repo/actions/runs/789012"
],
"vcsType": [
"github"
],
"repository": [
"org/repo"
],
"repositoryUrl": [
"https://github.com/org/repo"
],
"title": [
"Update infrastructure for new feature"
],
"$or": {
"runId": [
"run-123456"
],
"runName": [
"Deploy to Production"
],
"status": [
"plan_success"
],
"pullRequestUrl": [
"https://github.com/org/repo/pull/123"
],
"branch": [
"main"
],
"commitId": [
"abc123def456"
],
"ciTool": [
"github-actions"
],
"buildId": [
"build-789012"
],
"buildName": [
"CI Build"
],
"buildUrl": [
"https://github.com/org/repo/actions/runs/789012"
],
"vcsType": [
"github"
],
"repository": [
"org/repo"
],
"repositoryUrl": [
"https://github.com/org/repo"
],
"title": [
"Update infrastructure for new feature"
]
}
}
}Response
List of Workspace Runs Retrieved Successfully
Example response
[
{
"id": "507f1f77bcf86cd799439011",
"accountId": "507f1f77bcf86cd799439011",
"workspaceId": "507f1f77bcf86cd799439012",
"workspaceName": "production-infra",
"runId": "run-123456",
"runName": "Deploy to Production",
"status": "plan_success",
"pullRequestId": "123",
"pullRequestUrl": "https://github.com/org/repo/pull/123",
"branch": "main",
"commitId": "abc123def456",
"commitUrl": "https://github.com/org/repo/commit/abc123def456",
"runnerType": "github-actions",
"buildId": "build-789012",
"buildUrl": "https://github.com/org/repo/actions/runs/789012",
"buildName": "CI Build",
"vcsType": "github",
"repo": "org/repo",
"repoUrl": "https://github.com/org/repo",
"ownerSummary": {
"email": "john.doe@example.com",
"name": "John Doe",
"initials": "JD",
"customColor": "#00000F"
},
"title": "Update infrastructure for new feature",
"terraformVersion": "1.0.11",
"iacType": "terraform",
"backendSummary": {
"backendType": "s3"
},
"planTaskId": "507f1f77bcf86cd799439013",
"applyTaskId": "507f1f77bcf86cd799439014",
"plan": [
{
"id": "507f1f77bcf86cd799439011",
"accountId": "507f1f77bcf86cd799439011",
"status": "completed",
"resultStatus": "success",
"type": "post-plan",
"guardrailsSummary": {
"total": 10,
"passed": 8,
"failed": 2,
"violations": [
{
"id": "v1",
"severity": "high",
"message": "Resource does not have required tags"
}
]
},
"backendSummary": {
"type": "s3",
"config": {
"bucket": "terraform-state",
"key": "prod/terraform.tfstate"
},
"resources": 42
},
"changedFilesCodeSummary": {
"total": 5,
"added": 2,
"modified": 3,
"files": [
{
"path": "main.tf",
"type": "modified"
}
]
},
"vcsType": "github",
"runnerType": "github-actions"
}
],
"apply": [
{
"id": "507f1f77bcf86cd799439011",
"accountId": "507f1f77bcf86cd799439011",
"status": "completed",
"resultStatus": "success",
"type": "post-plan",
"guardrailsSummary": {
"total": 10,
"passed": 8,
"failed": 2,
"violations": [
{
"id": "v1",
"severity": "high",
"message": "Resource does not have required tags"
}
]
},
"backendSummary": {
"type": "s3",
"config": {
"bucket": "terraform-state",
"key": "prod/terraform.tfstate"
},
"resources": 42
},
"changedFilesCodeSummary": {
"total": 5,
"added": 2,
"modified": 3,
"files": [
{
"path": "main.tf",
"type": "modified"
}
]
},
"vcsType": "github",
"runnerType": "github-actions"
}
]
}
]