Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 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[_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]
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 dictionary
The following arguments are supported:
- Compartment
Id This property is required. string - The OCID of the compartment.
- Cpe
Id string - The OCID of the CPE.
- Drg
Id string - The OCID of the DRG.
- Filters
Changes to this property will trigger replacement.
Ipsec Connections Filter>
- Compartment
Id This property is required. string - The OCID of the compartment.
- Cpe
Id string - The OCID of the CPE.
- Drg
Id string - The OCID of the DRG.
- Filters
Changes to this property will trigger replacement.
Ipsec Connections Filter
- compartment
Id This property is required. String - The OCID of the compartment.
- cpe
Id String - The OCID of the CPE.
- drg
Id String - The OCID of the DRG.
- filters
Changes to this property will trigger replacement.
Ipsec Connections Filter>
- compartment
Id This property is required. string - The OCID of the compartment.
- cpe
Id string - The OCID of the CPE.
- drg
Id string - The OCID of the DRG.
- filters
Changes to this property will trigger replacement.
Ipsec Connections Filter[]
- 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.
Get Ipsec Connections Filter]
- compartment
Id This property is required. String - The OCID of the compartment.
- cpe
Id String - The OCID of the CPE.
- drg
Id String - The OCID of the DRG.
- filters
Changes to this property will trigger replacement.
getIpsecConnections Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the IPSec connection.
- Connections
List<Get
Ipsec Connections Connection> - The list of connections.
- Id string
- The provider-assigned unique ID for this managed resource.
- Cpe
Id string - The OCID of the Cpe object.
- Drg
Id string - The OCID of the DRG.
- Filters
List<Get
Ipsec Connections Filter>
- Compartment
Id string - The OCID of the compartment containing the IPSec connection.
- Connections
[]Get
Ipsec Connections Connection - The list of connections.
- Id string
- The provider-assigned unique ID for this managed resource.
- Cpe
Id string - The OCID of the Cpe object.
- Drg
Id string - The OCID of the DRG.
- Filters
[]Get
Ipsec Connections Filter
- compartment
Id String - The OCID of the compartment containing the IPSec connection.
- connections
List<Get
Ipsec Connections Connection> - The list of connections.
- id String
- The provider-assigned unique ID for this managed resource.
- cpe
Id String - The OCID of the Cpe object.
- drg
Id String - The OCID of the DRG.
- filters
List<Get
Ipsec Connections Filter>
- compartment
Id string - The OCID of the compartment containing the IPSec connection.
- connections
Get
Ipsec Connections Connection[] - The list of connections.
- id string
- The provider-assigned unique ID for this managed resource.
- cpe
Id string - The OCID of the Cpe object.
- drg
Id string - The OCID of the DRG.
- filters
Get
Ipsec Connections Filter[]
- compartment_
id str - The OCID of the compartment containing the IPSec connection.
- connections
Sequence[core.
Get Ipsec 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[core.
Get Ipsec Connections Filter]
- compartment
Id 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.
- cpe
Id String - The OCID of the Cpe object.
- drg
Id String - The OCID of the DRG.
- filters List<Property Map>
Supporting Types
GetIpsecConnectionsConnection
- Compartment
Id This property is required. string - The OCID of the compartment.
- Cpe
Id This property is required. string - The OCID of the CPE.
- Cpe
Local Identifier 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
. - Cpe
Local Identifier Type This property is required. string - The type of identifier for your CPE device. The value here must correspond to the value for
cpeLocalIdentifier
. 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"}
- Display
Name This property is required. string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Drg
Id This property is required. string - The OCID of the DRG.
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.
- Static
Routes This property is required. List<string> - Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- Time
Created 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
- Transport
Type This property is required. string - The transport type used for the IPSec connection.
- Tunnel
Configurations This property is required. List<GetIpsec Connections Connection Tunnel Configuration>
- Compartment
Id This property is required. string - The OCID of the compartment.
- Cpe
Id This property is required. string - The OCID of the CPE.
- Cpe
Local Identifier 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
. - Cpe
Local Identifier Type This property is required. string - The type of identifier for your CPE device. The value here must correspond to the value for
cpeLocalIdentifier
. 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"}
- Display
Name This property is required. string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Drg
Id This property is required. string - The OCID of the DRG.
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.
- Static
Routes This property is required. []string - Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- Time
Created 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
- Transport
Type This property is required. string - The transport type used for the IPSec connection.
- Tunnel
Configurations This property is required. []GetIpsec Connections Connection Tunnel Configuration
- compartment
Id This property is required. String - The OCID of the compartment.
- cpe
Id This property is required. String - The OCID of the CPE.
- cpe
Local Identifier 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
. - cpe
Local Identifier Type This property is required. String - The type of identifier for your CPE device. The value here must correspond to the value for
cpeLocalIdentifier
. 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"}
- display
Name This property is required. String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Id This property is required. String - The OCID of the DRG.
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.
- static
Routes This property is required. List<String> - Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- time
Created 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
- transport
Type This property is required. String - The transport type used for the IPSec connection.
- tunnel
Configurations This property is required. List<GetIpsec Connections Connection Tunnel Configuration>
- compartment
Id This property is required. string - The OCID of the compartment.
- cpe
Id This property is required. string - The OCID of the CPE.
- cpe
Local Identifier 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
. - cpe
Local Identifier Type This property is required. string - The type of identifier for your CPE device. The value here must correspond to the value for
cpeLocalIdentifier
. 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"}
- display
Name This property is required. string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Id This property is required. string - The OCID of the DRG.
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.
- static
Routes This property is required. string[] - Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- time
Created 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
- transport
Type This property is required. string - The transport type used for the IPSec connection.
- tunnel
Configurations This property is required. GetIpsec Connections Connection Tunnel Configuration[]
- 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
. 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.
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.Get Ipsec Connections Connection Tunnel Configuration]
- compartment
Id This property is required. String - The OCID of the compartment.
- cpe
Id This property is required. String - The OCID of the CPE.
- cpe
Local Identifier 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
. - cpe
Local Identifier Type This property is required. String - The type of identifier for your CPE device. The value here must correspond to the value for
cpeLocalIdentifier
. 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"}
- display
Name This property is required. String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Id This property is required. String - The OCID of the DRG.
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.
- static
Routes This property is required. List<String> - Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- time
Created 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
- transport
Type This property is required. String - The transport type used for the IPSec connection.
- tunnel
Configurations This property is required. List<Property Map>
GetIpsecConnectionsConnectionTunnelConfiguration
- Associated
Virtual Circuits This property is required. List<string> - Drg
Route Table Id This property is required. string - Oracle
Tunnel Ip This property is required. string
- Associated
Virtual Circuits This property is required. []string - Drg
Route Table Id This property is required. string - Oracle
Tunnel Ip This property is required. string
- associated
Virtual Circuits This property is required. List<String> - drg
Route Table Id This property is required. String - oracle
Tunnel Ip This property is required. String
- associated
Virtual Circuits This property is required. string[] - drg
Route Table Id This property is required. string - oracle
Tunnel Ip 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
- associated
Virtual Circuits This property is required. List<String> - drg
Route Table Id This property is required. String - oracle
Tunnel Ip This property is required. String
GetIpsecConnectionsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.