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 data source within OpenTelekomCloud.
Example Usage¶
List all Private NAT gateways¶
data "opentelekomcloud_private_nat_gateway_v3" "gateway_1" {}
Get Private NAT gateway using ID¶
variable gateway_id {}
data "opentelekomcloud_private_nat_gateway_v3" "gateway_1" {
id = var.gateway_id
}
Get Private NAT gateway using Name¶
variable gateway_name {}
data "opentelekomcloud_private_nat_gateway_v3" "gateway_1" {
name = var.gateway_name
}
Argument Reference¶
The following arguments are supported:
name
- (Optional, String) Specifies the private NAT gateway name.id
- (Optional, String) Specifies the private NAT gateway name.
Attributes Reference¶
In addition to the arguments mentioned above, the following attributes are exported:
gateways
- Indicates the private NAT gateways. The structure is defined below.
The gateways
block supports:
id
- Private NAT gateway ID.name
- Indicates the private NAT gateway name.description
- Provides supplementary information about the private NAT gateway.spec
- Indicates the private NAT gateway specifications. The value can be:Small
,Medium
,Large
,Extra-large
.downlink_vpcs
- Indicates the VPC where the private NAT gateway works. The structure is documented below.virsubnet_id
- Indicates the ID of the subnet where the private NAT gateway works.ngport_ip_address
- Indicates the private IP address of the private NAT gateway.vpc_id
- Indicates the ID of the VPC where the private NAT gateway works.
enterprise_project_id
- Indicates the ID of the enterprise project that is associated with the private NAT gateway when the private NAT gateway is created.tags
- Indicates the tag list in key/value format.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-65535
transit_ip_pool_size_max
- Specifies the maximum number of transit IP addresses in a transit IP address pool. Value range:0-100