icmcli get credential

AI Tools

Retrieves service credentials to grant ICM service access to a Lightbits cluster.

Synopsis

Attaching a new Lightbits cluster to the ICM system is a two-step process:

  1. Get credentials from the ICM service and add them to the Lightbits cluster.

  2. Attach the Lightbits cluster to the ICM system. This is the first step in attaching a Lightbits cluster, Adding ICM generated credentials to a Lightbits cluster.

Invoke this command to get a Base64-encoded public key and the public key ID. The Base64-encoded public key will be saved to at: ~/.local/intelligent-cluster-management/<pubKeyId>.pem. The file should then be copied to the Lightbits cluster:

scp ~/.local/intelligent-cluster-management/<pubKeyId>.pem <user>@<LightbitsServer>:<FILE_PATH>

And then passed as an argument to the following command issued to the relevant cluster:

lbcli create credential --project-name=system --id=<PUB_KEY_ID> --type=rsa256pubkey <FILE_PATH>
icmcli get credential [flags]

Examples

#get service credentials: icmcli get credential

Flag

Short

Type

Default

Description

--help

-h

bool


Help for credential.

Response Type

Returns the ICM service credential: pubKeyId (the credential ID to register on the cluster) and pubKey (the Base64-encoded RSA public key). The public key is also written to ~/.local/intelligent-cluster-management/<pubKeyId>.pem.