oci.Core.getIpsecConnectionTunnelError
Explore with Pulumi AI
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 System.Linq;
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:
getIpsecConnectionTunnelError Result
The following output properties are available:
- Error
Code string Unique code describes the error type.
- Error
Description string A detailed description of the error.
- Id string
The provider-assigned unique ID for this managed resource.
- Ipsec
Id string - Oci
Resources stringLink Link to more Oracle resources or relevant documentation.
- Solution string
Resolution for the error.
- Timestamp string
Timestamp when the error occurred.
- Tunnel
Id string
- Error
Code string Unique code describes the error type.
- Error
Description string A detailed description of the error.
- Id string
The provider-assigned unique ID for this managed resource.
- Ipsec
Id string - Oci
Resources stringLink Link to more Oracle resources or relevant documentation.
- Solution string
Resolution for the error.
- Timestamp string
Timestamp when the error occurred.
- Tunnel
Id string
- error
Code String Unique code describes the error type.
- error
Description String A detailed description of the error.
- id String
The provider-assigned unique ID for this managed resource.
- ipsec
Id String - oci
Resources StringLink Link to more Oracle resources or relevant documentation.
- solution String
Resolution for the error.
- timestamp String
Timestamp when the error occurred.
- tunnel
Id String
- error
Code string Unique code describes the error type.
- error
Description string A detailed description of the error.
- id string
The provider-assigned unique ID for this managed resource.
- ipsec
Id string - oci
Resources stringLink Link to more Oracle resources or relevant documentation.
- solution string
Resolution for the error.
- timestamp string
Timestamp when the error occurred.
- tunnel
Id 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_ strlink Link to more Oracle resources or relevant documentation.
- solution str
Resolution for the error.
- timestamp str
Timestamp when the error occurred.
- tunnel_
id str
- error
Code String Unique code describes the error type.
- error
Description String A detailed description of the error.
- id String
The provider-assigned unique ID for this managed resource.
- ipsec
Id String - oci
Resources StringLink Link to more Oracle resources or relevant documentation.
- solution String
Resolution for the error.
- timestamp String
Timestamp when the error occurred.
- tunnel
Id String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.