GET
/
workspacebuilds
/
{workspacebuild}
/
resources
curl --request GET \
  --url https://cloud.local.wirtual.dev/api/v2/workspacebuilds/{workspacebuild}/resources \
  --header 'Wirtual-Session-Token: <api-key>'
[
  {
    "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>"
  }
]

Authorizations

Wirtual-Session-Token
string
header
required

Path Parameters

workspacebuild
string
required

Workspace build ID

Response

200 - application/json
OK
agents
object[]
created_at
string
daily_cost
integer
hide
boolean
icon
string
id
string
job_id
string
metadata
object[]
name
string
type
string
workspace_transition
any