Skip to content

Commit 707becb

Browse files
hellertangmikatong
authored andcommitted
add as operation remove
1 parent 4544fc1 commit 707becb

File tree

3 files changed

+49
-1
lines changed

3 files changed

+49
-1
lines changed

tencentcloud/resource_tc_as_remove_instances.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func resourceTencentCloudAsRemoveInstances() *schema.Resource {
5151
Elem: &schema.Schema{
5252
Type: schema.TypeString,
5353
},
54-
Description: "List of cvm instances to remove .",
54+
Description: "List of cvm instances to remove.",
5555
},
5656
},
5757
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
subcategory: "Auto Scaling(AS)"
3+
layout: "tencentcloud"
4+
page_title: "TencentCloud: tencentcloud_as_remove_instances"
5+
sidebar_current: "docs-tencentcloud-resource-as_remove_instances"
6+
description: |-
7+
Provides a resource to create a as remove_instances
8+
---
9+
10+
# tencentcloud_as_remove_instances
11+
12+
Provides a resource to create a as remove_instances
13+
14+
## Example Usage
15+
16+
```hcl
17+
resource "tencentcloud_as_remove_instances" "remove_instances" {
18+
auto_scaling_group_id = ""
19+
instance_ids = ""
20+
}
21+
```
22+
23+
## Argument Reference
24+
25+
The following arguments are supported:
26+
27+
* `auto_scaling_group_id` - (Required, String, ForceNew) Launch configuration ID.
28+
* `instance_ids` - (Required, Set: [`String`], ForceNew) List of cvm instances to remove.
29+
30+
## Attributes Reference
31+
32+
In addition to all arguments above, the following attributes are exported:
33+
34+
* `id` - ID of the resource.
35+
36+
37+
38+
## Import
39+
40+
as remove_instances can be imported using the id, e.g.
41+
42+
```
43+
terraform import tencentcloud_as_remove_instances.remove_instances remove_instances_id
44+
```
45+

website/tencentcloud.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@
221221
<li>
222222
<a href="/docs/providers/tencentcloud/r/as_notification.html">tencentcloud_as_notification</a>
223223
</li>
224+
<li>
225+
<a href="/docs/providers/tencentcloud/r/as_remove_instances.html">tencentcloud_as_remove_instances</a>
226+
</li>
224227
<li>
225228
<a href="/docs/providers/tencentcloud/r/as_scaling_config.html">tencentcloud_as_scaling_config</a>
226229
</li>

0 commit comments

Comments
 (0)