lbcli create trusted-host

AI Tools

Creates a new trusted host.

Synopsis

Creates a trusted host resource with configuration parameters needed for authentication and NVMe connectivity, When In-Band Authentication is enabled, only trusted hosts can connect to a Lightbits cluster. For each trusted host, an associated Lightbits resource must be created using this command.

lbcli create trusted-host [flags]

Examples:

# Create a trusted host with name "mongodb-host1", host-nqn "nqn.2014-08.org.nvmexpress:uuid:123e4567-e89b-12d3-a456-42661" and belonging to project 'proj-a'. lbcli -J $JWT create trusted-host --project-name="proj-a" --name="mongodb-host1" --host-nqn="nqn.2014-08.org.nvmexpress:uuid:123e4567-e89b-12d3-a456-42661" # Create a trusted host with name "host56", host-nqn "nqn.2014-08.org.nvmexpress:uuid:ffff4567" and belonging to project 'default' and with labels. lbcli -J $JWT create trusted-host --project-name="default" --name="host56" --host-nqn="nqn.2014-08.org.nvmexpress:uuid:ffff4567" --labels="team=validation,location=us-west-1"

Flag

Short

Type

Default

Description

--host-nqn


string


Host NQN (required).

--auth-required


string


Authentication is required: 'true'/'false'. Optional. Default - true.

--help

-h

bool


Help for trusted-host.

--labels


string


Specifies labels for a Host. The labels argument format is key0=val0,key1=val1,...keyN=valN, when the number of labels is limited to 16. Label-key and label-value length must be between 1 and 253 characters and can contain any of: alphanumeric characters (a-z, A-Z, 0-9), hyphen (-), underscore (_), and dot (.).

--name


string


Host name (required).

--project-name


string


The project this host belongs to (required).