diff --git a/tencentcloud/provider.md b/tencentcloud/provider.md index cdf36e6807..2f559a1ee4 100644 --- a/tencentcloud/provider.md +++ b/tencentcloud/provider.md @@ -1263,7 +1263,7 @@ Virtual Private Cloud(VPC) tencentcloud_protocol_template_group tencentcloud_route_table tencentcloud_vpc_private_nat_gateway - tencentcloud_route_table_association + tencentcloud_route_table_association tencentcloud_route_entry tencentcloud_route_table_entry tencentcloud_dnat @@ -1275,6 +1275,7 @@ Virtual Private Cloud(VPC) tencentcloud_vpc_bandwidth_package tencentcloud_vpc_bandwidth_package_attachment tencentcloud_ipv6_address_bandwidth + tencentcloud_reserve_ip_address Private Link(PLS) Resource diff --git a/tencentcloud/services/vpc/resource_tc_reserve_ip_address.go b/tencentcloud/services/vpc/resource_tc_reserve_ip_address.go index 7252bc7401..6c59be9ca3 100644 --- a/tencentcloud/services/vpc/resource_tc_reserve_ip_address.go +++ b/tencentcloud/services/vpc/resource_tc_reserve_ip_address.go @@ -226,7 +226,7 @@ func resourceTencentCloudReserveIpAddressUpdate(d *schema.ResourceData, meta int ctx := tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) - immutableArgs := []string{"vpc_id", "ip_addresses", "subnet_id"} + immutableArgs := []string{"vpc_id", "ip_address", "subnet_id"} for _, v := range immutableArgs { if d.HasChange(v) { return fmt.Errorf("argument `%s` cannot be changed", v) diff --git a/website/docs/r/reserve_ip_address.html.markdown b/website/docs/r/reserve_ip_address.html.markdown new file mode 100644 index 0000000000..4ce2e5e667 --- /dev/null +++ b/website/docs/r/reserve_ip_address.html.markdown @@ -0,0 +1,59 @@ +--- +subcategory: "Virtual Private Cloud(VPC)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_reserve_ip_address" +sidebar_current: "docs-tencentcloud-resource-reserve_ip_address" +description: |- + Provides a resource to create a vpc reserve ip addresses +--- + +# tencentcloud_reserve_ip_address + +Provides a resource to create a vpc reserve ip addresses + +## Example Usage + +```hcl +resource "tencentcloud_reserve_ip_address" "reserve_ip" { + vpc_id = "xxxxxx" + subnet_id = "xxxxxx" + ip_address = "10.0.0.13" + name = "reserve-ip-tf" + description = "description" + tags = { + "test1" = "test1" + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `vpc_id` - (Required, String) VPC unique ID. +* `description` - (Optional, String) The IP description is retained on the intranet. +* `ip_address` - (Optional, String) Specify the reserved IP address of the intranet for which the IP application is requested. +* `name` - (Optional, String) The IP name is reserved for the intranet. +* `subnet_id` - (Optional, String) Subnet ID. +* `tags` - (Optional, Map) Tags. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. +* `created_time` - Created time. +* `ip_type` - Ip type for product application. +* `reserve_ip_id` - Reserve ip ID. +* `resource_id` - The intranet retains the resource instance ID bound to the IPs. +* `state` - Binding status. + + +## Import + +vpc reserve_ip_addresses can be imported using the id, e.g. + +``` +terraform import tencentcloud_reserve_ip_addresses.reserve_ip_addresses ${vpcId}#${reserveIpId} +``` + diff --git a/website/tencentcloud.erb b/website/tencentcloud.erb index ea9e8712f2..243803c04c 100644 --- a/website/tencentcloud.erb +++ b/website/tencentcloud.erb @@ -6400,6 +6400,9 @@
  • tencentcloud_protocol_template_group
  • +
  • + tencentcloud_reserve_ip_address +
  • tencentcloud_route_entry