latestOpenAPI 3.0.32026-08-10152216352.3 KB
eea119b4113f
Workspaces
List Workspaces
Lists all Workspaces with Filtering and Sorting Options. Supports VCS Providers Integration.
post/workspaces/search
Query parameters
pageinteger
pageSizeinteger
Request body
Example request
{
"filters": {
"workspaceName": [
"production-infra"
],
"repositories": [
"org/repo-name"
],
"ciTool": [
"github-actions"
],
"status": [
"plan_success"
],
"vcsType": [
"github"
],
"poolId": [
"123e4567-e89b-12d3-a456-426614174000"
],
"$or": {
"workspaceName": [
"production-infra"
],
"repositories": [
"org/repo-name"
],
"ciTool": [
"github-actions"
],
"status": [
"plan_success"
],
"vcsType": [
"github"
],
"poolId": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
}
}Response
List of Workspaces Retrieved Successfully
Example response
[
{
"id": "507f1f77bcf86cd799439011",
"accountId": "507f1f77bcf86cd799439011",
"workspaceId": "507f1f77bcf86cd799439012",
"workspaceName": "production-infra",
"repo": "org/repo-name",
"repoUrl": "https://github.com/org/repo-name",
"vcsType": "github",
"runnerType": "github-actions",
"lastRunStatus": "plan_success",
"iacType": "terraform",
"iacTypeVersion": "1.0.11",
"backendSummary": {
"backendType": "s3",
"backendConfig": {
"bucket": "terraform-state",
"key": "prod/terraform.tfstate"
},
"iacStackId": "stack-123",
"managedResourceCount": 42
},
"labels": [
"prod",
"terraform"
],
"poolId": "123e4567-e89b-12d3-a456-426614174000",
"runsCount": 5,
"isWorkflowManaged": true,
"guardrails": [
"cost",
"security"
]
}
]