Create and manage credentials for your Key Value Store instances
Zuletzt aktualisiert am
Prerequisites
Section titled “Prerequisites”- You have created a Key Value Store instance.
Check Create and manage instances for Key Value Store
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.
List service keys
Section titled “List service keys”To get a list of all service keys for a Key Value Store instance:
| Flag | Description |
|---|---|
--instance-id | Instance ID of the instance you want to query |
stackit key-value-store credentials list --instance-id <instance-id>You will get an output similar to the following:
ID──────────────────────────────────────b355ca17-4231-467c-b7f5-e22f979777f1In this case, b355ca17-4231-467c-b7f5-e22f979777f1 is the service key ID.
- Open your project in the STACKIT Portal.
- Navigate to Databases > Key Value Store.
- Choose your instance and go to the overview.
- On the sidebar, select Credentials.
Now you can see the list of service keys for your instance. Click on an entry in the list to see the details.
Create a service key
Section titled “Create a service key”To create a service key for a Key Value Store instance:
| Flag | Description | Default | Optional |
|---|---|---|---|
--instance-id | Instance ID of the instance you want to query | ||
--show-password | Username of the new user | x |
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-fdd2f75db85a8291c91e50f621970f4aacb19c3ad1ed305b4f057Password: <hidden>Host: kvd601d47-master-1.data.eu01.onstackit.cloudPort: 53137URI: rediss://a9s-brk-usr-fdd2f75db85a8291c91e50f621970f4aacb19c3ad1ed305b4f057:<hidden>@kvd601d47-master-1.data.eu01.onstackit.cloud:53137- Open your project in the STACKIT Portal.
- Navigate to Databases > Key Value Store.
- Choose your instance and go to the overview.
- On the sidebar, select Credentials.
- On the top bar, click on Create credentials.
- Wait for the pop-up to appear and copy all information to a safe place.
-
To use the Cloud Foundry CLI, you first need to log in to your STACKIT project endpoint. Read Interact with Cloud Foundry for help logging in.
-
Create the service key with the
cfcommand:Terminal window cf create-service-key [service-name] [service-key] -
List the service key with the
cfcommand:Terminal window cf service-key [service-name] [service-key]
View a service key
Section titled “View a service key”To get details of a service key for a Key Value Store instance:
| Flag | Description | Default | Optional |
|---|---|---|---|
--instance-id | Instance ID of the instance you want to query | ||
--credentials-id | The ID of the service key |
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- Open your project in the STACKIT Portal.
- Navigate to Databases > Key Value Store.
- Choose your instance and go to the overview.
- On the sidebar, select Credentials.
- Click on the service key entry you want to view.
Delete a service key
Section titled “Delete a service key”To delete a service key for a Key Value Store instance:
| Flag | Description | Default | Optional |
|---|---|---|---|
--instance-id | Instance ID of the instance you want to query | ||
--credentials-id | The ID of the service key |
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"- Open your project in the STACKIT Portal.
- Navigate to Databases > Key Value Store.
- Choose your instance and go to the overview.
- On the sidebar, select Credentials.
- Click on the three dots on the right side of a user entry.
- Click on Delete.
-
To use the Cloud Foundry CLI, you first need to log in to your STACKIT project endpoint. Read Interact with Cloud Foundry for help logging in.
-
Delete the service key with the
cfcommand:Terminal window cf delete-service-key [service-name] [service-key]