Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Core.getIpsecConnections
Explore with Pulumi AI
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,
});
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"])
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testIpSecConnections:
    fn::invoke:
      function: oci:Core:getIpsecConnections
      arguments:
        compartmentId: ${compartmentId}
        cpeId: ${testCpe.id}
        drgId: ${testDrg.id}
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>def get_ipsec_connections(compartment_id: Optional[str] = None,
                          cpe_id: Optional[str] = None,
                          drg_id: Optional[str] = None,
                          filters: Optional[Sequence[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[GetIpsecConnectionsFilterArgs]]]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetIpsecConnectionsResult]func GetIpsecConnections(ctx *Context, args *GetIpsecConnectionsArgs, opts ...InvokeOption) (*GetIpsecConnectionsResult, error)
func GetIpsecConnectionsOutput(ctx *Context, args *GetIpsecConnectionsOutputArgs, opts ...InvokeOption) GetIpsecConnectionsResultOutput> 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)
}public static CompletableFuture<GetIpsecConnectionsResult> getIpsecConnections(GetIpsecConnectionsArgs args, InvokeOptions options)
public static Output<GetIpsecConnectionsResult> getIpsecConnections(GetIpsecConnectionsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getIpsecConnections:getIpsecConnections
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment.
- CpeId string
- The OCID of the CPE.
- DrgId string
- The OCID of the DRG.
- Filters
List<GetIpsec Connections Filter> 
- CompartmentId string
- The OCID of the compartment.
- CpeId string
- The OCID of the CPE.
- DrgId string
- The OCID of the DRG.
- Filters
[]GetIpsec Connections Filter 
- compartmentId String
- The OCID of the compartment.
- cpeId String
- The OCID of the CPE.
- drgId String
- The OCID of the DRG.
- filters
List<GetIpsec Connections Filter> 
- compartmentId string
- The OCID of the compartment.
- cpeId string
- The OCID of the CPE.
- drgId string
- The OCID of the DRG.
- filters
GetIpsec Connections Filter[] 
- compartment_id str
- The OCID of the compartment.
- cpe_id str
- The OCID of the CPE.
- drg_id str
- The OCID of the DRG.
- filters
Sequence[GetIpsec Connections Filter] 
- compartmentId String
- The OCID of the compartment.
- cpeId String
- The OCID of the CPE.
- drgId String
- The OCID of the DRG.
- filters List<Property Map>
getIpsecConnections Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment containing the IPSec connection.
- Connections
List<GetIpsec Connections Connection> 
- 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<GetIpsec Connections Filter> 
- CompartmentId string
- The OCID of the compartment containing the IPSec connection.
- Connections
[]GetIpsec Connections Connection 
- 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
[]GetIpsec Connections Filter 
- compartmentId String
- The OCID of the compartment containing the IPSec connection.
- connections
List<GetIpsec Connections Connection> 
- 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<GetIpsec Connections Filter> 
- compartmentId string
- The OCID of the compartment containing the IPSec connection.
- connections
GetIpsec Connections Connection[] 
- 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
GetIpsec Connections Filter[] 
- compartment_id str
- The OCID of the compartment containing the IPSec connection.
- connections
Sequence[GetIpsec Connections Connection] 
- 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[GetIpsec Connections Filter] 
- 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 string
- The OCID of the compartment.
- CpeId string
- The OCID of the CPE.
- CpeLocal stringIdentifier 
- 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.
- CpeLocal stringIdentifier Type 
- The type of identifier for your CPE device. The value here must correspond to the value for cpeLocalIdentifier.
- 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 string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- DrgId string
- The OCID of the DRG.
- 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 string
- The IPSec connection's Oracle ID (OCID).
- State string
- The IPSec connection's current state.
- StaticRoutes List<string>
- Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- TimeCreated string
- The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- TransportType string
- The transport type used for the IPSec connection.
- TunnelConfigurations List<GetIpsec Connections Connection Tunnel Configuration> 
- CompartmentId string
- The OCID of the compartment.
- CpeId string
- The OCID of the CPE.
- CpeLocal stringIdentifier 
- 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.
- CpeLocal stringIdentifier Type 
- The type of identifier for your CPE device. The value here must correspond to the value for cpeLocalIdentifier.
- 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 string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- DrgId string
- The OCID of the DRG.
- 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 string
- The IPSec connection's Oracle ID (OCID).
- State string
- The IPSec connection's current state.
- StaticRoutes []string
- Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- TimeCreated string
- The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- TransportType string
- The transport type used for the IPSec connection.
- TunnelConfigurations []GetIpsec Connections Connection Tunnel Configuration 
- compartmentId String
- The OCID of the compartment.
- cpeId String
- The OCID of the CPE.
- cpeLocal StringIdentifier 
- 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.
- cpeLocal StringIdentifier Type 
- The type of identifier for your CPE device. The value here must correspond to the value for cpeLocalIdentifier.
- 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 String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drgId String
- The OCID of the DRG.
- 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 String
- The IPSec connection's Oracle ID (OCID).
- state String
- The IPSec connection's current state.
- staticRoutes List<String>
- Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- timeCreated String
- The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- transportType String
- The transport type used for the IPSec connection.
- tunnelConfigurations List<GetIpsec Connections Connection Tunnel Configuration> 
- compartmentId string
- The OCID of the compartment.
- cpeId string
- The OCID of the CPE.
- cpeLocal stringIdentifier 
- 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.
- cpeLocal stringIdentifier Type 
- The type of identifier for your CPE device. The value here must correspond to the value for cpeLocalIdentifier.
- {[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 string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drgId string
- The OCID of the DRG.
- {[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 string
- The IPSec connection's Oracle ID (OCID).
- state string
- The IPSec connection's current state.
- staticRoutes string[]
- Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- timeCreated string
- The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- transportType string
- The transport type used for the IPSec connection.
- tunnelConfigurations GetIpsec Connections Connection Tunnel Configuration[] 
- compartment_id str
- The OCID of the compartment.
- cpe_id str
- The OCID of the CPE.
- cpe_local_ stridentifier 
- 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_ stridentifier_ type 
- The type of identifier for your CPE device. The value here must correspond to the value for cpeLocalIdentifier.
- 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 str
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg_id str
- The OCID of the DRG.
- 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 str
- The IPSec connection's Oracle ID (OCID).
- state str
- The IPSec connection's current state.
- static_routes Sequence[str]
- Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- time_created 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 str
- The transport type used for the IPSec connection.
- tunnel_configurations Sequence[GetIpsec Connections Connection Tunnel Configuration] 
- compartmentId String
- The OCID of the compartment.
- cpeId String
- The OCID of the CPE.
- cpeLocal StringIdentifier 
- 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.
- cpeLocal StringIdentifier Type 
- The type of identifier for your CPE device. The value here must correspond to the value for cpeLocalIdentifier.
- 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 String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drgId String
- The OCID of the DRG.
- 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 String
- The IPSec connection's Oracle ID (OCID).
- state String
- The IPSec connection's current state.
- staticRoutes List<String>
- Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- timeCreated String
- The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- transportType String
- The transport type used for the IPSec connection.
- tunnelConfigurations List<Property Map>
GetIpsecConnectionsConnectionTunnelConfiguration     
- AssociatedVirtual List<string>Circuits 
- DrgRoute stringTable Id 
- OracleTunnel stringIp 
- AssociatedVirtual []stringCircuits 
- DrgRoute stringTable Id 
- OracleTunnel stringIp 
- associatedVirtual List<String>Circuits 
- drgRoute StringTable Id 
- oracleTunnel StringIp 
- associatedVirtual string[]Circuits 
- drgRoute stringTable Id 
- oracleTunnel stringIp 
- associated_virtual_ Sequence[str]circuits 
- drg_route_ strtable_ id 
- oracle_tunnel_ strip 
- associatedVirtual List<String>Circuits 
- drgRoute StringTable Id 
- oracleTunnel StringIp 
GetIpsecConnectionsFilter   
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.