---
title: "Get Workspace Tasks for Environment"
method: GET
path: "/workspaces/{workspaceId}/runs/{runId}/tasks/environment/{environmentName}"
tags: ["Workspaces"]
---

# Get Workspace Tasks for Environment

`GET /workspaces/{workspaceId}/runs/{runId}/tasks/environment/{environmentName}`

Gets all tasks for a specific environment in a workspace run

## Response `200`

Workspace tasks for environment retrieved successfully

- Task[] — List of tasks for a specific environment
  - `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
  - `contentKeys` object — Keys for accessing content related to subtasks
  - `status` string — Status of the task run
  - `resultStatus` string — Result status of the task
  - `type` 'post-plan' | 'post-apply' — The type of task in the workflow
  - `guardrailsSummary` object — Summary of guardrail results
    - `total` integer — Total number of guardrails
    - `passed` integer — Number of passed guardrails
    - `failed` integer — Number of failed guardrails
    - `violations` object[]
      - `id` string — Violation ID
      - `severity` 'high' | 'medium' | 'low' — Severity of the violation
      - `message` string — Violation message
    - `description` string — Summary of guardrail results
  - `backendSummary` object — Summary of backend configuration
    - `type` 's3' | 'azurerm' | 'gcs' | 'consul' — Type of backend
    - `config` object — Backend configuration
    - `resources` integer — Number of resources
    - `description` string — Summary of backend configuration
  - `changedFilesCodeSummary` object — Summary of changed code files
    - `total` integer — Total number of files
    - `added` integer — Number of added files
    - `modified` integer — Number of modified files
    - `deleted` integer — Number of deleted files
    - `files` object[]
      - `path` string — File path
      - `type` 'added' | 'modified' | 'deleted' — Type of change
    - `description` string — Summary of changed code files
  - `vcsType` 'github' | 'gitlab' | 'bitbucket' | 'codecommit' | 'azuredevops' — The type of version control system
  - `runnerType` 'github-actions' | 'gitlab-pipelines' | 'bitbucket-pipelines' | 'azure-pipelines' | 'jenkins' | 'semaphore' | 'atlantis' | 'env0' | 'firefly' | 'unrecognized' — The type of CI/CD runner or pipeline system

## 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)
