Update personal storage limits
Changes what update_mask names of one person's storage limits. pool_mb sets the person's storage cap, the most all their personal buckets may hold together: 0 goes back to the deployment default and -1 is unlimited. bucket_cap_mb is deprecated (a person has no per-bucket cap) and naming it is InvalidArgument. A person already over a pool they are given keeps reads and deletes; their new uploads are refused.
Access: the upl:admin scope, else PermissionDenied.
Required scopes: upl:admin
Authorization
OAuth2 upl:adminOAuth 2.0 authorization
In: header
Scope: upl:admin
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
upl's id for the person (UserStorageSummary.user_id).
int640 < valueWhich of the fields below to change: pool_mb. "bucket_cap_mb" is InvalidArgument (UPL-160).
Deprecated (UPL-160): a person has no per-bucket cap.
int320 <= value <= 1073741824The person's storage cap in MiB: the most all their personal buckets may hold together. 0 goes back to the deployment default; -1 is unlimited.
int32-1 <= value <= 1073741824Response Body
application/json
application/json
curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.BucketsService/UpdateUserStorageLimits" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{ "updateMask": "poolMb" }'{
"user": "map[bucketCount:2 bytesUsed:734003200 email:[email protected] overriddenBucketCount:0 poolBytes:21474836480 poolSource:TEAM_ENTITLEMENT_SOURCE_OVERRIDE providerId:urn:xeonr:auth:uid:user:3 userId:42 username:luke]",
"bucketsRecapped": "0"
}