You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "The charge type of instance. Valid values are `POSTPAID` and `PREPAID`.",
154
154
},
155
+
"node_info": {
156
+
Type: schema.TypeList,
157
+
Computed: true,
158
+
Description: "List of instance node information. Currently, information about the node type (master or replica) and node availability zone can be passed in.",
159
+
Elem: &schema.Resource{
160
+
Schema: map[string]*schema.Schema{
161
+
"master": {
162
+
Type: schema.TypeBool,
163
+
Computed: true,
164
+
Description: "Indicates whether the node is master.",
165
+
},
166
+
"id": {
167
+
Type: schema.TypeInt,
168
+
Computed: true,
169
+
Description: "ID of the master or replica node.",
170
+
},
171
+
"zone_id": {
172
+
Type: schema.TypeInt,
173
+
Computed: true,
174
+
Description: "ID of the availability zone of the master or replica node.",
DeprecationMessage: "This resource has been deprecated in Terraform TencentCloud provider version 1.59.18. Please use 'tencentcloud_alarm_policy' instead.",
Description: "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. Note: only works for `PREPAID` instance.",
208
247
},
209
248
},
@@ -320,6 +359,32 @@ func resourceTencentCloudRedisInstanceCreate(d *schema.ResourceData, meta interf
Copy file name to clipboardExpand all lines: website/docs/d/redis_instances.html.markdown
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,10 @@ In addition to all arguments above, the following attributes are exported:
44
44
*`ip` - IP address of an instance.
45
45
*`mem_size` - Memory size in MB.
46
46
*`name` - Name of a redis instance.
47
+
*`node_info` - List of instance node information. Currently, information about the node type (master or replica) and node availability zone can be passed in.
48
+
*`id` - ID of the master or replica node.
49
+
*`master` - Indicates whether the node is master.
50
+
*`zone_id` - ID of the availability zone of the master or replica node.
47
51
*`port` - The port used to access a redis instance.
48
52
*`project_id` - ID of the project to which a redis instance belongs.
@@ -44,11 +78,12 @@ The following arguments are supported:
44
78
*`project_id` - (Optional) Specifies which project the instance should belong to.
45
79
*`redis_replicas_num` - (Optional, ForceNew) The number of instance copies. This is not required for standalone and master slave versions.
46
80
*`redis_shard_num` - (Optional, ForceNew) The number of instance shard. This is not required for standalone and master slave versions.
81
+
*`replica_zone_ids` - (Optional, ForceNew) ID of replica nodes available zone. This is not required for standalone and master slave versions.
47
82
*`security_groups` - (Optional, ForceNew) ID of security group. If both vpc_id and subnet_id are not set, this argument should not be set either.
48
83
*`subnet_id` - (Optional, ForceNew) Specifies which subnet the instance should belong to.
49
84
*`tags` - (Optional) Instance tags.
50
85
*`type_id` - (Optional, ForceNew) Instance type. Available values reference data source `tencentcloud_redis_zone_config` or [document](https://intl.cloud.tencent.com/document/product/239/32069).
51
-
*`type` - (Optional, ForceNew, **Deprecated**) 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_redis5.0`,`master_slave_redis`,`standalone_redis`, specific region support specific types, need to refer data `tencentcloud_redis_zone_config`.
86
+
*`type` - (Optional, ForceNew, **Deprecated**) 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 data `tencentcloud_redis_zone_config`.
52
87
*`vpc_id` - (Optional, ForceNew) ID of the vpc with which the instance is to be associated.
0 commit comments