Skip to main content
Upstash Documentation

Get Database

This endpoint gets details of a database.
1 min read
get/redis/database/{id}
Request example
Response
get/redis/database/{id}

Authorization

Authorizationstringheaderrequired#
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded username:password.

Path parameters

idstringrequired#
The ID of the database

Query parameters

credentialsstring#
Set to 'hide' to remove credentials from the response.

Responses

application/json
200
OK
database_idstring#
ID of the database
database_namestring#
Name of the database
regionenum<string>#
The region where database is hosted
Options:global
portinteger#
Database port for clients to connect
creation_timeinteger#
Creation time of the database as Unix time
stateenum<string>#
State of database
Options:activesuspendedpassive
endpointstring#
Endpoint identifier or hostname of the database (may be a slug like "beloved-stallion-58500" or a full host)
tlsboolean#
TLS/SSL is enabled or not
db_max_clientsinteger#
Max number of concurrent clients can be opened on this database currently
db_max_request_sizeinteger#
Max size of a request that will be accepted by the database currently(in bytes)
db_disk_thresholdinteger#
Total disk size limit that can be used for the database currently(in bytes)
db_max_entry_sizeinteger#
Max size of an entry that will be accepted by the database currently(in bytes)
db_memory_thresholdinteger#
Max size of a memory the database can use(in bytes)
db_max_commands_per_secondinteger#
Max number of commands can be sent to the database per second
db_request_limitinteger#
Total number of commands can be sent to the database
typeenum<string>#
Payment plan of the database
Options:freepaygpropaid
budgetinteger#
Allocated monthly budget for the database
primary_regionenum<string>#
Primary region of the database cluster
Options:us-east-1us-east-2us-west-1us-west-2ca-central-1eu-central-1eu-west-1eu-west-2sa-east-1ap-south-1ap-northeast-1ap-southeast-1ap-southeast-2af-south-1us-central1us-east4europe-west1asia-northeast1
primary_membersstring[]#
List of primary regions in the database cluster
all_membersstring[]#
List of all regions in the database cluster
evictionboolean#
Entry eviction is enabled
auto_upgradeboolean#
Automatic upgrade capability is enabled
consistentboolean#
Strong consistency mode is enabled
modifying_statestring#
Current modifying state of the database
db_resource_sizeenum<string>#
Resource allocation tier
Options:SMLXLXXL3XL
db_typeenum<string>#
Database storage engine type
Options:boltbadgerpebble
db_conn_idle_timeoutinteger#
Connection idle timeout in nanoseconds
db_lua_timeoutinteger#
Lua script execution timeout in nanoseconds
db_lua_credits_per_mininteger#
Lua script execution credits per minute
db_store_max_idleinteger#
Store connection idle timeout in nanoseconds
db_max_loads_per_secinteger#
Maximum load operations per second
db_acl_enabledenum<string>#
Access Control List enabled status
Options:truefalse
db_acl_default_user_statusenum<string>#
Default user access status in ACL
Options:truefalse
db_evictionboolean#
Database-level eviction policy status
last_plan_upgrade_timeinteger#
Unix timestamp of the last plan upgrade
replicasinteger#
Replica factor of the database
customer_idstring#
Owner identifier of the database (may be email or marketplace-scoped email)
daily_backup_enabledboolean#
Whether daily backup is enabled
read_regionsstring[]#
Array of read regions of the database
securityAddonsobject#
Security add-ons and their enablement status
Show child attributes
ipWhitelistingboolean#
vpcPeeringboolean#
tlsMutualAuthboolean#
encryptionAtRestboolean#
prometheus_enabledenum<string>#
Prometheus integration enabled status
Options:truefalse
prod_pack_enabledboolean#
Production pack enabled status