#Quotas
Team quotas cap sandbox capacity and usage for a team. They are enforced by the data plane and control plane before new work is accepted.
Users can view quotas with GET /api/v1/quotas/{dimension}. The response
includes the configured limit_value, current usage, remaining quota, whether
the dimension is unlimited, and the unit for that dimension.
Quota limits are not self-service. Team admins, developers, and viewers can read quota status, but they cannot raise, lower, or delete team quota limits through the public API. Quota changes are applied by platform control-plane automation, operator tooling, or an admin backoffice path.
Limit resolution uses this precedence:
- A team-specific quota row in the region database.
- A region-wide default from
Sandbox0Infra.spec.services.manager.config.defaultTeamQuotas. - Unlimited when neither is configured.
Deleting a team-specific quota row does not necessarily make that dimension
unlimited. If a Sandbox0Infra default exists for the dimension, the team falls
back to that default.
Default quotas#
Self-hosted operators can configure region-wide fallback quota limits in the manager config:
yamlapiVersion: infra.sandbox0.ai/v1alpha1 kind: Sandbox0Infra metadata: name: sandbox0 spec: services: manager: config: defaultTeamQuotas: - dimension: active_sandboxes limitValue: 10 - dimension: cpu_millicpu limitValue: 8000 - dimension: memory_mib limitValue: 16384
Dimensions#
| Dimension | Unit | Meaning |
|---|---|---|
active_sandboxes | count | Active claimed sandboxes that have not terminated. |
cpu_millicpu | millicpu | Total CPU limit requested by active sandboxes. |
memory_mib | MiB | Total memory limit requested by active sandboxes. |
volume_storage_gb | GB | Projected SandboxVolume storage, rounded up to GB. |
snapshot_storage_gb | GB | Projected snapshot storage, rounded up to GB. |
egress | bytes | Sandbox egress bytes recorded by network metering windows. |
ingress | bytes | Sandbox ingress bytes recorded by network metering windows. |
When no database override or Sandbox0Infra default is configured for a
dimension, unlimited is true, limit_value is null, and remaining is
null.