Harthelm Docs
REST APIWorkspaces

The Overview tab's data

One read for the Overview cockpit: the landscape's services with their status and URLs, the latest run of each stage, the synced and the selected profile. Everything comes from core's database, so it answers while the workspace sleeps and wakes nothing. The UI refetches it on `landscape.updated`, `stage.updated` and `workspace.updated`. Needs `workspace.view`.

Generated from openapi/harthelm.yaml at v1.5.0
GET
/workspaces/{ws}/overview

Authorization

cookie__Host-harthelm_session<token>

Browser session of the UI (12 h idle, 7 days absolute). State-changing requests also need the header Harthelm-CSRF: 1 and a matching Origin.

Path Parameters

ws*integer

Numeric resource id.

Formatint64
Range1 <= value

Response Body

The overview.

application/json
  1. response

The Overview tab.

workspace_id*ID

Numeric resource id.

Formatint64
Range1 <= value
landscape_state*LandscapeState
Value in"empty""synced""torn-down"
profile?ProfileName

The profile of the last Sync.

Match^([a-z0-9]([-a-z0-9]{0,30}[a-z0-9])?)?$
selected_profile?ProfileName

The profile of the last Sync.

Match^([a-z0-9]([-a-z0-9]{0,30}[a-z0-9])?)?$
synced_at?string
Formatdate-time
operation_id?string

The landscape.sync or landscape.teardown in progress ("Syncing").

Formatuuid
services*array<>
stages*array<>

prepare, test and run, each with its latest run's state.

curl -X GET 'https://console.example.com/api/v1/workspaces/1/overview'
{  "workspace_id": 1,  "landscape_state": "empty",  "profile": "string",  "selected_profile": "string",  "synced_at": "2019-08-24T14:15:22Z",  "operation_id": "cb4ede3c-a5d1-45e3-a9d2-fe83accbce52",  "services": [    {      "name": "string",      "type": "steps",      "status": "pending",      "status_detail": "string",      "ready_replicas": 0,      "desired_replicas": 0,      "asleep": true,      "urls": [        "string"      ]    }  ],  "stages": [    {      "stage": "prepare",      "running": true,      "run_id": 1,      "state": "waiting",      "started_at": "2019-08-24T14:15:22Z",      "finished_at": "2019-08-24T14:15:22Z"    }  ]}