tencentcloud_route_table_entry

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

我的收藏

描述

腾讯云私有网络路由表条目

示例

resource "tencentcloud_route_table_entry" "demo_entry" {
route_table_id = tencentcloud_route_table.foo.id
destination_cidr_block = "10.4.4.0/24"
next_type = "EIP"
next_hub = "0"
description = "ci-test-route-table-entry"
}

参数说明

类型
名称
数据类型
说明
必填
region
string
地域,如:ap-guangzhou,默认使用 provider 中定义的 region 也可以在 resource 中指定地域,覆盖默认设置
availability_zone
string
可用区
route_table_id
string
路由表实例 ID
destination_cidr_block
string
目的网段
取值不能在私有网络网段内,例如:112.20.51.0/24
next_type
string
下一跳类型
目前支持的类型参考:RouteTableNextType
next_hub
string
下一跳地址,这里只需要指定不同下一跳类型的网关 ID,系统会自动匹配到下一跳地址
特殊说明:
GatewayTypeNORMAL_CVM 时,GatewayId 填写实例的内网 IP
GatewayTypeEIP 时,GatewayId 填写0
可选
count
int
资源数量,默认为 1 如果为 0 则不创建资源
activity_id
int
计费活动 ID,保留字段
description
string
路由策略描述
disabled
boolean
是否禁用,默认为 false
生成
id
string
资源实例 ID
create_time
string
资源创建时间