» Data Source: oci_core_ipsec_connection_tunnels

This data source provides the list of Ip Sec Connection Tunnels in Oracle Cloud Infrastructure Core service.

Lists the tunnel information for the specified IPSec connection.

» Example Usage

data "oci_core_ipsec_connection_tunnels" "test_ip_sec_connection_tunnels" {
    #Required
    ipsec_id = "${oci_core_ipsec.test_ipsec.id}"
}

» Argument Reference

The following arguments are supported:

  • ipsec_id - (Required) The OCID of the IPSec connection.

» Attributes Reference

The following attributes are exported:

» IpSecConnectionTunnel Reference

The following attributes are exported:

  • bgp_session_info - Information for establishing the tunnel's BGP session.

    • bgp_state - The state of the BGP session.
    • customer_bgp_asn - If the tunnel's routing attribute is set to BGP (see IPSecConnectionTunnel), this ASN is required and used for the tunnel's BGP session. This is the ASN of the network on the CPE end of the BGP session. Can be a 2-byte or 4-byte ASN. Uses "asplain" format.

      If the tunnel uses static routing, the customerBgpAsn must be null.

      Example: 12345 (2-byte) or 1587232876 (4-byte)

    • customer_interface_ip - The IP address for the CPE end of the inside tunnel interface.

      If the tunnel's routing attribute is set to BGP (see IPSecConnectionTunnel), this IP address is required and used for the tunnel's BGP session.

      If routing is instead set to STATIC, this IP address is optional. You can set this IP address so you can troubleshoot or monitor the tunnel.

      The value must be a /30 or /31.

      Example: 10.0.0.5/31

    • oracle_bgp_asn - The Oracle BGP ASN.

    • oracle_interface_ip - The IP address for the Oracle end of the inside tunnel interface.

      If the tunnel's routing attribute is set to BGP (see IPSecConnectionTunnel), this IP address is required and used for the tunnel's BGP session.

      If routing is instead set to STATIC, this IP address is optional. You can set this IP address so you can troubleshoot or monitor the tunnel.

      The value must be a /30 or /31.

      Example: 10.0.0.4/31

  • compartment_id - The OCID of the compartment containing the tunnel.

  • cpe_ip - The IP address of the CPE's VPN headend. Example: 192.0.2.157

  • display_name - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

  • id - The OCID of the tunnel.

  • routing - The type of routing used for this tunnel (either BGP dynamic routing or static routing).

  • state - The tunnel's lifecycle state.

  • status - The status of the tunnel based on IPSec protocol characteristics.

  • time_created - The date and time the IPSec connection tunnel was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

  • time_status_updated - When the status of the tunnel last changed, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

  • vpn_ip - The IP address of Oracle's VPN headend. Example: 192.0.2.5