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 ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.",
139
139
},
140
140
"private_ip": {
141
-
Type: schema.TypeString,
142
-
Optional: true,
143
-
Computed: true,
144
-
Description: "The private IP to be assigned to this instance, must be in the provided subnet and available.",
141
+
Type: schema.TypeString,
142
+
Optional: true,
143
+
Computed: true,
144
+
ConflictsWith: []string{
145
+
"private_ip_addresses",
146
+
},
147
+
Description: "The private IP to be assigned to this instance, must be in the provided subnet and available. Cannot be set at the same time as `private_ip_addresses`.",
145
148
},
146
149
"private_ip_addresses": {
147
-
Type: schema.TypeList,
148
-
Elem: &schema.Schema{Type: schema.TypeString},
149
-
Optional: true,
150
-
Computed: true,
150
+
Type: schema.TypeList,
151
+
Elem: &schema.Schema{Type: schema.TypeString},
152
+
Optional: true,
153
+
Computed: true,
154
+
ConflictsWith: []string{
155
+
"private_ip",
156
+
},
151
157
Description: "Private network subnet IP array, which can be used when creating an instance or modifying instance vpc attributes. Currently, only batch creation of multiple instances supports passing in multiple IPs of the same subnet. Cannot be set at the same time as `private_ip`.",
152
158
},
153
159
// security group
@@ -421,7 +427,9 @@ func doResourceTencentCloudInstanceSetCreate(d *schema.ResourceData, meta interf
Copy file name to clipboardExpand all lines: website/docs/r/instance_set.html.markdown
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ The following arguments are supported:
97
97
*`password` - (Optional, String) Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.
98
98
*`placement_group_id` - (Optional, String, ForceNew) The ID of a placement group.
99
99
*`private_ip_addresses` - (Optional, List: [`String`]) Private network subnet IP array, which can be used when creating an instance or modifying instance vpc attributes. Currently, only batch creation of multiple instances supports passing in multiple IPs of the same subnet. Cannot be set at the same time as `private_ip`.
100
-
*`private_ip` - (Optional, String) The private IP to be assigned to this instance, must be in the provided subnet and available.
100
+
*`private_ip` - (Optional, String) The private IP to be assigned to this instance, must be in the provided subnet and available. Cannot be set at the same time as `private_ip_addresses`.
101
101
*`project_id` - (Optional, Int) The project the instance belongs to, default to 0.
102
102
*`security_groups` - (Optional, Set: [`String`]) A list of security group IDs to associate with.
103
103
*`subnet_id` - (Optional, String) The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
0 commit comments