Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getIpsecConnectionTunnelError

This data source provides details about a specific Ipsec Connection Tunnel Error resource in Oracle Cloud Infrastructure Core service.

Gets the identified error for the specified IPSec tunnel ID.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testIpsecConnectionTunnelError = Oci.Core.GetIpsecConnectionTunnelError.Invoke(new()
    {
        IpsecId = oci_core_ipsec.Test_ipsec.Id,
        TunnelId = oci_core_tunnel.Test_tunnel.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.GetIpsecConnectionTunnelError(ctx, &core.GetIpsecConnectionTunnelErrorArgs{
			IpsecId:  oci_core_ipsec.Test_ipsec.Id,
			TunnelId: oci_core_tunnel.Test_tunnel.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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.GetIpsecConnectionTunnelErrorArgs;
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 testIpsecConnectionTunnelError = CoreFunctions.getIpsecConnectionTunnelError(GetIpsecConnectionTunnelErrorArgs.builder()
            .ipsecId(oci_core_ipsec.test_ipsec().id())
            .tunnelId(oci_core_tunnel.test_tunnel().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_ipsec_connection_tunnel_error = oci.Core.get_ipsec_connection_tunnel_error(ipsec_id=oci_core_ipsec["test_ipsec"]["id"],
    tunnel_id=oci_core_tunnel["test_tunnel"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testIpsecConnectionTunnelError = oci.Core.getIpsecConnectionTunnelError({
    ipsecId: oci_core_ipsec.test_ipsec.id,
    tunnelId: oci_core_tunnel.test_tunnel.id,
});
variables:
  testIpsecConnectionTunnelError:
    Fn::Invoke:
      Function: oci:Core:getIpsecConnectionTunnelError
      Arguments:
        ipsecId: ${oci_core_ipsec.test_ipsec.id}
        tunnelId: ${oci_core_tunnel.test_tunnel.id}

Using getIpsecConnectionTunnelError

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 getIpsecConnectionTunnelError(args: GetIpsecConnectionTunnelErrorArgs, opts?: InvokeOptions): Promise<GetIpsecConnectionTunnelErrorResult>
function getIpsecConnectionTunnelErrorOutput(args: GetIpsecConnectionTunnelErrorOutputArgs, opts?: InvokeOptions): Output<GetIpsecConnectionTunnelErrorResult>
def get_ipsec_connection_tunnel_error(ipsec_id: Optional[str] = None,
                                      tunnel_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetIpsecConnectionTunnelErrorResult
def get_ipsec_connection_tunnel_error_output(ipsec_id: Optional[pulumi.Input[str]] = None,
                                      tunnel_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetIpsecConnectionTunnelErrorResult]
func GetIpsecConnectionTunnelError(ctx *Context, args *GetIpsecConnectionTunnelErrorArgs, opts ...InvokeOption) (*GetIpsecConnectionTunnelErrorResult, error)
func GetIpsecConnectionTunnelErrorOutput(ctx *Context, args *GetIpsecConnectionTunnelErrorOutputArgs, opts ...InvokeOption) GetIpsecConnectionTunnelErrorResultOutput

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

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

The following arguments are supported:

IpsecId string

The OCID of the IPSec connection.

TunnelId string

The OCID of the tunnel.

IpsecId string

The OCID of the IPSec connection.

TunnelId string

The OCID of the tunnel.

ipsecId String

The OCID of the IPSec connection.

tunnelId String

The OCID of the tunnel.

ipsecId string

The OCID of the IPSec connection.

tunnelId string

The OCID of the tunnel.

ipsec_id str

The OCID of the IPSec connection.

tunnel_id str

The OCID of the tunnel.

ipsecId String

The OCID of the IPSec connection.

tunnelId String

The OCID of the tunnel.

getIpsecConnectionTunnelError Result

The following output properties are available:

ErrorCode string

Unique code describes the error type.

ErrorDescription string

A detailed description of the error.

Id string

The provider-assigned unique ID for this managed resource.

IpsecId string
OciResourcesLink string

Link to more Oracle resources or relevant documentation.

Solution string

Resolution for the error.

Timestamp string

Timestamp when the error occurred.

TunnelId string
ErrorCode string

Unique code describes the error type.

ErrorDescription string

A detailed description of the error.

Id string

The provider-assigned unique ID for this managed resource.

IpsecId string
OciResourcesLink string

Link to more Oracle resources or relevant documentation.

Solution string

Resolution for the error.

Timestamp string

Timestamp when the error occurred.

TunnelId string
errorCode String

Unique code describes the error type.

errorDescription String

A detailed description of the error.

id String

The provider-assigned unique ID for this managed resource.

ipsecId String
ociResourcesLink String

Link to more Oracle resources or relevant documentation.

solution String

Resolution for the error.

timestamp String

Timestamp when the error occurred.

tunnelId String
errorCode string

Unique code describes the error type.

errorDescription string

A detailed description of the error.

id string

The provider-assigned unique ID for this managed resource.

ipsecId string
ociResourcesLink string

Link to more Oracle resources or relevant documentation.

solution string

Resolution for the error.

timestamp string

Timestamp when the error occurred.

tunnelId string
error_code str

Unique code describes the error type.

error_description str

A detailed description of the error.

id str

The provider-assigned unique ID for this managed resource.

ipsec_id str
oci_resources_link str

Link to more Oracle resources or relevant documentation.

solution str

Resolution for the error.

timestamp str

Timestamp when the error occurred.

tunnel_id str
errorCode String

Unique code describes the error type.

errorDescription String

A detailed description of the error.

id String

The provider-assigned unique ID for this managed resource.

ipsecId String
ociResourcesLink String

Link to more Oracle resources or relevant documentation.

solution String

Resolution for the error.

timestamp String

Timestamp when the error occurred.

tunnelId String

Package Details

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

This Pulumi package is based on the oci Terraform Provider.