1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getIpsecConnections
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.Core.getIpsecConnections

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

This data source provides the list of Ip Sec Connections in Oracle Cloud Infrastructure Core service.

Lists the IPSec connections for the specified compartment. You can filter the results by DRG or CPE.

Example Usage

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

const testIpSecConnections = oci.Core.getIpsecConnections({
    compartmentId: compartmentId,
    cpeId: testCpe.id,
    drgId: testDrg.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_ip_sec_connections = oci.Core.get_ipsec_connections(compartment_id=compartment_id,
    cpe_id=test_cpe["id"],
    drg_id=test_drg["id"])
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.GetIpsecConnections(ctx, &core.GetIpsecConnectionsArgs{
			CompartmentId: compartmentId,
			CpeId:         pulumi.StringRef(testCpe.Id),
			DrgId:         pulumi.StringRef(testDrg.Id),
		}, 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 testIpSecConnections = Oci.Core.GetIpsecConnections.Invoke(new()
    {
        CompartmentId = compartmentId,
        CpeId = testCpe.Id,
        DrgId = testDrg.Id,
    });

});
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.GetIpsecConnectionsArgs;
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 testIpSecConnections = CoreFunctions.getIpsecConnections(GetIpsecConnectionsArgs.builder()
            .compartmentId(compartmentId)
            .cpeId(testCpe.id())
            .drgId(testDrg.id())
            .build());

    }
}
Copy
variables:
  testIpSecConnections:
    fn::invoke:
      function: oci:Core:getIpsecConnections
      arguments:
        compartmentId: ${compartmentId}
        cpeId: ${testCpe.id}
        drgId: ${testDrg.id}
Copy

Using getIpsecConnections

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 getIpsecConnections(args: GetIpsecConnectionsArgs, opts?: InvokeOptions): Promise<GetIpsecConnectionsResult>
function getIpsecConnectionsOutput(args: GetIpsecConnectionsOutputArgs, opts?: InvokeOptions): Output<GetIpsecConnectionsResult>
Copy
def get_ipsec_connections(compartment_id: Optional[str] = None,
                          cpe_id: Optional[str] = None,
                          drg_id: Optional[str] = None,
                          filters: Optional[Sequence[_core.GetIpsecConnectionsFilter]] = None,
                          opts: Optional[InvokeOptions] = None) -> GetIpsecConnectionsResult
def get_ipsec_connections_output(compartment_id: Optional[pulumi.Input[str]] = None,
                          cpe_id: Optional[pulumi.Input[str]] = None,
                          drg_id: Optional[pulumi.Input[str]] = None,
                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetIpsecConnectionsFilterArgs]]]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetIpsecConnectionsResult]
Copy
func GetIpsecConnections(ctx *Context, args *GetIpsecConnectionsArgs, opts ...InvokeOption) (*GetIpsecConnectionsResult, error)
func GetIpsecConnectionsOutput(ctx *Context, args *GetIpsecConnectionsOutputArgs, opts ...InvokeOption) GetIpsecConnectionsResultOutput
Copy

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

