platform
listTenants
listTenants
createTenant
Creates the tenant with its controller shard, its data key and its reserved team `excubio` (docs/watch.md §1), and invites its first tenant admins: each of `admins` gets the role `tenant-admin` at the first login of that subject, or with that e-mail address verified by the IdP, once, audited (docs/schema/cloud.sql `tenant_invite`). Watch learns of it with the cloud's next push (docs/watch.md §5). A repeat is answered `409`: the slug is taken.
updateTenant
Limits, numbers, delivery mode, installation and state. A change of the state or the limits reaches the tenant's hubs on installations through pollInstallation. `live` or `trial` from `evaluation` marks every verified number of the tenant's people unverified, which they verify again (docs/on-call.md §4); `numbers_unverified` in the answer counts them. `suspended` and back to `active` take effect at once (docs/architecture.md §12). `deleting` is the tenant's deletion and can't be undone: every request of the tenant is refused from then on, Watch deletes the tenant with the next push, and then the cloud deletes its rows, audit and data keys (docs/compliance.md §5).
listPlatformHubs
The tenant's hubs as a vendor operator sees them: name, state, link state, hosting and URL, nothing of their rotations.
listInstallations
The vendor's installations of hubs by name (docs/operations.md §3).
createInstallation
Registers an installation of hubs that the vendor runs, with its enrolment token, shown once: `excubio-hub` on the installation enrols with it (enrolInstallation). Audited in the installation's own audit (docs/schema/cloud.sql platform_audit). A repeat is answered `409`: the name is taken.
updateInstallation
Changes the capacity, or drains the installation (`draining`: it takes no new hub and keeps serving its hubs) and makes it `active` again. A capacity below its hubs takes no new hub until enough are deleted. `operator_hub` names the installation's operator hub: a hub placed on it, of a shared installation the vendor's own, of a dedicated one also its tenant's (docs/operations.md §1), which the installation raises its own conditions in (pollInstallation) and Watch tests hourly (docs/watch.md §1); null: none. Audited in the installation's own audit.
deleteInstallation
Deletes an installation that runs no hub, those whose deletion it hasn't reported included, and that no tenant names. Audited in the installation's own audit.
issueInstallationEnrolmentToken
A new one-time enrolment token of the installation, valid 24 h, which replaces an unspent one; enrolling with it issues a certificate that replaces the current one (docs/operations.md §4). Audited in the installation's own audit.
listUsage
The daily usage of the hubs on the vendor's installations as their installations reported it (reportUsage), per tenant and UTC day, summed over the tenant's hubs, oldest day first, for the vendor's billing. Kept 25 months, through a tenant's deletion (docs/schema/cloud.sql hub_usage).