Skip to Content
Xeonr Developer Docs
API Specification

Storage caps

How much a bucket, a person and a team may store, and who sets each limit.

Two limits apply to every upload, and an upload that would pass either is refused with resource_exhausted. Reads and deletes are never refused.

LimitApplies toSet by
Owner cap (pool_bytes)everything the owner's buckets hold togethera platform admin
Bucket cap (cap_bytes)one bucketthe bucket's owner, or a platform admin

The owner's cap

A person's personal buckets share one total: the deployment default unless a platform admin set another (UpdateUserStorageLimits). A team's buckets share the team's pool, which is none (unlimited) by default and is set with UpdateTeamEntitlement (update_mask: ["pool_mb"]) by a caller holding upl:admin. GetOwnerUsage answers the owner's usage and pool_bytes; pool_bytes is absent when the owner is unlimited.

A bucket's own cap

SetBucketStorageCap (upl:bucket:manage) sets a bucket's own cap in MiB, and 0 removes it; whoever administers the bucket, or a platform admin, may call it. The response, and every Bucket, carries cap_bytes, which is present exactly when the bucket has a cap of its own. Without one only the owner's cap applies.

The older per-owner bucket caps (bucket_cap_bytes, inherited_bucket_cap_bytes, bucket_cap_mb) are deprecated and never set; naming bucket_cap_mb in an update_mask is invalid_argument.

For platform admins

With upl:admin, GetOwnerUsage takes a user_id (personal scope) to total another person's buckets, and ListUserStorage lists everyone with a personal bucket: their usage, pool_bytes, whether their cap differs from the default, and how many of their buckets carry a cap of their own.

On this page