Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getIpsecStatus

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

Deprecated. To get the tunnel status, instead use GetIPSecConnectionTunnel.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testIpSecConnectionDeviceStatus = Output.Create(Oci.Core.GetIpsecStatus.InvokeAsync(new Oci.Core.GetIpsecStatusArgs
        {
            IpsecId = 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.GetIpsecStatus(ctx, &core.GetIpsecStatusArgs{
			IpsecId: oci_core_ipsec.Test_ipsec.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_ip_sec_connection_device_status = oci.Core.get_ipsec_status(ipsec_id=oci_core_ipsec["test_ipsec"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testIpSecConnectionDeviceStatus = oci.Core.getIpsecStatus({
    ipsecId: oci_core_ipsec.test_ipsec.id,
});

Coming soon!

Using getIpsecStatus

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 getIpsecStatus(args: GetIpsecStatusArgs, opts?: InvokeOptions): Promise<GetIpsecStatusResult>
function getIpsecStatusOutput(args: GetIpsecStatusOutputArgs, opts?: InvokeOptions): Output<GetIpsecStatusResult>
def get_ipsec_status(filters: Optional[Sequence[_core.GetIpsecStatusFilter]] = None,
                     ipsec_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetIpsecStatusResult
def get_ipsec_status_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetIpsecStatusFilterArgs]]]] = None,
                     ipsec_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetIpsecStatusResult]
func GetIpsecStatus(ctx *Context, args *GetIpsecStatusArgs, opts ...InvokeOption) (*GetIpsecStatusResult, error)
func GetIpsecStatusOutput(ctx *Context, args *GetIpsecStatusOutputArgs, opts ...InvokeOption) GetIpsecStatusResultOutput

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

public static class GetIpsecStatus 
{
    public static Task<GetIpsecStatusResult> InvokeAsync(GetIpsecStatusArgs args, InvokeOptions? opts = null)
    public static Output<GetIpsecStatusResult> Invoke(GetIpsecStatusInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIpsecStatusResult> getIpsecStatus(GetIpsecStatusArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Core/getIpsecStatus:getIpsecStatus
  Arguments:
    # Arguments dictionary

The following arguments are supported:

IpsecId string

The OCID of the IPSec connection.

Filters List<GetIpsecStatusFilter>
IpsecId string

The OCID of the IPSec connection.

Filters []GetIpsecStatusFilter
ipsecId String

The OCID of the IPSec connection.

filters List<GetIpsecStatusFilter>
ipsecId string

The OCID of the IPSec connection.

filters GetIpsecStatusFilter[]
ipsec_id str

The OCID of the IPSec connection.

filters GetIpsecStatusFilter]
ipsecId String

The OCID of the IPSec connection.

filters List<Property Map>

getIpsecStatus 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<GetIpsecStatusTunnel>

Two TunnelStatus objects.

Filters List<GetIpsecStatusFilter>
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 []GetIpsecStatusTunnel

Two TunnelStatus objects.

Filters []GetIpsecStatusFilter
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<GetIpsecStatusTunnel>

Two TunnelStatus objects.

filters List<GetIpsecStatusFilter>
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 GetIpsecStatusTunnel[]

Two TunnelStatus objects.

filters GetIpsecStatusFilter[]
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 GetIpsecStatusTunnel]

Two TunnelStatus objects.

filters GetIpsecStatusFilter]
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 TunnelStatus objects.

filters List<Property Map>

Supporting Types

GetIpsecStatusFilter

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

GetIpsecStatusTunnel

IpAddress string

The IP address of Oracle's VPN headend. Example: 203.0.113.50

State string

The tunnel's current state.

TimeCreated string

The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

TimeStateModified string

When the state of the tunnel last changed, 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

State string

The tunnel's current state.

TimeCreated string

The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

TimeStateModified string

When the state of the tunnel last changed, 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

state String

The tunnel's current state.

timeCreated String

The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

timeStateModified String

When the state of the tunnel last changed, 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

state string

The tunnel's current state.

timeCreated string

The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

timeStateModified string

When the state of the tunnel last changed, 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

state str

The tunnel's current state.

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

time_state_modified str

When the state of the tunnel last changed, 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

state String

The tunnel's current state.

timeCreated String

The date and time the IPSec connection was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

timeStateModified String

When the state of the tunnel last changed, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.