Get workspace usage
GET/v1/workspaces/:workspaceId/usage
Returns a point-in-time snapshot of the workspace's active remote development sessions: session counts and vCPU/memory totals split by OS, workspace-wide and per user, and the workspace's vCPU quota and use per machine family. This reports sessions currently consuming resources; it is not a historical or billing-period report. Requires the caller to hold the workspace's billing-view permission (workspace owners and billing-managing custom roles); other members receive a permission-denied error. A Workspace API Token (bitwat_…) may call it when it was created with Remote Dev Environments access and a workspace role that can manage the workspace: Manager, or a custom role with Modify workspace settings. Where terminating any session is enabled for the workspace, each row also lists its active sessions, oldest first, with the IDs TerminateSession takes.
RequestClick to copy link
ResponsesClick to copy link
- 200
A successful response.