Runners Workspaces

List Task Resources

Lists resources for a specific task within the workspace

post/runners/workspaces/{workspaceId}/tasks/{taskId}/resources/search

Path parameters

workspaceIdstring required

Unique identifier of the workspace

taskIdstring required

Unique identifier of the task

Query parameters

pageinteger
pageSizeinteger

Request body

projectionstring[]

Fields to include in the response

searchValuestring

Value to search for across searchable fields

mode'table' | 'graph' | 'summary' | 'costPolicy' required

The mode to display the resources in

Example request

{
  "filters": {
    "action": [
      "create"
    ],
    "taskType": [
      "post-plan"
    ],
    "resourceId": [
      "aws_s3_bucket.logs"
    ],
    "providerName": [
      "aws"
    ],
    "$or": {
      "action": [
        "create"
      ],
      "taskType": [
        "post-plan"
      ],
      "resourceId": [
        "aws_s3_bucket.logs"
      ],
      "providerName": [
        "aws"
      ]
    }
  }
}

Response

Task resources retrieved successfully

OR

Example response

{
  "resources": [
    {
      "id": "507f1f77bcf86cd799439011",
      "accountId": "507f1f77bcf86cd799439011",
      "taskId": "507f1f77bcf86cd799439013",
      "name": "aws_instance.example",
      "type": "aws_instance",
      "mode": "managed",
      "action": "create",
      "taskType": "post-plan",
      "dataType": "terraform",
      "providerName": "aws",
      "providerType": "aws",
      "providerVersion": "4.0.0"
    }
  ]
}

Changes