|
| 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 | + |
0 commit comments