tencentcloud.RedisInstance
Explore with Pulumi AI
Provides a resource to create a Redis instance and set its attributes.
NOTE: The argument vpc_id and subnet_id is now required because Basic Network Instance is no longer supported.
NOTE: Both adding and removing replications in one change is supported but not recommend.
Example Usage
Create RedisInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RedisInstance(name: string, args: RedisInstanceArgs, opts?: CustomResourceOptions);
@overload
def RedisInstance(resource_name: str,
args: RedisInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RedisInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
mem_size: Optional[float] = None,
availability_zone: Optional[str] = None,
project_id: Optional[float] = None,
type: Optional[str] = None,
ip: Optional[str] = None,
charge_type: Optional[str] = None,
redis_cluster_id: Optional[str] = None,
no_auth: Optional[bool] = None,
operation_network: Optional[str] = None,
params_template_id: Optional[str] = None,
password: Optional[str] = None,
port: Optional[float] = None,
prepaid_period: Optional[float] = None,
product_version: Optional[str] = None,
force_delete: Optional[bool] = None,
auto_renew_flag: Optional[float] = None,
name: Optional[str] = None,
redis_instance_id: Optional[str] = None,
redis_replicas_num: Optional[float] = None,
redis_shard_num: Optional[float] = None,
replica_zone_ids: Optional[Sequence[float]] = None,
replicas_read_only: Optional[bool] = None,
security_groups: Optional[Sequence[str]] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
recycle: Optional[float] = None,
type_id: Optional[float] = None,
vpc_id: Optional[str] = None,
wait_switch: Optional[float] = None,
wan_address_switch: Optional[str] = None)
func NewRedisInstance(ctx *Context, name string, args RedisInstanceArgs, opts ...ResourceOption) (*RedisInstance, error)
public RedisInstance(string name, RedisInstanceArgs args, CustomResourceOptions? opts = null)
public RedisInstance(String name, RedisInstanceArgs args)
public RedisInstance(String name, RedisInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:RedisInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RedisInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RedisInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RedisInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RedisInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RedisInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RedisInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RedisInstance resource accepts the following input properties:
- Availability
Zone string - The available zone of an instance to be created, like
ap-beijing-7
, please refer totencentcloud_redis_zone_config.list
. - Mem
Size double - The memory volume of an available instance(in MB), please refer to
tencentcloud_redis_zone_config.list[zone].shard_memories
. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding.512MB
is supported only in master-slave instance. - Auto
Renew doubleFlag - Auto-renew flag. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal.
- Charge
Type string - The charge type of instance. Valid values:
PREPAID
andPOSTPAID
. Default value isPOSTPAID
. Note: TencentCloud International only supportsPOSTPAID
. Caution that update operation on this field will delete old instances and create new with new charge type. - Force
Delete bool - Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- Ip string
- IP address of an instance. When the
operation_network
ischangeVip
, this parameter needs to be configured. - Name string
- Instance name.
- No
Auth bool - Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment.
- Operation
Network string - Refers to the category of the pre-modified network, including:
changeVip
: refers to switching the private network, including its intranet IPv4 address and port;changeVpc
: refers to switching the subnet to which the private network belongs;changeBaseToVpc
: refers to switching the basic network to a private network;changeVPort
: refers to only modifying the instance network port. - Params
Template stringId - Specify params template id. If not set, will use default template.
- Password string
- Password for a Redis user, which should be 8 to 16 characters. NOTE: Only
no_auth=true
specified can make password empty. - Port double
- The port used to access a redis instance. The default value is 6379. When the
operation_network
ischangeVPort
orchangeVip
, this parameter needs to be configured. - Prepaid
Period double - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - Product
Version string - Specify the product version of the instance.
local
: Local disk version,cloud
: Cloud disk version,cdc
: Exclusive cluster version. Default islocal
. - Project
Id double - Specifies which project the instance should belong to.
- Recycle double
- Original intranet IPv4 address retention time: unit: day, value range:
0
,1
,2
,3
,7
,15
. - Redis
Cluster stringId - Exclusive cluster ID. When the
product_version
is set tocdc
, this parameter must be set. - Redis
Instance stringId - ID of the master or replica node.
- Redis
Replicas doubleNum - The number of instance copies. This is not required for standalone and master slave versions and must equal to count of
replica_zone_ids
, Non-multi-AZ does not requirereplica_zone_ids
; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. - Redis
Shard doubleNum - The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [
1
,3
,5
,8
,12
,16
,24
,32
,40
,48
,64
,80
,96
,128
]. - Replica
Zone List<double>Ids - ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove.
- Replicas
Read boolOnly - Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2.
- Security
Groups List<string> - ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
- Subnet
Id string - Specifies which subnet the instance should belong to. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - Dictionary<string, string>
- Instance tags.
- Type string
- It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
cluster_ckv
,cluster_redis5.0
,cluster_redis
,master_slave_ckv
,master_slave_redis4.0
,master_slave_redis5.0
,master_slave_redis
,standalone_redis
, specific region support specific types, need to refer datatencentcloud.getRedisZoneConfig
. - Type
Id double - Instance type. Available values reference data source
tencentcloud.getRedisZoneConfig
or document, toggle immediately when modified. - Vpc
Id string - ID of the vpc with which the instance is to be associated. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - Wait
Switch double - Switching mode:
1
-maintenance time window switching,2
-immediate switching, default value2
. - Wan
Address stringSwitch - Wan address switch, default
close
, values:open
,close
.
- Availability
Zone string - The available zone of an instance to be created, like
ap-beijing-7
, please refer totencentcloud_redis_zone_config.list
. - Mem
Size float64 - The memory volume of an available instance(in MB), please refer to
tencentcloud_redis_zone_config.list[zone].shard_memories
. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding.512MB
is supported only in master-slave instance. - Auto
Renew float64Flag - Auto-renew flag. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal.
- Charge
Type string - The charge type of instance. Valid values:
PREPAID
andPOSTPAID
. Default value isPOSTPAID
. Note: TencentCloud International only supportsPOSTPAID
. Caution that update operation on this field will delete old instances and create new with new charge type. - Force
Delete bool - Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- Ip string
- IP address of an instance. When the
operation_network
ischangeVip
, this parameter needs to be configured. - Name string
- Instance name.
- No
Auth bool - Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment.
- Operation
Network string - Refers to the category of the pre-modified network, including:
changeVip
: refers to switching the private network, including its intranet IPv4 address and port;changeVpc
: refers to switching the subnet to which the private network belongs;changeBaseToVpc
: refers to switching the basic network to a private network;changeVPort
: refers to only modifying the instance network port. - Params
Template stringId - Specify params template id. If not set, will use default template.
- Password string
- Password for a Redis user, which should be 8 to 16 characters. NOTE: Only
no_auth=true
specified can make password empty. - Port float64
- The port used to access a redis instance. The default value is 6379. When the
operation_network
ischangeVPort
orchangeVip
, this parameter needs to be configured. - Prepaid
Period float64 - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - Product
Version string - Specify the product version of the instance.
local
: Local disk version,cloud
: Cloud disk version,cdc
: Exclusive cluster version. Default islocal
. - Project
Id float64 - Specifies which project the instance should belong to.
- Recycle float64
- Original intranet IPv4 address retention time: unit: day, value range:
0
,1
,2
,3
,7
,15
. - Redis
Cluster stringId - Exclusive cluster ID. When the
product_version
is set tocdc
, this parameter must be set. - Redis
Instance stringId - ID of the master or replica node.
- Redis
Replicas float64Num - The number of instance copies. This is not required for standalone and master slave versions and must equal to count of
replica_zone_ids
, Non-multi-AZ does not requirereplica_zone_ids
; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. - Redis
Shard float64Num - The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [
1
,3
,5
,8
,12
,16
,24
,32
,40
,48
,64
,80
,96
,128
]. - Replica
Zone []float64Ids - ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove.
- Replicas
Read boolOnly - Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2.
- Security
Groups []string - ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
- Subnet
Id string - Specifies which subnet the instance should belong to. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - map[string]string
- Instance tags.
- Type string
- It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
cluster_ckv
,cluster_redis5.0
,cluster_redis
,master_slave_ckv
,master_slave_redis4.0
,master_slave_redis5.0
,master_slave_redis
,standalone_redis
, specific region support specific types, need to refer datatencentcloud.getRedisZoneConfig
. - Type
Id float64 - Instance type. Available values reference data source
tencentcloud.getRedisZoneConfig
or document, toggle immediately when modified. - Vpc
Id string - ID of the vpc with which the instance is to be associated. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - Wait
Switch float64 - Switching mode:
1
-maintenance time window switching,2
-immediate switching, default value2
. - Wan
Address stringSwitch - Wan address switch, default
close
, values:open
,close
.
- availability
Zone String - The available zone of an instance to be created, like
ap-beijing-7
, please refer totencentcloud_redis_zone_config.list
. - mem
Size Double - The memory volume of an available instance(in MB), please refer to
tencentcloud_redis_zone_config.list[zone].shard_memories
. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding.512MB
is supported only in master-slave instance. - auto
Renew DoubleFlag - Auto-renew flag. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal.
- charge
Type String - The charge type of instance. Valid values:
PREPAID
andPOSTPAID
. Default value isPOSTPAID
. Note: TencentCloud International only supportsPOSTPAID
. Caution that update operation on this field will delete old instances and create new with new charge type. - force
Delete Boolean - Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- ip String
- IP address of an instance. When the
operation_network
ischangeVip
, this parameter needs to be configured. - name String
- Instance name.
- no
Auth Boolean - Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment.
- operation
Network String - Refers to the category of the pre-modified network, including:
changeVip
: refers to switching the private network, including its intranet IPv4 address and port;changeVpc
: refers to switching the subnet to which the private network belongs;changeBaseToVpc
: refers to switching the basic network to a private network;changeVPort
: refers to only modifying the instance network port. - params
Template StringId - Specify params template id. If not set, will use default template.
- password String
- Password for a Redis user, which should be 8 to 16 characters. NOTE: Only
no_auth=true
specified can make password empty. - port Double
- The port used to access a redis instance. The default value is 6379. When the
operation_network
ischangeVPort
orchangeVip
, this parameter needs to be configured. - prepaid
Period Double - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - product
Version String - Specify the product version of the instance.
local
: Local disk version,cloud
: Cloud disk version,cdc
: Exclusive cluster version. Default islocal
. - project
Id Double - Specifies which project the instance should belong to.
- recycle Double
- Original intranet IPv4 address retention time: unit: day, value range:
0
,1
,2
,3
,7
,15
. - redis
Cluster StringId - Exclusive cluster ID. When the
product_version
is set tocdc
, this parameter must be set. - redis
Instance StringId - ID of the master or replica node.
- redis
Replicas DoubleNum - The number of instance copies. This is not required for standalone and master slave versions and must equal to count of
replica_zone_ids
, Non-multi-AZ does not requirereplica_zone_ids
; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. - redis
Shard DoubleNum - The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [
1
,3
,5
,8
,12
,16
,24
,32
,40
,48
,64
,80
,96
,128
]. - replica
Zone List<Double>Ids - ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove.
- replicas
Read BooleanOnly - Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2.
- security
Groups List<String> - ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
- subnet
Id String - Specifies which subnet the instance should belong to. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - Map<String,String>
- Instance tags.
- type String
- It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
cluster_ckv
,cluster_redis5.0
,cluster_redis
,master_slave_ckv
,master_slave_redis4.0
,master_slave_redis5.0
,master_slave_redis
,standalone_redis
, specific region support specific types, need to refer datatencentcloud.getRedisZoneConfig
. - type
Id Double - Instance type. Available values reference data source
tencentcloud.getRedisZoneConfig
or document, toggle immediately when modified. - vpc
Id String - ID of the vpc with which the instance is to be associated. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - wait
Switch Double - Switching mode:
1
-maintenance time window switching,2
-immediate switching, default value2
. - wan
Address StringSwitch - Wan address switch, default
close
, values:open
,close
.
- availability
Zone string - The available zone of an instance to be created, like
ap-beijing-7
, please refer totencentcloud_redis_zone_config.list
. - mem
Size number - The memory volume of an available instance(in MB), please refer to
tencentcloud_redis_zone_config.list[zone].shard_memories
. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding.512MB
is supported only in master-slave instance. - auto
Renew numberFlag - Auto-renew flag. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal.
- charge
Type string - The charge type of instance. Valid values:
PREPAID
andPOSTPAID
. Default value isPOSTPAID
. Note: TencentCloud International only supportsPOSTPAID
. Caution that update operation on this field will delete old instances and create new with new charge type. - force
Delete boolean - Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- ip string
- IP address of an instance. When the
operation_network
ischangeVip
, this parameter needs to be configured. - name string
- Instance name.
- no
Auth boolean - Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment.
- operation
Network string - Refers to the category of the pre-modified network, including:
changeVip
: refers to switching the private network, including its intranet IPv4 address and port;changeVpc
: refers to switching the subnet to which the private network belongs;changeBaseToVpc
: refers to switching the basic network to a private network;changeVPort
: refers to only modifying the instance network port. - params
Template stringId - Specify params template id. If not set, will use default template.
- password string
- Password for a Redis user, which should be 8 to 16 characters. NOTE: Only
no_auth=true
specified can make password empty. - port number
- The port used to access a redis instance. The default value is 6379. When the
operation_network
ischangeVPort
orchangeVip
, this parameter needs to be configured. - prepaid
Period number - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - product
Version string - Specify the product version of the instance.
local
: Local disk version,cloud
: Cloud disk version,cdc
: Exclusive cluster version. Default islocal
. - project
Id number - Specifies which project the instance should belong to.
- recycle number
- Original intranet IPv4 address retention time: unit: day, value range:
0
,1
,2
,3
,7
,15
. - redis
Cluster stringId - Exclusive cluster ID. When the
product_version
is set tocdc
, this parameter must be set. - redis
Instance stringId - ID of the master or replica node.
- redis
Replicas numberNum - The number of instance copies. This is not required for standalone and master slave versions and must equal to count of
replica_zone_ids
, Non-multi-AZ does not requirereplica_zone_ids
; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. - redis
Shard numberNum - The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [
1
,3
,5
,8
,12
,16
,24
,32
,40
,48
,64
,80
,96
,128
]. - replica
Zone number[]Ids - ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove.
- replicas
Read booleanOnly - Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2.
- security
Groups string[] - ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
- subnet
Id string - Specifies which subnet the instance should belong to. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - {[key: string]: string}
- Instance tags.
- type string
- It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
cluster_ckv
,cluster_redis5.0
,cluster_redis
,master_slave_ckv
,master_slave_redis4.0
,master_slave_redis5.0
,master_slave_redis
,standalone_redis
, specific region support specific types, need to refer datatencentcloud.getRedisZoneConfig
. - type
Id number - Instance type. Available values reference data source
tencentcloud.getRedisZoneConfig
or document, toggle immediately when modified. - vpc
Id string - ID of the vpc with which the instance is to be associated. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - wait
Switch number - Switching mode:
1
-maintenance time window switching,2
-immediate switching, default value2
. - wan
Address stringSwitch - Wan address switch, default
close
, values:open
,close
.
- availability_
zone str - The available zone of an instance to be created, like
ap-beijing-7
, please refer totencentcloud_redis_zone_config.list
. - mem_
size float - The memory volume of an available instance(in MB), please refer to
tencentcloud_redis_zone_config.list[zone].shard_memories
. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding.512MB
is supported only in master-slave instance. - auto_
renew_ floatflag - Auto-renew flag. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal.
- charge_
type str - The charge type of instance. Valid values:
PREPAID
andPOSTPAID
. Default value isPOSTPAID
. Note: TencentCloud International only supportsPOSTPAID
. Caution that update operation on this field will delete old instances and create new with new charge type. - force_
delete bool - Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- ip str
- IP address of an instance. When the
operation_network
ischangeVip
, this parameter needs to be configured. - name str
- Instance name.
- no_
auth bool - Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment.
- operation_
network str - Refers to the category of the pre-modified network, including:
changeVip
: refers to switching the private network, including its intranet IPv4 address and port;changeVpc
: refers to switching the subnet to which the private network belongs;changeBaseToVpc
: refers to switching the basic network to a private network;changeVPort
: refers to only modifying the instance network port. - params_
template_ strid - Specify params template id. If not set, will use default template.
- password str
- Password for a Redis user, which should be 8 to 16 characters. NOTE: Only
no_auth=true
specified can make password empty. - port float
- The port used to access a redis instance. The default value is 6379. When the
operation_network
ischangeVPort
orchangeVip
, this parameter needs to be configured. - prepaid_
period float - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - product_
version str - Specify the product version of the instance.
local
: Local disk version,cloud
: Cloud disk version,cdc
: Exclusive cluster version. Default islocal
. - project_
id float - Specifies which project the instance should belong to.
- recycle float
- Original intranet IPv4 address retention time: unit: day, value range:
0
,1
,2
,3
,7
,15
. - redis_
cluster_ strid - Exclusive cluster ID. When the
product_version
is set tocdc
, this parameter must be set. - redis_
instance_ strid - ID of the master or replica node.
- redis_
replicas_ floatnum - The number of instance copies. This is not required for standalone and master slave versions and must equal to count of
replica_zone_ids
, Non-multi-AZ does not requirereplica_zone_ids
; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. - redis_
shard_ floatnum - The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [
1
,3
,5
,8
,12
,16
,24
,32
,40
,48
,64
,80
,96
,128
]. - replica_
zone_ Sequence[float]ids - ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove.
- replicas_
read_ boolonly - Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2.
- security_
groups Sequence[str] - ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
- subnet_
id str - Specifies which subnet the instance should belong to. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - Mapping[str, str]
- Instance tags.
- type str
- It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
cluster_ckv
,cluster_redis5.0
,cluster_redis
,master_slave_ckv
,master_slave_redis4.0
,master_slave_redis5.0
,master_slave_redis
,standalone_redis
, specific region support specific types, need to refer datatencentcloud.getRedisZoneConfig
. - type_
id float - Instance type. Available values reference data source
tencentcloud.getRedisZoneConfig
or document, toggle immediately when modified. - vpc_
id str - ID of the vpc with which the instance is to be associated. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - wait_
switch float - Switching mode:
1
-maintenance time window switching,2
-immediate switching, default value2
. - wan_
address_ strswitch - Wan address switch, default
close
, values:open
,close
.
- availability
Zone String - The available zone of an instance to be created, like
ap-beijing-7
, please refer totencentcloud_redis_zone_config.list
. - mem
Size Number - The memory volume of an available instance(in MB), please refer to
tencentcloud_redis_zone_config.list[zone].shard_memories
. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding.512MB
is supported only in master-slave instance. - auto
Renew NumberFlag - Auto-renew flag. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal.
- charge
Type String - The charge type of instance. Valid values:
PREPAID
andPOSTPAID
. Default value isPOSTPAID
. Note: TencentCloud International only supportsPOSTPAID
. Caution that update operation on this field will delete old instances and create new with new charge type. - force
Delete Boolean - Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- ip String
- IP address of an instance. When the
operation_network
ischangeVip
, this parameter needs to be configured. - name String
- Instance name.
- no
Auth Boolean - Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment.
- operation
Network String - Refers to the category of the pre-modified network, including:
changeVip
: refers to switching the private network, including its intranet IPv4 address and port;changeVpc
: refers to switching the subnet to which the private network belongs;changeBaseToVpc
: refers to switching the basic network to a private network;changeVPort
: refers to only modifying the instance network port. - params
Template StringId - Specify params template id. If not set, will use default template.
- password String
- Password for a Redis user, which should be 8 to 16 characters. NOTE: Only
no_auth=true
specified can make password empty. - port Number
- The port used to access a redis instance. The default value is 6379. When the
operation_network
ischangeVPort
orchangeVip
, this parameter needs to be configured. - prepaid
Period Number - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - product
Version String - Specify the product version of the instance.
local
: Local disk version,cloud
: Cloud disk version,cdc
: Exclusive cluster version. Default islocal
. - project
Id Number - Specifies which project the instance should belong to.
- recycle Number
- Original intranet IPv4 address retention time: unit: day, value range:
0
,1
,2
,3
,7
,15
. - redis
Cluster StringId - Exclusive cluster ID. When the
product_version
is set tocdc
, this parameter must be set. - redis
Instance StringId - ID of the master or replica node.
- redis
Replicas NumberNum - The number of instance copies. This is not required for standalone and master slave versions and must equal to count of
replica_zone_ids
, Non-multi-AZ does not requirereplica_zone_ids
; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. - redis
Shard NumberNum - The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [
1
,3
,5
,8
,12
,16
,24
,32
,40
,48
,64
,80
,96
,128
]. - replica
Zone List<Number>Ids - ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove.
- replicas
Read BooleanOnly - Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2.
- security
Groups List<String> - ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
- subnet
Id String - Specifies which subnet the instance should belong to. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - Map<String>
- Instance tags.
- type String
- It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
cluster_ckv
,cluster_redis5.0
,cluster_redis
,master_slave_ckv
,master_slave_redis4.0
,master_slave_redis5.0
,master_slave_redis
,standalone_redis
, specific region support specific types, need to refer datatencentcloud.getRedisZoneConfig
. - type
Id Number - Instance type. Available values reference data source
tencentcloud.getRedisZoneConfig
or document, toggle immediately when modified. - vpc
Id String - ID of the vpc with which the instance is to be associated. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - wait
Switch Number - Switching mode:
1
-maintenance time window switching,2
-immediate switching, default value2
. - wan
Address StringSwitch - Wan address switch, default
close
, values:open
,close
.
Outputs
All input properties are implicitly available as output properties. Additionally, the RedisInstance resource produces the following output properties:
- Create
Time string - The time when the instance was created.
- Dedicated
Cluster stringId - Dedicated Cluster ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Node
Infos List<RedisInstance Node Info> - Readonly Primary/Replica nodes.
- Status string
- Current status of an instance, maybe: init, processing, online, isolate and todelete.
- Wan
Address string - Allocate Wan Address.
- Create
Time string - The time when the instance was created.
- Dedicated
Cluster stringId - Dedicated Cluster ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Node
Infos []RedisInstance Node Info - Readonly Primary/Replica nodes.
- Status string
- Current status of an instance, maybe: init, processing, online, isolate and todelete.
- Wan
Address string - Allocate Wan Address.
- create
Time String - The time when the instance was created.
- dedicated
Cluster StringId - Dedicated Cluster ID.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Infos List<RedisInstance Node Info> - Readonly Primary/Replica nodes.
- status String
- Current status of an instance, maybe: init, processing, online, isolate and todelete.
- wan
Address String - Allocate Wan Address.
- create
Time string - The time when the instance was created.
- dedicated
Cluster stringId - Dedicated Cluster ID.
- id string
- The provider-assigned unique ID for this managed resource.
- node
Infos RedisInstance Node Info[] - Readonly Primary/Replica nodes.
- status string
- Current status of an instance, maybe: init, processing, online, isolate and todelete.
- wan
Address string - Allocate Wan Address.
- create_
time str - The time when the instance was created.
- dedicated_
cluster_ strid - Dedicated Cluster ID.
- id str
- The provider-assigned unique ID for this managed resource.
- node_
infos Sequence[RedisInstance Node Info] - Readonly Primary/Replica nodes.
- status str
- Current status of an instance, maybe: init, processing, online, isolate and todelete.
- wan_
address str - Allocate Wan Address.
- create
Time String - The time when the instance was created.
- dedicated
Cluster StringId - Dedicated Cluster ID.
- id String
- The provider-assigned unique ID for this managed resource.
- node
Infos List<Property Map> - Readonly Primary/Replica nodes.
- status String
- Current status of an instance, maybe: init, processing, online, isolate and todelete.
- wan
Address String - Allocate Wan Address.
Look up Existing RedisInstance Resource
Get an existing RedisInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RedisInstanceState, opts?: CustomResourceOptions): RedisInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_renew_flag: Optional[float] = None,
availability_zone: Optional[str] = None,
charge_type: Optional[str] = None,
create_time: Optional[str] = None,
dedicated_cluster_id: Optional[str] = None,
force_delete: Optional[bool] = None,
ip: Optional[str] = None,
mem_size: Optional[float] = None,
name: Optional[str] = None,
no_auth: Optional[bool] = None,
node_infos: Optional[Sequence[RedisInstanceNodeInfoArgs]] = None,
operation_network: Optional[str] = None,
params_template_id: Optional[str] = None,
password: Optional[str] = None,
port: Optional[float] = None,
prepaid_period: Optional[float] = None,
product_version: Optional[str] = None,
project_id: Optional[float] = None,
recycle: Optional[float] = None,
redis_cluster_id: Optional[str] = None,
redis_instance_id: Optional[str] = None,
redis_replicas_num: Optional[float] = None,
redis_shard_num: Optional[float] = None,
replica_zone_ids: Optional[Sequence[float]] = None,
replicas_read_only: Optional[bool] = None,
security_groups: Optional[Sequence[str]] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
type: Optional[str] = None,
type_id: Optional[float] = None,
vpc_id: Optional[str] = None,
wait_switch: Optional[float] = None,
wan_address: Optional[str] = None,
wan_address_switch: Optional[str] = None) -> RedisInstance
func GetRedisInstance(ctx *Context, name string, id IDInput, state *RedisInstanceState, opts ...ResourceOption) (*RedisInstance, error)
public static RedisInstance Get(string name, Input<string> id, RedisInstanceState? state, CustomResourceOptions? opts = null)
public static RedisInstance get(String name, Output<String> id, RedisInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:RedisInstance get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Renew doubleFlag - Auto-renew flag. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal.
- Availability
Zone string - The available zone of an instance to be created, like
ap-beijing-7
, please refer totencentcloud_redis_zone_config.list
. - Charge
Type string - The charge type of instance. Valid values:
PREPAID
andPOSTPAID
. Default value isPOSTPAID
. Note: TencentCloud International only supportsPOSTPAID
. Caution that update operation on this field will delete old instances and create new with new charge type. - Create
Time string - The time when the instance was created.
- Dedicated
Cluster stringId - Dedicated Cluster ID.
- Force
Delete bool - Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- Ip string
- IP address of an instance. When the
operation_network
ischangeVip
, this parameter needs to be configured. - Mem
Size double - The memory volume of an available instance(in MB), please refer to
tencentcloud_redis_zone_config.list[zone].shard_memories
. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding.512MB
is supported only in master-slave instance. - Name string
- Instance name.
- No
Auth bool - Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment.
- Node
Infos List<RedisInstance Node Info> - Readonly Primary/Replica nodes.
- Operation
Network string - Refers to the category of the pre-modified network, including:
changeVip
: refers to switching the private network, including its intranet IPv4 address and port;changeVpc
: refers to switching the subnet to which the private network belongs;changeBaseToVpc
: refers to switching the basic network to a private network;changeVPort
: refers to only modifying the instance network port. - Params
Template stringId - Specify params template id. If not set, will use default template.
- Password string
- Password for a Redis user, which should be 8 to 16 characters. NOTE: Only
no_auth=true
specified can make password empty. - Port double
- The port used to access a redis instance. The default value is 6379. When the
operation_network
ischangeVPort
orchangeVip
, this parameter needs to be configured. - Prepaid
Period double - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - Product
Version string - Specify the product version of the instance.
local
: Local disk version,cloud
: Cloud disk version,cdc
: Exclusive cluster version. Default islocal
. - Project
Id double - Specifies which project the instance should belong to.
- Recycle double
- Original intranet IPv4 address retention time: unit: day, value range:
0
,1
,2
,3
,7
,15
. - Redis
Cluster stringId - Exclusive cluster ID. When the
product_version
is set tocdc
, this parameter must be set. - Redis
Instance stringId - ID of the master or replica node.
- Redis
Replicas doubleNum - The number of instance copies. This is not required for standalone and master slave versions and must equal to count of
replica_zone_ids
, Non-multi-AZ does not requirereplica_zone_ids
; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. - Redis
Shard doubleNum - The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [
1
,3
,5
,8
,12
,16
,24
,32
,40
,48
,64
,80
,96
,128
]. - Replica
Zone List<double>Ids - ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove.
- Replicas
Read boolOnly - Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2.
- Security
Groups List<string> - ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
- Status string
- Current status of an instance, maybe: init, processing, online, isolate and todelete.
- Subnet
Id string - Specifies which subnet the instance should belong to. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - Dictionary<string, string>
- Instance tags.
- Type string
- It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
cluster_ckv
,cluster_redis5.0
,cluster_redis
,master_slave_ckv
,master_slave_redis4.0
,master_slave_redis5.0
,master_slave_redis
,standalone_redis
, specific region support specific types, need to refer datatencentcloud.getRedisZoneConfig
. - Type
Id double - Instance type. Available values reference data source
tencentcloud.getRedisZoneConfig
or document, toggle immediately when modified. - Vpc
Id string - ID of the vpc with which the instance is to be associated. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - Wait
Switch double - Switching mode:
1
-maintenance time window switching,2
-immediate switching, default value2
. - Wan
Address string - Allocate Wan Address.
- Wan
Address stringSwitch - Wan address switch, default
close
, values:open
,close
.
- Auto
Renew float64Flag - Auto-renew flag. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal.
- Availability
Zone string - The available zone of an instance to be created, like
ap-beijing-7
, please refer totencentcloud_redis_zone_config.list
. - Charge
Type string - The charge type of instance. Valid values:
PREPAID
andPOSTPAID
. Default value isPOSTPAID
. Note: TencentCloud International only supportsPOSTPAID
. Caution that update operation on this field will delete old instances and create new with new charge type. - Create
Time string - The time when the instance was created.
- Dedicated
Cluster stringId - Dedicated Cluster ID.
- Force
Delete bool - Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- Ip string
- IP address of an instance. When the
operation_network
ischangeVip
, this parameter needs to be configured. - Mem
Size float64 - The memory volume of an available instance(in MB), please refer to
tencentcloud_redis_zone_config.list[zone].shard_memories
. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding.512MB
is supported only in master-slave instance. - Name string
- Instance name.
- No
Auth bool - Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment.
- Node
Infos []RedisInstance Node Info Args - Readonly Primary/Replica nodes.
- Operation
Network string - Refers to the category of the pre-modified network, including:
changeVip
: refers to switching the private network, including its intranet IPv4 address and port;changeVpc
: refers to switching the subnet to which the private network belongs;changeBaseToVpc
: refers to switching the basic network to a private network;changeVPort
: refers to only modifying the instance network port. - Params
Template stringId - Specify params template id. If not set, will use default template.
- Password string
- Password for a Redis user, which should be 8 to 16 characters. NOTE: Only
no_auth=true
specified can make password empty. - Port float64
- The port used to access a redis instance. The default value is 6379. When the
operation_network
ischangeVPort
orchangeVip
, this parameter needs to be configured. - Prepaid
Period float64 - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - Product
Version string - Specify the product version of the instance.
local
: Local disk version,cloud
: Cloud disk version,cdc
: Exclusive cluster version. Default islocal
. - Project
Id float64 - Specifies which project the instance should belong to.
- Recycle float64
- Original intranet IPv4 address retention time: unit: day, value range:
0
,1
,2
,3
,7
,15
. - Redis
Cluster stringId - Exclusive cluster ID. When the
product_version
is set tocdc
, this parameter must be set. - Redis
Instance stringId - ID of the master or replica node.
- Redis
Replicas float64Num - The number of instance copies. This is not required for standalone and master slave versions and must equal to count of
replica_zone_ids
, Non-multi-AZ does not requirereplica_zone_ids
; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. - Redis
Shard float64Num - The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [
1
,3
,5
,8
,12
,16
,24
,32
,40
,48
,64
,80
,96
,128
]. - Replica
Zone []float64Ids - ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove.
- Replicas
Read boolOnly - Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2.
- Security
Groups []string - ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
- Status string
- Current status of an instance, maybe: init, processing, online, isolate and todelete.
- Subnet
Id string - Specifies which subnet the instance should belong to. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - map[string]string
- Instance tags.
- Type string
- It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
cluster_ckv
,cluster_redis5.0
,cluster_redis
,master_slave_ckv
,master_slave_redis4.0
,master_slave_redis5.0
,master_slave_redis
,standalone_redis
, specific region support specific types, need to refer datatencentcloud.getRedisZoneConfig
. - Type
Id float64 - Instance type. Available values reference data source
tencentcloud.getRedisZoneConfig
or document, toggle immediately when modified. - Vpc
Id string - ID of the vpc with which the instance is to be associated. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - Wait
Switch float64 - Switching mode:
1
-maintenance time window switching,2
-immediate switching, default value2
. - Wan
Address string - Allocate Wan Address.
- Wan
Address stringSwitch - Wan address switch, default
close
, values:open
,close
.
- auto
Renew DoubleFlag - Auto-renew flag. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal.
- availability
Zone String - The available zone of an instance to be created, like
ap-beijing-7
, please refer totencentcloud_redis_zone_config.list
. - charge
Type String - The charge type of instance. Valid values:
PREPAID
andPOSTPAID
. Default value isPOSTPAID
. Note: TencentCloud International only supportsPOSTPAID
. Caution that update operation on this field will delete old instances and create new with new charge type. - create
Time String - The time when the instance was created.
- dedicated
Cluster StringId - Dedicated Cluster ID.
- force
Delete Boolean - Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- ip String
- IP address of an instance. When the
operation_network
ischangeVip
, this parameter needs to be configured. - mem
Size Double - The memory volume of an available instance(in MB), please refer to
tencentcloud_redis_zone_config.list[zone].shard_memories
. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding.512MB
is supported only in master-slave instance. - name String
- Instance name.
- no
Auth Boolean - Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment.
- node
Infos List<RedisInstance Node Info> - Readonly Primary/Replica nodes.
- operation
Network String - Refers to the category of the pre-modified network, including:
changeVip
: refers to switching the private network, including its intranet IPv4 address and port;changeVpc
: refers to switching the subnet to which the private network belongs;changeBaseToVpc
: refers to switching the basic network to a private network;changeVPort
: refers to only modifying the instance network port. - params
Template StringId - Specify params template id. If not set, will use default template.
- password String
- Password for a Redis user, which should be 8 to 16 characters. NOTE: Only
no_auth=true
specified can make password empty. - port Double
- The port used to access a redis instance. The default value is 6379. When the
operation_network
ischangeVPort
orchangeVip
, this parameter needs to be configured. - prepaid
Period Double - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - product
Version String - Specify the product version of the instance.
local
: Local disk version,cloud
: Cloud disk version,cdc
: Exclusive cluster version. Default islocal
. - project
Id Double - Specifies which project the instance should belong to.
- recycle Double
- Original intranet IPv4 address retention time: unit: day, value range:
0
,1
,2
,3
,7
,15
. - redis
Cluster StringId - Exclusive cluster ID. When the
product_version
is set tocdc
, this parameter must be set. - redis
Instance StringId - ID of the master or replica node.
- redis
Replicas DoubleNum - The number of instance copies. This is not required for standalone and master slave versions and must equal to count of
replica_zone_ids
, Non-multi-AZ does not requirereplica_zone_ids
; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. - redis
Shard DoubleNum - The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [
1
,3
,5
,8
,12
,16
,24
,32
,40
,48
,64
,80
,96
,128
]. - replica
Zone List<Double>Ids - ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove.
- replicas
Read BooleanOnly - Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2.
- security
Groups List<String> - ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
- status String
- Current status of an instance, maybe: init, processing, online, isolate and todelete.
- subnet
Id String - Specifies which subnet the instance should belong to. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - Map<String,String>
- Instance tags.
- type String
- It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
cluster_ckv
,cluster_redis5.0
,cluster_redis
,master_slave_ckv
,master_slave_redis4.0
,master_slave_redis5.0
,master_slave_redis
,standalone_redis
, specific region support specific types, need to refer datatencentcloud.getRedisZoneConfig
. - type
Id Double - Instance type. Available values reference data source
tencentcloud.getRedisZoneConfig
or document, toggle immediately when modified. - vpc
Id String - ID of the vpc with which the instance is to be associated. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - wait
Switch Double - Switching mode:
1
-maintenance time window switching,2
-immediate switching, default value2
. - wan
Address String - Allocate Wan Address.
- wan
Address StringSwitch - Wan address switch, default
close
, values:open
,close
.
- auto
Renew numberFlag - Auto-renew flag. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal.
- availability
Zone string - The available zone of an instance to be created, like
ap-beijing-7
, please refer totencentcloud_redis_zone_config.list
. - charge
Type string - The charge type of instance. Valid values:
PREPAID
andPOSTPAID
. Default value isPOSTPAID
. Note: TencentCloud International only supportsPOSTPAID
. Caution that update operation on this field will delete old instances and create new with new charge type. - create
Time string - The time when the instance was created.
- dedicated
Cluster stringId - Dedicated Cluster ID.
- force
Delete boolean - Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- ip string
- IP address of an instance. When the
operation_network
ischangeVip
, this parameter needs to be configured. - mem
Size number - The memory volume of an available instance(in MB), please refer to
tencentcloud_redis_zone_config.list[zone].shard_memories
. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding.512MB
is supported only in master-slave instance. - name string
- Instance name.
- no
Auth boolean - Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment.
- node
Infos RedisInstance Node Info[] - Readonly Primary/Replica nodes.
- operation
Network string - Refers to the category of the pre-modified network, including:
changeVip
: refers to switching the private network, including its intranet IPv4 address and port;changeVpc
: refers to switching the subnet to which the private network belongs;changeBaseToVpc
: refers to switching the basic network to a private network;changeVPort
: refers to only modifying the instance network port. - params
Template stringId - Specify params template id. If not set, will use default template.
- password string
- Password for a Redis user, which should be 8 to 16 characters. NOTE: Only
no_auth=true
specified can make password empty. - port number
- The port used to access a redis instance. The default value is 6379. When the
operation_network
ischangeVPort
orchangeVip
, this parameter needs to be configured. - prepaid
Period number - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - product
Version string - Specify the product version of the instance.
local
: Local disk version,cloud
: Cloud disk version,cdc
: Exclusive cluster version. Default islocal
. - project
Id number - Specifies which project the instance should belong to.
- recycle number
- Original intranet IPv4 address retention time: unit: day, value range:
0
,1
,2
,3
,7
,15
. - redis
Cluster stringId - Exclusive cluster ID. When the
product_version
is set tocdc
, this parameter must be set. - redis
Instance stringId - ID of the master or replica node.
- redis
Replicas numberNum - The number of instance copies. This is not required for standalone and master slave versions and must equal to count of
replica_zone_ids
, Non-multi-AZ does not requirereplica_zone_ids
; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. - redis
Shard numberNum - The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [
1
,3
,5
,8
,12
,16
,24
,32
,40
,48
,64
,80
,96
,128
]. - replica
Zone number[]Ids - ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove.
- replicas
Read booleanOnly - Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2.
- security
Groups string[] - ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
- status string
- Current status of an instance, maybe: init, processing, online, isolate and todelete.
- subnet
Id string - Specifies which subnet the instance should belong to. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - {[key: string]: string}
- Instance tags.
- type string
- It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
cluster_ckv
,cluster_redis5.0
,cluster_redis
,master_slave_ckv
,master_slave_redis4.0
,master_slave_redis5.0
,master_slave_redis
,standalone_redis
, specific region support specific types, need to refer datatencentcloud.getRedisZoneConfig
. - type
Id number - Instance type. Available values reference data source
tencentcloud.getRedisZoneConfig
or document, toggle immediately when modified. - vpc
Id string - ID of the vpc with which the instance is to be associated. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - wait
Switch number - Switching mode:
1
-maintenance time window switching,2
-immediate switching, default value2
. - wan
Address string - Allocate Wan Address.
- wan
Address stringSwitch - Wan address switch, default
close
, values:open
,close
.
- auto_
renew_ floatflag - Auto-renew flag. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal.
- availability_
zone str - The available zone of an instance to be created, like
ap-beijing-7
, please refer totencentcloud_redis_zone_config.list
. - charge_
type str - The charge type of instance. Valid values:
PREPAID
andPOSTPAID
. Default value isPOSTPAID
. Note: TencentCloud International only supportsPOSTPAID
. Caution that update operation on this field will delete old instances and create new with new charge type. - create_
time str - The time when the instance was created.
- dedicated_
cluster_ strid - Dedicated Cluster ID.
- force_
delete bool - Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- ip str
- IP address of an instance. When the
operation_network
ischangeVip
, this parameter needs to be configured. - mem_
size float - The memory volume of an available instance(in MB), please refer to
tencentcloud_redis_zone_config.list[zone].shard_memories
. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding.512MB
is supported only in master-slave instance. - name str
- Instance name.
- no_
auth bool - Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment.
- node_
infos Sequence[RedisInstance Node Info Args] - Readonly Primary/Replica nodes.
- operation_
network str - Refers to the category of the pre-modified network, including:
changeVip
: refers to switching the private network, including its intranet IPv4 address and port;changeVpc
: refers to switching the subnet to which the private network belongs;changeBaseToVpc
: refers to switching the basic network to a private network;changeVPort
: refers to only modifying the instance network port. - params_
template_ strid - Specify params template id. If not set, will use default template.
- password str
- Password for a Redis user, which should be 8 to 16 characters. NOTE: Only
no_auth=true
specified can make password empty. - port float
- The port used to access a redis instance. The default value is 6379. When the
operation_network
ischangeVPort
orchangeVip
, this parameter needs to be configured. - prepaid_
period float - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - product_
version str - Specify the product version of the instance.
local
: Local disk version,cloud
: Cloud disk version,cdc
: Exclusive cluster version. Default islocal
. - project_
id float - Specifies which project the instance should belong to.
- recycle float
- Original intranet IPv4 address retention time: unit: day, value range:
0
,1
,2
,3
,7
,15
. - redis_
cluster_ strid - Exclusive cluster ID. When the
product_version
is set tocdc
, this parameter must be set. - redis_
instance_ strid - ID of the master or replica node.
- redis_
replicas_ floatnum - The number of instance copies. This is not required for standalone and master slave versions and must equal to count of
replica_zone_ids
, Non-multi-AZ does not requirereplica_zone_ids
; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. - redis_
shard_ floatnum - The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [
1
,3
,5
,8
,12
,16
,24
,32
,40
,48
,64
,80
,96
,128
]. - replica_
zone_ Sequence[float]ids - ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove.
- replicas_
read_ boolonly - Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2.
- security_
groups Sequence[str] - ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
- status str
- Current status of an instance, maybe: init, processing, online, isolate and todelete.
- subnet_
id str - Specifies which subnet the instance should belong to. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - Mapping[str, str]
- Instance tags.
- type str
- It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
cluster_ckv
,cluster_redis5.0
,cluster_redis
,master_slave_ckv
,master_slave_redis4.0
,master_slave_redis5.0
,master_slave_redis
,standalone_redis
, specific region support specific types, need to refer datatencentcloud.getRedisZoneConfig
. - type_
id float - Instance type. Available values reference data source
tencentcloud.getRedisZoneConfig
or document, toggle immediately when modified. - vpc_
id str - ID of the vpc with which the instance is to be associated. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - wait_
switch float - Switching mode:
1
-maintenance time window switching,2
-immediate switching, default value2
. - wan_
address str - Allocate Wan Address.
- wan_
address_ strswitch - Wan address switch, default
close
, values:open
,close
.
- auto
Renew NumberFlag - Auto-renew flag. 0 - default state (manual renewal); 1 - automatic renewal; 2 - explicit no automatic renewal.
- availability
Zone String - The available zone of an instance to be created, like
ap-beijing-7
, please refer totencentcloud_redis_zone_config.list
. - charge
Type String - The charge type of instance. Valid values:
PREPAID
andPOSTPAID
. Default value isPOSTPAID
. Note: TencentCloud International only supportsPOSTPAID
. Caution that update operation on this field will delete old instances and create new with new charge type. - create
Time String - The time when the instance was created.
- dedicated
Cluster StringId - Dedicated Cluster ID.
- force
Delete Boolean - Indicate whether to delete Redis instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- ip String
- IP address of an instance. When the
operation_network
ischangeVip
, this parameter needs to be configured. - mem
Size Number - The memory volume of an available instance(in MB), please refer to
tencentcloud_redis_zone_config.list[zone].shard_memories
. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding.512MB
is supported only in master-slave instance. - name String
- Instance name.
- no
Auth Boolean - Indicates whether the redis instance support no-auth access. NOTE: Only available in private cloud environment.
- node
Infos List<Property Map> - Readonly Primary/Replica nodes.
- operation
Network String - Refers to the category of the pre-modified network, including:
changeVip
: refers to switching the private network, including its intranet IPv4 address and port;changeVpc
: refers to switching the subnet to which the private network belongs;changeBaseToVpc
: refers to switching the basic network to a private network;changeVPort
: refers to only modifying the instance network port. - params
Template StringId - Specify params template id. If not set, will use default template.
- password String
- Password for a Redis user, which should be 8 to 16 characters. NOTE: Only
no_auth=true
specified can make password empty. - port Number
- The port used to access a redis instance. The default value is 6379. When the
operation_network
ischangeVPort
orchangeVip
, this parameter needs to be configured. - prepaid
Period Number - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - product
Version String - Specify the product version of the instance.
local
: Local disk version,cloud
: Cloud disk version,cdc
: Exclusive cluster version. Default islocal
. - project
Id Number - Specifies which project the instance should belong to.
- recycle Number
- Original intranet IPv4 address retention time: unit: day, value range:
0
,1
,2
,3
,7
,15
. - redis
Cluster StringId - Exclusive cluster ID. When the
product_version
is set tocdc
, this parameter must be set. - redis
Instance StringId - ID of the master or replica node.
- redis
Replicas NumberNum - The number of instance copies. This is not required for standalone and master slave versions and must equal to count of
replica_zone_ids
, Non-multi-AZ does not requirereplica_zone_ids
; Redis memory version 4.0, 5.0, 6.2 standard architecture and cluster architecture support the number of copies in the range [1, 2, 3, 4, 5]; Redis 2.8 standard version and CKV standard version only support 1 copy. - redis
Shard NumberNum - The number of instance shards; this parameter does not need to be configured for standard version instances; for cluster version instances, the number of shards ranges from: [
1
,3
,5
,8
,12
,16
,24
,32
,40
,48
,64
,80
,96
,128
]. - replica
Zone List<Number>Ids - ID of replica nodes available zone. This is not required for standalone and master slave versions. NOTE: Removing some of the same zone of replicas (e.g. removing 100001 of [100001, 100001, 100002]) will pick the first hit to remove.
- replicas
Read BooleanOnly - Whether copy read-only is supported, Redis 2.8 Standard Edition and CKV Standard Edition do not support replica read-only, turn on replica read-only, the instance will automatically read and write separate, write requests are routed to the primary node, read requests are routed to the replica node, if you need to open replica read-only, the recommended number of replicas >=2.
- security
Groups List<String> - ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
- status String
- Current status of an instance, maybe: init, processing, online, isolate and todelete.
- subnet
Id String - Specifies which subnet the instance should belong to. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - Map<String>
- Instance tags.
- type String
- It has been deprecated from version 1.33.1. Please use 'type_id' instead. Instance type. Available values:
cluster_ckv
,cluster_redis5.0
,cluster_redis
,master_slave_ckv
,master_slave_redis4.0
,master_slave_redis5.0
,master_slave_redis
,standalone_redis
, specific region support specific types, need to refer datatencentcloud.getRedisZoneConfig
. - type
Id Number - Instance type. Available values reference data source
tencentcloud.getRedisZoneConfig
or document, toggle immediately when modified. - vpc
Id String - ID of the vpc with which the instance is to be associated. When the
operation_network
ischangeVpc
orchangeBaseToVpc
, this parameter needs to be configured. - wait
Switch Number - Switching mode:
1
-maintenance time window switching,2
-immediate switching, default value2
. - wan
Address String - Allocate Wan Address.
- wan
Address StringSwitch - Wan address switch, default
close
, values:open
,close
.
Supporting Types
RedisInstanceNodeInfo, RedisInstanceNodeInfoArgs
Import
Redis instance can be imported, e.g.
$ pulumi import tencentcloud:index/redisInstance:RedisInstance example crs-iu22tdrf
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.