pub struct SubscriptionCreateRequest {
pub name: Option<String>,
pub dry_run: Option<bool>,
pub deployment_type: Option<String>,
pub payment_method: Option<String>,
pub payment_method_id: Option<i32>,
pub memory_storage: Option<String>,
pub persistent_storage_encryption_type: Option<String>,
pub cloud_providers: Vec<SubscriptionSpec>,
pub databases: Vec<SubscriptionDatabaseSpec>,
pub redis_version: Option<String>,
pub command_type: Option<String>,
pub extra: Value,
}
Expand description
Request structure for creating a new Pro subscription
Defines configuration for flexible subscriptions including cloud providers, regions, deployment type, and initial database specifications.
Fields§
§name: Option<String>
Optional. New subscription name.
dry_run: Option<bool>
Optional. When ‘false’: Creates a deployment plan and deploys it, creating any resources required by the plan. When ‘true’: creates a read-only deployment plan and does not create any resources. Default: ‘false’
deployment_type: Option<String>
Optional. When ‘single-region’ or not set: Creates a single region subscription. When ‘active-active’: creates an Active-Active (multi-region) subscription.
payment_method: Option<String>
Optional. The payment method for the subscription. If set to ‘credit-card’, ‘paymentMethodId’ must be defined. Default: ‘credit-card’
payment_method_id: Option<i32>
Optional. A valid payment method ID for this account. Use GET /payment-methods to get a list of all payment methods for your account. This value is optional if ‘paymentMethod’ is ‘marketplace’, but required for all other account types.
memory_storage: Option<String>
Optional. Memory storage preference: either ‘ram’ or a combination of ‘ram-and-flash’ (also known as Auto Tiering). Default: ‘ram’
persistent_storage_encryption_type: Option<String>
Optional. Persistent storage encryption secures data-at-rest for database persistence. You can use ‘cloud-provider-managed-key’ or ‘customer-managed-key’. Default: ‘cloud-provider-managed-key’
cloud_providers: Vec<SubscriptionSpec>
Cloud provider, region, and networking details.
databases: Vec<SubscriptionDatabaseSpec>
One or more database specification(s) to create in this subscription.
redis_version: Option<String>
Optional. Defines the Redis version of the databases created in this specific request. It doesn’t determine future databases associated with this subscription. If not set, databases will use the default Redis version. This field is deprecated and will be removed in a future API version - use the database-level redisVersion property instead.
command_type: Option<String>
§extra: Value
Additional fields from the API
Trait Implementations§
Source§impl Clone for SubscriptionCreateRequest
impl Clone for SubscriptionCreateRequest
Source§fn clone(&self) -> SubscriptionCreateRequest
fn clone(&self) -> SubscriptionCreateRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more