CreateRedisClusterDetails¶
- class oci.redis.models.CreateRedisClusterDetails(**kwargs)¶
Bases:
objectThe configuration details for a new OCI Cache cluster. An OCI Cache cluster is a memory-based storage solution. For more information, see OCI Cache.
Methods:
__init__(**kwargs)Initializes a new CreateRedisClusterDetails object with values from keyword arguments.
Attributes:
Gets the backup_id of this CreateRedisClusterDetails.
Gets the cluster_mode of this CreateRedisClusterDetails.
[Required] Gets the compartment_id of this CreateRedisClusterDetails.
Gets the defined_tags of this CreateRedisClusterDetails.
[Required] Gets the display_name of this CreateRedisClusterDetails.
Gets the freeform_tags of this CreateRedisClusterDetails.
Gets the import_from_object_storage_details of this CreateRedisClusterDetails.
[Required] Gets the node_count of this CreateRedisClusterDetails.
[Required] Gets the node_memory_in_gbs of this CreateRedisClusterDetails.
Gets the nsg_ids of this CreateRedisClusterDetails.
Gets the oci_cache_config_set_id of this CreateRedisClusterDetails.
Gets the primary_cluster_id of this CreateRedisClusterDetails.
Gets the security_attributes of this CreateRedisClusterDetails.
Gets the shard_count of this CreateRedisClusterDetails.
[Required] Gets the software_version of this CreateRedisClusterDetails.
[Required] Gets the subnet_id of this CreateRedisClusterDetails.
- __init__(**kwargs)¶
Initializes a new CreateRedisClusterDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
oci_cache_config_set_id (str) – The value to assign to the oci_cache_config_set_id property of this CreateRedisClusterDetails.
cluster_mode (str) – The value to assign to the cluster_mode property of this CreateRedisClusterDetails.
shard_count (int) – The value to assign to the shard_count property of this CreateRedisClusterDetails.
display_name (str) – The value to assign to the display_name property of this CreateRedisClusterDetails.
compartment_id (str) – The value to assign to the compartment_id property of this CreateRedisClusterDetails.
node_count (int) – The value to assign to the node_count property of this CreateRedisClusterDetails.
software_version (str) – The value to assign to the software_version property of this CreateRedisClusterDetails.
node_memory_in_gbs (float) – The value to assign to the node_memory_in_gbs property of this CreateRedisClusterDetails.
subnet_id (str) – The value to assign to the subnet_id property of this CreateRedisClusterDetails.
nsg_ids (list[str]) – The value to assign to the nsg_ids property of this CreateRedisClusterDetails.
security_attributes (dict(str, dict(str, object))) – The value to assign to the security_attributes property of this CreateRedisClusterDetails.
backup_id (str) – The value to assign to the backup_id property of this CreateRedisClusterDetails.
import_from_object_storage_details (oci.redis.models.ImportOciCacheFromObjectStorageDetails) – The value to assign to the import_from_object_storage_details property of this CreateRedisClusterDetails.
primary_cluster_id (str) – The value to assign to the primary_cluster_id property of this CreateRedisClusterDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateRedisClusterDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateRedisClusterDetails.
- property backup_id¶
Gets the backup_id of this CreateRedisClusterDetails. The ID of the OCI Cache Backup from which this cluster was created.Mutually exclusive with ‘importFromObjectStorageDetails’.
- Returns
The backup_id of this CreateRedisClusterDetails.
- Return type
str
- property cluster_mode¶
Gets the cluster_mode of this CreateRedisClusterDetails. Specifies whether the cluster is sharded or non-sharded.
- Returns
The cluster_mode of this CreateRedisClusterDetails.
- Return type
str
- property compartment_id¶
[Required] Gets the compartment_id of this CreateRedisClusterDetails. The OCID of the compartment that contains the cluster.
- Returns
The compartment_id of this CreateRedisClusterDetails.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this CreateRedisClusterDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Returns
The defined_tags of this CreateRedisClusterDetails.
- Return type
dict(str, dict(str, object))
- property display_name¶
[Required] Gets the display_name of this CreateRedisClusterDetails. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Returns
The display_name of this CreateRedisClusterDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this CreateRedisClusterDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Returns
The freeform_tags of this CreateRedisClusterDetails.
- Return type
dict(str, str)
- property import_from_object_storage_details¶
Gets the import_from_object_storage_details of this CreateRedisClusterDetails.
- Returns
The import_from_object_storage_details of this CreateRedisClusterDetails.
- Return type
- property node_count¶
[Required] Gets the node_count of this CreateRedisClusterDetails. The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED.
- Returns
The node_count of this CreateRedisClusterDetails.
- Return type
int
- property node_memory_in_gbs¶
[Required] Gets the node_memory_in_gbs of this CreateRedisClusterDetails. The amount of memory allocated to the cluster’s nodes, in gigabytes.
- Returns
The node_memory_in_gbs of this CreateRedisClusterDetails.
- Return type
float
- property nsg_ids¶
Gets the nsg_ids of this CreateRedisClusterDetails. A list of Network Security Group (NSG) OCIDs associated with this cluster. For more information, see Using an NSG for Clusters.
- Returns
The nsg_ids of this CreateRedisClusterDetails.
- Return type
list[str]
- property oci_cache_config_set_id¶
Gets the oci_cache_config_set_id of this CreateRedisClusterDetails. The ID of the corresponding OCI Cache Config Set for the cluster.
- Returns
The oci_cache_config_set_id of this CreateRedisClusterDetails.
- Return type
str
- property primary_cluster_id¶
Gets the primary_cluster_id of this CreateRedisClusterDetails. The OCID of the primary cluster from which data will be replicated.
- Returns
The primary_cluster_id of this CreateRedisClusterDetails.
- Return type
str
- property security_attributes¶
Gets the security_attributes of this CreateRedisClusterDetails. Security attributes for redis cluster resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {“Oracle-ZPR”: {“MaxEgressCount”: {“value”: “42”, “mode”: “enforce”}}}
- Returns
The security_attributes of this CreateRedisClusterDetails.
- Return type
dict(str, dict(str, object))
- property shard_count¶
Gets the shard_count of this CreateRedisClusterDetails. The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED.
- Returns
The shard_count of this CreateRedisClusterDetails.
- Return type
int
- property software_version¶
[Required] Gets the software_version of this CreateRedisClusterDetails. The OCI Cache engine version that the cluster is running.
- Returns
The software_version of this CreateRedisClusterDetails.
- Return type
str