tencentcloud_dnat

最近更新时间:2025-09-04 14:56:13

我的收藏

描述

腾讯云 NAT 网关 DNAT 规则,产品介绍

示例

resource "tencentcloud_dnat" "example" {
nat_id = tencentcloud_nat_gateway.example.id
protocol = "TCP"
elastic_ip = tencentcloud_eip.eip_example.public_ip
elastic_port = 80
private_ip = tencentcloud_instance.example.private_ip
private_port = 9090
description = "dnat desc."
}

参数说明

类型
名称
数据类型
说明
必填
region
string
地域,如:ap-guangzhou,默认使用 provider 中定义的 region 也可以在 resource 中指定地域,覆盖默认设置
availability_zone
string
可用区
nat_id
string
NAT网关的ID。

示例值:nat-3isn9hr0
protocol
string
网络协议,可选值:TCPUDP
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
资源创建时间