Skip to Content
Xeonr Developer Docs
UplApiBuckets

List team storage

POST
/uplim.api.v1.BucketsService/ListTeamStorage

Every team upl knows, by slug, with its storage used (from the usage rollup), its pool with where it comes from, and how many of its buckets have a cap of their own. Caps are read from what upl stores and caches for each team, not asked of Xeonr Auth per row. A team's buckets are listed with GetOwnerUsage.

Access: the upl:admin scope, else PermissionDenied.

Required scopes: upl:admin

Authorization

OAuth2 upl:admin
AuthorizationBearer <token>

OAuth 2.0 authorization

In: header

Scope: upl:admin

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

query?string

Narrows to teams whose slug or name contains this, ignoring case.

Lengthlength <= 128
pageSize?integer

Teams per page; 0 is 50.

Formatint32
Range0 <= value <= 200
pageToken?string

From a previous response's next_page_token.

Lengthlength <= 64
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.BucketsService/ListTeamStorage" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "teams": [
    "map[bucketCount:4 bytesUsed:2952790016 name:Acme overriddenBucketCount:1 poolBytes:107374182400 poolSource:TEAM_ENTITLEMENT_SOURCE_BINDING slug:acme team:urn:xeonr:auth:team:0f6b5f8c-21f4-4b6e-9b4f-3a6a2c7d8e91]"
  ],
  "nextPageToken": "eyJhZnRlciI6ImFjbWUifQ"
}