If you want to automate adding a Redis database without filling the database form, you might want to add database via GET URL.

Below is the documentation for the URL required to add databases.

Add Redis database

Used to add Redis databases to RedisInsight.

URL : /add/

Method : GET

Query Parameters

These are the required query parameters for any type of database.

ParameterTypeRequired/OptionalDescription
hoststringrequiredHostname of your Redis database.
portnumberrequiredPort of your Redis database.
namestringoptionalA nick name for the Redis database. Any string is valid
usernamestringoptionalUsername of your Redis database.
passswordstringoptionalPassword of your Redis database.
tlsbooleanoptional"true" if your Redis database has TLS enabled.
verifyServerbooleanoptional"true" if the server certificate of you Redis database has to be verified.
masterNamestringoptionalmaster name of the monitoring database
masterUsernamestringoptionalmaster username of the monitoring database
masterPasswordstringoptionalmaster password of the monitoring database
redirectbooleanoptional"true" if you want to redirect to instance page after successful addition.
Note:
If you want to add the TLS certificates for your Redis database, you have to manually fill database form.

Examples

Standalone database
/add/?name=standalone&host=localhost&port=6379
Cluster database
/add/?name=cluster&host=172.19.0.3&port=7000
Sentinel database
/add/?name=sentinel&host=localhost&port=26379
Standalone database with ACL
/add/?name=redis-acl&host=172.19.0.2&port=6379&username=myuser&password=p1pp0
Standalone database with TLS
/add/?name=redis-tls&host=172.19.0.2&port=6379&tls=true