Oracle Cloud Infrastructure
getIpsecConnectionTunnelRoutes
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
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testIpsecConnectionTunnelRoutes = Output.Create(Oci.Core.GetIpsecConnectionTunnelRoutes.InvokeAsync(new Oci.Core.GetIpsecConnectionTunnelRoutesArgs
{
IpsecId = oci_core_ipsec.Test_ipsec.Id,
TunnelId = 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
})
}
Coming soon!
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"])
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,
});
Coming soon!
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
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 GetIpsec Connection Tunnel Routes Tunnel Route] The list of tunnel_routes.
- advertiser str
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<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
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.