Skip to content

Commit a1ee08e

Browse files
author
mikatong
committed
fix vpc reserve ip address
1 parent a20782e commit a1ee08e

File tree

4 files changed

+65
-2
lines changed

4 files changed

+65
-2
lines changed

tencentcloud/provider.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ Virtual Private Cloud(VPC)
12631263
tencentcloud_protocol_template_group
12641264
tencentcloud_route_table
12651265
tencentcloud_vpc_private_nat_gateway
1266-
tencentcloud_route_table_association
1266+
tencentcloud_route_table_association
12671267
tencentcloud_route_entry
12681268
tencentcloud_route_table_entry
12691269
tencentcloud_dnat
@@ -1275,6 +1275,7 @@ Virtual Private Cloud(VPC)
12751275
tencentcloud_vpc_bandwidth_package
12761276
tencentcloud_vpc_bandwidth_package_attachment
12771277
tencentcloud_ipv6_address_bandwidth
1278+
tencentcloud_reserve_ip_address
12781279

12791280
Private Link(PLS)
12801281
Resource

tencentcloud/services/vpc/resource_tc_reserve_ip_address.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func resourceTencentCloudReserveIpAddressUpdate(d *schema.ResourceData, meta int
226226

227227
ctx := tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta)
228228

229-
immutableArgs := []string{"vpc_id", "ip_addresses", "subnet_id"}
229+
immutableArgs := []string{"vpc_id", "ip_address", "subnet_id"}
230230
for _, v := range immutableArgs {
231231
if d.HasChange(v) {
232232
return fmt.Errorf("argument `%s` cannot be changed", v)
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
subcategory: "Virtual Private Cloud(VPC)"
3+
layout: "tencentcloud"
4+
page_title: "TencentCloud: tencentcloud_reserve_ip_address"
5+
sidebar_current: "docs-tencentcloud-resource-reserve_ip_address"
6+
description: |-
7+
Provides a resource to create a vpc reserve ip addresses
8+
---
9+
10+
# tencentcloud_reserve_ip_address
11+
12+
Provides a resource to create a vpc reserve ip addresses
13+
14+
## Example Usage
15+
16+
```hcl
17+
resource "tencentcloud_reserve_ip_address" "reserve_ip" {
18+
vpc_id = "xxxxxx"
19+
subnet_id = "xxxxxx"
20+
ip_address = "10.0.0.13"
21+
name = "reserve-ip-tf"
22+
description = "description"
23+
tags = {
24+
"test1" = "test1"
25+
}
26+
}
27+
```
28+
29+
## Argument Reference
30+
31+
The following arguments are supported:
32+
33+
* `vpc_id` - (Required, String) VPC unique ID.
34+
* `description` - (Optional, String) The IP description is retained on the intranet.
35+
* `ip_address` - (Optional, String) Specify the reserved IP address of the intranet for which the IP application is requested.
36+
* `name` - (Optional, String) The IP name is reserved for the intranet.
37+
* `subnet_id` - (Optional, String) Subnet ID.
38+
* `tags` - (Optional, Map) Tags.
39+
40+
## Attributes Reference
41+
42+
In addition to all arguments above, the following attributes are exported:
43+
44+
* `id` - ID of the resource.
45+
* `created_time` - Created time.
46+
* `ip_type` - Ip type for product application.
47+
* `reserve_ip_id` - Reserve ip ID.
48+
* `resource_id` - The intranet retains the resource instance ID bound to the IPs.
49+
* `state` - Binding status.
50+
51+
52+
## Import
53+
54+
vpc reserve_ip_addresses can be imported using the id, e.g.
55+
56+
```
57+
terraform import tencentcloud_reserve_ip_addresses.reserve_ip_addresses ${vpcId}#${reserveIpId}
58+
```
59+

website/tencentcloud.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6400,6 +6400,9 @@
64006400
<li>
64016401
<a href="/docs/providers/tencentcloud/r/protocol_template_group.html">tencentcloud_protocol_template_group</a>
64026402
</li>
6403+
<li>
6404+
<a href="/docs/providers/tencentcloud/r/reserve_ip_address.html">tencentcloud_reserve_ip_address</a>
6405+
</li>
64036406
<li>
64046407
<a href="/docs/providers/tencentcloud/r/route_entry.html">tencentcloud_route_entry</a>
64056408
</li>

0 commit comments

Comments
 (0)