Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Core.getIpsecStatus
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testIpSecConnectionDeviceStatus = oci.Core.getIpsecStatus({
    ipsecId: testIpsec.id,
});
import pulumi
import pulumi_oci as oci
test_ip_sec_connection_device_status = oci.Core.get_ipsec_status(ipsec_id=test_ipsec["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.GetIpsecStatus(ctx, &core.GetIpsecStatusArgs{
			IpsecId: testIpsec.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 testIpSecConnectionDeviceStatus = Oci.Core.GetIpsecStatus.Invoke(new()
    {
        IpsecId = testIpsec.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.GetIpsecStatusArgs;
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 testIpSecConnectionDeviceStatus = CoreFunctions.getIpsecStatus(GetIpsecStatusArgs.builder()
            .ipsecId(testIpsec.id())
            .build());
    }
}
variables:
  testIpSecConnectionDeviceStatus:
    fn::invoke:
      Function: oci:Core:getIpsecStatus
      Arguments:
        ipsecId: ${testIpsec.id}
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 dictionaryThe following arguments are supported:
- Ipsec
Id string - The OCID of the IPSec connection.
 - Filters
List<Get
Ipsec Status Filter>  
- Ipsec
Id string - The OCID of the IPSec connection.
 - Filters
[]Get
Ipsec Status Filter  
- ipsec
Id String - The OCID of the IPSec connection.
 - filters
List<Get
Ipsec Status Filter>  
- ipsec
Id string - The OCID of the IPSec connection.
 - filters
Get
Ipsec Status Filter[]  
- ipsec_
id str - The OCID of the IPSec connection.
 - filters
Sequence[core.
Get Ipsec Status Filter]  
- ipsec
Id String - The OCID of the IPSec connection.
 - filters List<Property Map>
 
getIpsecStatus Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the IPSec connection.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ipsec
Id string - 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 - Tunnels
List<Get
Ipsec Status Tunnel>  - Two TunnelStatus objects.
 - Filters
List<Get
Ipsec Status Filter>  
- Compartment
Id string - The OCID of the compartment containing the IPSec connection.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ipsec
Id string - 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 - Tunnels
[]Get
Ipsec Status Tunnel  - Two TunnelStatus objects.
 - Filters
[]Get
Ipsec Status Filter  
- compartment
Id String - The OCID of the compartment containing the IPSec connection.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ipsec
Id String - 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 - tunnels
List<Get
Ipsec Status Tunnel>  - Two TunnelStatus objects.
 - filters
List<Get
Ipsec Status Filter>  
- compartment
Id string - The OCID of the compartment containing the IPSec connection.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - ipsec
Id string - 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 - tunnels
Get
Ipsec Status Tunnel[]  - Two TunnelStatus objects.
 - filters
Get
Ipsec Status Filter[]  
- 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
Sequence[core.
Get Ipsec Status Tunnel]  - Two TunnelStatus objects.
 - filters
Sequence[core.
Get Ipsec Status Filter]  
- compartment
Id String - The OCID of the compartment containing the IPSec connection.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ipsec
Id String - 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 - tunnels List<Property Map>
 - Two TunnelStatus objects.
 - filters List<Property Map>
 
Supporting Types
GetIpsecStatusFilter   
GetIpsecStatusTunnel   
- Ip
Address string - The IP address of Oracle's VPN headend. Example: 
203.0.113.50 - State string
 - The tunnel's current state.
 - 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 - Time
State stringModified  - When the state of the tunnel last changed, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z 
- Ip
Address string - The IP address of Oracle's VPN headend. Example: 
203.0.113.50 - State string
 - The tunnel's current state.
 - 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 - Time
State stringModified  - When the state of the tunnel last changed, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z 
- ip
Address String - The IP address of Oracle's VPN headend. Example: 
203.0.113.50 - state String
 - The tunnel's current state.
 - 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 - time
State StringModified  - When the state of the tunnel last changed, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z 
- ip
Address string - The IP address of Oracle's VPN headend. Example: 
203.0.113.50 - state string
 - The tunnel's current state.
 - 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 - time
State stringModified  - 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_ strmodified  - When the state of the tunnel last changed, in the format defined by RFC3339. Example: 
2016-08-25T21:10:29.600Z 
- ip
Address String - The IP address of Oracle's VPN headend. Example: 
203.0.113.50 - state String
 - The tunnel's current state.
 - 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 - time
State StringModified  - When the state of the tunnel last changed, 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 
ociTerraform Provider.