Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tencentcloud/resource_tc_route_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,25 @@ var routeTypeApiMap = map[string]int{
"vpn_gateway": 1,
"dc_gateway": 3,
"peering_connection": 4,
"havip": 5,
"sslvpn_gateway": 7,
"nat_gateway": 8,
"instance": 9,
"eip": 10,
"local_gateway": 11,
}

var routeTypeNewMap = map[string]string{
"public_gateway": "CVM",
"vpn_gateway": "VPN",
"dc_gateway": "DIRECTCONNECT",
"peering_connection": "PEERCONNECTION",
"havip": "HAVIP",
"sslvpn_gateway": "SSLVPN",
"nat_gateway": "NAT",
"instance": "NORMAL_CVM",
"eip": "EIP",
"local_gateway": "LOCAL_GATEWAY",
}

func resourceTencentCloudRouteEntry() *schema.Resource {
Expand Down Expand Up @@ -110,7 +114,7 @@ func resourceTencentCloudRouteEntry() *schema.Resource {
}
return
},
Description: "The next hop type. Valid values: `public_gateway`,`vpn_gateway`,`sslvpn_gateway`,`dc_gateway`,`peering_connection`,`nat_gateway` and `instance`. `instance` points to CVM Instance.",
Description: "The next hop type. Valid values: `public_gateway`,`vpn_gateway`,`sslvpn_gateway`,`dc_gateway`,`peering_connection`,`nat_gateway`,`havip`,`local_gateway` and `instance`. `instance` points to CVM Instance.",
},
"next_hub": {
Type: schema.TypeString,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/route_entry.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The following arguments are supported:

* `cidr_block` - (Required, ForceNew) The RouteEntry's target network segment.
* `next_hub` - (Required, ForceNew) The route entry's next hub. CVM instance ID or VPC router interface ID.
* `next_type` - (Required, ForceNew) The next hop type. Valid values: `public_gateway`,`vpn_gateway`,`sslvpn_gateway`,`dc_gateway`,`peering_connection`,`nat_gateway` and `instance`. `instance` points to CVM Instance.
* `next_type` - (Required, ForceNew) The next hop type. Valid values: `public_gateway`,`vpn_gateway`,`sslvpn_gateway`,`dc_gateway`,`peering_connection`,`nat_gateway`,`havip`,`local_gateway` and `instance`. `instance` points to CVM Instance.
* `route_table_id` - (Required, ForceNew) The ID of the route table.
* `vpc_id` - (Required, ForceNew) The VPC ID.

Expand Down