Up-to-date reference of API arguments for Private NAT gateway you can get at documentation portal
opentelekomcloud_private_nat_gateway_v3¶
Manages a V3 Private NAT Gateway resource within OpenTelekomCloud.
Example Usage¶
variable "network_id" {}
resource "opentelekomcloud_private_nat_gateway_v3" "gateway_1" {
name = "test-acc-nat-gateway"
description = "created"
spec = "Small"
downlink_vpcs {
virsubnet_id = var.network_id
}
}
Argument Reference¶
The following arguments are supported:
name- (Required, String) Specifies the private NAT gateway name. Only digits, letters, underscores (_), and hyphens (-) are allowed.description- (Optional, String) Provides supplementary information about the private NAT gateway. The description can contain up to 255 characters and cannot contain angle brackets (<>).spec- (Optional, String) Specifies the private NAT gateway specifications. The value can be:Small,Medium,Large,Extra-large. Default value:Small.downlink_vpcs- (Required, List, ForceNew) Specifies the VPC where the private NAT gateway works. The downlink_vpcs structure is documented below.enterprise_project_id- (Optional, String, ForceNew) Specifies the ID of the enterprise project that is associated with the private NAT gateway when the private NAT gateway is created.tags- (Optional, Map, ForceNew) Specifies the tag list in key/value format.
The downlink_vpcs block supports:
virsubnet_id- (Required, String, ForceNew) Specifies the ID of the subnet where the private NAT gateway works.ngport_ip_address- (Optional, String, ForceNew) Specifies the private IP address of the private NAT gateway.
Attributes Reference¶
In addition to the arguments mentioned above, the following attributes are exported:
id- Private NAT gateway ID.project_id- Indicates the project ID.status- Indicates the private NAT gateway status. The value can be:ACTIVE(The private NAT gateway is running properly) orFROZEN(The private NAT gateway is frozen).created_at- Indicates the time when the private NAT gateway was created. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.updated_at- Indicates the time when the private NAT gateway was updated. It is a UTC time in yyyy-mm-ddThh:mm:ssZ format.rule_max- Indicates Specifies the maximum number of rules. Value range:0-65535transit_ip_pool_size_max- Specifies the maximum number of transit IP addresses in a transit IP address pool. Value range:0-100downlink_vpcs- See Argument Reference above.virsubnet_id- See Argument Reference above.ngport_ip_address- See Argument Reference above.vpc_id- Indicates the ID of the VPC where the private NAT gateway works.
Import¶
Private NAT Gateway V3 resource can be imported using the gateway ID, id.
terraform import opentelekomcloud_private_nat_gateway_v3.gw_1 <id>