Create and manage credentials for your instances
Diese Seite ist noch nicht in deiner Sprache verfügbar. Englische Seite aufrufen
Prerequisites
Section titled “Prerequisites”- You have created a Redis instance.
Check Create and manage instances for Redis
List, create, view and delete a service keys:
Section titled “List, create, view and delete a service keys:”This article describes how to handle credentials for your Redis 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 Redis instance:
| Flag | Description |
|---|---|
| instance-id | Instance ID of the instance you want to query |
stackit redis credentials list --instance-id <instance-id>You get something like the following output:
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 > Redis.
- 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 new service key
Section titled “Create a new service key”To create a service key for a Redis 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 redis credentials create --instance-id <instance-id>You get an output similiar to this:
Created credentials for instance "redis-ypqvqby0khea". Credentials ID: 67a5f5c3-121b-452e-baa2-43afaee9ca43
Username: a9s-brk-usr-fdd2f75db85a8291c91e50f621970f4aacb19c3ad1ed305b4f057Password: <hidden>Host: red601d47-master-1.data.eu01.onstackit.cloudPort: 53137URI: rediss://a9s-brk-usr-fdd2f75db85a8291c91e50f621970f4aacb19c3ad1ed305b4f057:a9s215dd18cb44612ad154f13ecc7fa80c50bfdf90604854eab9edb56eb56217f@red601d47-master-1.data.eu01.onstackit.cloud:53137- Open your project in the STACKIT Portal.
- Navigate to Databases > Redis.
- Choose your instance and go to the overview.
- On the sidebar select Credentials
- On the top bar click on Create credentials
- Wait for the popup to appear and copy all information to a safe place.
-
To use the Cloud Foundry CLI you first need to login into your STACKIT project endpoint. Read Interact with Cloud Foundry to get 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 Redis 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 redis credentials describe <credentials-id> --instance-id <instance-id>You can get use List service keys to get the credentials-id for the requested service key.
You get an output which is similiar to the following:
ID │ 67a5f5c3-121b-452e-baa2-43afaee9ca43 >──────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────>USERNAME │ a9s-brk-usr-fdd2f75db85a8291c91e50f621970f4aacb19c3ad1ed305b4f057 >──────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────>PASSWORD │ a9s215dd18cb44612ad154f13ecc7fa80c50bfdf90604854eab9edb56eb56217f >──────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────>URI │ rediss://a9s-brk-usr-fdd2f75db85a8291c91e50f621970f4aacb19c3ad1ed305b4f057:a9s215dd18cb44612ad154f13ecc7fa80c50bfdf90604854eab9edb56eb56217f@red601d47-master-1.data.eu01.onstackit.cloud:53137- Open your project in the STACKIT Portal.
- Navigate to Databases > Redis.
- Choose your instance and go to the overview.
- On the sidebar select Credentials
- Click on the service key entry you want to watch
Delete a service key
Section titled “Delete a service key”To delete a service key for a Redis 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 redis credentials delete <credentials-id> --instance-id <instance-id>After comfirmation you get the following output:
Deleted credentials b355ca17-4231-467c-b7f5-e22f979777f1 of instance "my-redis-instance"- Open your project in the STACKIT Portal.
- Navigate to Databases > Redis.
- 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 login into your STACKIT project endpoint. Read Interact with Cloud Foundry to get help logging in.
-
Delete the service key with the
cfcommand:Terminal window cf delete-service-key [service-name] [service-key]