Update Essentials database
Updates the specified Essentials database.
Path parameters
Subscription ID.
Database ID.
Request body
Optional. Updated database name.
(Pay-as-you-go subscriptions only) Optional. Total memory in GB, including replication and other overhead. You cannot set both datasetSizeInGb and totalMemoryInGb.
(Pay-as-you-go subscriptions only) Optional. The maximum amount of data in the dataset for this database in GB. You cannot set both datasetSizeInGb and totalMemoryInGb. If ‘replication’ is 'true', the database’s total memory will be twice as large as the datasetSizeInGb. If ‘replication’ is false, the database’s total memory will be the datasetSizeInGb value.
(Pay-as-you-go subscriptions only) Optional. Support Redis OSS Cluster API.
Optional. Redis Serialization Protocol version. Must be compatible with Redis version.
(Pay-as-you-go subscriptions only) Optional. If set to 'true', the database will use the external endpoint for OSS Cluster API. This setting blocks the database's private endpoint. Can only be set if 'supportOSSClusterAPI' is 'true'. Default: 'false'
(Pay-as-you-go subscriptions only) Optional. Distributes database data to different cloud instances.
(Pay-as-you-go subscriptions only) Optional. Changes the number of master shards.
Optional. Type and rate of data persistence in persistent storage. Use GET /fixed/plans/{planId} to see if your plan supports data persistence.
Optional. Turns database replication on or off.
Optional. Sets database replication. Use GET /fixed/plans/{planId} to see if your plan supports database replication.
Optional. Changes the backup location path. If specified, the database will back up every 24 hours to this location, and you can manually back up the database to this location at any time. Use GET /fixed/plans/{planId} to see if your plan supports database backups. If set to an empty string, the backup path will be removed.
Optional. List of source IP addresses or subnet masks to allow. If specified, Redis clients will be able to connect to this database only from within the specified source IP addresses ranges. Example: '['192.168.10.0/32', '192.168.12.0/24']'
Optional. This database will be a replica of the specified Redis databases provided as one or more URI (sample format: 'redis://user:password@host:port)'. If the URI provided is Redis Cloud instance, only host and port should be provided (using the format: ['redis://endpoint1:6379', 'redis://endpoint2:6380'] ).
(Pay-as-you-go subscriptions only) Optional. Hashing policy Regex rules. Used only if 'shardingType' is 'custom-regex-rules'.
Optional. A public key client TLS/SSL certificate with new line characters replaced with '\n'. If specified, mTLS authentication will be required to authenticate user connections if it is not already required. If set to an empty string, TLS client certificates will be removed and mTLS will not be required. TLS connection may still apply, depending on the value of 'enableTls'.
Optional. When 'true', requires TLS authentication for all connections - mTLS with valid clientTlsCertificates, regular TLS when clientTlsCertificates is not provided. If enableTls is set to 'false' while mTLS is required, it will remove the mTLS requirement and erase previously provided clientTlsCertificates.
Optional. Changes the password used to access the database with the 'default' user.
Optional. When 'true', allows connecting to the database with the 'default' user. When 'false', only defined access control users can connect to the database.
Example request
{
"name": "Redis-Essentials-database-example",
"memoryLimitInGb": 1,
"datasetSizeInGb": 1,
"supportOSSClusterApi": true,
"respVersion": "resp3",
"useExternalEndpointForOSSClusterApi": true,
"numberOfShards": 2,
"periodicBackupPath": "s3://<backup-path>",
"alerts": [
{
"name": "dataset-size",
"value": 80
}
]
}Response
OK