published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
The IPsec connection is based on the Internet and establishes an IPsec VPN communication tunnel between the VPN gateway and the user gateway. Data is encrypted using the IKE and IPsec protocols to ensure secure transmission through the tunnel.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
vpnVpnConnectionDemo:
type: volcenginecc:vpn:VpnConnection
name: VpnVpnConnectionDemo
properties:
vpnConnectionName: terraform-test
description: IPsec-test
vpnGatewayId: vgw-3nqn2s36hu1a89xxxxxxx
projectName: default
logEnabled: true
localSubnets:
- 0.0.0.0/2
remoteSubnets:
- 0.0.0.0/2
customerGatewayId: cgw-vzzoltnuu41s865ykxxxxxx
negotiateInstantly: false
ikeConfig:
psk: '88888888'
version: ikev1
mode: aggressive
auth_alg: sha1
enc_alg: aes
dh_group: group2
lifetime: 86400
local_id: 0.0.0.0
remote_id: 0.0.0.0
ipsecConfig:
auth_alg: sha1
dh_group: group2
enc_alg: aes
lifetime: 86400
bgpInfo:
enable_bgp: true
tunnel_cidr: 169.xxx.30.40/30
local_bgp_ip: 169.xxx.30.41
attachType: VpnGateway
natTraversal: true
dpdAction: restart
Create VpnConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpnConnection(name: string, args: VpnConnectionArgs, opts?: CustomResourceOptions);@overload
def VpnConnection(resource_name: str,
args: VpnConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpnConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
local_subnets: Optional[Sequence[str]] = None,
remote_subnets: Optional[Sequence[str]] = None,
ipsec_config: Optional[VpnConnectionIpsecConfigArgs] = None,
nat_traversal: Optional[bool] = None,
dpd_action: Optional[str] = None,
enable_tunnels_bgp: Optional[bool] = None,
health_checkers: Optional[Sequence[VpnConnectionHealthCheckerArgs]] = None,
ike_config: Optional[VpnConnectionIkeConfigArgs] = None,
attach_type: Optional[str] = None,
customer_gateway_id: Optional[str] = None,
log_enabled: Optional[bool] = None,
description: Optional[str] = None,
negotiate_instantly: Optional[bool] = None,
project_name: Optional[str] = None,
bgp_info: Optional[VpnConnectionBgpInfoArgs] = None,
spec: Optional[str] = None,
tunnel_options: Optional[Sequence[VpnConnectionTunnelOptionArgs]] = None,
vpn_connection_name: Optional[str] = None,
vpn_gateway_id: Optional[str] = None)func NewVpnConnection(ctx *Context, name string, args VpnConnectionArgs, opts ...ResourceOption) (*VpnConnection, error)public VpnConnection(string name, VpnConnectionArgs args, CustomResourceOptions? opts = null)
public VpnConnection(String name, VpnConnectionArgs args)
public VpnConnection(String name, VpnConnectionArgs args, CustomResourceOptions options)
type: volcenginecc:vpn:VpnConnection
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 VpnConnectionArgs
- 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 VpnConnectionArgs
- 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 VpnConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpnConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpnConnectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VpnConnection 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 VpnConnection resource accepts the following input properties:
- Local
Subnets List<string> - Local network segment of the IPsec connection.
- Remote
Subnets List<string> - Peer CIDR block of the IPsec connection
- Attach
Type string - Type of gateway associated with the IPsec connection. VpnGateway: VPN gateway; TransitRouter: transit router.
- Bgp
Info Volcengine.Vpn Connection Bgp Info - BGP information for the IPsec connection.
- Customer
Gateway stringId - ID of the customer gateway associated with the IPsec connection. This parameter is required when creating a single-tunnel IPsec connection. If the customer gateway IP address is 0.0.0.0, NegotiateInstantly can only be set to false, IkeConfig.Version can only be set to ikev1, and IkeConfig.Mode can only be set to aggressive in IkeConfig.
- Description string
- Description of the IPsec connection. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), space ( ), underscore (_), hyphen (-), equals sign (=), English comma (,), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. If not specified, defaults to an empty string.
- Dpd
Action string - Status of the DPD feature. none: DPD feature disabled. clear (default): DPD feature enabled; IKE SA is cleared after DPD timeout. hold: DPD feature enabled; current state is maintained after DPD timeout; the connection is re-established when new traffic is detected. restart: DPD feature enabled; reconnect immediately after DPD timeout.
- Enable
Tunnels boolBgp - Whether to enable BGP. Valid values: false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- Health
Checkers List<Volcengine.Vpn Connection Health Checker> - Ike
Config Volcengine.Vpn Connection Ike Config - IKE configuration information for the IPsec connection
- Ipsec
Config Volcengine.Vpn Connection Ipsec Config - IPsec configuration information for the IPsec connection.
- Log
Enabled bool - Enable connection logs. After connection logs are enabled, you can view and download IPsec connection logs and troubleshoot IPsec connection issues using the log information. true: Enabled. false: Not enabled.
- Nat
Traversal bool - Enable NAT traversal. true: Enabled. When NAT traversal is enabled, IKE negotiation does not verify UDP port numbers and can detect NAT gateway devices in the VPN connection tunnel. false (default): Not enabled.
- Negotiate
Instantly bool - Whether to initiate negotiation mode immediately. true: The system actively initiates negotiation after the IPsec connection is configured. false (default): The system does not actively initiate negotiation after configuration; negotiation is initiated passively when traffic passes through.
- Project
Name string - Project to which the IPsec connection belongs.
- Spec string
- IPsec connection instance specification. Only effective for IPsec associated with TR instances; ineffective for IPsec associated with VPN gateway instances. This parameter takes effect only when AttachType is set to TransitRouter. default (default): Default specification, bandwidth limit is 200 Mbps. large: Large specification, bandwidth limit is 1 Gbps. xlarge: Extra large specification, bandwidth limit is 3 Gbps.
- Tunnel
Options List<Volcengine.Vpn Connection Tunnel Option> - Vpn
Connection stringName - Name of the IPsec connection. Must start with a Chinese character, English letter, or number, and can only contain Chinese characters, English letters, numbers, dot (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the IPsec connection ID.
- Vpn
Gateway stringId - The ID of the VPN gateway associated with the IPsec connection. If AttachType is not specified or set to VpnGateway, this parameter must be provided. If AttachType is set to TransitRouter, this parameter is not required.
- Local
Subnets []string - Local network segment of the IPsec connection.
- Remote
Subnets []string - Peer CIDR block of the IPsec connection
- Attach
Type string - Type of gateway associated with the IPsec connection. VpnGateway: VPN gateway; TransitRouter: transit router.
- Bgp
Info VpnConnection Bgp Info Args - BGP information for the IPsec connection.
- Customer
Gateway stringId - ID of the customer gateway associated with the IPsec connection. This parameter is required when creating a single-tunnel IPsec connection. If the customer gateway IP address is 0.0.0.0, NegotiateInstantly can only be set to false, IkeConfig.Version can only be set to ikev1, and IkeConfig.Mode can only be set to aggressive in IkeConfig.
- Description string
- Description of the IPsec connection. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), space ( ), underscore (_), hyphen (-), equals sign (=), English comma (,), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. If not specified, defaults to an empty string.
- Dpd
Action string - Status of the DPD feature. none: DPD feature disabled. clear (default): DPD feature enabled; IKE SA is cleared after DPD timeout. hold: DPD feature enabled; current state is maintained after DPD timeout; the connection is re-established when new traffic is detected. restart: DPD feature enabled; reconnect immediately after DPD timeout.
- Enable
Tunnels boolBgp - Whether to enable BGP. Valid values: false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- Health
Checkers []VpnConnection Health Checker Args - Ike
Config VpnConnection Ike Config Args - IKE configuration information for the IPsec connection
- Ipsec
Config VpnConnection Ipsec Config Args - IPsec configuration information for the IPsec connection.
- Log
Enabled bool - Enable connection logs. After connection logs are enabled, you can view and download IPsec connection logs and troubleshoot IPsec connection issues using the log information. true: Enabled. false: Not enabled.
- Nat
Traversal bool - Enable NAT traversal. true: Enabled. When NAT traversal is enabled, IKE negotiation does not verify UDP port numbers and can detect NAT gateway devices in the VPN connection tunnel. false (default): Not enabled.
- Negotiate
Instantly bool - Whether to initiate negotiation mode immediately. true: The system actively initiates negotiation after the IPsec connection is configured. false (default): The system does not actively initiate negotiation after configuration; negotiation is initiated passively when traffic passes through.
- Project
Name string - Project to which the IPsec connection belongs.
- Spec string
- IPsec connection instance specification. Only effective for IPsec associated with TR instances; ineffective for IPsec associated with VPN gateway instances. This parameter takes effect only when AttachType is set to TransitRouter. default (default): Default specification, bandwidth limit is 200 Mbps. large: Large specification, bandwidth limit is 1 Gbps. xlarge: Extra large specification, bandwidth limit is 3 Gbps.
- Tunnel
Options []VpnConnection Tunnel Option Args - Vpn
Connection stringName - Name of the IPsec connection. Must start with a Chinese character, English letter, or number, and can only contain Chinese characters, English letters, numbers, dot (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the IPsec connection ID.
- Vpn
Gateway stringId - The ID of the VPN gateway associated with the IPsec connection. If AttachType is not specified or set to VpnGateway, this parameter must be provided. If AttachType is set to TransitRouter, this parameter is not required.
- local
Subnets List<String> - Local network segment of the IPsec connection.
- remote
Subnets List<String> - Peer CIDR block of the IPsec connection
- attach
Type String - Type of gateway associated with the IPsec connection. VpnGateway: VPN gateway; TransitRouter: transit router.
- bgp
Info VpnConnection Bgp Info - BGP information for the IPsec connection.
- customer
Gateway StringId - ID of the customer gateway associated with the IPsec connection. This parameter is required when creating a single-tunnel IPsec connection. If the customer gateway IP address is 0.0.0.0, NegotiateInstantly can only be set to false, IkeConfig.Version can only be set to ikev1, and IkeConfig.Mode can only be set to aggressive in IkeConfig.
- description String
- Description of the IPsec connection. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), space ( ), underscore (_), hyphen (-), equals sign (=), English comma (,), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. If not specified, defaults to an empty string.
- dpd
Action String - Status of the DPD feature. none: DPD feature disabled. clear (default): DPD feature enabled; IKE SA is cleared after DPD timeout. hold: DPD feature enabled; current state is maintained after DPD timeout; the connection is re-established when new traffic is detected. restart: DPD feature enabled; reconnect immediately after DPD timeout.
- enable
Tunnels BooleanBgp - Whether to enable BGP. Valid values: false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- health
Checkers List<VpnConnection Health Checker> - ike
Config VpnConnection Ike Config - IKE configuration information for the IPsec connection
- ipsec
Config VpnConnection Ipsec Config - IPsec configuration information for the IPsec connection.
- log
Enabled Boolean - Enable connection logs. After connection logs are enabled, you can view and download IPsec connection logs and troubleshoot IPsec connection issues using the log information. true: Enabled. false: Not enabled.
- nat
Traversal Boolean - Enable NAT traversal. true: Enabled. When NAT traversal is enabled, IKE negotiation does not verify UDP port numbers and can detect NAT gateway devices in the VPN connection tunnel. false (default): Not enabled.
- negotiate
Instantly Boolean - Whether to initiate negotiation mode immediately. true: The system actively initiates negotiation after the IPsec connection is configured. false (default): The system does not actively initiate negotiation after configuration; negotiation is initiated passively when traffic passes through.
- project
Name String - Project to which the IPsec connection belongs.
- spec String
- IPsec connection instance specification. Only effective for IPsec associated with TR instances; ineffective for IPsec associated with VPN gateway instances. This parameter takes effect only when AttachType is set to TransitRouter. default (default): Default specification, bandwidth limit is 200 Mbps. large: Large specification, bandwidth limit is 1 Gbps. xlarge: Extra large specification, bandwidth limit is 3 Gbps.
- tunnel
Options List<VpnConnection Tunnel Option> - vpn
Connection StringName - Name of the IPsec connection. Must start with a Chinese character, English letter, or number, and can only contain Chinese characters, English letters, numbers, dot (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the IPsec connection ID.
- vpn
Gateway StringId - The ID of the VPN gateway associated with the IPsec connection. If AttachType is not specified or set to VpnGateway, this parameter must be provided. If AttachType is set to TransitRouter, this parameter is not required.
- local
Subnets string[] - Local network segment of the IPsec connection.
- remote
Subnets string[] - Peer CIDR block of the IPsec connection
- attach
Type string - Type of gateway associated with the IPsec connection. VpnGateway: VPN gateway; TransitRouter: transit router.
- bgp
Info VpnConnection Bgp Info - BGP information for the IPsec connection.
- customer
Gateway stringId - ID of the customer gateway associated with the IPsec connection. This parameter is required when creating a single-tunnel IPsec connection. If the customer gateway IP address is 0.0.0.0, NegotiateInstantly can only be set to false, IkeConfig.Version can only be set to ikev1, and IkeConfig.Mode can only be set to aggressive in IkeConfig.
- description string
- Description of the IPsec connection. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), space ( ), underscore (_), hyphen (-), equals sign (=), English comma (,), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. If not specified, defaults to an empty string.
- dpd
Action string - Status of the DPD feature. none: DPD feature disabled. clear (default): DPD feature enabled; IKE SA is cleared after DPD timeout. hold: DPD feature enabled; current state is maintained after DPD timeout; the connection is re-established when new traffic is detected. restart: DPD feature enabled; reconnect immediately after DPD timeout.
- enable
Tunnels booleanBgp - Whether to enable BGP. Valid values: false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- health
Checkers VpnConnection Health Checker[] - ike
Config VpnConnection Ike Config - IKE configuration information for the IPsec connection
- ipsec
Config VpnConnection Ipsec Config - IPsec configuration information for the IPsec connection.
- log
Enabled boolean - Enable connection logs. After connection logs are enabled, you can view and download IPsec connection logs and troubleshoot IPsec connection issues using the log information. true: Enabled. false: Not enabled.
- nat
Traversal boolean - Enable NAT traversal. true: Enabled. When NAT traversal is enabled, IKE negotiation does not verify UDP port numbers and can detect NAT gateway devices in the VPN connection tunnel. false (default): Not enabled.
- negotiate
Instantly boolean - Whether to initiate negotiation mode immediately. true: The system actively initiates negotiation after the IPsec connection is configured. false (default): The system does not actively initiate negotiation after configuration; negotiation is initiated passively when traffic passes through.
- project
Name string - Project to which the IPsec connection belongs.
- spec string
- IPsec connection instance specification. Only effective for IPsec associated with TR instances; ineffective for IPsec associated with VPN gateway instances. This parameter takes effect only when AttachType is set to TransitRouter. default (default): Default specification, bandwidth limit is 200 Mbps. large: Large specification, bandwidth limit is 1 Gbps. xlarge: Extra large specification, bandwidth limit is 3 Gbps.
- tunnel
Options VpnConnection Tunnel Option[] - vpn
Connection stringName - Name of the IPsec connection. Must start with a Chinese character, English letter, or number, and can only contain Chinese characters, English letters, numbers, dot (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the IPsec connection ID.
- vpn
Gateway stringId - The ID of the VPN gateway associated with the IPsec connection. If AttachType is not specified or set to VpnGateway, this parameter must be provided. If AttachType is set to TransitRouter, this parameter is not required.
- local_
subnets Sequence[str] - Local network segment of the IPsec connection.
- remote_
subnets Sequence[str] - Peer CIDR block of the IPsec connection
- attach_
type str - Type of gateway associated with the IPsec connection. VpnGateway: VPN gateway; TransitRouter: transit router.
- bgp_
info VpnConnection Bgp Info Args - BGP information for the IPsec connection.
- customer_
gateway_ strid - ID of the customer gateway associated with the IPsec connection. This parameter is required when creating a single-tunnel IPsec connection. If the customer gateway IP address is 0.0.0.0, NegotiateInstantly can only be set to false, IkeConfig.Version can only be set to ikev1, and IkeConfig.Mode can only be set to aggressive in IkeConfig.
- description str
- Description of the IPsec connection. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), space ( ), underscore (_), hyphen (-), equals sign (=), English comma (,), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. If not specified, defaults to an empty string.
- dpd_
action str - Status of the DPD feature. none: DPD feature disabled. clear (default): DPD feature enabled; IKE SA is cleared after DPD timeout. hold: DPD feature enabled; current state is maintained after DPD timeout; the connection is re-established when new traffic is detected. restart: DPD feature enabled; reconnect immediately after DPD timeout.
- enable_
tunnels_ boolbgp - Whether to enable BGP. Valid values: false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- health_
checkers Sequence[VpnConnection Health Checker Args] - ike_
config VpnConnection Ike Config Args - IKE configuration information for the IPsec connection
- ipsec_
config VpnConnection Ipsec Config Args - IPsec configuration information for the IPsec connection.
- log_
enabled bool - Enable connection logs. After connection logs are enabled, you can view and download IPsec connection logs and troubleshoot IPsec connection issues using the log information. true: Enabled. false: Not enabled.
- nat_
traversal bool - Enable NAT traversal. true: Enabled. When NAT traversal is enabled, IKE negotiation does not verify UDP port numbers and can detect NAT gateway devices in the VPN connection tunnel. false (default): Not enabled.
- negotiate_
instantly bool - Whether to initiate negotiation mode immediately. true: The system actively initiates negotiation after the IPsec connection is configured. false (default): The system does not actively initiate negotiation after configuration; negotiation is initiated passively when traffic passes through.
- project_
name str - Project to which the IPsec connection belongs.
- spec str
- IPsec connection instance specification. Only effective for IPsec associated with TR instances; ineffective for IPsec associated with VPN gateway instances. This parameter takes effect only when AttachType is set to TransitRouter. default (default): Default specification, bandwidth limit is 200 Mbps. large: Large specification, bandwidth limit is 1 Gbps. xlarge: Extra large specification, bandwidth limit is 3 Gbps.
- tunnel_
options Sequence[VpnConnection Tunnel Option Args] - vpn_
connection_ strname - Name of the IPsec connection. Must start with a Chinese character, English letter, or number, and can only contain Chinese characters, English letters, numbers, dot (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the IPsec connection ID.
- vpn_
gateway_ strid - The ID of the VPN gateway associated with the IPsec connection. If AttachType is not specified or set to VpnGateway, this parameter must be provided. If AttachType is set to TransitRouter, this parameter is not required.
- local
Subnets List<String> - Local network segment of the IPsec connection.
- remote
Subnets List<String> - Peer CIDR block of the IPsec connection
- attach
Type String - Type of gateway associated with the IPsec connection. VpnGateway: VPN gateway; TransitRouter: transit router.
- bgp
Info Property Map - BGP information for the IPsec connection.
- customer
Gateway StringId - ID of the customer gateway associated with the IPsec connection. This parameter is required when creating a single-tunnel IPsec connection. If the customer gateway IP address is 0.0.0.0, NegotiateInstantly can only be set to false, IkeConfig.Version can only be set to ikev1, and IkeConfig.Mode can only be set to aggressive in IkeConfig.
- description String
- Description of the IPsec connection. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), space ( ), underscore (_), hyphen (-), equals sign (=), English comma (,), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. If not specified, defaults to an empty string.
- dpd
Action String - Status of the DPD feature. none: DPD feature disabled. clear (default): DPD feature enabled; IKE SA is cleared after DPD timeout. hold: DPD feature enabled; current state is maintained after DPD timeout; the connection is re-established when new traffic is detected. restart: DPD feature enabled; reconnect immediately after DPD timeout.
- enable
Tunnels BooleanBgp - Whether to enable BGP. Valid values: false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- health
Checkers List<Property Map> - ike
Config Property Map - IKE configuration information for the IPsec connection
- ipsec
Config Property Map - IPsec configuration information for the IPsec connection.
- log
Enabled Boolean - Enable connection logs. After connection logs are enabled, you can view and download IPsec connection logs and troubleshoot IPsec connection issues using the log information. true: Enabled. false: Not enabled.
- nat
Traversal Boolean - Enable NAT traversal. true: Enabled. When NAT traversal is enabled, IKE negotiation does not verify UDP port numbers and can detect NAT gateway devices in the VPN connection tunnel. false (default): Not enabled.
- negotiate
Instantly Boolean - Whether to initiate negotiation mode immediately. true: The system actively initiates negotiation after the IPsec connection is configured. false (default): The system does not actively initiate negotiation after configuration; negotiation is initiated passively when traffic passes through.
- project
Name String - Project to which the IPsec connection belongs.
- spec String
- IPsec connection instance specification. Only effective for IPsec associated with TR instances; ineffective for IPsec associated with VPN gateway instances. This parameter takes effect only when AttachType is set to TransitRouter. default (default): Default specification, bandwidth limit is 200 Mbps. large: Large specification, bandwidth limit is 1 Gbps. xlarge: Extra large specification, bandwidth limit is 3 Gbps.
- tunnel
Options List<Property Map> - vpn
Connection StringName - Name of the IPsec connection. Must start with a Chinese character, English letter, or number, and can only contain Chinese characters, English letters, numbers, dot (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the IPsec connection ID.
- vpn
Gateway StringId - The ID of the VPN gateway associated with the IPsec connection. If AttachType is not specified or set to VpnGateway, this parameter must be provided. If AttachType is set to TransitRouter, this parameter is not required.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpnConnection resource produces the following output properties:
- Account
Id string - ID of the account to which the IPsec connection belongs.
- Attach
Status string - IPsec connection status, VpnGateway: Attached: Bound; TransitRouter: Attached: Bound; Attaching: Binding; Detached: Unbound; Detaching: Unbinding.
- Business
Status string - Billing status of the IPsec connection. This parameter is returned only when AttachType is 'TransitRouter'. Normal: Normal. FinancialLocked: Financially locked.
- Connect
Status string - Status of the tunnel connection. ikesanegotiationfailed: Phase 1 negotiation failed. ikesanegotiationcompleted: Phase 1 negotiation succeeded. ipsecsanegotiationfailed: Phase 2 negotiation failed. ipsecsanegotiationcompleted: Phase 2 negotiation succeeded.
- Creation
Time string - Time when the IPsec connection was created.
- Deleted
Time string - Expected resource forced reclamation time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, the value is empty.
- Dual
Tunnel boolEnabled - Enable dual tunnel feature. true: Enabled. false: Not enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - Public IP address of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- Is
Blocked bool - Whether the current resource is blocked. true: Blocked; false: Not blocked
- Overdue
Time string - Resource freeze time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, this parameter is empty.
- Status string
- Status of the IPsec connection. Creating: Creating. Deleting: Deleting. Pending: Configuring. Available: Available.
-
List<Volcengine.
Vpn Connection Tag> - Transit
Router stringId - The ID of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- Update
Time string - The time when the IPsec connection was updated.
- Vpn
Connection stringId - ID of the IPsec connection
- Zone
Id string - Availability zone of the transit router attachment point. This parameter is returned only when AttachType is 'TransitRouter'.
- Account
Id string - ID of the account to which the IPsec connection belongs.
- Attach
Status string - IPsec connection status, VpnGateway: Attached: Bound; TransitRouter: Attached: Bound; Attaching: Binding; Detached: Unbound; Detaching: Unbinding.
- Business
Status string - Billing status of the IPsec connection. This parameter is returned only when AttachType is 'TransitRouter'. Normal: Normal. FinancialLocked: Financially locked.
- Connect
Status string - Status of the tunnel connection. ikesanegotiationfailed: Phase 1 negotiation failed. ikesanegotiationcompleted: Phase 1 negotiation succeeded. ipsecsanegotiationfailed: Phase 2 negotiation failed. ipsecsanegotiationcompleted: Phase 2 negotiation succeeded.
- Creation
Time string - Time when the IPsec connection was created.
- Deleted
Time string - Expected resource forced reclamation time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, the value is empty.
- Dual
Tunnel boolEnabled - Enable dual tunnel feature. true: Enabled. false: Not enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - Public IP address of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- Is
Blocked bool - Whether the current resource is blocked. true: Blocked; false: Not blocked
- Overdue
Time string - Resource freeze time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, this parameter is empty.
- Status string
- Status of the IPsec connection. Creating: Creating. Deleting: Deleting. Pending: Configuring. Available: Available.
-
[]Vpn
Connection Tag - Transit
Router stringId - The ID of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- Update
Time string - The time when the IPsec connection was updated.
- Vpn
Connection stringId - ID of the IPsec connection
- Zone
Id string - Availability zone of the transit router attachment point. This parameter is returned only when AttachType is 'TransitRouter'.
- account
Id String - ID of the account to which the IPsec connection belongs.
- attach
Status String - IPsec connection status, VpnGateway: Attached: Bound; TransitRouter: Attached: Bound; Attaching: Binding; Detached: Unbound; Detaching: Unbinding.
- business
Status String - Billing status of the IPsec connection. This parameter is returned only when AttachType is 'TransitRouter'. Normal: Normal. FinancialLocked: Financially locked.
- connect
Status String - Status of the tunnel connection. ikesanegotiationfailed: Phase 1 negotiation failed. ikesanegotiationcompleted: Phase 1 negotiation succeeded. ipsecsanegotiationfailed: Phase 2 negotiation failed. ipsecsanegotiationcompleted: Phase 2 negotiation succeeded.
- creation
Time String - Time when the IPsec connection was created.
- deleted
Time String - Expected resource forced reclamation time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, the value is empty.
- dual
Tunnel BooleanEnabled - Enable dual tunnel feature. true: Enabled. false: Not enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - Public IP address of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- is
Blocked Boolean - Whether the current resource is blocked. true: Blocked; false: Not blocked
- overdue
Time String - Resource freeze time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, this parameter is empty.
- status String
- Status of the IPsec connection. Creating: Creating. Deleting: Deleting. Pending: Configuring. Available: Available.
-
List<Vpn
Connection Tag> - transit
Router StringId - The ID of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- update
Time String - The time when the IPsec connection was updated.
- vpn
Connection StringId - ID of the IPsec connection
- zone
Id String - Availability zone of the transit router attachment point. This parameter is returned only when AttachType is 'TransitRouter'.
- account
Id string - ID of the account to which the IPsec connection belongs.
- attach
Status string - IPsec connection status, VpnGateway: Attached: Bound; TransitRouter: Attached: Bound; Attaching: Binding; Detached: Unbound; Detaching: Unbinding.
- business
Status string - Billing status of the IPsec connection. This parameter is returned only when AttachType is 'TransitRouter'. Normal: Normal. FinancialLocked: Financially locked.
- connect
Status string - Status of the tunnel connection. ikesanegotiationfailed: Phase 1 negotiation failed. ikesanegotiationcompleted: Phase 1 negotiation succeeded. ipsecsanegotiationfailed: Phase 2 negotiation failed. ipsecsanegotiationcompleted: Phase 2 negotiation succeeded.
- creation
Time string - Time when the IPsec connection was created.
- deleted
Time string - Expected resource forced reclamation time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, the value is empty.
- dual
Tunnel booleanEnabled - Enable dual tunnel feature. true: Enabled. false: Not enabled.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string - Public IP address of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- is
Blocked boolean - Whether the current resource is blocked. true: Blocked; false: Not blocked
- overdue
Time string - Resource freeze time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, this parameter is empty.
- status string
- Status of the IPsec connection. Creating: Creating. Deleting: Deleting. Pending: Configuring. Available: Available.
-
Vpn
Connection Tag[] - transit
Router stringId - The ID of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- update
Time string - The time when the IPsec connection was updated.
- vpn
Connection stringId - ID of the IPsec connection
- zone
Id string - Availability zone of the transit router attachment point. This parameter is returned only when AttachType is 'TransitRouter'.
- account_
id str - ID of the account to which the IPsec connection belongs.
- attach_
status str - IPsec connection status, VpnGateway: Attached: Bound; TransitRouter: Attached: Bound; Attaching: Binding; Detached: Unbound; Detaching: Unbinding.
- business_
status str - Billing status of the IPsec connection. This parameter is returned only when AttachType is 'TransitRouter'. Normal: Normal. FinancialLocked: Financially locked.
- connect_
status str - Status of the tunnel connection. ikesanegotiationfailed: Phase 1 negotiation failed. ikesanegotiationcompleted: Phase 1 negotiation succeeded. ipsecsanegotiationfailed: Phase 2 negotiation failed. ipsecsanegotiationcompleted: Phase 2 negotiation succeeded.
- creation_
time str - Time when the IPsec connection was created.
- deleted_
time str - Expected resource forced reclamation time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, the value is empty.
- dual_
tunnel_ boolenabled - Enable dual tunnel feature. true: Enabled. false: Not enabled.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str - Public IP address of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- is_
blocked bool - Whether the current resource is blocked. true: Blocked; false: Not blocked
- overdue_
time str - Resource freeze time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, this parameter is empty.
- status str
- Status of the IPsec connection. Creating: Creating. Deleting: Deleting. Pending: Configuring. Available: Available.
-
Sequence[Vpn
Connection Tag] - transit_
router_ strid - The ID of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- update_
time str - The time when the IPsec connection was updated.
- vpn_
connection_ strid - ID of the IPsec connection
- zone_
id str - Availability zone of the transit router attachment point. This parameter is returned only when AttachType is 'TransitRouter'.
- account
Id String - ID of the account to which the IPsec connection belongs.
- attach
Status String - IPsec connection status, VpnGateway: Attached: Bound; TransitRouter: Attached: Bound; Attaching: Binding; Detached: Unbound; Detaching: Unbinding.
- business
Status String - Billing status of the IPsec connection. This parameter is returned only when AttachType is 'TransitRouter'. Normal: Normal. FinancialLocked: Financially locked.
- connect
Status String - Status of the tunnel connection. ikesanegotiationfailed: Phase 1 negotiation failed. ikesanegotiationcompleted: Phase 1 negotiation succeeded. ipsecsanegotiationfailed: Phase 2 negotiation failed. ipsecsanegotiationcompleted: Phase 2 negotiation succeeded.
- creation
Time String - Time when the IPsec connection was created.
- deleted
Time String - Expected resource forced reclamation time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, the value is empty.
- dual
Tunnel BooleanEnabled - Enable dual tunnel feature. true: Enabled. false: Not enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - Public IP address of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- is
Blocked Boolean - Whether the current resource is blocked. true: Blocked; false: Not blocked
- overdue
Time String - Resource freeze time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, this parameter is empty.
- status String
- Status of the IPsec connection. Creating: Creating. Deleting: Deleting. Pending: Configuring. Available: Available.
- List<Property Map>
- transit
Router StringId - The ID of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- update
Time String - The time when the IPsec connection was updated.
- vpn
Connection StringId - ID of the IPsec connection
- zone
Id String - Availability zone of the transit router attachment point. This parameter is returned only when AttachType is 'TransitRouter'.
Look up Existing VpnConnection Resource
Get an existing VpnConnection 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?: VpnConnectionState, opts?: CustomResourceOptions): VpnConnection@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
attach_status: Optional[str] = None,
attach_type: Optional[str] = None,
bgp_info: Optional[VpnConnectionBgpInfoArgs] = None,
business_status: Optional[str] = None,
connect_status: Optional[str] = None,
creation_time: Optional[str] = None,
customer_gateway_id: Optional[str] = None,
deleted_time: Optional[str] = None,
description: Optional[str] = None,
dpd_action: Optional[str] = None,
dual_tunnel_enabled: Optional[bool] = None,
enable_tunnels_bgp: Optional[bool] = None,
health_checkers: Optional[Sequence[VpnConnectionHealthCheckerArgs]] = None,
ike_config: Optional[VpnConnectionIkeConfigArgs] = None,
ip_address: Optional[str] = None,
ipsec_config: Optional[VpnConnectionIpsecConfigArgs] = None,
is_blocked: Optional[bool] = None,
local_subnets: Optional[Sequence[str]] = None,
log_enabled: Optional[bool] = None,
nat_traversal: Optional[bool] = None,
negotiate_instantly: Optional[bool] = None,
overdue_time: Optional[str] = None,
project_name: Optional[str] = None,
remote_subnets: Optional[Sequence[str]] = None,
spec: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[VpnConnectionTagArgs]] = None,
transit_router_id: Optional[str] = None,
tunnel_options: Optional[Sequence[VpnConnectionTunnelOptionArgs]] = None,
update_time: Optional[str] = None,
vpn_connection_id: Optional[str] = None,
vpn_connection_name: Optional[str] = None,
vpn_gateway_id: Optional[str] = None,
zone_id: Optional[str] = None) -> VpnConnectionfunc GetVpnConnection(ctx *Context, name string, id IDInput, state *VpnConnectionState, opts ...ResourceOption) (*VpnConnection, error)public static VpnConnection Get(string name, Input<string> id, VpnConnectionState? state, CustomResourceOptions? opts = null)public static VpnConnection get(String name, Output<String> id, VpnConnectionState state, CustomResourceOptions options)resources: _: type: volcenginecc:vpn:VpnConnection 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.
- Account
Id string - ID of the account to which the IPsec connection belongs.
- Attach
Status string - IPsec connection status, VpnGateway: Attached: Bound; TransitRouter: Attached: Bound; Attaching: Binding; Detached: Unbound; Detaching: Unbinding.
- Attach
Type string - Type of gateway associated with the IPsec connection. VpnGateway: VPN gateway; TransitRouter: transit router.
- Bgp
Info Volcengine.Vpn Connection Bgp Info - BGP information for the IPsec connection.
- Business
Status string - Billing status of the IPsec connection. This parameter is returned only when AttachType is 'TransitRouter'. Normal: Normal. FinancialLocked: Financially locked.
- Connect
Status string - Status of the tunnel connection. ikesanegotiationfailed: Phase 1 negotiation failed. ikesanegotiationcompleted: Phase 1 negotiation succeeded. ipsecsanegotiationfailed: Phase 2 negotiation failed. ipsecsanegotiationcompleted: Phase 2 negotiation succeeded.
- Creation
Time string - Time when the IPsec connection was created.
- Customer
Gateway stringId - ID of the customer gateway associated with the IPsec connection. This parameter is required when creating a single-tunnel IPsec connection. If the customer gateway IP address is 0.0.0.0, NegotiateInstantly can only be set to false, IkeConfig.Version can only be set to ikev1, and IkeConfig.Mode can only be set to aggressive in IkeConfig.
- Deleted
Time string - Expected resource forced reclamation time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, the value is empty.
- Description string
- Description of the IPsec connection. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), space ( ), underscore (_), hyphen (-), equals sign (=), English comma (,), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. If not specified, defaults to an empty string.
- Dpd
Action string - Status of the DPD feature. none: DPD feature disabled. clear (default): DPD feature enabled; IKE SA is cleared after DPD timeout. hold: DPD feature enabled; current state is maintained after DPD timeout; the connection is re-established when new traffic is detected. restart: DPD feature enabled; reconnect immediately after DPD timeout.
- Dual
Tunnel boolEnabled - Enable dual tunnel feature. true: Enabled. false: Not enabled.
- Enable
Tunnels boolBgp - Whether to enable BGP. Valid values: false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- Health
Checkers List<Volcengine.Vpn Connection Health Checker> - Ike
Config Volcengine.Vpn Connection Ike Config - IKE configuration information for the IPsec connection
- Ip
Address string - Public IP address of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- Ipsec
Config Volcengine.Vpn Connection Ipsec Config - IPsec configuration information for the IPsec connection.
- Is
Blocked bool - Whether the current resource is blocked. true: Blocked; false: Not blocked
- Local
Subnets List<string> - Local network segment of the IPsec connection.
- Log
Enabled bool - Enable connection logs. After connection logs are enabled, you can view and download IPsec connection logs and troubleshoot IPsec connection issues using the log information. true: Enabled. false: Not enabled.
- Nat
Traversal bool - Enable NAT traversal. true: Enabled. When NAT traversal is enabled, IKE negotiation does not verify UDP port numbers and can detect NAT gateway devices in the VPN connection tunnel. false (default): Not enabled.
- Negotiate
Instantly bool - Whether to initiate negotiation mode immediately. true: The system actively initiates negotiation after the IPsec connection is configured. false (default): The system does not actively initiate negotiation after configuration; negotiation is initiated passively when traffic passes through.
- Overdue
Time string - Resource freeze time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, this parameter is empty.
- Project
Name string - Project to which the IPsec connection belongs.
- Remote
Subnets List<string> - Peer CIDR block of the IPsec connection
- Spec string
- IPsec connection instance specification. Only effective for IPsec associated with TR instances; ineffective for IPsec associated with VPN gateway instances. This parameter takes effect only when AttachType is set to TransitRouter. default (default): Default specification, bandwidth limit is 200 Mbps. large: Large specification, bandwidth limit is 1 Gbps. xlarge: Extra large specification, bandwidth limit is 3 Gbps.
- Status string
- Status of the IPsec connection. Creating: Creating. Deleting: Deleting. Pending: Configuring. Available: Available.
-
List<Volcengine.
Vpn Connection Tag> - Transit
Router stringId - The ID of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- Tunnel
Options List<Volcengine.Vpn Connection Tunnel Option> - Update
Time string - The time when the IPsec connection was updated.
- Vpn
Connection stringId - ID of the IPsec connection
- Vpn
Connection stringName - Name of the IPsec connection. Must start with a Chinese character, English letter, or number, and can only contain Chinese characters, English letters, numbers, dot (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the IPsec connection ID.
- Vpn
Gateway stringId - The ID of the VPN gateway associated with the IPsec connection. If AttachType is not specified or set to VpnGateway, this parameter must be provided. If AttachType is set to TransitRouter, this parameter is not required.
- Zone
Id string - Availability zone of the transit router attachment point. This parameter is returned only when AttachType is 'TransitRouter'.
- Account
Id string - ID of the account to which the IPsec connection belongs.
- Attach
Status string - IPsec connection status, VpnGateway: Attached: Bound; TransitRouter: Attached: Bound; Attaching: Binding; Detached: Unbound; Detaching: Unbinding.
- Attach
Type string - Type of gateway associated with the IPsec connection. VpnGateway: VPN gateway; TransitRouter: transit router.
- Bgp
Info VpnConnection Bgp Info Args - BGP information for the IPsec connection.
- Business
Status string - Billing status of the IPsec connection. This parameter is returned only when AttachType is 'TransitRouter'. Normal: Normal. FinancialLocked: Financially locked.
- Connect
Status string - Status of the tunnel connection. ikesanegotiationfailed: Phase 1 negotiation failed. ikesanegotiationcompleted: Phase 1 negotiation succeeded. ipsecsanegotiationfailed: Phase 2 negotiation failed. ipsecsanegotiationcompleted: Phase 2 negotiation succeeded.
- Creation
Time string - Time when the IPsec connection was created.
- Customer
Gateway stringId - ID of the customer gateway associated with the IPsec connection. This parameter is required when creating a single-tunnel IPsec connection. If the customer gateway IP address is 0.0.0.0, NegotiateInstantly can only be set to false, IkeConfig.Version can only be set to ikev1, and IkeConfig.Mode can only be set to aggressive in IkeConfig.
- Deleted
Time string - Expected resource forced reclamation time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, the value is empty.
- Description string
- Description of the IPsec connection. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), space ( ), underscore (_), hyphen (-), equals sign (=), English comma (,), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. If not specified, defaults to an empty string.
- Dpd
Action string - Status of the DPD feature. none: DPD feature disabled. clear (default): DPD feature enabled; IKE SA is cleared after DPD timeout. hold: DPD feature enabled; current state is maintained after DPD timeout; the connection is re-established when new traffic is detected. restart: DPD feature enabled; reconnect immediately after DPD timeout.
- Dual
Tunnel boolEnabled - Enable dual tunnel feature. true: Enabled. false: Not enabled.
- Enable
Tunnels boolBgp - Whether to enable BGP. Valid values: false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- Health
Checkers []VpnConnection Health Checker Args - Ike
Config VpnConnection Ike Config Args - IKE configuration information for the IPsec connection
- Ip
Address string - Public IP address of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- Ipsec
Config VpnConnection Ipsec Config Args - IPsec configuration information for the IPsec connection.
- Is
Blocked bool - Whether the current resource is blocked. true: Blocked; false: Not blocked
- Local
Subnets []string - Local network segment of the IPsec connection.
- Log
Enabled bool - Enable connection logs. After connection logs are enabled, you can view and download IPsec connection logs and troubleshoot IPsec connection issues using the log information. true: Enabled. false: Not enabled.
- Nat
Traversal bool - Enable NAT traversal. true: Enabled. When NAT traversal is enabled, IKE negotiation does not verify UDP port numbers and can detect NAT gateway devices in the VPN connection tunnel. false (default): Not enabled.
- Negotiate
Instantly bool - Whether to initiate negotiation mode immediately. true: The system actively initiates negotiation after the IPsec connection is configured. false (default): The system does not actively initiate negotiation after configuration; negotiation is initiated passively when traffic passes through.
- Overdue
Time string - Resource freeze time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, this parameter is empty.
- Project
Name string - Project to which the IPsec connection belongs.
- Remote
Subnets []string - Peer CIDR block of the IPsec connection
- Spec string
- IPsec connection instance specification. Only effective for IPsec associated with TR instances; ineffective for IPsec associated with VPN gateway instances. This parameter takes effect only when AttachType is set to TransitRouter. default (default): Default specification, bandwidth limit is 200 Mbps. large: Large specification, bandwidth limit is 1 Gbps. xlarge: Extra large specification, bandwidth limit is 3 Gbps.
- Status string
- Status of the IPsec connection. Creating: Creating. Deleting: Deleting. Pending: Configuring. Available: Available.
-
[]Vpn
Connection Tag Args - Transit
Router stringId - The ID of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- Tunnel
Options []VpnConnection Tunnel Option Args - Update
Time string - The time when the IPsec connection was updated.
- Vpn
Connection stringId - ID of the IPsec connection
- Vpn
Connection stringName - Name of the IPsec connection. Must start with a Chinese character, English letter, or number, and can only contain Chinese characters, English letters, numbers, dot (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the IPsec connection ID.
- Vpn
Gateway stringId - The ID of the VPN gateway associated with the IPsec connection. If AttachType is not specified or set to VpnGateway, this parameter must be provided. If AttachType is set to TransitRouter, this parameter is not required.
- Zone
Id string - Availability zone of the transit router attachment point. This parameter is returned only when AttachType is 'TransitRouter'.
- account
Id String - ID of the account to which the IPsec connection belongs.
- attach
Status String - IPsec connection status, VpnGateway: Attached: Bound; TransitRouter: Attached: Bound; Attaching: Binding; Detached: Unbound; Detaching: Unbinding.
- attach
Type String - Type of gateway associated with the IPsec connection. VpnGateway: VPN gateway; TransitRouter: transit router.
- bgp
Info VpnConnection Bgp Info - BGP information for the IPsec connection.
- business
Status String - Billing status of the IPsec connection. This parameter is returned only when AttachType is 'TransitRouter'. Normal: Normal. FinancialLocked: Financially locked.
- connect
Status String - Status of the tunnel connection. ikesanegotiationfailed: Phase 1 negotiation failed. ikesanegotiationcompleted: Phase 1 negotiation succeeded. ipsecsanegotiationfailed: Phase 2 negotiation failed. ipsecsanegotiationcompleted: Phase 2 negotiation succeeded.
- creation
Time String - Time when the IPsec connection was created.
- customer
Gateway StringId - ID of the customer gateway associated with the IPsec connection. This parameter is required when creating a single-tunnel IPsec connection. If the customer gateway IP address is 0.0.0.0, NegotiateInstantly can only be set to false, IkeConfig.Version can only be set to ikev1, and IkeConfig.Mode can only be set to aggressive in IkeConfig.
- deleted
Time String - Expected resource forced reclamation time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, the value is empty.
- description String
- Description of the IPsec connection. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), space ( ), underscore (_), hyphen (-), equals sign (=), English comma (,), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. If not specified, defaults to an empty string.
- dpd
Action String - Status of the DPD feature. none: DPD feature disabled. clear (default): DPD feature enabled; IKE SA is cleared after DPD timeout. hold: DPD feature enabled; current state is maintained after DPD timeout; the connection is re-established when new traffic is detected. restart: DPD feature enabled; reconnect immediately after DPD timeout.
- dual
Tunnel BooleanEnabled - Enable dual tunnel feature. true: Enabled. false: Not enabled.
- enable
Tunnels BooleanBgp - Whether to enable BGP. Valid values: false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- health
Checkers List<VpnConnection Health Checker> - ike
Config VpnConnection Ike Config - IKE configuration information for the IPsec connection
- ip
Address String - Public IP address of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- ipsec
Config VpnConnection Ipsec Config - IPsec configuration information for the IPsec connection.
- is
Blocked Boolean - Whether the current resource is blocked. true: Blocked; false: Not blocked
- local
Subnets List<String> - Local network segment of the IPsec connection.
- log
Enabled Boolean - Enable connection logs. After connection logs are enabled, you can view and download IPsec connection logs and troubleshoot IPsec connection issues using the log information. true: Enabled. false: Not enabled.
- nat
Traversal Boolean - Enable NAT traversal. true: Enabled. When NAT traversal is enabled, IKE negotiation does not verify UDP port numbers and can detect NAT gateway devices in the VPN connection tunnel. false (default): Not enabled.
- negotiate
Instantly Boolean - Whether to initiate negotiation mode immediately. true: The system actively initiates negotiation after the IPsec connection is configured. false (default): The system does not actively initiate negotiation after configuration; negotiation is initiated passively when traffic passes through.
- overdue
Time String - Resource freeze time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, this parameter is empty.
- project
Name String - Project to which the IPsec connection belongs.
- remote
Subnets List<String> - Peer CIDR block of the IPsec connection
- spec String
- IPsec connection instance specification. Only effective for IPsec associated with TR instances; ineffective for IPsec associated with VPN gateway instances. This parameter takes effect only when AttachType is set to TransitRouter. default (default): Default specification, bandwidth limit is 200 Mbps. large: Large specification, bandwidth limit is 1 Gbps. xlarge: Extra large specification, bandwidth limit is 3 Gbps.
- status String
- Status of the IPsec connection. Creating: Creating. Deleting: Deleting. Pending: Configuring. Available: Available.
-
List<Vpn
Connection Tag> - transit
Router StringId - The ID of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- tunnel
Options List<VpnConnection Tunnel Option> - update
Time String - The time when the IPsec connection was updated.
- vpn
Connection StringId - ID of the IPsec connection
- vpn
Connection StringName - Name of the IPsec connection. Must start with a Chinese character, English letter, or number, and can only contain Chinese characters, English letters, numbers, dot (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the IPsec connection ID.
- vpn
Gateway StringId - The ID of the VPN gateway associated with the IPsec connection. If AttachType is not specified or set to VpnGateway, this parameter must be provided. If AttachType is set to TransitRouter, this parameter is not required.
- zone
Id String - Availability zone of the transit router attachment point. This parameter is returned only when AttachType is 'TransitRouter'.
- account
Id string - ID of the account to which the IPsec connection belongs.
- attach
Status string - IPsec connection status, VpnGateway: Attached: Bound; TransitRouter: Attached: Bound; Attaching: Binding; Detached: Unbound; Detaching: Unbinding.
- attach
Type string - Type of gateway associated with the IPsec connection. VpnGateway: VPN gateway; TransitRouter: transit router.
- bgp
Info VpnConnection Bgp Info - BGP information for the IPsec connection.
- business
Status string - Billing status of the IPsec connection. This parameter is returned only when AttachType is 'TransitRouter'. Normal: Normal. FinancialLocked: Financially locked.
- connect
Status string - Status of the tunnel connection. ikesanegotiationfailed: Phase 1 negotiation failed. ikesanegotiationcompleted: Phase 1 negotiation succeeded. ipsecsanegotiationfailed: Phase 2 negotiation failed. ipsecsanegotiationcompleted: Phase 2 negotiation succeeded.
- creation
Time string - Time when the IPsec connection was created.
- customer
Gateway stringId - ID of the customer gateway associated with the IPsec connection. This parameter is required when creating a single-tunnel IPsec connection. If the customer gateway IP address is 0.0.0.0, NegotiateInstantly can only be set to false, IkeConfig.Version can only be set to ikev1, and IkeConfig.Mode can only be set to aggressive in IkeConfig.
- deleted
Time string - Expected resource forced reclamation time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, the value is empty.
- description string
- Description of the IPsec connection. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), space ( ), underscore (_), hyphen (-), equals sign (=), English comma (,), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. If not specified, defaults to an empty string.
- dpd
Action string - Status of the DPD feature. none: DPD feature disabled. clear (default): DPD feature enabled; IKE SA is cleared after DPD timeout. hold: DPD feature enabled; current state is maintained after DPD timeout; the connection is re-established when new traffic is detected. restart: DPD feature enabled; reconnect immediately after DPD timeout.
- dual
Tunnel booleanEnabled - Enable dual tunnel feature. true: Enabled. false: Not enabled.
- enable
Tunnels booleanBgp - Whether to enable BGP. Valid values: false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- health
Checkers VpnConnection Health Checker[] - ike
Config VpnConnection Ike Config - IKE configuration information for the IPsec connection
- ip
Address string - Public IP address of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- ipsec
Config VpnConnection Ipsec Config - IPsec configuration information for the IPsec connection.
- is
Blocked boolean - Whether the current resource is blocked. true: Blocked; false: Not blocked
- local
Subnets string[] - Local network segment of the IPsec connection.
- log
Enabled boolean - Enable connection logs. After connection logs are enabled, you can view and download IPsec connection logs and troubleshoot IPsec connection issues using the log information. true: Enabled. false: Not enabled.
- nat
Traversal boolean - Enable NAT traversal. true: Enabled. When NAT traversal is enabled, IKE negotiation does not verify UDP port numbers and can detect NAT gateway devices in the VPN connection tunnel. false (default): Not enabled.
- negotiate
Instantly boolean - Whether to initiate negotiation mode immediately. true: The system actively initiates negotiation after the IPsec connection is configured. false (default): The system does not actively initiate negotiation after configuration; negotiation is initiated passively when traffic passes through.
- overdue
Time string - Resource freeze time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, this parameter is empty.
- project
Name string - Project to which the IPsec connection belongs.
- remote
Subnets string[] - Peer CIDR block of the IPsec connection
- spec string
- IPsec connection instance specification. Only effective for IPsec associated with TR instances; ineffective for IPsec associated with VPN gateway instances. This parameter takes effect only when AttachType is set to TransitRouter. default (default): Default specification, bandwidth limit is 200 Mbps. large: Large specification, bandwidth limit is 1 Gbps. xlarge: Extra large specification, bandwidth limit is 3 Gbps.
- status string
- Status of the IPsec connection. Creating: Creating. Deleting: Deleting. Pending: Configuring. Available: Available.
-
Vpn
Connection Tag[] - transit
Router stringId - The ID of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- tunnel
Options VpnConnection Tunnel Option[] - update
Time string - The time when the IPsec connection was updated.
- vpn
Connection stringId - ID of the IPsec connection
- vpn
Connection stringName - Name of the IPsec connection. Must start with a Chinese character, English letter, or number, and can only contain Chinese characters, English letters, numbers, dot (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the IPsec connection ID.
- vpn
Gateway stringId - The ID of the VPN gateway associated with the IPsec connection. If AttachType is not specified or set to VpnGateway, this parameter must be provided. If AttachType is set to TransitRouter, this parameter is not required.
- zone
Id string - Availability zone of the transit router attachment point. This parameter is returned only when AttachType is 'TransitRouter'.
- account_
id str - ID of the account to which the IPsec connection belongs.
- attach_
status str - IPsec connection status, VpnGateway: Attached: Bound; TransitRouter: Attached: Bound; Attaching: Binding; Detached: Unbound; Detaching: Unbinding.
- attach_
type str - Type of gateway associated with the IPsec connection. VpnGateway: VPN gateway; TransitRouter: transit router.
- bgp_
info VpnConnection Bgp Info Args - BGP information for the IPsec connection.
- business_
status str - Billing status of the IPsec connection. This parameter is returned only when AttachType is 'TransitRouter'. Normal: Normal. FinancialLocked: Financially locked.
- connect_
status str - Status of the tunnel connection. ikesanegotiationfailed: Phase 1 negotiation failed. ikesanegotiationcompleted: Phase 1 negotiation succeeded. ipsecsanegotiationfailed: Phase 2 negotiation failed. ipsecsanegotiationcompleted: Phase 2 negotiation succeeded.
- creation_
time str - Time when the IPsec connection was created.
- customer_
gateway_ strid - ID of the customer gateway associated with the IPsec connection. This parameter is required when creating a single-tunnel IPsec connection. If the customer gateway IP address is 0.0.0.0, NegotiateInstantly can only be set to false, IkeConfig.Version can only be set to ikev1, and IkeConfig.Mode can only be set to aggressive in IkeConfig.
- deleted_
time str - Expected resource forced reclamation time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, the value is empty.
- description str
- Description of the IPsec connection. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), space ( ), underscore (_), hyphen (-), equals sign (=), English comma (,), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. If not specified, defaults to an empty string.
- dpd_
action str - Status of the DPD feature. none: DPD feature disabled. clear (default): DPD feature enabled; IKE SA is cleared after DPD timeout. hold: DPD feature enabled; current state is maintained after DPD timeout; the connection is re-established when new traffic is detected. restart: DPD feature enabled; reconnect immediately after DPD timeout.
- dual_
tunnel_ boolenabled - Enable dual tunnel feature. true: Enabled. false: Not enabled.
- enable_
tunnels_ boolbgp - Whether to enable BGP. Valid values: false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- health_
checkers Sequence[VpnConnection Health Checker Args] - ike_
config VpnConnection Ike Config Args - IKE configuration information for the IPsec connection
- ip_
address str - Public IP address of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- ipsec_
config VpnConnection Ipsec Config Args - IPsec configuration information for the IPsec connection.
- is_
blocked bool - Whether the current resource is blocked. true: Blocked; false: Not blocked
- local_
subnets Sequence[str] - Local network segment of the IPsec connection.
- log_
enabled bool - Enable connection logs. After connection logs are enabled, you can view and download IPsec connection logs and troubleshoot IPsec connection issues using the log information. true: Enabled. false: Not enabled.
- nat_
traversal bool - Enable NAT traversal. true: Enabled. When NAT traversal is enabled, IKE negotiation does not verify UDP port numbers and can detect NAT gateway devices in the VPN connection tunnel. false (default): Not enabled.
- negotiate_
instantly bool - Whether to initiate negotiation mode immediately. true: The system actively initiates negotiation after the IPsec connection is configured. false (default): The system does not actively initiate negotiation after configuration; negotiation is initiated passively when traffic passes through.
- overdue_
time str - Resource freeze time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, this parameter is empty.
- project_
name str - Project to which the IPsec connection belongs.
- remote_
subnets Sequence[str] - Peer CIDR block of the IPsec connection
- spec str
- IPsec connection instance specification. Only effective for IPsec associated with TR instances; ineffective for IPsec associated with VPN gateway instances. This parameter takes effect only when AttachType is set to TransitRouter. default (default): Default specification, bandwidth limit is 200 Mbps. large: Large specification, bandwidth limit is 1 Gbps. xlarge: Extra large specification, bandwidth limit is 3 Gbps.
- status str
- Status of the IPsec connection. Creating: Creating. Deleting: Deleting. Pending: Configuring. Available: Available.
-
Sequence[Vpn
Connection Tag Args] - transit_
router_ strid - The ID of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- tunnel_
options Sequence[VpnConnection Tunnel Option Args] - update_
time str - The time when the IPsec connection was updated.
- vpn_
connection_ strid - ID of the IPsec connection
- vpn_
connection_ strname - Name of the IPsec connection. Must start with a Chinese character, English letter, or number, and can only contain Chinese characters, English letters, numbers, dot (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the IPsec connection ID.
- vpn_
gateway_ strid - The ID of the VPN gateway associated with the IPsec connection. If AttachType is not specified or set to VpnGateway, this parameter must be provided. If AttachType is set to TransitRouter, this parameter is not required.
- zone_
id str - Availability zone of the transit router attachment point. This parameter is returned only when AttachType is 'TransitRouter'.
- account
Id String - ID of the account to which the IPsec connection belongs.
- attach
Status String - IPsec connection status, VpnGateway: Attached: Bound; TransitRouter: Attached: Bound; Attaching: Binding; Detached: Unbound; Detaching: Unbinding.
- attach
Type String - Type of gateway associated with the IPsec connection. VpnGateway: VPN gateway; TransitRouter: transit router.
- bgp
Info Property Map - BGP information for the IPsec connection.
- business
Status String - Billing status of the IPsec connection. This parameter is returned only when AttachType is 'TransitRouter'. Normal: Normal. FinancialLocked: Financially locked.
- connect
Status String - Status of the tunnel connection. ikesanegotiationfailed: Phase 1 negotiation failed. ikesanegotiationcompleted: Phase 1 negotiation succeeded. ipsecsanegotiationfailed: Phase 2 negotiation failed. ipsecsanegotiationcompleted: Phase 2 negotiation succeeded.
- creation
Time String - Time when the IPsec connection was created.
- customer
Gateway StringId - ID of the customer gateway associated with the IPsec connection. This parameter is required when creating a single-tunnel IPsec connection. If the customer gateway IP address is 0.0.0.0, NegotiateInstantly can only be set to false, IkeConfig.Version can only be set to ikev1, and IkeConfig.Mode can only be set to aggressive in IkeConfig.
- deleted
Time String - Expected resource forced reclamation time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, the value is empty.
- description String
- Description of the IPsec connection. Must start with a Chinese character, letter, or number, and can only contain Chinese characters, letters, numbers, period (.), space ( ), underscore (_), hyphen (-), equals sign (=), English comma (,), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. If not specified, defaults to an empty string.
- dpd
Action String - Status of the DPD feature. none: DPD feature disabled. clear (default): DPD feature enabled; IKE SA is cleared after DPD timeout. hold: DPD feature enabled; current state is maintained after DPD timeout; the connection is re-established when new traffic is detected. restart: DPD feature enabled; reconnect immediately after DPD timeout.
- dual
Tunnel BooleanEnabled - Enable dual tunnel feature. true: Enabled. false: Not enabled.
- enable
Tunnels BooleanBgp - Whether to enable BGP. Valid values: false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- health
Checkers List<Property Map> - ike
Config Property Map - IKE configuration information for the IPsec connection
- ip
Address String - Public IP address of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- ipsec
Config Property Map - IPsec configuration information for the IPsec connection.
- is
Blocked Boolean - Whether the current resource is blocked. true: Blocked; false: Not blocked
- local
Subnets List<String> - Local network segment of the IPsec connection.
- log
Enabled Boolean - Enable connection logs. After connection logs are enabled, you can view and download IPsec connection logs and troubleshoot IPsec connection issues using the log information. true: Enabled. false: Not enabled.
- nat
Traversal Boolean - Enable NAT traversal. true: Enabled. When NAT traversal is enabled, IKE negotiation does not verify UDP port numbers and can detect NAT gateway devices in the VPN connection tunnel. false (default): Not enabled.
- negotiate
Instantly Boolean - Whether to initiate negotiation mode immediately. true: The system actively initiates negotiation after the IPsec connection is configured. false (default): The system does not actively initiate negotiation after configuration; negotiation is initiated passively when traffic passes through.
- overdue
Time String - Resource freeze time. This parameter is returned only when AttachType is 'TransitRouter', and only when the resource is frozen due to overdue payment. Otherwise, this parameter is empty.
- project
Name String - Project to which the IPsec connection belongs.
- remote
Subnets List<String> - Peer CIDR block of the IPsec connection
- spec String
- IPsec connection instance specification. Only effective for IPsec associated with TR instances; ineffective for IPsec associated with VPN gateway instances. This parameter takes effect only when AttachType is set to TransitRouter. default (default): Default specification, bandwidth limit is 200 Mbps. large: Large specification, bandwidth limit is 1 Gbps. xlarge: Extra large specification, bandwidth limit is 3 Gbps.
- status String
- Status of the IPsec connection. Creating: Creating. Deleting: Deleting. Pending: Configuring. Available: Available.
- List<Property Map>
- transit
Router StringId - The ID of the transit router. This parameter is returned only when AttachType is 'TransitRouter'.
- tunnel
Options List<Property Map> - update
Time String - The time when the IPsec connection was updated.
- vpn
Connection StringId - ID of the IPsec connection
- vpn
Connection StringName - Name of the IPsec connection. Must start with a Chinese character, English letter, or number, and can only contain Chinese characters, English letters, numbers, dot (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the IPsec connection ID.
- vpn
Gateway StringId - The ID of the VPN gateway associated with the IPsec connection. If AttachType is not specified or set to VpnGateway, this parameter must be provided. If AttachType is set to TransitRouter, this parameter is not required.
- zone
Id String - Availability zone of the transit router attachment point. This parameter is returned only when AttachType is 'TransitRouter'.
Supporting Types
VpnConnectionBgpInfo, VpnConnectionBgpInfoArgs
- Enable
Bgp bool - Enable dynamic route propagation. false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- Local
Asn int - The ASN of the VPN gateway.
- Local
Bgp stringIp - The local tunnel IP, which is the BGP address configured on the VPN gateway and defaults to the first host address of BgpConfig.TunnelCidr. This address must be an IP address within the IPsec tunnel subnet. If BgpConfig.EnableBgp is set to true, this parameter must be provided.
- Peer
Asn int - ASN of the customer gateway.
- Peer
Bgp stringIp - BGP peer IP, that is, the BGP address on the customer gateway side.
- Session
Status string - Status of the BGP connection. Up: BGP connection is normal. Down: BGP connection is not working.
- Tunnel
Cidr string - CIDR address range for the local and peer IPs of the BGP session.
- Enable
Bgp bool - Enable dynamic route propagation. false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- Local
Asn int - The ASN of the VPN gateway.
- Local
Bgp stringIp - The local tunnel IP, which is the BGP address configured on the VPN gateway and defaults to the first host address of BgpConfig.TunnelCidr. This address must be an IP address within the IPsec tunnel subnet. If BgpConfig.EnableBgp is set to true, this parameter must be provided.
- Peer
Asn int - ASN of the customer gateway.
- Peer
Bgp stringIp - BGP peer IP, that is, the BGP address on the customer gateway side.
- Session
Status string - Status of the BGP connection. Up: BGP connection is normal. Down: BGP connection is not working.
- Tunnel
Cidr string - CIDR address range for the local and peer IPs of the BGP session.
- enable
Bgp Boolean - Enable dynamic route propagation. false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- local
Asn Integer - The ASN of the VPN gateway.
- local
Bgp StringIp - The local tunnel IP, which is the BGP address configured on the VPN gateway and defaults to the first host address of BgpConfig.TunnelCidr. This address must be an IP address within the IPsec tunnel subnet. If BgpConfig.EnableBgp is set to true, this parameter must be provided.
- peer
Asn Integer - ASN of the customer gateway.
- peer
Bgp StringIp - BGP peer IP, that is, the BGP address on the customer gateway side.
- session
Status String - Status of the BGP connection. Up: BGP connection is normal. Down: BGP connection is not working.
- tunnel
Cidr String - CIDR address range for the local and peer IPs of the BGP session.
- enable
Bgp boolean - Enable dynamic route propagation. false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- local
Asn number - The ASN of the VPN gateway.
- local
Bgp stringIp - The local tunnel IP, which is the BGP address configured on the VPN gateway and defaults to the first host address of BgpConfig.TunnelCidr. This address must be an IP address within the IPsec tunnel subnet. If BgpConfig.EnableBgp is set to true, this parameter must be provided.
- peer
Asn number - ASN of the customer gateway.
- peer
Bgp stringIp - BGP peer IP, that is, the BGP address on the customer gateway side.
- session
Status string - Status of the BGP connection. Up: BGP connection is normal. Down: BGP connection is not working.
- tunnel
Cidr string - CIDR address range for the local and peer IPs of the BGP session.
- enable_
bgp bool - Enable dynamic route propagation. false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- local_
asn int - The ASN of the VPN gateway.
- local_
bgp_ strip - The local tunnel IP, which is the BGP address configured on the VPN gateway and defaults to the first host address of BgpConfig.TunnelCidr. This address must be an IP address within the IPsec tunnel subnet. If BgpConfig.EnableBgp is set to true, this parameter must be provided.
- peer_
asn int - ASN of the customer gateway.
- peer_
bgp_ strip - BGP peer IP, that is, the BGP address on the customer gateway side.
- session_
status str - Status of the BGP connection. Up: BGP connection is normal. Down: BGP connection is not working.
- tunnel_
cidr str - CIDR address range for the local and peer IPs of the BGP session.
- enable
Bgp Boolean - Enable dynamic route propagation. false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- local
Asn Number - The ASN of the VPN gateway.
- local
Bgp StringIp - The local tunnel IP, which is the BGP address configured on the VPN gateway and defaults to the first host address of BgpConfig.TunnelCidr. This address must be an IP address within the IPsec tunnel subnet. If BgpConfig.EnableBgp is set to true, this parameter must be provided.
- peer
Asn Number - ASN of the customer gateway.
- peer
Bgp StringIp - BGP peer IP, that is, the BGP address on the customer gateway side.
- session
Status String - Status of the BGP connection. Up: BGP connection is normal. Down: BGP connection is not working.
- tunnel
Cidr String - CIDR address range for the local and peer IPs of the BGP session.
VpnConnectionHealthChecker, VpnConnectionHealthCheckerArgs
- Check
Interval int - Interval for performing health checks
- Check
Result string - Health check result. Up: Normal. Down: Abnormal.
- Checker
Id string - ID of the IPsec connection health check
- Down
Time int - Health check unhealthy threshold. If the health check result is 'abnormal' for the specified number of consecutive times, the IPsec connection is considered unhealthy.
- Local
Ip string - Health check source IP.
- Remote
Ip string - Health check target IP.
- Timeout int
- Health check response timeout. If the IPsec connection does not respond correctly within the specified response time, it is considered 'abnormal' for health check.
- Up
Time int - Health check threshold. If the specified number of consecutive health checks are all 'healthy', the IPsec connection is considered 'healthy' by health check.
- Check
Interval int - Interval for performing health checks
- Check
Result string - Health check result. Up: Normal. Down: Abnormal.
- Checker
Id string - ID of the IPsec connection health check
- Down
Time int - Health check unhealthy threshold. If the health check result is 'abnormal' for the specified number of consecutive times, the IPsec connection is considered unhealthy.
- Local
Ip string - Health check source IP.
- Remote
Ip string - Health check target IP.
- Timeout int
- Health check response timeout. If the IPsec connection does not respond correctly within the specified response time, it is considered 'abnormal' for health check.
- Up
Time int - Health check threshold. If the specified number of consecutive health checks are all 'healthy', the IPsec connection is considered 'healthy' by health check.
- check
Interval Integer - Interval for performing health checks
- check
Result String - Health check result. Up: Normal. Down: Abnormal.
- checker
Id String - ID of the IPsec connection health check
- down
Time Integer - Health check unhealthy threshold. If the health check result is 'abnormal' for the specified number of consecutive times, the IPsec connection is considered unhealthy.
- local
Ip String - Health check source IP.
- remote
Ip String - Health check target IP.
- timeout Integer
- Health check response timeout. If the IPsec connection does not respond correctly within the specified response time, it is considered 'abnormal' for health check.
- up
Time Integer - Health check threshold. If the specified number of consecutive health checks are all 'healthy', the IPsec connection is considered 'healthy' by health check.
- check
Interval number - Interval for performing health checks
- check
Result string - Health check result. Up: Normal. Down: Abnormal.
- checker
Id string - ID of the IPsec connection health check
- down
Time number - Health check unhealthy threshold. If the health check result is 'abnormal' for the specified number of consecutive times, the IPsec connection is considered unhealthy.
- local
Ip string - Health check source IP.
- remote
Ip string - Health check target IP.
- timeout number
- Health check response timeout. If the IPsec connection does not respond correctly within the specified response time, it is considered 'abnormal' for health check.
- up
Time number - Health check threshold. If the specified number of consecutive health checks are all 'healthy', the IPsec connection is considered 'healthy' by health check.
- check_
interval int - Interval for performing health checks
- check_
result str - Health check result. Up: Normal. Down: Abnormal.
- checker_
id str - ID of the IPsec connection health check
- down_
time int - Health check unhealthy threshold. If the health check result is 'abnormal' for the specified number of consecutive times, the IPsec connection is considered unhealthy.
- local_
ip str - Health check source IP.
- remote_
ip str - Health check target IP.
- timeout int
- Health check response timeout. If the IPsec connection does not respond correctly within the specified response time, it is considered 'abnormal' for health check.
- up_
time int - Health check threshold. If the specified number of consecutive health checks are all 'healthy', the IPsec connection is considered 'healthy' by health check.
- check
Interval Number - Interval for performing health checks
- check
Result String - Health check result. Up: Normal. Down: Abnormal.
- checker
Id String - ID of the IPsec connection health check
- down
Time Number - Health check unhealthy threshold. If the health check result is 'abnormal' for the specified number of consecutive times, the IPsec connection is considered unhealthy.
- local
Ip String - Health check source IP.
- remote
Ip String - Health check target IP.
- timeout Number
- Health check response timeout. If the IPsec connection does not respond correctly within the specified response time, it is considered 'abnormal' for health check.
- up
Time Number - Health check threshold. If the specified number of consecutive health checks are all 'healthy', the IPsec connection is considered 'healthy' by health check.
VpnConnectionIkeConfig, VpnConnectionIkeConfigArgs
- Auth
Alg string - Authentication algorithm for phase one.
- Dh
Group string - DH (Diffie-Hellman) key exchange algorithm used in phase 1 negotiation. Valid values: group1, group2 (default), group5, group14
- Enc
Alg string - Encryption algorithm for phase 1 negotiation.
- Lifetime int
- Lifetime of the SA for phase 1 negotiation. After the lifetime is exceeded, negotiation restarts. Value range: 900~86400, unit: seconds. Default: 86400.
- Local
Id string - Identifier of the VPN gateway, used for phase 1 negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the current VPN gateway's egress IP address. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ; and digits are allowed.
- Mode string
- Negotiation mode for phase 1. This parameter is required only when IkeConfig.Version is ikev1. Valid values: main (default), aggressive
- Psk string
- Pre-shared key used for identity authentication between the VPN gateway and the user gateway in phase 1. Must not exceed 100 characters and can only contain uppercase and lowercase letters, special symbols ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and numbers.
- Remote
Id string - Identifier of the customer gateway, used for phase one negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the public IP address of the currently selected customer gateway. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and digits are allowed.
- Version string
- Version of the IKE key exchange protocol. Valid values: ikev1, ikev2 (default).
- Auth
Alg string - Authentication algorithm for phase one.
- Dh
Group string - DH (Diffie-Hellman) key exchange algorithm used in phase 1 negotiation. Valid values: group1, group2 (default), group5, group14
- Enc
Alg string - Encryption algorithm for phase 1 negotiation.
- Lifetime int
- Lifetime of the SA for phase 1 negotiation. After the lifetime is exceeded, negotiation restarts. Value range: 900~86400, unit: seconds. Default: 86400.
- Local
Id string - Identifier of the VPN gateway, used for phase 1 negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the current VPN gateway's egress IP address. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ; and digits are allowed.
- Mode string
- Negotiation mode for phase 1. This parameter is required only when IkeConfig.Version is ikev1. Valid values: main (default), aggressive
- Psk string
- Pre-shared key used for identity authentication between the VPN gateway and the user gateway in phase 1. Must not exceed 100 characters and can only contain uppercase and lowercase letters, special symbols ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and numbers.
- Remote
Id string - Identifier of the customer gateway, used for phase one negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the public IP address of the currently selected customer gateway. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and digits are allowed.
- Version string
- Version of the IKE key exchange protocol. Valid values: ikev1, ikev2 (default).
- auth
Alg String - Authentication algorithm for phase one.
- dh
Group String - DH (Diffie-Hellman) key exchange algorithm used in phase 1 negotiation. Valid values: group1, group2 (default), group5, group14
- enc
Alg String - Encryption algorithm for phase 1 negotiation.
- lifetime Integer
- Lifetime of the SA for phase 1 negotiation. After the lifetime is exceeded, negotiation restarts. Value range: 900~86400, unit: seconds. Default: 86400.
- local
Id String - Identifier of the VPN gateway, used for phase 1 negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the current VPN gateway's egress IP address. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ; and digits are allowed.
- mode String
- Negotiation mode for phase 1. This parameter is required only when IkeConfig.Version is ikev1. Valid values: main (default), aggressive
- psk String
- Pre-shared key used for identity authentication between the VPN gateway and the user gateway in phase 1. Must not exceed 100 characters and can only contain uppercase and lowercase letters, special symbols ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and numbers.
- remote
Id String - Identifier of the customer gateway, used for phase one negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the public IP address of the currently selected customer gateway. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and digits are allowed.
- version String
- Version of the IKE key exchange protocol. Valid values: ikev1, ikev2 (default).
- auth
Alg string - Authentication algorithm for phase one.
- dh
Group string - DH (Diffie-Hellman) key exchange algorithm used in phase 1 negotiation. Valid values: group1, group2 (default), group5, group14
- enc
Alg string - Encryption algorithm for phase 1 negotiation.
- lifetime number
- Lifetime of the SA for phase 1 negotiation. After the lifetime is exceeded, negotiation restarts. Value range: 900~86400, unit: seconds. Default: 86400.
- local
Id string - Identifier of the VPN gateway, used for phase 1 negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the current VPN gateway's egress IP address. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ; and digits are allowed.
- mode string
- Negotiation mode for phase 1. This parameter is required only when IkeConfig.Version is ikev1. Valid values: main (default), aggressive
- psk string
- Pre-shared key used for identity authentication between the VPN gateway and the user gateway in phase 1. Must not exceed 100 characters and can only contain uppercase and lowercase letters, special symbols ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and numbers.
- remote
Id string - Identifier of the customer gateway, used for phase one negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the public IP address of the currently selected customer gateway. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and digits are allowed.
- version string
- Version of the IKE key exchange protocol. Valid values: ikev1, ikev2 (default).
- auth_
alg str - Authentication algorithm for phase one.
- dh_
group str - DH (Diffie-Hellman) key exchange algorithm used in phase 1 negotiation. Valid values: group1, group2 (default), group5, group14
- enc_
alg str - Encryption algorithm for phase 1 negotiation.
- lifetime int
- Lifetime of the SA for phase 1 negotiation. After the lifetime is exceeded, negotiation restarts. Value range: 900~86400, unit: seconds. Default: 86400.
- local_
id str - Identifier of the VPN gateway, used for phase 1 negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the current VPN gateway's egress IP address. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ; and digits are allowed.
- mode str
- Negotiation mode for phase 1. This parameter is required only when IkeConfig.Version is ikev1. Valid values: main (default), aggressive
- psk str
- Pre-shared key used for identity authentication between the VPN gateway and the user gateway in phase 1. Must not exceed 100 characters and can only contain uppercase and lowercase letters, special symbols ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and numbers.
- remote_
id str - Identifier of the customer gateway, used for phase one negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the public IP address of the currently selected customer gateway. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and digits are allowed.
- version str
- Version of the IKE key exchange protocol. Valid values: ikev1, ikev2 (default).
- auth
Alg String - Authentication algorithm for phase one.
- dh
Group String - DH (Diffie-Hellman) key exchange algorithm used in phase 1 negotiation. Valid values: group1, group2 (default), group5, group14
- enc
Alg String - Encryption algorithm for phase 1 negotiation.
- lifetime Number
- Lifetime of the SA for phase 1 negotiation. After the lifetime is exceeded, negotiation restarts. Value range: 900~86400, unit: seconds. Default: 86400.
- local
Id String - Identifier of the VPN gateway, used for phase 1 negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the current VPN gateway's egress IP address. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ; and digits are allowed.
- mode String
- Negotiation mode for phase 1. This parameter is required only when IkeConfig.Version is ikev1. Valid values: main (default), aggressive
- psk String
- Pre-shared key used for identity authentication between the VPN gateway and the user gateway in phase 1. Must not exceed 100 characters and can only contain uppercase and lowercase letters, special symbols ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and numbers.
- remote
Id String - Identifier of the customer gateway, used for phase one negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the public IP address of the currently selected customer gateway. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and digits are allowed.
- version String
- Version of the IKE key exchange protocol. Valid values: ikev1, ikev2 (default).
VpnConnectionIpsecConfig, VpnConnectionIpsecConfigArgs
- Auth
Alg string - Authentication algorithm for phase 2 negotiation
- Dh
Group string - DH (Diffie-Hellman) key exchange algorithm used in phase 2
- Enc
Alg string - Encryption algorithm for phase 2 negotiation
- Lifetime int
- Lifetime of the SA for phase 2 negotiation. Negotiation will be re-initiated after the lifetime expires.
- Auth
Alg string - Authentication algorithm for phase 2 negotiation
- Dh
Group string - DH (Diffie-Hellman) key exchange algorithm used in phase 2
- Enc
Alg string - Encryption algorithm for phase 2 negotiation
- Lifetime int
- Lifetime of the SA for phase 2 negotiation. Negotiation will be re-initiated after the lifetime expires.
- auth
Alg String - Authentication algorithm for phase 2 negotiation
- dh
Group String - DH (Diffie-Hellman) key exchange algorithm used in phase 2
- enc
Alg String - Encryption algorithm for phase 2 negotiation
- lifetime Integer
- Lifetime of the SA for phase 2 negotiation. Negotiation will be re-initiated after the lifetime expires.
- auth
Alg string - Authentication algorithm for phase 2 negotiation
- dh
Group string - DH (Diffie-Hellman) key exchange algorithm used in phase 2
- enc
Alg string - Encryption algorithm for phase 2 negotiation
- lifetime number
- Lifetime of the SA for phase 2 negotiation. Negotiation will be re-initiated after the lifetime expires.
- auth_
alg str - Authentication algorithm for phase 2 negotiation
- dh_
group str - DH (Diffie-Hellman) key exchange algorithm used in phase 2
- enc_
alg str - Encryption algorithm for phase 2 negotiation
- lifetime int
- Lifetime of the SA for phase 2 negotiation. Negotiation will be re-initiated after the lifetime expires.
- auth
Alg String - Authentication algorithm for phase 2 negotiation
- dh
Group String - DH (Diffie-Hellman) key exchange algorithm used in phase 2
- enc
Alg String - Encryption algorithm for phase 2 negotiation
- lifetime Number
- Lifetime of the SA for phase 2 negotiation. Negotiation will be re-initiated after the lifetime expires.
VpnConnectionTag, VpnConnectionTagArgs
VpnConnectionTunnelOption, VpnConnectionTunnelOptionArgs
- Connect
Status string - IPsec tunnel status. ikesanegotiationfailed: Phase one negotiation failed; nikesanegotiationcompleted: Phase one negotiation succeeded; nipsecsanegotiationfailed: Phase two negotiation failed; nipsecsanegotiationcompleted: Phase two negotiation succeeded.
- Customer
Gateway stringId - ID of the customer gateway associated with the IPsec connection.
- Dpd
Action string - Status of the DPD feature.
- Ike
Config Volcengine.Vpn Connection Tunnel Option Ike Config - IKE configuration information for the IPsec connection.
- Ipsec
Config Volcengine.Vpn Connection Tunnel Option Ipsec Config - Information about the IPsec configuration in the IPsec connection.
- Nat
Traversal bool - Whether to enable NAT traversal
- Role string
- The role of the tunnel.
- Tunnel
Bgp Volcengine.Info Vpn Connection Tunnel Option Tunnel Bgp Info - BGP session information.
- Tunnel
Id string - Tunnel ID of the IPsec connection.
- Connect
Status string - IPsec tunnel status. ikesanegotiationfailed: Phase one negotiation failed; nikesanegotiationcompleted: Phase one negotiation succeeded; nipsecsanegotiationfailed: Phase two negotiation failed; nipsecsanegotiationcompleted: Phase two negotiation succeeded.
- Customer
Gateway stringId - ID of the customer gateway associated with the IPsec connection.
- Dpd
Action string - Status of the DPD feature.
- Ike
Config VpnConnection Tunnel Option Ike Config - IKE configuration information for the IPsec connection.
- Ipsec
Config VpnConnection Tunnel Option Ipsec Config - Information about the IPsec configuration in the IPsec connection.
- Nat
Traversal bool - Whether to enable NAT traversal
- Role string
- The role of the tunnel.
- Tunnel
Bgp VpnInfo Connection Tunnel Option Tunnel Bgp Info - BGP session information.
- Tunnel
Id string - Tunnel ID of the IPsec connection.
- connect
Status String - IPsec tunnel status. ikesanegotiationfailed: Phase one negotiation failed; nikesanegotiationcompleted: Phase one negotiation succeeded; nipsecsanegotiationfailed: Phase two negotiation failed; nipsecsanegotiationcompleted: Phase two negotiation succeeded.
- customer
Gateway StringId - ID of the customer gateway associated with the IPsec connection.
- dpd
Action String - Status of the DPD feature.
- ike
Config VpnConnection Tunnel Option Ike Config - IKE configuration information for the IPsec connection.
- ipsec
Config VpnConnection Tunnel Option Ipsec Config - Information about the IPsec configuration in the IPsec connection.
- nat
Traversal Boolean - Whether to enable NAT traversal
- role String
- The role of the tunnel.
- tunnel
Bgp VpnInfo Connection Tunnel Option Tunnel Bgp Info - BGP session information.
- tunnel
Id String - Tunnel ID of the IPsec connection.
- connect
Status string - IPsec tunnel status. ikesanegotiationfailed: Phase one negotiation failed; nikesanegotiationcompleted: Phase one negotiation succeeded; nipsecsanegotiationfailed: Phase two negotiation failed; nipsecsanegotiationcompleted: Phase two negotiation succeeded.
- customer
Gateway stringId - ID of the customer gateway associated with the IPsec connection.
- dpd
Action string - Status of the DPD feature.
- ike
Config VpnConnection Tunnel Option Ike Config - IKE configuration information for the IPsec connection.
- ipsec
Config VpnConnection Tunnel Option Ipsec Config - Information about the IPsec configuration in the IPsec connection.
- nat
Traversal boolean - Whether to enable NAT traversal
- role string
- The role of the tunnel.
- tunnel
Bgp VpnInfo Connection Tunnel Option Tunnel Bgp Info - BGP session information.
- tunnel
Id string - Tunnel ID of the IPsec connection.
- connect_
status str - IPsec tunnel status. ikesanegotiationfailed: Phase one negotiation failed; nikesanegotiationcompleted: Phase one negotiation succeeded; nipsecsanegotiationfailed: Phase two negotiation failed; nipsecsanegotiationcompleted: Phase two negotiation succeeded.
- customer_
gateway_ strid - ID of the customer gateway associated with the IPsec connection.
- dpd_
action str - Status of the DPD feature.
- ike_
config VpnConnection Tunnel Option Ike Config - IKE configuration information for the IPsec connection.
- ipsec_
config VpnConnection Tunnel Option Ipsec Config - Information about the IPsec configuration in the IPsec connection.
- nat_
traversal bool - Whether to enable NAT traversal
- role str
- The role of the tunnel.
- tunnel_
bgp_ Vpninfo Connection Tunnel Option Tunnel Bgp Info - BGP session information.
- tunnel_
id str - Tunnel ID of the IPsec connection.
- connect
Status String - IPsec tunnel status. ikesanegotiationfailed: Phase one negotiation failed; nikesanegotiationcompleted: Phase one negotiation succeeded; nipsecsanegotiationfailed: Phase two negotiation failed; nipsecsanegotiationcompleted: Phase two negotiation succeeded.
- customer
Gateway StringId - ID of the customer gateway associated with the IPsec connection.
- dpd
Action String - Status of the DPD feature.
- ike
Config Property Map - IKE configuration information for the IPsec connection.
- ipsec
Config Property Map - Information about the IPsec configuration in the IPsec connection.
- nat
Traversal Boolean - Whether to enable NAT traversal
- role String
- The role of the tunnel.
- tunnel
Bgp Property MapInfo - BGP session information.
- tunnel
Id String - Tunnel ID of the IPsec connection.
VpnConnectionTunnelOptionIkeConfig, VpnConnectionTunnelOptionIkeConfigArgs
- Auth
Alg string - Authentication algorithm for phase one.
- Dh
Group string - DH (Diffie-Hellman) key exchange algorithm used in phase 1 negotiation. Valid values: group1, group2 (default), group5, group14
- Enc
Alg string - Encryption algorithm for phase 1 negotiation.
- Lifetime int
- Lifetime of the SA for phase 1 negotiation. After the lifetime is exceeded, negotiation restarts. Value range: 900~86400, unit: seconds. Default: 86400.
- Local
Id string - Identifier of the VPN gateway, used for phase 1 negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the current VPN gateway's egress IP address. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ; and digits are allowed.
- Mode string
- Negotiation mode for phase 1. This parameter is required only when IkeConfig.Version is ikev1. Valid values: main (default), aggressive
- Psk string
- Pre-shared key used for identity authentication between the VPN gateway and the user gateway in phase 1. Must not exceed 100 characters and can only contain uppercase and lowercase letters, special symbols ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and numbers.
- Remote
Id string - Identifier of the customer gateway, used for phase one negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the public IP address of the currently selected customer gateway. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and digits are allowed.
- Version string
- Version of the IKE key exchange protocol. Valid values: ikev1, ikev2 (default).
- Auth
Alg string - Authentication algorithm for phase one.
- Dh
Group string - DH (Diffie-Hellman) key exchange algorithm used in phase 1 negotiation. Valid values: group1, group2 (default), group5, group14
- Enc
Alg string - Encryption algorithm for phase 1 negotiation.
- Lifetime int
- Lifetime of the SA for phase 1 negotiation. After the lifetime is exceeded, negotiation restarts. Value range: 900~86400, unit: seconds. Default: 86400.
- Local
Id string - Identifier of the VPN gateway, used for phase 1 negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the current VPN gateway's egress IP address. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ; and digits are allowed.
- Mode string
- Negotiation mode for phase 1. This parameter is required only when IkeConfig.Version is ikev1. Valid values: main (default), aggressive
- Psk string
- Pre-shared key used for identity authentication between the VPN gateway and the user gateway in phase 1. Must not exceed 100 characters and can only contain uppercase and lowercase letters, special symbols ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and numbers.
- Remote
Id string - Identifier of the customer gateway, used for phase one negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the public IP address of the currently selected customer gateway. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and digits are allowed.
- Version string
- Version of the IKE key exchange protocol. Valid values: ikev1, ikev2 (default).
- auth
Alg String - Authentication algorithm for phase one.
- dh
Group String - DH (Diffie-Hellman) key exchange algorithm used in phase 1 negotiation. Valid values: group1, group2 (default), group5, group14
- enc
Alg String - Encryption algorithm for phase 1 negotiation.
- lifetime Integer
- Lifetime of the SA for phase 1 negotiation. After the lifetime is exceeded, negotiation restarts. Value range: 900~86400, unit: seconds. Default: 86400.
- local
Id String - Identifier of the VPN gateway, used for phase 1 negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the current VPN gateway's egress IP address. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ; and digits are allowed.
- mode String
- Negotiation mode for phase 1. This parameter is required only when IkeConfig.Version is ikev1. Valid values: main (default), aggressive
- psk String
- Pre-shared key used for identity authentication between the VPN gateway and the user gateway in phase 1. Must not exceed 100 characters and can only contain uppercase and lowercase letters, special symbols ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and numbers.
- remote
Id String - Identifier of the customer gateway, used for phase one negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the public IP address of the currently selected customer gateway. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and digits are allowed.
- version String
- Version of the IKE key exchange protocol. Valid values: ikev1, ikev2 (default).
- auth
Alg string - Authentication algorithm for phase one.
- dh
Group string - DH (Diffie-Hellman) key exchange algorithm used in phase 1 negotiation. Valid values: group1, group2 (default), group5, group14
- enc
Alg string - Encryption algorithm for phase 1 negotiation.
- lifetime number
- Lifetime of the SA for phase 1 negotiation. After the lifetime is exceeded, negotiation restarts. Value range: 900~86400, unit: seconds. Default: 86400.
- local
Id string - Identifier of the VPN gateway, used for phase 1 negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the current VPN gateway's egress IP address. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ; and digits are allowed.
- mode string
- Negotiation mode for phase 1. This parameter is required only when IkeConfig.Version is ikev1. Valid values: main (default), aggressive
- psk string
- Pre-shared key used for identity authentication between the VPN gateway and the user gateway in phase 1. Must not exceed 100 characters and can only contain uppercase and lowercase letters, special symbols ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and numbers.
- remote
Id string - Identifier of the customer gateway, used for phase one negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the public IP address of the currently selected customer gateway. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and digits are allowed.
- version string
- Version of the IKE key exchange protocol. Valid values: ikev1, ikev2 (default).
- auth_
alg str - Authentication algorithm for phase one.
- dh_
group str - DH (Diffie-Hellman) key exchange algorithm used in phase 1 negotiation. Valid values: group1, group2 (default), group5, group14
- enc_
alg str - Encryption algorithm for phase 1 negotiation.
- lifetime int
- Lifetime of the SA for phase 1 negotiation. After the lifetime is exceeded, negotiation restarts. Value range: 900~86400, unit: seconds. Default: 86400.
- local_
id str - Identifier of the VPN gateway, used for phase 1 negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the current VPN gateway's egress IP address. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ; and digits are allowed.
- mode str
- Negotiation mode for phase 1. This parameter is required only when IkeConfig.Version is ikev1. Valid values: main (default), aggressive
- psk str
- Pre-shared key used for identity authentication between the VPN gateway and the user gateway in phase 1. Must not exceed 100 characters and can only contain uppercase and lowercase letters, special symbols ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and numbers.
- remote_
id str - Identifier of the customer gateway, used for phase one negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the public IP address of the currently selected customer gateway. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and digits are allowed.
- version str
- Version of the IKE key exchange protocol. Valid values: ikev1, ikev2 (default).
- auth
Alg String - Authentication algorithm for phase one.
- dh
Group String - DH (Diffie-Hellman) key exchange algorithm used in phase 1 negotiation. Valid values: group1, group2 (default), group5, group14
- enc
Alg String - Encryption algorithm for phase 1 negotiation.
- lifetime Number
- Lifetime of the SA for phase 1 negotiation. After the lifetime is exceeded, negotiation restarts. Value range: 900~86400, unit: seconds. Default: 86400.
- local
Id String - Identifier of the VPN gateway, used for phase 1 negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the current VPN gateway's egress IP address. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ; and digits are allowed.
- mode String
- Negotiation mode for phase 1. This parameter is required only when IkeConfig.Version is ikev1. Valid values: main (default), aggressive
- psk String
- Pre-shared key used for identity authentication between the VPN gateway and the user gateway in phase 1. Must not exceed 100 characters and can only contain uppercase and lowercase letters, special symbols ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and numbers.
- remote
Id String - Identifier of the customer gateway, used for phase one negotiation. Supports IP format and FQDN (Fully Qualified Domain Name) format. If not specified, defaults to the public IP address of the currently selected customer gateway. If you manually set it to FQDN format, it is recommended to set the negotiation mode to 'aggressive'. Maximum length is 100 characters. Only uppercase and lowercase letters, special characters ~ ` | ! @ # $ % ^ ( ) - _ + = [ ] { } \ , . / : ;, and digits are allowed.
- version String
- Version of the IKE key exchange protocol. Valid values: ikev1, ikev2 (default).
VpnConnectionTunnelOptionIpsecConfig, VpnConnectionTunnelOptionIpsecConfigArgs
- Auth
Alg string - Authentication algorithm for phase 2 negotiation
- Dh
Group string - DH (Diffie-Hellman) key exchange algorithm used in phase 2
- Enc
Alg string - Encryption algorithm for phase 2 negotiation
- Lifetime int
- Lifetime of the SA for phase 2 negotiation. Negotiation will be re-initiated after the lifetime expires.
- Auth
Alg string - Authentication algorithm for phase 2 negotiation
- Dh
Group string - DH (Diffie-Hellman) key exchange algorithm used in phase 2
- Enc
Alg string - Encryption algorithm for phase 2 negotiation
- Lifetime int
- Lifetime of the SA for phase 2 negotiation. Negotiation will be re-initiated after the lifetime expires.
- auth
Alg String - Authentication algorithm for phase 2 negotiation
- dh
Group String - DH (Diffie-Hellman) key exchange algorithm used in phase 2
- enc
Alg String - Encryption algorithm for phase 2 negotiation
- lifetime Integer
- Lifetime of the SA for phase 2 negotiation. Negotiation will be re-initiated after the lifetime expires.
- auth
Alg string - Authentication algorithm for phase 2 negotiation
- dh
Group string - DH (Diffie-Hellman) key exchange algorithm used in phase 2
- enc
Alg string - Encryption algorithm for phase 2 negotiation
- lifetime number
- Lifetime of the SA for phase 2 negotiation. Negotiation will be re-initiated after the lifetime expires.
- auth_
alg str - Authentication algorithm for phase 2 negotiation
- dh_
group str - DH (Diffie-Hellman) key exchange algorithm used in phase 2
- enc_
alg str - Encryption algorithm for phase 2 negotiation
- lifetime int
- Lifetime of the SA for phase 2 negotiation. Negotiation will be re-initiated after the lifetime expires.
- auth
Alg String - Authentication algorithm for phase 2 negotiation
- dh
Group String - DH (Diffie-Hellman) key exchange algorithm used in phase 2
- enc
Alg String - Encryption algorithm for phase 2 negotiation
- lifetime Number
- Lifetime of the SA for phase 2 negotiation. Negotiation will be re-initiated after the lifetime expires.
VpnConnectionTunnelOptionTunnelBgpInfo, VpnConnectionTunnelOptionTunnelBgpInfoArgs
- Enable
Bgp bool - Enable dynamic route propagation. false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- Local
Asn int - The ASN of the VPN gateway.
- Local
Bgp stringIp - BGP address. Defaults to the first host address of TunnelOptions.N.BGPConfig.TunnelCidr. This address must be an IP address within the IPsec tunnel CIDR block. If EnableTunnelsBgp is set to true, this parameter must be specified.
- Peer
Asn int - ASN of the customer gateway.
- Peer
Bgp stringIp - BGP peer IP, that is, the BGP address on the customer gateway side.
- Session
Status string - Status of the BGP connection. Up: BGP connection is normal. Down: BGP connection is not working.
- Tunnel
Cidr string - The CIDR address range for the local and peer IPs of the BGP session. This range must be within the 169.254.0.0/16 subnet with a subnet mask length of 30. If EnableTunnelsBgp is set to true, this parameter must be provided.
- Enable
Bgp bool - Enable dynamic route propagation. false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- Local
Asn int - The ASN of the VPN gateway.
- Local
Bgp stringIp - BGP address. Defaults to the first host address of TunnelOptions.N.BGPConfig.TunnelCidr. This address must be an IP address within the IPsec tunnel CIDR block. If EnableTunnelsBgp is set to true, this parameter must be specified.
- Peer
Asn int - ASN of the customer gateway.
- Peer
Bgp stringIp - BGP peer IP, that is, the BGP address on the customer gateway side.
- Session
Status string - Status of the BGP connection. Up: BGP connection is normal. Down: BGP connection is not working.
- Tunnel
Cidr string - The CIDR address range for the local and peer IPs of the BGP session. This range must be within the 169.254.0.0/16 subnet with a subnet mask length of 30. If EnableTunnelsBgp is set to true, this parameter must be provided.
- enable
Bgp Boolean - Enable dynamic route propagation. false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- local
Asn Integer - The ASN of the VPN gateway.
- local
Bgp StringIp - BGP address. Defaults to the first host address of TunnelOptions.N.BGPConfig.TunnelCidr. This address must be an IP address within the IPsec tunnel CIDR block. If EnableTunnelsBgp is set to true, this parameter must be specified.
- peer
Asn Integer - ASN of the customer gateway.
- peer
Bgp StringIp - BGP peer IP, that is, the BGP address on the customer gateway side.
- session
Status String - Status of the BGP connection. Up: BGP connection is normal. Down: BGP connection is not working.
- tunnel
Cidr String - The CIDR address range for the local and peer IPs of the BGP session. This range must be within the 169.254.0.0/16 subnet with a subnet mask length of 30. If EnableTunnelsBgp is set to true, this parameter must be provided.
- enable
Bgp boolean - Enable dynamic route propagation. false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- local
Asn number - The ASN of the VPN gateway.
- local
Bgp stringIp - BGP address. Defaults to the first host address of TunnelOptions.N.BGPConfig.TunnelCidr. This address must be an IP address within the IPsec tunnel CIDR block. If EnableTunnelsBgp is set to true, this parameter must be specified.
- peer
Asn number - ASN of the customer gateway.
- peer
Bgp stringIp - BGP peer IP, that is, the BGP address on the customer gateway side.
- session
Status string - Status of the BGP connection. Up: BGP connection is normal. Down: BGP connection is not working.
- tunnel
Cidr string - The CIDR address range for the local and peer IPs of the BGP session. This range must be within the 169.254.0.0/16 subnet with a subnet mask length of 30. If EnableTunnelsBgp is set to true, this parameter must be provided.
- enable_
bgp bool - Enable dynamic route propagation. false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- local_
asn int - The ASN of the VPN gateway.
- local_
bgp_ strip - BGP address. Defaults to the first host address of TunnelOptions.N.BGPConfig.TunnelCidr. This address must be an IP address within the IPsec tunnel CIDR block. If EnableTunnelsBgp is set to true, this parameter must be specified.
- peer_
asn int - ASN of the customer gateway.
- peer_
bgp_ strip - BGP peer IP, that is, the BGP address on the customer gateway side.
- session_
status str - Status of the BGP connection. Up: BGP connection is normal. Down: BGP connection is not working.
- tunnel_
cidr str - The CIDR address range for the local and peer IPs of the BGP session. This range must be within the 169.254.0.0/16 subnet with a subnet mask length of 30. If EnableTunnelsBgp is set to true, this parameter must be provided.
- enable
Bgp Boolean - Enable dynamic route propagation. false (default): No, use static routing mode. true: Yes, use BGP routing mode.
- local
Asn Number - The ASN of the VPN gateway.
- local
Bgp StringIp - BGP address. Defaults to the first host address of TunnelOptions.N.BGPConfig.TunnelCidr. This address must be an IP address within the IPsec tunnel CIDR block. If EnableTunnelsBgp is set to true, this parameter must be specified.
- peer
Asn Number - ASN of the customer gateway.
- peer
Bgp StringIp - BGP peer IP, that is, the BGP address on the customer gateway side.
- session
Status String - Status of the BGP connection. Up: BGP connection is normal. Down: BGP connection is not working.
- tunnel
Cidr String - The CIDR address range for the local and peer IPs of the BGP session. This range must be within the 169.254.0.0/16 subnet with a subnet mask length of 30. If EnableTunnelsBgp is set to true, this parameter must be provided.
Import
$ pulumi import volcenginecc:vpn/vpnConnection:VpnConnection example "vpn_connection_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
