getIpsecConnectionTunnel

This data source provides details about a specific Ip Sec Connection Tunnel resource in Oracle Cloud Infrastructure Core service.

Gets the specified IPSec connection’s specified tunnel basic information.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testIpSecConnectionTunnel = Oci.Core.GetIpsecConnectionTunnel.Invoke(new()
    {
        IpsecId = oci_core_ipsec.Test_ipsec.Id,
        TunnelId = data.Oci_core_ipsec_connection_tunnels.Test_ip_sec_connection_tunnels.Ip_sec_connection_tunnels[0].Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Core.GetIpsecConnectionTunnel(ctx, &core.GetIpsecConnectionTunnelArgs{
			IpsecId:  oci_core_ipsec.Test_ipsec.Id,
			TunnelId: data.Oci_core_ipsec_connection_tunnels.Test_ip_sec_connection_tunnels.Ip_sec_connection_tunnels[0].Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetIpsecConnectionTunnelArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var testIpSecConnectionTunnel = CoreFunctions.getIpsecConnectionTunnel(GetIpsecConnectionTunnelArgs.builder()
            .ipsecId(oci_core_ipsec.test_ipsec().id())
            .tunnelId(data.oci_core_ipsec_connection_tunnels().test_ip_sec_connection_tunnels().ip_sec_connection_tunnels()[0].id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_ip_sec_connection_tunnel = oci.Core.get_ipsec_connection_tunnel(ipsec_id=oci_core_ipsec["test_ipsec"]["id"],
    tunnel_id=data["oci_core_ipsec_connection_tunnels"]["test_ip_sec_connection_tunnels"]["ip_sec_connection_tunnels"][0]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testIpSecConnectionTunnel = oci.Core.getIpsecConnectionTunnel({
    ipsecId: oci_core_ipsec.test_ipsec.id,
    tunnelId: data.oci_core_ipsec_connection_tunnels.test_ip_sec_connection_tunnels.ip_sec_connection_tunnels[0].id,
});
variables:
  testIpSecConnectionTunnel:
    Fn::Invoke:
      Function: oci:Core:getIpsecConnectionTunnel
      Arguments:
        ipsecId: ${oci_core_ipsec.test_ipsec.id}
        tunnelId: ${data.oci_core_ipsec_connection_tunnels.test_ip_sec_connection_tunnels.ip_sec_connection_tunnels[0].id}

Using getIpsecConnectionTunnel

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getIpsecConnectionTunnel(args: GetIpsecConnectionTunnelArgs, opts?: InvokeOptions): Promise<GetIpsecConnectionTunnelResult>
function getIpsecConnectionTunnelOutput(args: GetIpsecConnectionTunnelOutputArgs, opts?: InvokeOptions): Output<GetIpsecConnectionTunnelResult>
def get_ipsec_connection_tunnel(ipsec_id: Optional[str] = None,
                                tunnel_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetIpsecConnectionTunnelResult
def get_ipsec_connection_tunnel_output(ipsec_id: Optional[pulumi.Input[str]] = None,
                                tunnel_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetIpsecConnectionTunnelResult]
func GetIpsecConnectionTunnel(ctx *Context, args *GetIpsecConnectionTunnelArgs, opts ...InvokeOption) (*GetIpsecConnectionTunnelResult, error)
func GetIpsecConnectionTunnelOutput(ctx *Context, args *GetIpsecConnectionTunnelOutputArgs, opts ...InvokeOption) GetIpsecConnectionTunnelResultOutput

> Note: This function is named GetIpsecConnectionTunnel in the Go SDK.

public static class GetIpsecConnectionTunnel 
{
    public static Task<GetIpsecConnectionTunnelResult> InvokeAsync(GetIpsecConnectionTunnelArgs args, InvokeOptions? opts = null)
    public static Output<GetIpsecConnectionTunnelResult> Invoke(GetIpsecConnectionTunnelInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIpsecConnectionTunnelResult> getIpsecConnectionTunnel(GetIpsecConnectionTunnelArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Core/getIpsecConnectionTunnel:getIpsecConnectionTunnel
  arguments:
    # arguments dictionary

The following arguments are supported:

IpsecId string

The OCID of the IPSec connection.

TunnelId string

The OCID of the IPSec connection's tunnel.

IpsecId string

The OCID of the IPSec connection.

TunnelId string

The OCID of the IPSec connection's tunnel.

ipsecId String

The OCID of the IPSec connection.

tunnelId String

The OCID of the IPSec connection's tunnel.

ipsecId string

The OCID of the IPSec connection.

tunnelId string

The OCID of the IPSec connection's tunnel.

ipsec_id str

The OCID of the IPSec connection.

tunnel_id str

The OCID of the IPSec connection's tunnel.

ipsecId String

The OCID of the IPSec connection.

tunnelId String

The OCID of the IPSec connection's tunnel.

getIpsecConnectionTunnel Result

The following output properties are available:

BgpSessionInfos List<GetIpsecConnectionTunnelBgpSessionInfo>

Information needed to establish a BGP Session on an interface.

CompartmentId string

The OCID of the compartment containing the tunnel.

CpeIp string

The IP address of Cpe headend. Example: 129.146.17.50

DisplayName string

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

EncryptionDomainConfigs List<GetIpsecConnectionTunnelEncryptionDomainConfig>

Configuration information used by the encryption domain policy.

Id string

The provider-assigned unique ID for this managed resource.

IkeVersion string

Internet Key Exchange protocol version.

IpsecId string
Routing string

the routing strategy used for this tunnel, either static route or BGP dynamic routing

State string

The IPSec connection's tunnel's lifecycle state.

Status string

The tunnel's current state.

TimeCreated string

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

TimeStatusUpdated string

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

TunnelId string
VpnIp string

The IP address of Oracle's VPN headend. Example: 129.146.17.50

BgpSessionInfos []GetIpsecConnectionTunnelBgpSessionInfo

Information needed to establish a BGP Session on an interface.

CompartmentId string

The OCID of the compartment containing the tunnel.

CpeIp string

The IP address of Cpe headend. Example: 129.146.17.50

DisplayName string

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

EncryptionDomainConfigs []GetIpsecConnectionTunnelEncryptionDomainConfig

Configuration information used by the encryption domain policy.

Id string

The provider-assigned unique ID for this managed resource.

IkeVersion string

Internet Key Exchange protocol version.

IpsecId string
Routing string

the routing strategy used for this tunnel, either static route or BGP dynamic routing

State string

The IPSec connection's tunnel's lifecycle state.

Status string

The tunnel's current state.

TimeCreated string

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

TimeStatusUpdated string

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

TunnelId string
VpnIp string

The IP address of Oracle's VPN headend. Example: 129.146.17.50

bgpSessionInfos List<GetIpsecConnectionTunnelBgpSessionInfo>

Information needed to establish a BGP Session on an interface.

compartmentId String

The OCID of the compartment containing the tunnel.

cpeIp String

The IP address of Cpe headend. Example: 129.146.17.50

displayName String

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

encryptionDomainConfigs List<GetIpsecConnectionTunnelEncryptionDomainConfig>

Configuration information used by the encryption domain policy.

id String

The provider-assigned unique ID for this managed resource.

ikeVersion String

Internet Key Exchange protocol version.

ipsecId String
routing String

the routing strategy used for this tunnel, either static route or BGP dynamic routing

state String

The IPSec connection's tunnel's lifecycle state.

status String

The tunnel's current state.

timeCreated String

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

timeStatusUpdated String

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

tunnelId String
vpnIp String

The IP address of Oracle's VPN headend. Example: 129.146.17.50

bgpSessionInfos GetIpsecConnectionTunnelBgpSessionInfo[]

Information needed to establish a BGP Session on an interface.

compartmentId string

The OCID of the compartment containing the tunnel.

cpeIp string

The IP address of Cpe headend. Example: 129.146.17.50

displayName string

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

encryptionDomainConfigs GetIpsecConnectionTunnelEncryptionDomainConfig[]

Configuration information used by the encryption domain policy.

id string

The provider-assigned unique ID for this managed resource.

ikeVersion string

Internet Key Exchange protocol version.

ipsecId string
routing string

the routing strategy used for this tunnel, either static route or BGP dynamic routing

state string

The IPSec connection's tunnel's lifecycle state.

status string

The tunnel's current state.

timeCreated string

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

timeStatusUpdated string

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

tunnelId string
vpnIp string

The IP address of Oracle's VPN headend. Example: 129.146.17.50

bgp_session_infos GetIpsecConnectionTunnelBgpSessionInfo]

Information needed to establish a BGP Session on an interface.

compartment_id str

The OCID of the compartment containing the tunnel.

cpe_ip str

The IP address of Cpe headend. Example: 129.146.17.50

display_name str

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

encryption_domain_configs GetIpsecConnectionTunnelEncryptionDomainConfig]

Configuration information used by the encryption domain policy.

id str

The provider-assigned unique ID for this managed resource.

ike_version str

Internet Key Exchange protocol version.

ipsec_id str
routing str

the routing strategy used for this tunnel, either static route or BGP dynamic routing

state str

The IPSec connection's tunnel's lifecycle state.

status str

The tunnel's current state.

time_created str

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 str

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

tunnel_id str
vpn_ip str

The IP address of Oracle's VPN headend. Example: 129.146.17.50

bgpSessionInfos List<Property Map>

Information needed to establish a BGP Session on an interface.

compartmentId String

The OCID of the compartment containing the tunnel.

cpeIp String

The IP address of Cpe headend. Example: 129.146.17.50

displayName String

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

encryptionDomainConfigs List<Property Map>

Configuration information used by the encryption domain policy.

id String

The provider-assigned unique ID for this managed resource.

ikeVersion String

Internet Key Exchange protocol version.

ipsecId String
routing String

the routing strategy used for this tunnel, either static route or BGP dynamic routing

state String

The IPSec connection's tunnel's lifecycle state.

status String

The tunnel's current state.

timeCreated String

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

timeStatusUpdated String

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

tunnelId String
vpnIp String

The IP address of Oracle's VPN headend. Example: 129.146.17.50

Supporting Types

GetIpsecConnectionTunnelBgpSessionInfo

BgpIpv6state string
BgpState string

the state of the BGP.

CustomerBgpAsn string

This is the value of the remote Bgp ASN in asplain format, as a string. Example: 1587232876 (4 byte ASN) or 12345 (2 byte ASN)

CustomerInterfaceIp string

This is the IPv4 Address used in the BGP peering session for the non-Oracle router. Example: 10.0.0.2/31

OracleBgpAsn string

This is the value of the Oracle Bgp ASN in asplain format, as a string. Example: 1587232876 (4 byte ASN) or 12345 (2 byte ASN)

OracleInterfaceIp string

This is the IPv4 Address used in the BGP peering session for the Oracle router. Example: 10.0.0.1/31

BgpIpv6state string
BgpState string

the state of the BGP.

CustomerBgpAsn string

This is the value of the remote Bgp ASN in asplain format, as a string. Example: 1587232876 (4 byte ASN) or 12345 (2 byte ASN)

CustomerInterfaceIp string

This is the IPv4 Address used in the BGP peering session for the non-Oracle router. Example: 10.0.0.2/31

OracleBgpAsn string

This is the value of the Oracle Bgp ASN in asplain format, as a string. Example: 1587232876 (4 byte ASN) or 12345 (2 byte ASN)

OracleInterfaceIp string

This is the IPv4 Address used in the BGP peering session for the Oracle router. Example: 10.0.0.1/31

bgpIpv6state String
bgpState String

the state of the BGP.

customerBgpAsn String

This is the value of the remote Bgp ASN in asplain format, as a string. Example: 1587232876 (4 byte ASN) or 12345 (2 byte ASN)

customerInterfaceIp String

This is the IPv4 Address used in the BGP peering session for the non-Oracle router. Example: 10.0.0.2/31

oracleBgpAsn String

This is the value of the Oracle Bgp ASN in asplain format, as a string. Example: 1587232876 (4 byte ASN) or 12345 (2 byte ASN)

oracleInterfaceIp String

This is the IPv4 Address used in the BGP peering session for the Oracle router. Example: 10.0.0.1/31

bgpIpv6state string
bgpState string

the state of the BGP.

customerBgpAsn string

This is the value of the remote Bgp ASN in asplain format, as a string. Example: 1587232876 (4 byte ASN) or 12345 (2 byte ASN)

customerInterfaceIp string

This is the IPv4 Address used in the BGP peering session for the non-Oracle router. Example: 10.0.0.2/31

oracleBgpAsn string

This is the value of the Oracle Bgp ASN in asplain format, as a string. Example: 1587232876 (4 byte ASN) or 12345 (2 byte ASN)

oracleInterfaceIp string

This is the IPv4 Address used in the BGP peering session for the Oracle router. Example: 10.0.0.1/31

bgp_ipv6state str
bgp_state str

the state of the BGP.

customer_bgp_asn str

This is the value of the remote Bgp ASN in asplain format, as a string. Example: 1587232876 (4 byte ASN) or 12345 (2 byte ASN)

customer_interface_ip str

This is the IPv4 Address used in the BGP peering session for the non-Oracle router. Example: 10.0.0.2/31

oracle_bgp_asn str

This is the value of the Oracle Bgp ASN in asplain format, as a string. Example: 1587232876 (4 byte ASN) or 12345 (2 byte ASN)

oracle_interface_ip str

This is the IPv4 Address used in the BGP peering session for the Oracle router. Example: 10.0.0.1/31

bgpIpv6state String
bgpState String

the state of the BGP.

customerBgpAsn String

This is the value of the remote Bgp ASN in asplain format, as a string. Example: 1587232876 (4 byte ASN) or 12345 (2 byte ASN)

customerInterfaceIp String

This is the IPv4 Address used in the BGP peering session for the non-Oracle router. Example: 10.0.0.2/31

oracleBgpAsn String

This is the value of the Oracle Bgp ASN in asplain format, as a string. Example: 1587232876 (4 byte ASN) or 12345 (2 byte ASN)

oracleInterfaceIp String

This is the IPv4 Address used in the BGP peering session for the Oracle router. Example: 10.0.0.1/31

GetIpsecConnectionTunnelEncryptionDomainConfig

CpeTrafficSelectors List<string>

Lists IPv4 or IPv6-enabled subnets in your on-premises network.

OracleTrafficSelectors List<string>

Lists IPv4 or IPv6-enabled subnets in your Oracle tenancy.

CpeTrafficSelectors []string

Lists IPv4 or IPv6-enabled subnets in your on-premises network.

OracleTrafficSelectors []string

Lists IPv4 or IPv6-enabled subnets in your Oracle tenancy.

cpeTrafficSelectors List<String>

Lists IPv4 or IPv6-enabled subnets in your on-premises network.

oracleTrafficSelectors List<String>

Lists IPv4 or IPv6-enabled subnets in your Oracle tenancy.

cpeTrafficSelectors string[]

Lists IPv4 or IPv6-enabled subnets in your on-premises network.

oracleTrafficSelectors string[]

Lists IPv4 or IPv6-enabled subnets in your Oracle tenancy.

cpe_traffic_selectors Sequence[str]

Lists IPv4 or IPv6-enabled subnets in your on-premises network.

oracle_traffic_selectors Sequence[str]

Lists IPv4 or IPv6-enabled subnets in your Oracle tenancy.

cpeTrafficSelectors List<String>

Lists IPv4 or IPv6-enabled subnets in your on-premises network.

oracleTrafficSelectors List<String>

Lists IPv4 or IPv6-enabled subnets in your Oracle tenancy.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.