enrolInstallationHub
POST/installation/v1/hubs/:hub/enrol
Enrols a hub placed on the installation and not to be deleted, as enrolHub does with a token: the hub's link certificate for the CSR's key, with the hub's id as its subject's common name, and the hub's Watch key; it replaces any earlier certificate, ends a revocation, renews the link epoch and replaces the Watch key. The installation enrols every hub whose state says enrolled: false. Audited in the tenant's audit as hub.enrol by the installation.
Request
Responses
- 201
- 404
- 422
- 426
The hub's client certificate and link parameters, as enrolHub answers
object.not_found: not a hub of the installation, or one to be deleted
request.invalid: as enrolHub
hub.update_required: the hub's version is outside the versions the cloud accepts. Nothing was applied; the hub raises a self-alert and uses its local fallback channel (docs/architecture.md §5).