1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getTunnelSecurityAssociations
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.Core.getTunnelSecurityAssociations

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

This data source provides the list of Tunnel Security Associations in Oracle Cloud Infrastructure Core service.

Lists the tunnel security associations information for the specified IPSec tunnel ID.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testTunnelSecurityAssociations = oci.Core.getTunnelSecurityAssociations({
    ipsecId: testIpsec.id,
    tunnelId: testTunnel.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_tunnel_security_associations = oci.Core.get_tunnel_security_associations(ipsec_id=test_ipsec["id"],
    tunnel_id=test_tunnel["id"])
Copy
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.GetTunnelSecurityAssociations(ctx, &core.GetTunnelSecurityAssociationsArgs{
			IpsecId:  testIpsec.Id,
			TunnelId: testTunnel.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testTunnelSecurityAssociations = Oci.Core.GetTunnelSecurityAssociations.Invoke(new()
    {
        IpsecId = testIpsec.Id,
        TunnelId = testTunnel.Id,
    });

});
Copy
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.GetTunnelSecurityAssociationsArgs;
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 testTunnelSecurityAssociations = CoreFunctions.getTunnelSecurityAssociations(GetTunnelSecurityAssociationsArgs.builder()
            .ipsecId(testIpsec.id())
            .tunnelId(testTunnel.id())
            .build());

    }
}
Copy
variables:
  testTunnelSecurityAssociations:
    fn::invoke:
      function: oci:Core:getTunnelSecurityAssociations
      arguments:
        ipsecId: ${testIpsec.id}
        tunnelId: ${testTunnel.id}
Copy

Using getTunnelSecurityAssociations

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 getTunnelSecurityAssociations(args: GetTunnelSecurityAssociationsArgs, opts?: InvokeOptions): Promise<GetTunnelSecurityAssociationsResult>
function getTunnelSecurityAssociationsOutput(args: GetTunnelSecurityAssociationsOutputArgs, opts?: InvokeOptions): Output<GetTunnelSecurityAssociationsResult>
Copy
def get_tunnel_security_associations(filters: Optional[Sequence[_core.GetTunnelSecurityAssociationsFilter]] = None,
                                     ipsec_id: Optional[str] = None,
                                     tunnel_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetTunnelSecurityAssociationsResult
def get_tunnel_security_associations_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetTunnelSecurityAssociationsFilterArgs]]]] = None,
                                     ipsec_id: Optional[pulumi.Input[str]] = None,
                                     tunnel_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetTunnelSecurityAssociationsResult]
Copy
func GetTunnelSecurityAssociations(ctx *Context, args *GetTunnelSecurityAssociationsArgs, opts ...InvokeOption) (*GetTunnelSecurityAssociationsResult, error)
func GetTunnelSecurityAssociationsOutput(ctx *Context, args *GetTunnelSecurityAssociationsOutputArgs, opts ...InvokeOption) GetTunnelSecurityAssociationsResultOutput
Copy

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

