Skip to main content

Create host

POST 

/v1/hosts

Create a new host, lighthouse, or relay.

Token scope required: hosts:create

Request

Body

required

    name stringrequired

    Possible values: non-empty and <= 255 characters

    Name of the new host

    networkID stringrequired

    ID of your network

    roleID stringnullable

    ID of the role you want to assign

    ipAddress ipv4

    Assign an IP address to be used within the Managed Nebula network. Must be within the network's CIDR range. Will be chosen automatically if not provided.

    staticAddresses address:port[]

    List of static IPv4:port/hostname:port addresses. At least one is required if isLighthouse is true.

    listenPort integer

    Possible values: <= 65535

    Default value: 0

    The UDP port nebula should use on the host. An available port will be automatically selected if 0 is specified. Required for lighthouses and relays.

    isLighthouse boolean

    Set to true to create a new lighthouse. A Lighthouse cannot also be relay.

    isRelay boolean

    Set to true to create a new relay. A relay cannot also be a lighthouse.

    tags key:value[]

    configOverrides

    object[]

    List of config overrides for the nebula config

  • Array [

  • anyOf

    key stringrequired

    Possible values: [lighthouse.dns.host]

    value stringrequired
  • ]

Responses

Successful operation

Schema

    data

    object

    id string
    organizationID string
    networkID string
    roleID stringnullable
    name string
    ipAddress ipv4
    staticAddresses address:port[]
    listenPort int64

    Will be zero if a regular host

    isLighthouse boolean
    isRelay boolean
    createdAt date-time
    isBlocked boolean

    metadata

    object

    lastSeenAt stringnullable
    version stringnullable
    platform stringnullable

    Possible values: [dnclient, mobile, null]

    updateAvailable booleannullable
    tags key:value[]

    configOverrides

    object[]

    List of config overrides for the nebula config

  • Array [

  • anyOf

    key stringrequired

    Possible values: [lighthouse.dns.host]

    value stringrequired
  • ]

  • metadata object
Loading...