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: "Indicate whether to force delete the instance. Default is `false`. If set true, the instance will be permanently deleted instead of being moved into the recycle bin. Note: only works for `PREPAID` instance.",
496
496
},
497
+
"disable_api_termination": {
498
+
Type: schema.TypeBool,
499
+
Optional: true,
500
+
Default: false,
501
+
Description: "Whether the termination protection is enabled. Default is `false`. If set true, which means that this instance can not be deleted by an API action.",
502
+
},
497
503
// role
498
504
"cam_role_name": {
499
505
Type: schema.TypeString,
@@ -739,6 +745,10 @@ func resourceTencentCloudInstanceCreate(d *schema.ResourceData, meta interface{}
739
745
request.UserData=&userData
740
746
}
741
747
748
+
ifv, ok:=d.GetOkExists("disable_api_termination"); ok {
Copy file name to clipboardExpand all lines: website/docs/r/instance.html.markdown
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,6 +147,7 @@ The following arguments are supported:
147
147
*`cdh_host_id` - (Optional, String, ForceNew) Id of cdh instance. Note: it only works when instance_charge_type is set to `CDHPAID`.
148
148
*`cdh_instance_type` - (Optional, String) Type of instance created on cdh, the value of this parameter is in the format of CDH_XCXG based on the number of CPU cores and memory capacity. Note: it only works when instance_charge_type is set to `CDHPAID`.
149
149
*`data_disks` - (Optional, List, ForceNew) Settings for data disks.
150
+
*`disable_api_termination` - (Optional, Bool) Whether the termination protection is enabled. Default is `false`. If set true, which means that this instance can not be deleted by an API action.
150
151
*`disable_monitor_service` - (Optional, Bool) Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed. Modifying will cause the instance reset.
151
152
*`disable_security_service` - (Optional, Bool) Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed. Modifying will cause the instance reset.
152
153
*`force_delete` - (Optional, Bool) Indicate whether to force delete the instance. Default is `false`. If set true, the instance will be permanently deleted instead of being moved into the recycle bin. Note: only works for `PREPAID` instance.
0 commit comments