1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getIpsecConfig
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.Core.getIpsecConfig

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

    This data source provides details about a specific Ip Sec Connection Device Config resource in Oracle Cloud Infrastructure Core service.

    Deprecated. To get tunnel information, instead use:

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testIpSecConnectionDeviceConfig = oci.Core.getIpsecConfig({
        ipsecId: oci_core_ipsec.test_ipsec.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_ip_sec_connection_device_config = oci.Core.get_ipsec_config(ipsec_id=oci_core_ipsec["test_ipsec"]["id"])
    
    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.GetIpsecConfig(ctx, &core.GetIpsecConfigArgs{
    			IpsecId: oci_core_ipsec.Test_ipsec.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 testIpSecConnectionDeviceConfig = Oci.Core.GetIpsecConfig.Invoke(new()
        {
            IpsecId = oci_core_ipsec.Test_ipsec.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.GetIpsecConfigArgs;
    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 testIpSecConnectionDeviceConfig = CoreFunctions.getIpsecConfig(GetIpsecConfigArgs.builder()
                .ipsecId(oci_core_ipsec.test_ipsec().id())
                .build());
    
        }
    }
    
    variables:
      testIpSecConnectionDeviceConfig:
        fn::invoke:
          Function: oci:Core:getIpsecConfig
          Arguments:
            ipsecId: ${oci_core_ipsec.test_ipsec.id}
    

    Using getIpsecConfig

    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 getIpsecConfig(args: GetIpsecConfigArgs, opts?: InvokeOptions): Promise<GetIpsecConfigResult>
    function getIpsecConfigOutput(args: GetIpsecConfigOutputArgs, opts?: InvokeOptions): Output<GetIpsecConfigResult>
    def get_ipsec_config(filters: Optional[Sequence[_core.GetIpsecConfigFilter]] = None,
                         ipsec_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetIpsecConfigResult
    def get_ipsec_config_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetIpsecConfigFilterArgs]]]] = None,
                         ipsec_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetIpsecConfigResult]
    func GetIpsecConfig(ctx *Context, args *GetIpsecConfigArgs, opts ...InvokeOption) (*GetIpsecConfigResult, error)
    func GetIpsecConfigOutput(ctx *Context, args *GetIpsecConfigOutputArgs, opts ...InvokeOption) GetIpsecConfigResultOutput

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

    public static class GetIpsecConfig 
    {
        public static Task<GetIpsecConfigResult> InvokeAsync(GetIpsecConfigArgs args, InvokeOptions? opts = null)
        public static Output<GetIpsecConfigResult> Invoke(GetIpsecConfigInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIpsecConfigResult> getIpsecConfig(GetIpsecConfigArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getIpsecConfig:getIpsecConfig
      arguments:
        # arguments dictionary

    The following arguments are supported:

    IpsecId string
    The OCID of the IPSec connection.
    Filters List<GetIpsecConfigFilter>
    IpsecId string
    The OCID of the IPSec connection.
    Filters []GetIpsecConfigFilter
    ipsecId String
    The OCID of the IPSec connection.
    filters List<GetIpsecConfigFilter>
    ipsecId string
    The OCID of the IPSec connection.
    filters GetIpsecConfigFilter[]
    ipsec_id str
    The OCID of the IPSec connection.
    filters GetIpsecConfigFilter]
    ipsecId String
    The OCID of the IPSec connection.
    filters List<Property Map>

    getIpsecConfig Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment containing the IPSec connection.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpsecId string
    TimeCreated string
    The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    Tunnels List<GetIpsecConfigTunnel>
    Two TunnelConfig objects.
    Filters List<GetIpsecConfigFilter>
    CompartmentId string
    The OCID of the compartment containing the IPSec connection.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpsecId string
    TimeCreated string
    The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    Tunnels []GetIpsecConfigTunnel
    Two TunnelConfig objects.
    Filters []GetIpsecConfigFilter
    compartmentId String
    The OCID of the compartment containing the IPSec connection.
    id String
    The provider-assigned unique ID for this managed resource.
    ipsecId String
    timeCreated String
    The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    tunnels List<GetIpsecConfigTunnel>
    Two TunnelConfig objects.
    filters List<GetIpsecConfigFilter>
    compartmentId string
    The OCID of the compartment containing the IPSec connection.
    id string
    The provider-assigned unique ID for this managed resource.
    ipsecId string
    timeCreated string
    The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    tunnels GetIpsecConfigTunnel[]
    Two TunnelConfig objects.
    filters GetIpsecConfigFilter[]
    compartment_id str
    The OCID of the compartment containing the IPSec connection.
    id str
    The provider-assigned unique ID for this managed resource.
    ipsec_id str
    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
    tunnels GetIpsecConfigTunnel]
    Two TunnelConfig objects.
    filters GetIpsecConfigFilter]
    compartmentId String
    The OCID of the compartment containing the IPSec connection.
    id String
    The provider-assigned unique ID for this managed resource.
    ipsecId String
    timeCreated String
    The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    tunnels List<Property Map>
    Two TunnelConfig objects.
    filters List<Property Map>

    Supporting Types

    GetIpsecConfigFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetIpsecConfigTunnel

    IpAddress string
    The IP address of Oracle's VPN headend. Example: 203.0.113.50
    SharedSecret string
    The shared secret of the IPSec tunnel.
    TimeCreated string
    The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    IpAddress string
    The IP address of Oracle's VPN headend. Example: 203.0.113.50
    SharedSecret string
    The shared secret of the IPSec tunnel.
    TimeCreated string
    The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    ipAddress String
    The IP address of Oracle's VPN headend. Example: 203.0.113.50
    sharedSecret String
    The shared secret of the IPSec tunnel.
    timeCreated String
    The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    ipAddress string
    The IP address of Oracle's VPN headend. Example: 203.0.113.50
    sharedSecret string
    The shared secret of the IPSec tunnel.
    timeCreated string
    The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    ip_address str
    The IP address of Oracle's VPN headend. Example: 203.0.113.50
    shared_secret str
    The shared secret of the IPSec tunnel.
    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
    ipAddress String
    The IP address of Oracle's VPN headend. Example: 203.0.113.50
    sharedSecret String
    The shared secret of the IPSec tunnel.
    timeCreated String
    The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi