enrolRelay
POST/api/v1/relays/enrol
A relay's enrolment (excubio-relay enrol, docs/operations.md §12) on its hub's host, with a token of createRelayEnrolToken of that hub, which it uses up. The hub signs the CSR with its relay CA and answers the nodes' addresses as its relays reach them (docs/architecture.md §13).
Request
Responses
- 201
- 401
- 403
- 409
- 422
The relay's identity
relay.token_invalid: an unknown, used, revoked or expired token
hub.limit_exceeded: the hub has as many relays enrolled as its relays limit
relay.exists: a relay of the token's name enrolled meanwhile
relay.csr_invalid: not a PKCS#10 of an ECDSA P-256 key with a valid signature; relay.update_required: a version the hub doesn't take