public static class GetIpsecConnections 
{
    public static Task<GetIpsecConnectionsResult> InvokeAsync(GetIpsecConnectionsArgs args, InvokeOptions? opts = null)
    public static Output<GetIpsecConnectionsResult> Invoke(GetIpsecConnectionsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIpsecConnectionsResult> getIpsecConnections(GetIpsecConnectionsArgs args, InvokeOptions options)
public static Output<GetIpsecConnectionsResult> getIpsecConnections(GetIpsecConnectionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Core/getIpsecConnections:getIpsecConnections
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment.
CpeId string
The OCID of the CPE.
DrgId string
The OCID of the DRG.
Filters Changes to this property will trigger replacement. List<GetIpsecConnectionsFilter>
CompartmentId This property is required. string
The OCID of the compartment.
CpeId string
The OCID of the CPE.
DrgId string
The OCID of the DRG.
Filters Changes to this property will trigger replacement. []GetIpsecConnectionsFilter
compartmentId This property is required. String
The OCID of the compartment.
cpeId String
The OCID of the CPE.
drgId String
The OCID of the DRG.
filters Changes to this property will trigger replacement. List<GetIpsecConnectionsFilter>
compartmentId This property is required. string
The OCID of the compartment.
cpeId string
The OCID of the CPE.
drgId string
The OCID of the DRG.
filters Changes to this property will trigger replacement. GetIpsecConnectionsFilter[]
compartment_id This property is required. str
The OCID of the compartment.
cpe_id str
The OCID of the CPE.
drg_id str
The OCID of the DRG.
filters Changes to this property will trigger replacement. Sequence[core.GetIpsecConnectionsFilter]
compartmentId This property is required. String
The OCID of the compartment.
cpeId String
The OCID of the CPE.
drgId String
The OCID of the DRG.
filters Changes to this property will trigger replacement. List<Property Map>

getIpsecConnections Result

The following output properties are available:

CompartmentId string
The OCID of the compartment containing the IPSec connection.
Connections List<GetIpsecConnectionsConnection>
The list of connections.
Id string
The provider-assigned unique ID for this managed resource.
CpeId string
The OCID of the Cpe object.
DrgId string
The OCID of the DRG.
Filters List<GetIpsecConnectionsFilter>
CompartmentId string
The OCID of the compartment containing the IPSec connection.
Connections []GetIpsecConnectionsConnection
The list of connections.
Id string
The provider-assigned unique ID for this managed resource.
CpeId string
The OCID of the Cpe object.
DrgId string
The OCID of the DRG.
Filters []GetIpsecConnectionsFilter
compartmentId String
The OCID of the compartment containing the IPSec connection.
connections List<GetIpsecConnectionsConnection>
The list of connections.
id String
The provider-assigned unique ID for this managed resource.
cpeId String
The OCID of the Cpe object.
drgId String
The OCID of the DRG.
filters List<GetIpsecConnectionsFilter>
compartmentId string
The OCID of the compartment containing the IPSec connection.
connections GetIpsecConnectionsConnection[]
The list of connections.
id string
The provider-assigned unique ID for this managed resource.
cpeId string
The OCID of the Cpe object.
drgId string
The OCID of the DRG.
filters GetIpsecConnectionsFilter[]
compartment_id str
The OCID of the compartment containing the IPSec connection.
connections Sequence[core.GetIpsecConnectionsConnection]
The list of connections.
id str
The provider-assigned unique ID for this managed resource.
cpe_id str
The OCID of the Cpe object.
drg_id str
The OCID of the DRG.
filters Sequence[core.GetIpsecConnectionsFilter]
compartmentId String
The OCID of the compartment containing the IPSec connection.
connections List<Property Map>
The list of connections.
id String
The provider-assigned unique ID for this managed resource.
cpeId String
The OCID of the Cpe object.
drgId String
The OCID of the DRG.
filters List<Property Map>

Supporting Types

GetIpsecConnectionsConnection

CompartmentId This property is required. string
The OCID of the compartment.
CpeId This property is required. string
The OCID of the CPE.
CpeLocalIdentifier This property is required. string
Your identifier for your CPE device. Can be either an IP address or a hostname (specifically, the fully qualified domain name (FQDN)). The type of identifier here must correspond to the value for cpeLocalIdentifierType.
CpeLocalIdentifierType This property is required. string
The type of identifier for your CPE device. The value here must correspond to the value for cpeLocalIdentifier.
DefinedTags This property is required. Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
DisplayName This property is required. string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DrgId This property is required. string
The OCID of the DRG.
FreeformTags This property is required. Dictionary<string, string>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
Id This property is required. string
The IPSec connection's Oracle ID (OCID).
State This property is required. string
The IPSec connection's current state.
StaticRoutes This property is required. List<string>
Static routes to the CPE. The CIDR must not be a multicast address or class E address.
TimeCreated This property is required. string
The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
TransportType This property is required. string
The transport type used for the IPSec connection.
TunnelConfigurations This property is required. List<GetIpsecConnectionsConnectionTunnelConfiguration>
CompartmentId This property is required. string
The OCID of the compartment.
CpeId This property is required. string
The OCID of the CPE.
CpeLocalIdentifier This property is required. string
Your identifier for your CPE device. Can be either an IP address or a hostname (specifically, the fully qualified domain name (FQDN)). The type of identifier here must correspond to the value for cpeLocalIdentifierType.
CpeLocalIdentifierType This property is required. string
The type of identifier for your CPE device. The value here must correspond to the value for cpeLocalIdentifier.
DefinedTags This property is required. map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
DisplayName This property is required. string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DrgId This property is required. string
The OCID of the DRG.
FreeformTags This property is required. map[string]string
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
Id This property is required. string
The IPSec connection's Oracle ID (OCID).
State This property is required. string
The IPSec connection's current state.
StaticRoutes This property is required. []string
Static routes to the CPE. The CIDR must not be a multicast address or class E address.
TimeCreated This property is required. string
The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
TransportType This property is required. string
The transport type used for the IPSec connection.
TunnelConfigurations This property is required. []GetIpsecConnectionsConnectionTunnelConfiguration
compartmentId This property is required. String
The OCID of the compartment.
cpeId This property is required. String
The OCID of the CPE.
cpeLocalIdentifier This property is required. String
Your identifier for your CPE device. Can be either an IP address or a hostname (specifically, the fully qualified domain name (FQDN)). The type of identifier here must correspond to the value for cpeLocalIdentifierType.
cpeLocalIdentifierType This property is required. String
The type of identifier for your CPE device. The value here must correspond to the value for cpeLocalIdentifier.
definedTags This property is required. Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
displayName This property is required. String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
drgId This property is required. String
The OCID of the DRG.
freeformTags This property is required. Map<String,String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id This property is required. String
The IPSec connection's Oracle ID (OCID).
state This property is required. String
The IPSec connection's current state.
staticRoutes This property is required. List<String>
Static routes to the CPE. The CIDR must not be a multicast address or class E address.
timeCreated This property is required. String
The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
transportType This property is required. String
The transport type used for the IPSec connection.
tunnelConfigurations This property is required. List<GetIpsecConnectionsConnectionTunnelConfiguration>
compartmentId This property is required. string
The OCID of the compartment.
cpeId This property is required. string
The OCID of the CPE.
cpeLocalIdentifier This property is required. string
Your identifier for your CPE device. Can be either an IP address or a hostname (specifically, the fully qualified domain name (FQDN)). The type of identifier here must correspond to the value for cpeLocalIdentifierType.
cpeLocalIdentifierType This property is required. string
The type of identifier for your CPE device. The value here must correspond to the value for cpeLocalIdentifier.
definedTags This property is required. {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
displayName This property is required. string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
drgId This property is required. string
The OCID of the DRG.
freeformTags This property is required. {[key: string]: string}
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id This property is required. string
The IPSec connection's Oracle ID (OCID).
state This property is required. string
The IPSec connection's current state.
staticRoutes This property is required. string[]
Static routes to the CPE. The CIDR must not be a multicast address or class E address.
timeCreated This property is required. string
The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
transportType This property is required. string
The transport type used for the IPSec connection.
tunnelConfigurations This property is required. GetIpsecConnectionsConnectionTunnelConfiguration[]
compartment_id This property is required. str
The OCID of the compartment.
cpe_id This property is required. str
The OCID of the CPE.
cpe_local_identifier This property is required. str
Your identifier for your CPE device. Can be either an IP address or a hostname (specifically, the fully qualified domain name (FQDN)). The type of identifier here must correspond to the value for cpeLocalIdentifierType.
cpe_local_identifier_type This property is required. str
The type of identifier for your CPE device. The value here must correspond to the value for cpeLocalIdentifier.
defined_tags This property is required. Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
display_name This property is required. str
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
drg_id This property is required. str
The OCID of the DRG.
freeform_tags This property is required. Mapping[str, str]
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id This property is required. str
The IPSec connection's Oracle ID (OCID).
state This property is required. str
The IPSec connection's current state.
static_routes This property is required. Sequence[str]
Static routes to the CPE. The CIDR must not be a multicast address or class E address.
time_created This property is required. str
The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
transport_type This property is required. str
The transport type used for the IPSec connection.
tunnel_configurations This property is required. Sequence[core.GetIpsecConnectionsConnectionTunnelConfiguration]
compartmentId This property is required. String
The OCID of the compartment.
cpeId This property is required. String
The OCID of the CPE.
cpeLocalIdentifier This property is required. String
Your identifier for your CPE device. Can be either an IP address or a hostname (specifically, the fully qualified domain name (FQDN)). The type of identifier here must correspond to the value for cpeLocalIdentifierType.
cpeLocalIdentifierType This property is required. String
The type of identifier for your CPE device. The value here must correspond to the value for cpeLocalIdentifier.
definedTags This property is required. Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
displayName This property is required. String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
drgId This property is required. String
The OCID of the DRG.
freeformTags This property is required. Map<String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id This property is required. String
The IPSec connection's Oracle ID (OCID).
state This property is required. String
The IPSec connection's current state.
staticRoutes This property is required. List<String>
Static routes to the CPE. The CIDR must not be a multicast address or class E address.
timeCreated This property is required. String
The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
transportType This property is required. String
The transport type used for the IPSec connection.
tunnelConfigurations This property is required. List<Property Map>

GetIpsecConnectionsConnectionTunnelConfiguration

AssociatedVirtualCircuits This property is required. List<string>
DrgRouteTableId This property is required. string
OracleTunnelIp This property is required. string
AssociatedVirtualCircuits This property is required. []string
DrgRouteTableId This property is required. string
OracleTunnelIp This property is required. string
associatedVirtualCircuits This property is required. List<String>
drgRouteTableId This property is required. String
oracleTunnelIp This property is required. String
associatedVirtualCircuits This property is required. string[]
drgRouteTableId This property is required. string
oracleTunnelIp This property is required. string
associated_virtual_circuits This property is required. Sequence[str]
drg_route_table_id This property is required. str
oracle_tunnel_ip This property is required. str
associatedVirtualCircuits This property is required. List<String>
drgRouteTableId This property is required. String
oracleTunnelIp This property is required. String

GetIpsecConnectionsFilter

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

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.30.0 published on Monday, Apr 14, 2025 by Pulumi