描述
腾讯云 NAT 网关 DNAT 规则,产品介绍
示例
resource "tencentcloud_dnat" "example" {nat_id = tencentcloud_nat_gateway.example.idprotocol = "TCP"elastic_ip = tencentcloud_eip.eip_example.public_ipelastic_port = 80private_ip = tencentcloud_instance.example.private_ipprivate_port = 9090description = "dnat desc."}
参数说明
类型 | 名称 | 数据类型 | 说明 |
必填 | region | string | 地域,如:ap-guangzhou,默认使用 provider 中定义的 region
也可以在 resource 中指定地域,覆盖默认设置 |
必填 | availability_zone | string | 可用区 |
必填 | nat_id | string | NAT网关的ID。 示例值: nat-3isn9hr0 |
必填 | protocol | string | 网络协议,可选值: TCP 、UDP 。 |
必填 | elastic_ip | string | EIP地址 |
必填 | elastic_port | int | 公网端口 |
必填 | private_ip | string | 内网IP地址 |
必填 | private_port | int | 内网端口 |
可选 | count | int | 资源数量,默认为 1
如果为 0 则不创建资源 |
可选 | activity_id | int | 计费活动 ID,保留字段 |
可选 | description | string | NAT网关转发规则描述 |
生成 | id | string | 资源实例 ID |
生成 | create_time | string | 资源创建时间 |