1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getIpsecConnectionTunnelRoutes
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Core.getIpsecConnectionTunnelRoutes

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 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: oci_core_ipsec.test_ipsec.id,
        tunnelId: oci_core_tunnel.test_tunnel.id,
        advertiser: _var.ipsec_connection_tunnel_route_advertiser,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_ipsec_connection_tunnel_routes = oci.Core.get_ipsec_connection_tunnel_routes(ipsec_id=oci_core_ipsec["test_ipsec"]["id"],
        tunnel_id=oci_core_tunnel["test_tunnel"]["id"],
        advertiser=var["ipsec_connection_tunnel_route_advertiser"])
    
    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.GetIpsecConnectionTunnelRoutes(ctx, &core.GetIpsecConnectionTunnelRoutesArgs{
    			IpsecId:    oci_core_ipsec.Test_ipsec.Id,
    			TunnelId:   oci_core_tunnel.Test_tunnel.Id,
    			Advertiser: pulumi.StringRef(_var.Ipsec_connection_tunnel_route_advertiser),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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 = oci_core_ipsec.Test_ipsec.Id,
            TunnelId = oci_core_tunnel.Test_tunnel.Id,
            Advertiser = @var.Ipsec_connection_tunnel_route_advertiser,
        });
    
    });
    
    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(oci_core_ipsec.test_ipsec().id())
                .tunnelId(oci_core_tunnel.test_tunnel().id())
                .advertiser(var_.ipsec_connection_tunnel_route_advertiser())
                .build());
    
        }
    }
    
    variables:
      testIpsecConnectionTunnelRoutes:
        fn::invoke:
          Function: oci:Core:getIpsecConnectionTunnelRoutes
          Arguments:
            ipsecId: ${oci_core_ipsec.test_ipsec.id}
            tunnelId: ${oci_core_tunnel.test_tunnel.id}
            advertiser: ${var.ipsec_connection_tunnel_route_advertiser}
    

    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>
    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]
    func GetIpsecConnectionTunnelRoutes(ctx *Context, args *GetIpsecConnectionTunnelRoutesArgs, opts ...InvokeOption) (*GetIpsecConnectionTunnelRoutesResult, error)
    func GetIpsecConnectionTunnelRoutesOutput(ctx *Context, args *GetIpsecConnectionTunnelRoutesOutputArgs, opts ...InvokeOption) GetIpsecConnectionTunnelRoutesResultOutput

    > 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)
    }
    public static CompletableFuture<GetIpsecConnectionTunnelRoutesResult> getIpsecConnectionTunnelRoutes(GetIpsecConnectionTunnelRoutesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getIpsecConnectionTunnelRoutes:getIpsecConnectionTunnelRoutes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    IpsecId string
    The OCID of the IPSec connection.
    TunnelId 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 List<GetIpsecConnectionTunnelRoutesFilter>
    IpsecId string
    The OCID of the IPSec connection.
    TunnelId 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 []GetIpsecConnectionTunnelRoutesFilter
    ipsecId String
    The OCID of the IPSec connection.
    tunnelId 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 List<GetIpsecConnectionTunnelRoutesFilter>
    ipsecId string
    The OCID of the IPSec connection.
    tunnelId 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 GetIpsecConnectionTunnelRoutesFilter[]
    ipsec_id str
    The OCID of the IPSec connection.
    tunnel_id 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 Sequence[core.GetIpsecConnectionTunnelRoutesFilter]
    ipsecId String
    The OCID of the IPSec connection.
    tunnelId 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 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 string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetIpsecConnectionTunnelRoutesTunnelRoute

    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.
    Age string
    The age of the route.
    AsPaths List<int>
    A list of ASNs in AS_Path.
    IsBestPath bool
    Indicates this is the best route.
    Prefix string
    The BGP network layer reachability information.
    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.
    Age string
    The age of the route.
    AsPaths []int
    A list of ASNs in AS_Path.
    IsBestPath bool
    Indicates this is the best route.
    Prefix string
    The BGP network layer reachability information.
    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.
    age String
    The age of the route.
    asPaths List<Integer>
    A list of ASNs in AS_Path.
    isBestPath Boolean
    Indicates this is the best route.
    prefix String
    The BGP network layer reachability information.
    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.
    age string
    The age of the route.
    asPaths number[]
    A list of ASNs in AS_Path.
    isBestPath boolean
    Indicates this is the best route.
    prefix string
    The BGP network layer reachability information.
    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.
    age str
    The age of the route.
    as_paths Sequence[int]
    A list of ASNs in AS_Path.
    is_best_path bool
    Indicates this is the best route.
    prefix str
    The BGP network layer reachability information.
    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.
    age String
    The age of the route.
    asPaths List<Number>
    A list of ASNs in AS_Path.
    isBestPath Boolean
    Indicates this is the best route.
    prefix 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.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi