Create enrollment code
POST/v1/hosts/:hostID/enrollment-code
Obtain a code that can be used with the dnclient enroll command on a host, lighthouse, or relay to enroll it into your Managed Nebula network.
It is not possible to enroll a host that is blocked, it must first be unblocked using the unblock endpoint.
Token scope required: hosts:enroll
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
Successful operation
Validation error
The API key is missing, invalid or expired.
The API key lacks a required scope.
Host not found
The organization has exceeded its API request rate limit. Retry the request after a short delay.