Show a direct-VM runner's capacity and cache disks
GET/api/workspaces/{workspace_id}/runners/{runner_id}/vm-cache
getWorkspaceRunnerVmCache
The runner's last capacity report and the cache disks of its host the server learnt of from completions (ADR 0146), most recently used first. Asks the workspace runner list's own permission first, then shows the runner to whoever sees it in that list; each disk is listed only if the caller may read its repository, and the totals count only the listed disks. 404 for a runner the caller cannot see.
Requires authentication using a bearer token or a session cookie — see tokens and scopes.
curl
curl -X GET 'https://neosource.dev/api/workspaces/WORKSPACE_ID/runners/RUNNER_ID/vm-cache' \
-H 'Authorization: Bearer $NEOSOURCE_TOKEN'fetch
fetch("https://neosource.dev/api/workspaces/WORKSPACE_ID/runners/RUNNER_ID/vm-cache", {
method: "GET",
headers: {
Authorization: "Bearer $NEOSOURCE_TOKEN",
},
});Path parameters
workspace_idrequiredrunner_idrequired
Responses
200Capacity and cache disks
application/json
403Forbidden — one of: forbidden, needs_scope
application/json
Standard errors
Bodies documented once for the whole API — see standard errors.
- 400Bad Request — one of: invalid_input
- 401Authentication required
- 404Not Found — one of: not_found
- 429Rate limited — retry after the `Retry-After` header
- 500Internal server error
- 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
- 504Gateway timeout — the request exceeded the server's handling budget
Schemas
Referenced above. Listed here rather than expanded inline, so the same definition is not repeated at every level.
VmCacheDiskState
Whether a runner holds a committed cache disk for a key, as the server last learnt it from a completion.
"committed""absent"