pub struct FixedDatabaseUpdateRequest {Show 26 fields
pub subscription_id: Option<i32>,
pub database_id: Option<i32>,
pub name: Option<String>,
pub memory_limit_in_gb: Option<f64>,
pub dataset_size_in_gb: Option<f64>,
pub support_oss_cluster_api: Option<bool>,
pub resp_version: Option<String>,
pub use_external_endpoint_for_oss_cluster_api: Option<bool>,
pub enable_database_clustering: Option<bool>,
pub number_of_shards: Option<i32>,
pub data_persistence: Option<String>,
pub data_eviction_policy: Option<String>,
pub replication: Option<bool>,
pub periodic_backup_path: Option<String>,
pub source_ips: Option<Vec<String>>,
pub replica_of: Option<Vec<String>>,
pub replica: Option<ReplicaOfSpec>,
pub regex_rules: Option<Vec<String>>,
pub client_ssl_certificate: Option<String>,
pub client_tls_certificates: Option<Vec<DatabaseCertificateSpec>>,
pub enable_tls: Option<bool>,
pub password: Option<String>,
pub enable_default_user: Option<bool>,
pub alerts: Option<Vec<DatabaseAlertSpec>>,
pub command_type: Option<String>,
pub extra: Value,
}
Expand description
Essentials database update request
Fields§
§subscription_id: Option<i32>
§database_id: Option<i32>
§name: Option<String>
Optional. Updated database name.
memory_limit_in_gb: Option<f64>
(Pay-as-you-go subscriptions only) Optional. Total memory in GB, including replication and other overhead. You cannot set both datasetSizeInGb and totalMemoryInGb.
dataset_size_in_gb: Option<f64>
(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.
support_oss_cluster_api: Option<bool>
(Pay-as-you-go subscriptions only) Optional. Support Redis OSS Cluster API.
resp_version: Option<String>
Optional. Redis Serialization Protocol version. Must be compatible with Redis version.
use_external_endpoint_for_oss_cluster_api: Option<bool>
(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’
enable_database_clustering: Option<bool>
(Pay-as-you-go subscriptions only) Optional. Distributes database data to different cloud instances.
number_of_shards: Option<i32>
(Pay-as-you-go subscriptions only) Optional. Changes the number of master shards.
data_persistence: Option<String>
Optional. Type and rate of data persistence in persistent storage. Use GET /fixed/plans/{planId} to see if your plan supports data persistence.
data_eviction_policy: Option<String>
Optional. Turns database replication on or off.
replication: Option<bool>
Optional. Sets database replication. Use GET /fixed/plans/{planId} to see if your plan supports database replication.
periodic_backup_path: Option<String>
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.
source_ips: Option<Vec<String>>
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’]’
replica_of: Option<Vec<String>>
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’] ).
replica: Option<ReplicaOfSpec>
§regex_rules: Option<Vec<String>>
(Pay-as-you-go subscriptions only) Optional. Hashing policy Regex rules. Used only if ‘shardingType’ is ‘custom-regex-rules’.
client_ssl_certificate: Option<String>
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’.
client_tls_certificates: Option<Vec<DatabaseCertificateSpec>>
Optional. A list of client TLS/SSL certificates. If specified, mTLS authentication will be required to authenticate user connections. If set to an empty list, TLS client certificates will be removed and mTLS will not be required. TLS connection may still apply, depending on the value of ‘enableTls’.
enable_tls: Option<bool>
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.
password: Option<String>
Optional. Changes the password used to access the database with the ‘default’ user.
enable_default_user: Option<bool>
Optional. When ‘true’, allows connecting to the database with the ‘default’ user. When ‘false’, only defined access control users can connect to the database.
alerts: Option<Vec<DatabaseAlertSpec>>
Optional. Changes Redis database alert details.
command_type: Option<String>
§extra: Value
Additional fields from the API
Trait Implementations§
Source§impl Clone for FixedDatabaseUpdateRequest
impl Clone for FixedDatabaseUpdateRequest
Source§fn clone(&self) -> FixedDatabaseUpdateRequest
fn clone(&self) -> FixedDatabaseUpdateRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more