Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Core.getIpsecConnectionTunnelRoutes
Explore with Pulumi AI
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,
});
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)
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
})
}
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,
});
});
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());
}
}
variables:
testIpsecConnectionTunnelRoutes:
fn::invoke:
Function: oci:Core:getIpsecConnectionTunnelRoutes
Arguments:
ipsecId: ${testIpsec.id}
tunnelId: ${testTunnel.id}
advertiser: ${ipsecConnectionTunnelRouteAdvertiser}
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:
- Ipsec
Id string - The OCID of the IPSec connection.
- Tunnel
Id 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 toCUSTOMER
, this returns only the routes advertised by the CPE. - Filters
List<Get
Ipsec Connection Tunnel Routes Filter>
- Ipsec
Id string - The OCID of the IPSec connection.
- Tunnel
Id 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 toCUSTOMER
, this returns only the routes advertised by the CPE. - Filters
[]Get
Ipsec Connection Tunnel Routes Filter
- ipsec
Id String - The OCID of the IPSec connection.
- tunnel
Id 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 toCUSTOMER
, this returns only the routes advertised by the CPE. - filters
List<Get
Ipsec Connection Tunnel Routes Filter>
- ipsec
Id string - The OCID of the IPSec connection.
- tunnel
Id 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 toCUSTOMER
, this returns only the routes advertised by the CPE. - filters
Get
Ipsec Connection Tunnel Routes Filter[]
- 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 toCUSTOMER
, this returns only the routes advertised by the CPE. - filters
Sequence[core.
Get Ipsec Connection Tunnel Routes Filter]
- ipsec
Id String - The OCID of the IPSec connection.
- tunnel
Id 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 toCUSTOMER
, 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.
- Ipsec
Id string - Tunnel
Id string - Tunnel
Routes List<GetIpsec Connection Tunnel Routes Tunnel Route> - The list of tunnel_routes.
- Advertiser string
- The source of the route advertisement.
- Filters
List<Get
Ipsec Connection Tunnel Routes Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipsec
Id string - Tunnel
Id string - Tunnel
Routes []GetIpsec Connection Tunnel Routes Tunnel Route - The list of tunnel_routes.
- Advertiser string
- The source of the route advertisement.
- Filters
[]Get
Ipsec Connection Tunnel Routes Filter
- id String
- The provider-assigned unique ID for this managed resource.
- ipsec
Id String - tunnel
Id String - tunnel
Routes List<GetIpsec Connection Tunnel Routes Tunnel Route> - The list of tunnel_routes.
- advertiser String
- The source of the route advertisement.
- filters
List<Get
Ipsec Connection Tunnel Routes Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- ipsec
Id string - tunnel
Id string - tunnel
Routes GetIpsec Connection Tunnel Routes Tunnel Route[] - The list of tunnel_routes.
- advertiser string
- The source of the route advertisement.
- filters
Get
Ipsec Connection Tunnel Routes Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- ipsec_
id str - tunnel_
id str - tunnel_
routes Sequence[core.Get Ipsec Connection Tunnel Routes Tunnel Route] - The list of tunnel_routes.
- advertiser str
- The source of the route advertisement.
- filters
Sequence[core.
Get Ipsec Connection Tunnel Routes Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- ipsec
Id String - tunnel
Id String - tunnel
Routes List<Property Map> - The list of tunnel_routes.
- advertiser String
- The source of the route advertisement.
- filters List<Property Map>
Supporting Types
GetIpsecConnectionTunnelRoutesFilter
GetIpsecConnectionTunnelRoutesTunnelRoute
- Advertiser string
- Specifies the advertiser of the routes. If set to
ORACLE
, this returns only the routes advertised by Oracle. When set toCUSTOMER
, this returns only the routes advertised by the CPE. - Age string
- The age of the route.
- As
Paths List<int> - A list of ASNs in AS_Path.
- Is
Best boolPath - 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 toCUSTOMER
, this returns only the routes advertised by the CPE. - Age string
- The age of the route.
- As
Paths []int - A list of ASNs in AS_Path.
- Is
Best boolPath - 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 toCUSTOMER
, this returns only the routes advertised by the CPE. - age String
- The age of the route.
- as
Paths List<Integer> - A list of ASNs in AS_Path.
- is
Best BooleanPath - 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 toCUSTOMER
, this returns only the routes advertised by the CPE. - age string
- The age of the route.
- as
Paths number[] - A list of ASNs in AS_Path.
- is
Best booleanPath - 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 toCUSTOMER
, 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_ boolpath - 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 toCUSTOMER
, this returns only the routes advertised by the CPE. - age String
- The age of the route.
- as
Paths List<Number> - A list of ASNs in AS_Path.
- is
Best BooleanPath - 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.