lbcli create trusted-host
Creates a new trusted host (Beta).
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. In-Band authentication functionality and its APIs are under development and available for evaluative purposes only. They should not be used in production clusters.
lbcli create trusted-host [flags]
Examples:
x
# 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). |
Was this page helpful?