Harthelm Docs

Override the team's quota

Cluster admins only (`platform.admin`). Replaces the override; quantities it leaves out take the installation default. Workspaces that run keep running when the new quota is smaller; the next create, Sync or wake is checked against it. Audited as `team.quota`.

Generated from openapi/harthelm.yaml at v1.5.0
PUT
/teams/{team}/quota

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

team*integer

Numeric resource id.

Formatint64
Range1 <= value

Request Body

application/json
  1. body

Quantities to override; absent ones take the installation default. An empty object clears nothing (use DELETE).

Properties1 <= properties
requests_cpu_millis?integer
Formatint64
Range1 <= value
requests_memory_mib?integer
Formatint64
Range1 <= value
limits_memory_mib?integer
Formatint64
Range1 <= value
storage_gib?integer
Formatint64
Range1 <= value

Response Body

The quota.

application/json
  1. response
default*
override?

Quantities to override; absent ones take the installation default. An empty object clears nothing (use DELETE).

Properties1 <= properties
effective*
usage*
updated_by?ID

Numeric resource id.

Formatint64
Range1 <= value
updated_at?string
Formatdate-time
curl -X PUT 'https://console.example.com/api/v1/teams/1/quota' \  -H 'Content-Type: application/json' \  -d '{}'
{  "default": {    "requests_cpu_millis": 0,    "requests_memory_mib": 0,    "limits_memory_mib": 0,    "storage_gib": 0  },  "override": {    "requests_cpu_millis": 1,    "requests_memory_mib": 1,    "limits_memory_mib": 1,    "storage_gib": 1  },  "effective": {    "requests_cpu_millis": 0,    "requests_memory_mib": 0,    "limits_memory_mib": 0,    "storage_gib": 0  },  "usage": {    "requests_cpu_millis": 0,    "requests_memory_mib": 0,    "limits_memory_mib": 0,    "storage_gib": 0,    "workspaces": 0,    "awake_workspaces": 0,    "held_by_deleted": {      "workspaces": 0,      "storage_gib": 0    }  },  "updated_by": 1,  "updated_at": "2019-08-24T14:15:22Z"}