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 requiredExample: host-24NVITKMNU3CYCEDNFWKAOBX7I
Responses
- 200
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
data object
enrollmentCode object
code stringSecret code to be used in
dnclient enroll
to allow the host/lighthouse/relay to join your Managed Nebula network.lifetimeSeconds int64The number of seconds the code is valid after being issued.
- metadata object
{
"data": {
"code": "H8NEbm99QvupjqW1PsdVR9DNSiFmoQtJXyGTQxerlSU",
"lifetimeSeconds": 86400
},
"metadata": {}
}
Loading...