dmscli get credential
Retrieves service credentials to grant DMS service access to a Lightbits cluster.
Synopsis
dmscli get credential [flags]
Attaching a new Lightbits cluster to the DMS system is a two-step process.
Step 1: Get credentials from the DMS service and add them to the Lightbits cluster:
- Invoke this command from the DMS service to get a public key and the public key ID.
- The Base64-encoded public key should be Base64 decoded, imported, and saved as a file on the Lightbits cluster:
echo "<base64 encoded Public Key>" | base64 -d > /tmp/pub-key.pem
scp /tmp/pub-key.pem <user>@<LightbitsServer>:<FILE_PATH>
rm -rf /tmp/pub-key.pem
- The credentials should then be added to the cluster:
lbcli create credential --project-name=system --id=<PUB_KEY_ID> --type=rsa256pubkey <FILE_PATH>
Step 2: Attach the Lightbits cluster to the DMS system. Use the attach command providing a Lightbits cluster API endpoint address.
Example:
dmscli get credential
Flag | Short | Type | Default | Description |
---|---|---|---|---|
--help | -h | bool | Help for credential . |
Response Type
GetServiceCredentialsResponse
- Get Service Credentials Response
The response to get the service credentials for the DMS service.
Name | Type | Description |
---|---|---|
PubKeyId | string | The key ID to be used while importing the public key into the Lightbits cluster. |
PubKey | string | The base64-encoded public key to be imported into the Lightbits cluster. After Base64 decoding, the contents should be saved as a file (e.g., into <FILE_PATH>) and passed as an argument to the following command to the corresponding Lightbits cluster, with <FILE_PATH> and <PUB_KEY_ID> substituted, as appropriate. lbcli create credential --project-name=system--id=<PUB_KEY_ID> --type=rsa256pubkey <FILE_PATH> |
Was this page helpful?