GET
/
workspaces
/
{workspace}
/
builds
curl --request GET \
  --url https://cloud.local.wirtual.dev/api/v2/workspaces/{workspace}/builds \
  --header 'Wirtual-Session-Token: <api-key>'
[
  {
    "build_number": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "daily_cost": 123,
    "deadline": "2023-11-07T05:31:56Z",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "initiator_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "initiator_name": "<string>",
    "job": {
      "canceled_at": "2023-11-07T05:31:56Z",
      "completed_at": "2023-11-07T05:31:56Z",
      "created_at": "2023-11-07T05:31:56Z",
      "error": "<string>",
      "error_code": "<any>",
      "file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "queue_position": 123,
      "queue_size": 123,
      "started_at": "2023-11-07T05:31:56Z",
      "status": "<any>",
      "tags": {},
      "worker_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    },
    "max_deadline": "2023-11-07T05:31:56Z",
    "reason": "<any>",
    "resources": [
      {
        "agents": [
          {
            "api_version": "<string>",
            "apps": [
              {
                "command": "<string>",
                "display_name": "<string>",
                "external": true,
                "health": "disabled",
                "healthcheck": {
                  "interval": 123,
                  "threshold": 123,
                  "url": "<string>"
                },
                "hidden": true,
                "icon": "<string>",
                "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                "sharing_level": "<any>",
                "slug": "<string>",
                "subdomain": true,
                "subdomain_name": "<string>",
                "url": "<string>"
              }
            ],
            "architecture": "<string>",
            "connection_timeout_seconds": 123,
            "created_at": "2023-11-07T05:31:56Z",
            "directory": "<string>",
            "disconnected_at": "2023-11-07T05:31:56Z",
            "display_apps": [
              "vscode"
            ],
            "environment_variables": {},
            "expanded_directory": "<string>",
            "first_connected_at": "2023-11-07T05:31:56Z",
            "health": {
              "healthy": false,
              "reason": "agent has lost connection"
            },
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "instance_id": "<string>",
            "last_connected_at": "2023-11-07T05:31:56Z",
            "latency": {},
            "lifecycle_state": "created",
            "log_sources": [
              {
                "created_at": "2023-11-07T05:31:56Z",
                "display_name": "<string>",
                "icon": "<string>",
                "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                "workspace_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
              }
            ],
            "logs_length": 123,
            "logs_overflowed": true,
            "name": "<string>",
            "operating_system": "<string>",
            "ready_at": "2023-11-07T05:31:56Z",
            "resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "scripts": [
              {
                "cron": "<string>",
                "display_name": "<string>",
                "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                "log_path": "<string>",
                "log_source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                "run_on_start": true,
                "run_on_stop": true,
                "script": "<string>",
                "start_blocks_login": true,
                "timeout": 123
              }
            ],
            "started_at": "2023-11-07T05:31:56Z",
            "startup_script_behavior": "<any>",
            "status": "connecting",
            "subsystems": [
              "envbox"
            ],
            "troubleshooting_url": "<string>",
            "updated_at": "2023-11-07T05:31:56Z",
            "version": "<string>"
          }
        ],
        "created_at": "2023-11-07T05:31:56Z",
        "daily_cost": 123,
        "hide": true,
        "icon": "<string>",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "metadata": [
          {
            "key": "<string>",
            "sensitive": true,
            "value": "<string>"
          }
        ],
        "name": "<string>",
        "type": "<string>",
        "workspace_transition": "<any>"
      }
    ],
    "status": "<any>",
    "template_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "template_version_name": "<string>",
    "transition": "<any>",
    "updated_at": "2023-11-07T05:31:56Z",
    "workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "workspace_name": "<string>",
    "workspace_owner_avatar_url": "<string>",
    "workspace_owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "workspace_owner_name": "<string>"
  }
]

Authorizations

Wirtual-Session-Token
string
header
required

Path Parameters

workspace
string
required

Workspace ID

Query Parameters

after_id
string

After ID

limit
integer

Page limit

offset
integer

Page offset

since
string

Since timestamp

Response

200 - application/json
OK
build_number
integer
created_at
string
daily_cost
integer
deadline
string
id
string
initiator_id
string
initiator_name
string
job
object
max_deadline
string
reason
any
resources
object[]
status
any
template_version_id
string
template_version_name
string
transition
any
updated_at
string
workspace_id
string
workspace_name
string
workspace_owner_avatar_url
string
workspace_owner_id
string
workspace_owner_name
string