pub struct FixedDatabaseCreateRequest {Show 27 fields
pub subscription_id: Option<i32>,
pub name: String,
pub protocol: Option<String>,
pub memory_limit_in_gb: Option<f64>,
pub dataset_size_in_gb: Option<f64>,
pub support_oss_cluster_api: Option<bool>,
pub redis_version: Option<String>,
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 regex_rules: Option<Vec<String>>,
pub replica_of: Option<Vec<String>>,
pub replica: Option<ReplicaOfSpec>,
pub client_ssl_certificate: Option<String>,
pub client_tls_certificates: Option<Vec<DatabaseCertificateSpec>>,
pub enable_tls: Option<bool>,
pub password: Option<String>,
pub alerts: Option<Vec<DatabaseAlertSpec>>,
pub modules: Option<Vec<DatabaseModuleSpec>>,
pub command_type: Option<String>,
pub extra: Value,
}
Expand description
Essentials database definition
Fields§
§subscription_id: Option<i32>
§name: String
Name of the database. Database name is limited to 40 characters or less and must include only letters, digits, and hyphens (‘-’). It must start with a letter and end with a letter or digit.
protocol: Option<String>
Optional. Database protocol. Use ‘stack’ to get all of Redis’ advanced capabilities. Only use ‘redis’ for Pay-as-you-go or Redis Flex subscriptions. Default: ‘stack’ for most subscriptions, ‘redis’ for Redis Flex subscriptions.
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. Default: ‘false’
redis_version: Option<String>
Optional. If specified, redisVersion defines the Redis database version. If omitted, the Redis version will be set to the default version. (available in ‘GET /fixed/redis-versions’)
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. Default: ‘false’
number_of_shards: Option<i32>
(Pay-as-you-go subscriptions only) Optional. Specifies 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. Data eviction policy.
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. The path to a backup storage location. 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.
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. Use GET /fixed/plans/{planId} to see how many CIDR allow rules your plan supports. Example: ’[‘192.168.10.0/32’, ‘192.168.12.0/24’]’
regex_rules: Option<Vec<String>>
(Pay-as-you-go subscriptions only) Optional. Hashing policy Regex rules. Used only if ‘enableDatabaseClustering’ is set to ‘true’ and .
replica_of: Option<Vec<String>>
Optional. This database will be a replica of the specified Redis databases provided as one or more URI(s). Example: ‘redis://user:password@host:port’. If the URI provided is a Redis Cloud database, only host and port should be provided. Example: [‘redis://endpoint1:6379’, ‘redis://endpoint2:6380’].
replica: Option<ReplicaOfSpec>
§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. Default: ‘null’
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.
enable_tls: Option<bool>
Optional. When ‘true’, requires TLS authentication for all connections - mTLS with valid clientTlsCertificates, regular TLS when clientTlsCertificates is not provided. Default: ‘false’
password: Option<String>
Optional. Password to access the database. If not set, a random 32-character alphanumeric password will be automatically generated.
alerts: Option<Vec<DatabaseAlertSpec>>
Optional. Redis database alert details.
modules: Option<Vec<DatabaseModuleSpec>>
Optional. Redis advanced capabilities (also known as modules) to be provisioned in the database. Use GET /database-modules to get a list of available advanced capabilities. Can only be set if ‘protocol’ is ‘redis’.
command_type: Option<String>
§extra: Value
Additional fields from the API
Trait Implementations§
Source§impl Clone for FixedDatabaseCreateRequest
impl Clone for FixedDatabaseCreateRequest
Source§fn clone(&self) -> FixedDatabaseCreateRequest
fn clone(&self) -> FixedDatabaseCreateRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more