published on Monday, Mar 9, 2026 by Byteplus
published on Monday, Mar 9, 2026 by Byteplus
通过在VPN连接的IPsec连接和中转路由器之间建立连接,可以实现VPN连通的网络与中转路由器的私网互通。
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const transitRouterVpnAttachmentDemo = new bytepluscc.transitrouter.VpnAttachment("TransitRouterVpnAttachmentDemo", {
description: "test",
tags: [{
key: "env",
value: "test",
}],
transitRouterAttachmentName: "ccapi-test-1",
transitRouterId: "tr-mjl8zkxxxxxsmt1boobol4",
transitRouterRouteTableId: "tr-rtb-mjlxxxxxo5smt1bnewrhh",
vpnConnectionId: "vgc-ij0yxxxxx474o8cux0n08t",
zoneId: "cn-beijing-a",
});
import pulumi
import pulumi_bytepluscc as bytepluscc
transit_router_vpn_attachment_demo = bytepluscc.transitrouter.VpnAttachment("TransitRouterVpnAttachmentDemo",
description="test",
tags=[{
"key": "env",
"value": "test",
}],
transit_router_attachment_name="ccapi-test-1",
transit_router_id="tr-mjl8zkxxxxxsmt1boobol4",
transit_router_route_table_id="tr-rtb-mjlxxxxxo5smt1bnewrhh",
vpn_connection_id="vgc-ij0yxxxxx474o8cux0n08t",
zone_id="cn-beijing-a")
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/transitrouter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := transitrouter.NewVpnAttachment(ctx, "TransitRouterVpnAttachmentDemo", &transitrouter.VpnAttachmentArgs{
Description: pulumi.String("test"),
Tags: transitrouter.VpnAttachmentTagArray{
&transitrouter.VpnAttachmentTagArgs{
Key: pulumi.String("env"),
Value: pulumi.String("test"),
},
},
TransitRouterAttachmentName: pulumi.String("ccapi-test-1"),
TransitRouterId: pulumi.String("tr-mjl8zkxxxxxsmt1boobol4"),
TransitRouterRouteTableId: pulumi.String("tr-rtb-mjlxxxxxo5smt1bnewrhh"),
VpnConnectionId: pulumi.String("vgc-ij0yxxxxx474o8cux0n08t"),
ZoneId: pulumi.String("cn-beijing-a"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var transitRouterVpnAttachmentDemo = new Bytepluscc.Transitrouter.VpnAttachment("TransitRouterVpnAttachmentDemo", new()
{
Description = "test",
Tags = new[]
{
new Bytepluscc.Transitrouter.Inputs.VpnAttachmentTagArgs
{
Key = "env",
Value = "test",
},
},
TransitRouterAttachmentName = "ccapi-test-1",
TransitRouterId = "tr-mjl8zkxxxxxsmt1boobol4",
TransitRouterRouteTableId = "tr-rtb-mjlxxxxxo5smt1bnewrhh",
VpnConnectionId = "vgc-ij0yxxxxx474o8cux0n08t",
ZoneId = "cn-beijing-a",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.transitrouter.VpnAttachment;
import com.byteplus.bytepluscc.transitrouter.VpnAttachmentArgs;
import com.pulumi.bytepluscc.transitrouter.inputs.VpnAttachmentTagArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var transitRouterVpnAttachmentDemo = new VpnAttachment("transitRouterVpnAttachmentDemo", VpnAttachmentArgs.builder()
.description("test")
.tags(VpnAttachmentTagArgs.builder()
.key("env")
.value("test")
.build())
.transitRouterAttachmentName("ccapi-test-1")
.transitRouterId("tr-mjl8zkxxxxxsmt1boobol4")
.transitRouterRouteTableId("tr-rtb-mjlxxxxxo5smt1bnewrhh")
.vpnConnectionId("vgc-ij0yxxxxx474o8cux0n08t")
.zoneId("cn-beijing-a")
.build());
}
}
resources:
transitRouterVpnAttachmentDemo:
type: bytepluscc:transitrouter:VpnAttachment
name: TransitRouterVpnAttachmentDemo
properties:
description: test
tags:
- key: env
value: test
transitRouterAttachmentName: ccapi-test-1
transitRouterId: tr-mjl8zkxxxxxsmt1boobol4
transitRouterRouteTableId: tr-rtb-mjlxxxxxo5smt1bnewrhh
vpnConnectionId: vgc-ij0yxxxxx474o8cux0n08t
zoneId: cn-beijing-a
Create VpnAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpnAttachment(name: string, args: VpnAttachmentArgs, opts?: CustomResourceOptions);@overload
def VpnAttachment(resource_name: str,
args: VpnAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpnAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
transit_router_id: Optional[str] = None,
vpn_connection_id: Optional[str] = None,
zone_id: Optional[str] = None,
description: Optional[str] = None,
health_check_revoke_route_enabled: Optional[bool] = None,
tags: Optional[Sequence[VpnAttachmentTagArgs]] = None,
transit_router_attachment_name: Optional[str] = None,
transit_router_route_table_id: Optional[str] = None)func NewVpnAttachment(ctx *Context, name string, args VpnAttachmentArgs, opts ...ResourceOption) (*VpnAttachment, error)public VpnAttachment(string name, VpnAttachmentArgs args, CustomResourceOptions? opts = null)
public VpnAttachment(String name, VpnAttachmentArgs args)
public VpnAttachment(String name, VpnAttachmentArgs args, CustomResourceOptions options)
type: bytepluscc:transitrouter:VpnAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpnAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpnAttachmentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpnAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpnAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpnAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var vpnAttachmentResource = new Bytepluscc.Transitrouter.VpnAttachment("vpnAttachmentResource", new()
{
TransitRouterId = "string",
VpnConnectionId = "string",
ZoneId = "string",
Description = "string",
HealthCheckRevokeRouteEnabled = false,
Tags = new[]
{
new Bytepluscc.Transitrouter.Inputs.VpnAttachmentTagArgs
{
Key = "string",
Value = "string",
},
},
TransitRouterAttachmentName = "string",
TransitRouterRouteTableId = "string",
});
example, err := transitrouter.NewVpnAttachment(ctx, "vpnAttachmentResource", &transitrouter.VpnAttachmentArgs{
TransitRouterId: pulumi.String("string"),
VpnConnectionId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
Description: pulumi.String("string"),
HealthCheckRevokeRouteEnabled: pulumi.Bool(false),
Tags: transitrouter.VpnAttachmentTagArray{
&transitrouter.VpnAttachmentTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
TransitRouterAttachmentName: pulumi.String("string"),
TransitRouterRouteTableId: pulumi.String("string"),
})
var vpnAttachmentResource = new VpnAttachment("vpnAttachmentResource", VpnAttachmentArgs.builder()
.transitRouterId("string")
.vpnConnectionId("string")
.zoneId("string")
.description("string")
.healthCheckRevokeRouteEnabled(false)
.tags(VpnAttachmentTagArgs.builder()
.key("string")
.value("string")
.build())
.transitRouterAttachmentName("string")
.transitRouterRouteTableId("string")
.build());
vpn_attachment_resource = bytepluscc.transitrouter.VpnAttachment("vpnAttachmentResource",
transit_router_id="string",
vpn_connection_id="string",
zone_id="string",
description="string",
health_check_revoke_route_enabled=False,
tags=[{
"key": "string",
"value": "string",
}],
transit_router_attachment_name="string",
transit_router_route_table_id="string")
const vpnAttachmentResource = new bytepluscc.transitrouter.VpnAttachment("vpnAttachmentResource", {
transitRouterId: "string",
vpnConnectionId: "string",
zoneId: "string",
description: "string",
healthCheckRevokeRouteEnabled: false,
tags: [{
key: "string",
value: "string",
}],
transitRouterAttachmentName: "string",
transitRouterRouteTableId: "string",
});
type: bytepluscc:transitrouter:VpnAttachment
properties:
description: string
healthCheckRevokeRouteEnabled: false
tags:
- key: string
value: string
transitRouterAttachmentName: string
transitRouterId: string
transitRouterRouteTableId: string
vpnConnectionId: string
zoneId: string
VpnAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpnAttachment resource accepts the following input properties:
- Transit
Router stringId - 中转路由器实例的ID。
- Vpn
Connection stringId - IPsec连接的ID。
- Zone
Id string - IPsec连接所属可用区的ID。
- Description string
- 网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
- Health
Check boolRevoke Route Enabled - 是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
-
List<Byteplus.
Vpn Attachment Tag> - Transit
Router stringAttachment Name - 网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
- Transit
Router stringRoute Table Id - 关联的TR路由表ID。
- Transit
Router stringId - 中转路由器实例的ID。
- Vpn
Connection stringId - IPsec连接的ID。
- Zone
Id string - IPsec连接所属可用区的ID。
- Description string
- 网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
- Health
Check boolRevoke Route Enabled - 是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
-
[]Vpn
Attachment Tag Args - Transit
Router stringAttachment Name - 网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
- Transit
Router stringRoute Table Id - 关联的TR路由表ID。
- transit
Router StringId - 中转路由器实例的ID。
- vpn
Connection StringId - IPsec连接的ID。
- zone
Id String - IPsec连接所属可用区的ID。
- description String
- 网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
- health
Check BooleanRevoke Route Enabled - 是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
-
List<Vpn
Attachment Tag> - transit
Router StringAttachment Name - 网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
- transit
Router StringRoute Table Id - 关联的TR路由表ID。
- transit
Router stringId - 中转路由器实例的ID。
- vpn
Connection stringId - IPsec连接的ID。
- zone
Id string - IPsec连接所属可用区的ID。
- description string
- 网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
- health
Check booleanRevoke Route Enabled - 是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
-
Vpn
Attachment Tag[] - transit
Router stringAttachment Name - 网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
- transit
Router stringRoute Table Id - 关联的TR路由表ID。
- transit_
router_ strid - 中转路由器实例的ID。
- vpn_
connection_ strid - IPsec连接的ID。
- zone_
id str - IPsec连接所属可用区的ID。
- description str
- 网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
- health_
check_ boolrevoke_ route_ enabled - 是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
-
Sequence[Vpn
Attachment Tag Args] - transit_
router_ strattachment_ name - 网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
- transit_
router_ strroute_ table_ id - 关联的TR路由表ID。
- transit
Router StringId - 中转路由器实例的ID。
- vpn
Connection StringId - IPsec连接的ID。
- zone
Id String - IPsec连接所属可用区的ID。
- description String
- 网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
- health
Check BooleanRevoke Route Enabled - 是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
- List<Property Map>
- transit
Router StringAttachment Name - 网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
- transit
Router StringRoute Table Id - 关联的TR路由表ID。
Outputs
All input properties are implicitly available as output properties. Additionally, the VpnAttachment resource produces the following output properties:
- Auto
Publish boolRoute Enabled - 是否自动同步TR路由到网络实例路由表中。
- Created
Time string - 创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv6Enabled bool
- 是否开启IPv6功能。
- Status string
- 网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
- Transit
Router stringAttachment Id - 网络实例连接的ID。
- Updated
Time string - 更新时间。
- Auto
Publish boolRoute Enabled - 是否自动同步TR路由到网络实例路由表中。
- Created
Time string - 创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv6Enabled bool
- 是否开启IPv6功能。
- Status string
- 网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
- Transit
Router stringAttachment Id - 网络实例连接的ID。
- Updated
Time string - 更新时间。
- auto
Publish BooleanRoute Enabled - 是否自动同步TR路由到网络实例路由表中。
- created
Time String - 创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- ipv6Enabled Boolean
- 是否开启IPv6功能。
- status String
- 网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
- transit
Router StringAttachment Id - 网络实例连接的ID。
- updated
Time String - 更新时间。
- auto
Publish booleanRoute Enabled - 是否自动同步TR路由到网络实例路由表中。
- created
Time string - 创建时间。
- id string
- The provider-assigned unique ID for this managed resource.
- ipv6Enabled boolean
- 是否开启IPv6功能。
- status string
- 网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
- transit
Router stringAttachment Id - 网络实例连接的ID。
- updated
Time string - 更新时间。
- auto_
publish_ boolroute_ enabled - 是否自动同步TR路由到网络实例路由表中。
- created_
time str - 创建时间。
- id str
- The provider-assigned unique ID for this managed resource.
- ipv6_
enabled bool - 是否开启IPv6功能。
- status str
- 网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
- transit_
router_ strattachment_ id - 网络实例连接的ID。
- updated_
time str - 更新时间。
- auto
Publish BooleanRoute Enabled - 是否自动同步TR路由到网络实例路由表中。
- created
Time String - 创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- ipv6Enabled Boolean
- 是否开启IPv6功能。
- status String
- 网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
- transit
Router StringAttachment Id - 网络实例连接的ID。
- updated
Time String - 更新时间。
Look up Existing VpnAttachment Resource
Get an existing VpnAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VpnAttachmentState, opts?: CustomResourceOptions): VpnAttachment@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_publish_route_enabled: Optional[bool] = None,
created_time: Optional[str] = None,
description: Optional[str] = None,
health_check_revoke_route_enabled: Optional[bool] = None,
ipv6_enabled: Optional[bool] = None,
status: Optional[str] = None,
tags: Optional[Sequence[VpnAttachmentTagArgs]] = None,
transit_router_attachment_id: Optional[str] = None,
transit_router_attachment_name: Optional[str] = None,
transit_router_id: Optional[str] = None,
transit_router_route_table_id: Optional[str] = None,
updated_time: Optional[str] = None,
vpn_connection_id: Optional[str] = None,
zone_id: Optional[str] = None) -> VpnAttachmentfunc GetVpnAttachment(ctx *Context, name string, id IDInput, state *VpnAttachmentState, opts ...ResourceOption) (*VpnAttachment, error)public static VpnAttachment Get(string name, Input<string> id, VpnAttachmentState? state, CustomResourceOptions? opts = null)public static VpnAttachment get(String name, Output<String> id, VpnAttachmentState state, CustomResourceOptions options)resources: _: type: bytepluscc:transitrouter:VpnAttachment get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Publish boolRoute Enabled - 是否自动同步TR路由到网络实例路由表中。
- Created
Time string - 创建时间。
- Description string
- 网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
- Health
Check boolRevoke Route Enabled - 是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
- Ipv6Enabled bool
- 是否开启IPv6功能。
- Status string
- 网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
-
List<Byteplus.
Vpn Attachment Tag> - Transit
Router stringAttachment Id - 网络实例连接的ID。
- Transit
Router stringAttachment Name - 网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
- Transit
Router stringId - 中转路由器实例的ID。
- Transit
Router stringRoute Table Id - 关联的TR路由表ID。
- Updated
Time string - 更新时间。
- Vpn
Connection stringId - IPsec连接的ID。
- Zone
Id string - IPsec连接所属可用区的ID。
- Auto
Publish boolRoute Enabled - 是否自动同步TR路由到网络实例路由表中。
- Created
Time string - 创建时间。
- Description string
- 网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
- Health
Check boolRevoke Route Enabled - 是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
- Ipv6Enabled bool
- 是否开启IPv6功能。
- Status string
- 网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
-
[]Vpn
Attachment Tag Args - Transit
Router stringAttachment Id - 网络实例连接的ID。
- Transit
Router stringAttachment Name - 网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
- Transit
Router stringId - 中转路由器实例的ID。
- Transit
Router stringRoute Table Id - 关联的TR路由表ID。
- Updated
Time string - 更新时间。
- Vpn
Connection stringId - IPsec连接的ID。
- Zone
Id string - IPsec连接所属可用区的ID。
- auto
Publish BooleanRoute Enabled - 是否自动同步TR路由到网络实例路由表中。
- created
Time String - 创建时间。
- description String
- 网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
- health
Check BooleanRevoke Route Enabled - 是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
- ipv6Enabled Boolean
- 是否开启IPv6功能。
- status String
- 网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
-
List<Vpn
Attachment Tag> - transit
Router StringAttachment Id - 网络实例连接的ID。
- transit
Router StringAttachment Name - 网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
- transit
Router StringId - 中转路由器实例的ID。
- transit
Router StringRoute Table Id - 关联的TR路由表ID。
- updated
Time String - 更新时间。
- vpn
Connection StringId - IPsec连接的ID。
- zone
Id String - IPsec连接所属可用区的ID。
- auto
Publish booleanRoute Enabled - 是否自动同步TR路由到网络实例路由表中。
- created
Time string - 创建时间。
- description string
- 网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
- health
Check booleanRevoke Route Enabled - 是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
- ipv6Enabled boolean
- 是否开启IPv6功能。
- status string
- 网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
-
Vpn
Attachment Tag[] - transit
Router stringAttachment Id - 网络实例连接的ID。
- transit
Router stringAttachment Name - 网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
- transit
Router stringId - 中转路由器实例的ID。
- transit
Router stringRoute Table Id - 关联的TR路由表ID。
- updated
Time string - 更新时间。
- vpn
Connection stringId - IPsec连接的ID。
- zone
Id string - IPsec连接所属可用区的ID。
- auto_
publish_ boolroute_ enabled - 是否自动同步TR路由到网络实例路由表中。
- created_
time str - 创建时间。
- description str
- 网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
- health_
check_ boolrevoke_ route_ enabled - 是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
- ipv6_
enabled bool - 是否开启IPv6功能。
- status str
- 网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
-
Sequence[Vpn
Attachment Tag Args] - transit_
router_ strattachment_ id - 网络实例连接的ID。
- transit_
router_ strattachment_ name - 网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
- transit_
router_ strid - 中转路由器实例的ID。
- transit_
router_ strroute_ table_ id - 关联的TR路由表ID。
- updated_
time str - 更新时间。
- vpn_
connection_ strid - IPsec连接的ID。
- zone_
id str - IPsec连接所属可用区的ID。
- auto
Publish BooleanRoute Enabled - 是否自动同步TR路由到网络实例路由表中。
- created
Time String - 创建时间。
- description String
- 网络实例连接的描述信息。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不传入该参数或该参数不传入数值时,默认为空字符串。
- health
Check BooleanRevoke Route Enabled - 是否开启健康检查收敛路由功能。true:是。仅当IPsec连接开启健康检查功能时生效,且只支持收敛静态路由,不支持收敛BGP路由。false:否。
- ipv6Enabled Boolean
- 是否开启IPv6功能。
- status String
- 网络实例连接的状态。Creating:创建中。Deleting:删除中。Pending:配置中。Available:可用。
- List<Property Map>
- transit
Router StringAttachment Id - 网络实例连接的ID。
- transit
Router StringAttachment Name - 网络实例连接的名称。必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和短横线(-)。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为网络实例连接的ID。
- transit
Router StringId - 中转路由器实例的ID。
- transit
Router StringRoute Table Id - 关联的TR路由表ID。
- updated
Time String - 更新时间。
- vpn
Connection StringId - IPsec连接的ID。
- zone
Id String - IPsec连接所属可用区的ID。
Supporting Types
VpnAttachmentTag, VpnAttachmentTagArgs
Import
$ pulumi import bytepluscc:transitrouter/vpnAttachment:VpnAttachment example "transit_router_id|transit_router_attachment_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Monday, Mar 9, 2026 by Byteplus
