---
title: "List Run Resources"
method: POST
path: "/workspaces/{workspaceId}/runs/{runId}/resources/search"
tags: ["Workspaces"]
---

# List Run Resources

`POST /workspaces/{workspaceId}/runs/{runId}/resources/search`

Lists Resources Affected by a Run

## Query parameters

- `page` integer
- `pageSize` integer

## Request body

- ListRunResourcesRequest
  - `projection` string[] — Fields to include in the response
  - `searchValue` string — Value to search for across searchable fields
  - `mode` 'table' | 'graph' | 'summary' | 'costPolicy', required — The mode to display the resources in
  - `filters` object — Filters for resources
    - `action` ResourceActionEnum[] — Filter by Resource Action
    - `hasDiagnostics` boolean — Filter Resources that have Diagnostics
    - `taskType` TaskTypeEnum[] — Filter by Task Type
    - `resourceId` string[] — Filter by Resource ID
    - `providerName` string[] — Filter by Provider Name
    - `isDrifted` boolean — Whether the resource is drifted
    - `$or` ResourceFilters — Filters for resources
      - `action` ResourceActionEnum[] — Filter by Resource Action
      - `hasDiagnostics` boolean — Filter Resources that have Diagnostics
      - `taskType` TaskTypeEnum[] — Filter by Task Type
      - `resourceId` string[] — Filter by Resource ID
      - `providerName` string[] — Filter by Provider Name
      - `isDrifted` boolean — Whether the resource is drifted
  - `sort` ResourceSortField
    - `name` SortConfig
      - `order` -1 | 1 — Sort order (-1 for descending, 1 for ascending)
    - `mode` SortConfig
      - `order` -1 | 1 — Sort order (-1 for descending, 1 for ascending)
    - `action` SortConfig
      - `order` -1 | 1 — Sort order (-1 for descending, 1 for ascending)
    - `isDrifted` SortConfig
      - `order` -1 | 1 — Sort order (-1 for descending, 1 for ascending)
    - `type` SortConfig
      - `order` -1 | 1 — Sort order (-1 for descending, 1 for ascending)
    - `taskType` SortConfig
      - `order` -1 | 1 — Sort order (-1 for descending, 1 for ascending)
    - `providerName` SortConfig
      - `order` -1 | 1 — Sort order (-1 for descending, 1 for ascending)
    - `updatedAt` SortConfig
      - `order` -1 | 1 — Sort order (-1 for descending, 1 for ascending)
    - `createdAt` SortConfig
      - `order` -1 | 1 — Sort order (-1 for descending, 1 for ascending)

## Response `200`

Run resources retrieved successfully

- union
  - object
    - `resources` Resource[], required
      - `id` string — Unique identifier
      - `accountId` string — Unique identifier of the associated account
      - `createdAt` string, date-time — Timestamp when the entity was created
      - `updatedAt` string, date-time — Timestamp when the entity was last updated
      - `taskId` string — Unique identifier of the associated task
      - `name` string — Name of the resource
      - `type` string — Type of the resource
      - `mode` 'managed' | 'data' — Mode of the resource
      - `action` 'no-op' | 'create' | 'read' | 'update' | 'delete' — The type of action performed on a resource
      - `isDrifted` boolean — Whether the resource is drifted
      - `taskType` 'post-plan' | 'post-apply' — The type of task in the workflow
      - `dataType` 'terraform' | 'k8s' | 'cloudformation' | 'arm' — The type of infrastructure data
      - `providerName` string — Name of the provider
      - `providerType` string — Type of the provider
      - `providerVersion` string — Version of the provider
  - object
    - `policyData` object, required
      - `HIGH` object[]
        - `assetType` string
        - `reason` string
        - `resource` object
      - `MEDIUM` object[]
      - `LOW` object[]
    - `costData` object[], required
    - `tagsData` object[], required

## Other responses

- `400` — Bad Request Error
- `401` — Unauthorized Error
- `403` — Insufficient permissions
- `404` — Not Found Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/firefly/apis/api-gateway.md) · [All operations](https://skmtc.net/firefly/apis/api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/firefly/api-gateway/revisions/eea119b4113f/schema)
