Managing the default user's username and password
When you create a Redis™* Database Instance, you have to specify a user. It will be created with set permissions.
You can specify a name for this user when you create a Database Instance. This allows you to ensure the username is compatible with different software integrations where specific usernames are not supported.
Before you start
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- A valid API key
- Downloaded and installed the Scaleway CLI
- Configured your environment variables (optional)
Specifying a name for a user
Follow the create a Database Instance procedure.
You are required to specify a username and password for the default user in your POST request payload.
Retrieving the default username
You can retrieve the default username via the API and the CLI.
A response like the following is returned:
{
"id": "string",
"name": "string",
"project_id": "string",
"status": "string",
"version": "string",
"endpoints": [],
"tags": [],
"node_type": "string",
"created_at": "string",
"updated_at": "string",
"tls_enabled": "boolean",
"cluster_settings": [],
"acl_rules": [],
"cluster_size": "integer",
"zone": "string",
"user_name": "redis-admin",
"upgradable_versions": []
}
You can find the default username under "user_name":
. In this example, the default username is redis-admin
.
Changing the default username
You can change the username and password of the default user anytime via the API and the CLI.
* Redis is a trademark of Redis Labs Ltd. Any rights therein are reserved to Redis Labs Ltd. Any use by Scaleway is for referential purposes only and does not indicate any sponsorship, endorsement or affiliation between Redis and Scaleway.