Skip to main content

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.

Token scope required: hosts:enroll

Request

Path Parameters
  • hostID string required
    Example: host-24NVITKMNU3CYCEDNFWKAOBX7I
Responses

Successful operation

Schema
  • data object
  • enrollmentCode object
  • code string

    Secret code to be used in dnclient enroll to allow the host/lighthouse/relay to join your Managed Nebula network.

  • lifetimeSeconds int64

    The number of seconds the code is valid after being issued.

  • metadata object
Loading...