Skip to content

Create and manage credentials for your Key Value Store instances

Last updated on

List, create, view, and delete service keys:

Section titled “List, create, view, and delete service keys:”

This article describes how to handle credentials for your Key Value Store instance. A service key is the only available form of credential that you can create for now. With a service key, you can fully authenticate yourself against your instance.

To get a list of all service keys for a Key Value Store instance:

Terminal window
stackit key-value-store credentials list --instance-id <instance-id>

You will get an output similar to the following:

ID
──────────────────────────────────────
b355ca17-4231-467c-b7f5-e22f979777f1

In this case, b355ca17-4231-467c-b7f5-e22f979777f1 is the service key ID.

To create a service key for a Key Value Store instance:

Terminal window
stackit key-value-store credentials create --instance-id <instance-id>

You will get an output similar to this:

Created credentials for instance "keyvalue-ypqvqby0khea".
Credentials ID: 67a5f5c3-121b-452e-baa2-43afaee9ca43
Username: a9s-brk-usr-fdd2f75db85a8291c91e50f621970f4aacb19c3ad1ed305b4f057
Password: <hidden>
Host: kvd601d47-master-1.data.eu01.onstackit.cloud
Port: 53137
URI: rediss://a9s-brk-usr-fdd2f75db85a8291c91e50f621970f4aacb19c3ad1ed305b4f057:<hidden>@kvd601d47-master-1.data.eu01.onstackit.cloud:53137

To get details of a service key for a Key Value Store instance:

Terminal window
stackit key-value-store credentials describe <credentials-id> --instance-id <instance-id>

You can use List service keys to get the credentials-id for the requested service key. You will get an output similar to the following:

ID │ 67a5f5c3-121b-452e-baa2-43afaee9ca43
──────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────>
USERNAME │ a9s-brk-usr-fdd2f75db85a8291c91e50f621970f4aacb19c3ad1ed305b4f057
──────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────>
PASSWORD │ a9s215dd18cb44612ad154f13ecc7fa80c50bfdf90604854eab9edb56eb56217f
──────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────>
URI │ rediss://a9s-brk-usr-fdd2f75db85a8291c91e50f621970f4aacb19c3ad1ed305b4f057:<hidden>@kvd601d47-master-1.data.eu01.onstackit.cloud:53137

To delete a service key for a Key Value Store instance:

Terminal window
stackit key-value-store credentials delete <credentials-id> --instance-id <instance-id>

After confirmation, you will get the following output:

Deleted credentials b355ca17-4231-467c-b7f5-e22f979777f1 of instance "my-key-value-instance"