public static class GetTunnelSecurityAssociations 
{
    public static Task<GetTunnelSecurityAssociationsResult> InvokeAsync(GetTunnelSecurityAssociationsArgs args, InvokeOptions? opts = null)
    public static Output<GetTunnelSecurityAssociationsResult> Invoke(GetTunnelSecurityAssociationsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTunnelSecurityAssociationsResult> getTunnelSecurityAssociations(GetTunnelSecurityAssociationsArgs args, InvokeOptions options)
public static Output<GetTunnelSecurityAssociationsResult> getTunnelSecurityAssociations(GetTunnelSecurityAssociationsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Core/getTunnelSecurityAssociations:getTunnelSecurityAssociations
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

IpsecId This property is required. string
The OCID of the IPSec connection.
TunnelId This property is required. string
The OCID of the tunnel.
Filters Changes to this property will trigger replacement. List<GetTunnelSecurityAssociationsFilter>
IpsecId This property is required. string
The OCID of the IPSec connection.
TunnelId This property is required. string
The OCID of the tunnel.
Filters Changes to this property will trigger replacement. []GetTunnelSecurityAssociationsFilter
ipsecId This property is required. String
The OCID of the IPSec connection.
tunnelId This property is required. String
The OCID of the tunnel.
filters Changes to this property will trigger replacement. List<GetTunnelSecurityAssociationsFilter>
ipsecId This property is required. string
The OCID of the IPSec connection.
tunnelId This property is required. string
The OCID of the tunnel.
filters Changes to this property will trigger replacement. GetTunnelSecurityAssociationsFilter[]
ipsec_id This property is required. str
The OCID of the IPSec connection.
tunnel_id This property is required. str
The OCID of the tunnel.
filters Changes to this property will trigger replacement. Sequence[core.GetTunnelSecurityAssociationsFilter]
ipsecId This property is required. String
The OCID of the IPSec connection.
tunnelId This property is required. String
The OCID of the tunnel.
filters Changes to this property will trigger replacement. List<Property Map>

getTunnelSecurityAssociations Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
IpsecId string
TunnelId string
TunnelSecurityAssociations List<GetTunnelSecurityAssociationsTunnelSecurityAssociation>
The list of tunnel_security_associations.
Filters List<GetTunnelSecurityAssociationsFilter>
Id string
The provider-assigned unique ID for this managed resource.
IpsecId string
TunnelId string
TunnelSecurityAssociations []GetTunnelSecurityAssociationsTunnelSecurityAssociation
The list of tunnel_security_associations.
Filters []GetTunnelSecurityAssociationsFilter
id String
The provider-assigned unique ID for this managed resource.
ipsecId String
tunnelId String
tunnelSecurityAssociations List<GetTunnelSecurityAssociationsTunnelSecurityAssociation>
The list of tunnel_security_associations.
filters List<GetTunnelSecurityAssociationsFilter>
id string
The provider-assigned unique ID for this managed resource.
ipsecId string
tunnelId string
tunnelSecurityAssociations GetTunnelSecurityAssociationsTunnelSecurityAssociation[]
The list of tunnel_security_associations.
filters GetTunnelSecurityAssociationsFilter[]
id String
The provider-assigned unique ID for this managed resource.
ipsecId String
tunnelId String
tunnelSecurityAssociations List<Property Map>
The list of tunnel_security_associations.
filters List<Property Map>

Supporting Types

GetTunnelSecurityAssociationsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetTunnelSecurityAssociationsTunnelSecurityAssociation

CpeSubnet This property is required. string
The IP address and mask of the partner subnet used in policy based VPNs or static routes.
OracleSubnet This property is required. string
The IP address and mask of the local subnet used in policy based VPNs or static routes.
Time This property is required. string
Time in the current state, in seconds.
TunnelSaErrorInfo This property is required. string
Current state if the IPSec tunnel status is not UP, including phase one and phase two details and a possible reason the tunnel is not UP.
TunnelSaStatus This property is required. string
The IPSec tunnel's phase one status.
CpeSubnet This property is required. string
The IP address and mask of the partner subnet used in policy based VPNs or static routes.
OracleSubnet This property is required. string
The IP address and mask of the local subnet used in policy based VPNs or static routes.
Time This property is required. string
Time in the current state, in seconds.
TunnelSaErrorInfo This property is required. string
Current state if the IPSec tunnel status is not UP, including phase one and phase two details and a possible reason the tunnel is not UP.
TunnelSaStatus This property is required. string
The IPSec tunnel's phase one status.
cpeSubnet This property is required. String
The IP address and mask of the partner subnet used in policy based VPNs or static routes.
oracleSubnet This property is required. String
The IP address and mask of the local subnet used in policy based VPNs or static routes.
time This property is required. String
Time in the current state, in seconds.
tunnelSaErrorInfo This property is required. String
Current state if the IPSec tunnel status is not UP, including phase one and phase two details and a possible reason the tunnel is not UP.
tunnelSaStatus This property is required. String
The IPSec tunnel's phase one status.
cpeSubnet This property is required. string
The IP address and mask of the partner subnet used in policy based VPNs or static routes.
oracleSubnet This property is required. string
The IP address and mask of the local subnet used in policy based VPNs or static routes.
time This property is required. string
Time in the current state, in seconds.
tunnelSaErrorInfo This property is required. string
Current state if the IPSec tunnel status is not UP, including phase one and phase two details and a possible reason the tunnel is not UP.
tunnelSaStatus This property is required. string
The IPSec tunnel's phase one status.
cpe_subnet This property is required. str
The IP address and mask of the partner subnet used in policy based VPNs or static routes.
oracle_subnet This property is required. str
The IP address and mask of the local subnet used in policy based VPNs or static routes.
time This property is required. str
Time in the current state, in seconds.
tunnel_sa_error_info This property is required. str
Current state if the IPSec tunnel status is not UP, including phase one and phase two details and a possible reason the tunnel is not UP.
tunnel_sa_status This property is required. str
The IPSec tunnel's phase one status.
cpeSubnet This property is required. String
The IP address and mask of the partner subnet used in policy based VPNs or static routes.
oracleSubnet This property is required. String
The IP address and mask of the local subnet used in policy based VPNs or static routes.
time This property is required. String
Time in the current state, in seconds.
tunnelSaErrorInfo This property is required. String
Current state if the IPSec tunnel status is not UP, including phase one and phase two details and a possible reason the tunnel is not UP.
tunnelSaStatus This property is required. String
The IPSec tunnel's phase one status.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi