1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getIpsecConnectionTunnelRoutes
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Core.getIpsecConnectionTunnelRoutes

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

This data source provides the list of Ipsec Connection Tunnel Routes in Oracle Cloud Infrastructure Core service.

The routes advertised to the on-premises network and the routes received from the on-premises network.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testIpsecConnectionTunnelRoutes = oci.Core.getIpsecConnectionTunnelRoutes({
    ipsecId: testIpsec.id,
    tunnelId: testTunnel.id,
    advertiser: ipsecConnectionTunnelRouteAdvertiser,
});
Copy
import pulumi
import pulumi_oci as oci

test_ipsec_connection_tunnel_routes = oci.Core.get_ipsec_connection_tunnel_routes(ipsec_id=test_ipsec["id"],
    tunnel_id=test_tunnel["id"],
    advertiser=ipsec_connection_tunnel_route_advertiser)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := core.GetIpsecConnectionTunnelRoutes(ctx, &core.GetIpsecConnectionTunnelRoutesArgs{
			IpsecId:    testIpsec.Id,
			TunnelId:   testTunnel.Id,
			Advertiser: pulumi.StringRef(ipsecConnectionTunnelRouteAdvertiser),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testIpsecConnectionTunnelRoutes = Oci.Core.GetIpsecConnectionTunnelRoutes.Invoke(new()
    {
        IpsecId = testIpsec.Id,
        TunnelId = testTunnel.Id,
        Advertiser = ipsecConnectionTunnelRouteAdvertiser,
    });

});
Copy
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.GetIpsecConnectionTunnelRoutesArgs;
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 testIpsecConnectionTunnelRoutes = CoreFunctions.getIpsecConnectionTunnelRoutes(GetIpsecConnectionTunnelRoutesArgs.builder()
            .ipsecId(testIpsec.id())
            .tunnelId(testTunnel.id())
            .advertiser(ipsecConnectionTunnelRouteAdvertiser)
            .build());

    }
}
Copy
variables:
  testIpsecConnectionTunnelRoutes:
    fn::invoke:
      function: oci:Core:getIpsecConnectionTunnelRoutes
      arguments:
        ipsecId: ${testIpsec.id}
        tunnelId: ${testTunnel.id}
        advertiser: ${ipsecConnectionTunnelRouteAdvertiser}
Copy

Using getIpsecConnectionTunnelRoutes

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 getIpsecConnectionTunnelRoutes(args: GetIpsecConnectionTunnelRoutesArgs, opts?: InvokeOptions): Promise<GetIpsecConnectionTunnelRoutesResult>
function getIpsecConnectionTunnelRoutesOutput(args: GetIpsecConnectionTunnelRoutesOutputArgs, opts?: InvokeOptions): Output<GetIpsecConnectionTunnelRoutesResult>
Copy
def get_ipsec_connection_tunnel_routes(advertiser: Optional[str] = None,
                                       filters: Optional[Sequence[_core.GetIpsecConnectionTunnelRoutesFilter]] = None,
                                       ipsec_id: Optional[str] = None,
                                       tunnel_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetIpsecConnectionTunnelRoutesResult
def get_ipsec_connection_tunnel_routes_output(advertiser: Optional[pulumi.Input[str]] = None,
                                       filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetIpsecConnectionTunnelRoutesFilterArgs]]]] = None,
                                       ipsec_id: Optional[pulumi.Input[str]] = None,
                                       tunnel_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetIpsecConnectionTunnelRoutesResult]
Copy
func GetIpsecConnectionTunnelRoutes(ctx *Context, args *GetIpsecConnectionTunnelRoutesArgs, opts ...InvokeOption) (*GetIpsecConnectionTunnelRoutesResult, error)
func GetIpsecConnectionTunnelRoutesOutput(ctx *Context, args *GetIpsecConnectionTunnelRoutesOutputArgs, opts ...InvokeOption) GetIpsecConnectionTunnelRoutesResultOutput
Copy

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

public static class GetIpsecConnectionTunnelRoutes 
{
    public static Task<GetIpsecConnectionTunnelRoutesResult> InvokeAsync(GetIpsecConnectionTunnelRoutesArgs args, InvokeOptions? opts = null)
    public static Output<GetIpsecConnectionTunnelRoutesResult> Invoke(GetIpsecConnectionTunnelRoutesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIpsecConnectionTunnelRoutesResult> getIpsecConnectionTunnelRoutes(GetIpsecConnectionTunnelRoutesArgs args, InvokeOptions options)
public static Output<GetIpsecConnectionTunnelRoutesResult> getIpsecConnectionTunnelRoutes(GetIpsecConnectionTunnelRoutesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Core/getIpsecConnectionTunnelRoutes:getIpsecConnectionTunnelRoutes
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

IpsecId This property is required. string
The OCID of the IPSec connection.
TunnelId This property is required. string
The OCID of the tunnel.
Advertiser string
Specifies the advertiser of the routes. If set to ORACLE, this returns only the routes advertised by Oracle. When set to CUSTOMER, this returns only the routes advertised by the CPE.
Filters Changes to this property will trigger replacement. List<GetIpsecConnectionTunnelRoutesFilter>
IpsecId This property is required. string
The OCID of the IPSec connection.
TunnelId This property is required. string
The OCID of the tunnel.
Advertiser string
Specifies the advertiser of the routes. If set to ORACLE, this returns only the routes advertised by Oracle. When set to CUSTOMER, this returns only the routes advertised by the CPE.
Filters Changes to this property will trigger replacement. []GetIpsecConnectionTunnelRoutesFilter
ipsecId This property is required. String
The OCID of the IPSec connection.
tunnelId This property is required. String
The OCID of the tunnel.
advertiser String
Specifies the advertiser of the routes. If set to ORACLE, this returns only the routes advertised by Oracle. When set to CUSTOMER, this returns only the routes advertised by the CPE.
filters Changes to this property will trigger replacement. List<GetIpsecConnectionTunnelRoutesFilter>
ipsecId This property is required. string
The OCID of the IPSec connection.
tunnelId This property is required. string
The OCID of the tunnel.
advertiser string
Specifies the advertiser of the routes. If set to ORACLE, this returns only the routes advertised by Oracle. When set to CUSTOMER, this returns only the routes advertised by the CPE.
filters Changes to this property will trigger replacement. GetIpsecConnectionTunnelRoutesFilter[]
ipsec_id This property is required. str
The OCID of the IPSec connection.
tunnel_id This property is required. str
The OCID of the tunnel.
advertiser str
Specifies the advertiser of the routes. If set to ORACLE, this returns only the routes advertised by Oracle. When set to CUSTOMER, this returns only the routes advertised by the CPE.
filters Changes to this property will trigger replacement. Sequence[core.GetIpsecConnectionTunnelRoutesFilter]
ipsecId This property is required. String
The OCID of the IPSec connection.
tunnelId This property is required. String
The OCID of the tunnel.
advertiser String
Specifies the advertiser of the routes. If set to ORACLE, this returns only the routes advertised by Oracle. When set to CUSTOMER, this returns only the routes advertised by the CPE.
filters Changes to this property will trigger replacement. List<Property Map>

getIpsecConnectionTunnelRoutes Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
IpsecId string
TunnelId string
TunnelRoutes List<GetIpsecConnectionTunnelRoutesTunnelRoute>
The list of tunnel_routes.
Advertiser string
The source of the route advertisement.
Filters List<GetIpsecConnectionTunnelRoutesFilter>
Id string
The provider-assigned unique ID for this managed resource.
IpsecId string
TunnelId string
TunnelRoutes []GetIpsecConnectionTunnelRoutesTunnelRoute
The list of tunnel_routes.
Advertiser string
The source of the route advertisement.
Filters []GetIpsecConnectionTunnelRoutesFilter
id String
The provider-assigned unique ID for this managed resource.
ipsecId String
tunnelId String
tunnelRoutes List<GetIpsecConnectionTunnelRoutesTunnelRoute>
The list of tunnel_routes.
advertiser String
The source of the route advertisement.
filters List<GetIpsecConnectionTunnelRoutesFilter>
id string
The provider-assigned unique ID for this managed resource.
ipsecId string
tunnelId string
tunnelRoutes GetIpsecConnectionTunnelRoutesTunnelRoute[]
The list of tunnel_routes.
advertiser string
The source of the route advertisement.
filters GetIpsecConnectionTunnelRoutesFilter[]
id str
The provider-assigned unique ID for this managed resource.
ipsec_id str
tunnel_id str
tunnel_routes Sequence[core.GetIpsecConnectionTunnelRoutesTunnelRoute]
The list of tunnel_routes.
advertiser str
The source of the route advertisement.
filters Sequence[core.GetIpsecConnectionTunnelRoutesFilter]
id String
The provider-assigned unique ID for this managed resource.
ipsecId String
tunnelId String
tunnelRoutes List<Property Map>
The list of tunnel_routes.
advertiser String
The source of the route advertisement.
filters List<Property Map>

Supporting Types

GetIpsecConnectionTunnelRoutesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetIpsecConnectionTunnelRoutesTunnelRoute

Advertiser This property is required. string
Specifies the advertiser of the routes. If set to ORACLE, this returns only the routes advertised by Oracle. When set to CUSTOMER, this returns only the routes advertised by the CPE.
Age This property is required. string
The age of the route.
AsPaths This property is required. List<int>
A list of ASNs in AS_Path.
IsBestPath This property is required. bool
Indicates this is the best route.
Prefix This property is required. string
The BGP network layer reachability information.
Advertiser This property is required. string
Specifies the advertiser of the routes. If set to ORACLE, this returns only the routes advertised by Oracle. When set to CUSTOMER, this returns only the routes advertised by the CPE.
Age This property is required. string
The age of the route.
AsPaths This property is required. []int
A list of ASNs in AS_Path.
IsBestPath This property is required. bool
Indicates this is the best route.
Prefix This property is required. string
The BGP network layer reachability information.
advertiser This property is required. String
Specifies the advertiser of the routes. If set to ORACLE, this returns only the routes advertised by Oracle. When set to CUSTOMER, this returns only the routes advertised by the CPE.
age This property is required. String
The age of the route.
asPaths This property is required. List<Integer>
A list of ASNs in AS_Path.
isBestPath This property is required. Boolean
Indicates this is the best route.
prefix This property is required. String
The BGP network layer reachability information.
advertiser This property is required. string
Specifies the advertiser of the routes. If set to ORACLE, this returns only the routes advertised by Oracle. When set to CUSTOMER, this returns only the routes advertised by the CPE.
age This property is required. string
The age of the route.
asPaths This property is required. number[]
A list of ASNs in AS_Path.
isBestPath This property is required. boolean
Indicates this is the best route.
prefix This property is required. string
The BGP network layer reachability information.
advertiser This property is required. str
Specifies the advertiser of the routes. If set to ORACLE, this returns only the routes advertised by Oracle. When set to CUSTOMER, this returns only the routes advertised by the CPE.
age This property is required. str
The age of the route.
as_paths This property is required. Sequence[int]
A list of ASNs in AS_Path.
is_best_path This property is required. bool
Indicates this is the best route.
prefix This property is required. str
The BGP network layer reachability information.
advertiser This property is required. String
Specifies the advertiser of the routes. If set to ORACLE, this returns only the routes advertised by Oracle. When set to CUSTOMER, this returns only the routes advertised by the CPE.
age This property is required. String
The age of the route.
asPaths This property is required. List<Number>
A list of ASNs in AS_Path.
isBestPath This property is required. Boolean
Indicates this is the best route.
prefix This property is required. String
The BGP network layer reachability information.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi