Tear down a product's managed buckets in a team
Deletes every bucket in team that the calling product created while acting for a person (those whose managed_by is the product's slug), and returns how many buckets went and how many access keys were revoked with them. It is the absent-user path: the product calls it as its own service account when the team has dropped the product and nobody is present to act for. Buckets a person or another product made in the same team are never seen or touched.
Each bucket goes as it does with DeleteBucket: its custom hostnames and aliases are removed, a bucket delete event is published and the WebSocket permissions of everyone who had access are dropped. Every access-key grant on the bucket is removed; a key left with no grant is revoked outright, since a key with no grants would reach every bucket its owner has, while a key with grants on other buckets keeps those.
Idempotent: a team with nothing left, or one upl has never seen, answers zeros. A failure part-way returns an error and leaves the buckets already deleted deleted; call again to finish.
Access: only a service account acting as itself, whose application is registered with upl as a managed-bucket product. Users, OAuth clients and delegated (token-exchanged) tokens get PermissionDenied.
Required scopes: upl:managed:reconcile
JWT access token obtained via OAuth2 flow or service account
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
The team whose product-managed buckets to tear down, as an Xeonr Auth team URN. string.prefix = "urn:xeonr:auth:team:"
1 <= length <= 128Response Body
application/json
application/json
curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.BucketsService/TeardownManagedBuckets" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"bucketsDeleted": "2",
"credentialsRevoked": "1"
}