Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getIpsecConnections:getIpsecConnections
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Cpe
Id string - The OCID of the CPE.
- Drg
Id string - The OCID of the DRG.
- Filters
List<Get
Ipsec Connections Filter>
- Compartment
Id string - The OCID of the compartment.
- Cpe
Id string - The OCID of the CPE.
- Drg
Id string - The OCID of the DRG.
- Filters
[]Get
Ipsec Connections Filter
- compartment
Id String - The OCID of the compartment.
- cpe
Id String - The OCID of the CPE.
- drg
Id String - The OCID of the DRG.
- filters
List<Get
Ipsec Connections Filter>
- compartment
Id string - The OCID of the compartment.
- cpe
Id string - The OCID of the CPE.
- drg
Id string - The OCID of the DRG.
- filters
Get
Ipsec 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[core.
Get Ipsec Connections Filter]
- compartment
Id String - The OCID of the compartment.
- cpe
Id String - The OCID of the CPE.
- drg
Id String - The OCID of the DRG.
- filters List<Property Map>
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 string - The OCID of the compartment.
- Cpe
Id string - The OCID of the CPE.
- Cpe
Local 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
. - Cpe
Local 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"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Drg
Id 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.
- Static
Routes List<string> - Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- Time
Created 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 string - The transport type used for the IPSec connection.
- Tunnel
Configurations List<GetIpsec Connections Connection Tunnel Configuration>
- Compartment
Id string - The OCID of the compartment.
- Cpe
Id string - The OCID of the CPE.
- Cpe
Local 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
. - Cpe
Local 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"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Drg
Id 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.
- Static
Routes []string - Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- Time
Created 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 string - The transport type used for the IPSec connection.
- Tunnel
Configurations []GetIpsec Connections Connection Tunnel Configuration
- compartment
Id String - The OCID of the compartment.
- cpe
Id String - The OCID of the CPE.
- cpe
Local 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
. - cpe
Local 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"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Id 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.
- static
Routes List<String> - Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- time
Created 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 String - The transport type used for the IPSec connection.
- tunnel
Configurations List<GetIpsec Connections Connection Tunnel Configuration>
- compartment
Id string - The OCID of the compartment.
- cpe
Id string - The OCID of the CPE.
- cpe
Local 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
. - cpe
Local 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"}
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Id 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.
- static
Routes string[] - Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- time
Created 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 string - The transport type used for the IPSec connection.
- tunnel
Configurations 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[core.Get Ipsec Connections Connection Tunnel Configuration]
- compartment
Id String - The OCID of the compartment.
- cpe
Id String - The OCID of the CPE.
- cpe
Local 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
. - cpe
Local 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"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Id 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.
- static
Routes List<String> - Static routes to the CPE. The CIDR must not be a multicast address or class E address.
- time
Created 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 String - The transport type used for the IPSec connection.
- tunnel
Configurations List<Property Map>
GetIpsecConnectionsConnectionTunnelConfiguration
- Associated
Virtual List<string>Circuits - Drg
Route stringTable Id - Oracle
Tunnel stringIp
- Associated
Virtual []stringCircuits - Drg
Route stringTable Id - Oracle
Tunnel stringIp
- associated
Virtual List<String>Circuits - drg
Route StringTable Id - oracle
Tunnel StringIp
- associated
Virtual string[]Circuits - drg
Route stringTable Id - oracle
Tunnel stringIp
- associated_
virtual_ Sequence[str]circuits - drg_
route_ strtable_ id - oracle_
tunnel_ strip
- associated
Virtual List<String>Circuits - drg
Route StringTable Id - oracle
Tunnel StringIp
GetIpsecConnectionsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.