Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Core.getTunnelSecurityAssociations
Explore with Pulumi AI
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,
});
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"])
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testTunnelSecurityAssociations:
    fn::invoke:
      function: oci:Core:getTunnelSecurityAssociations
      arguments:
        ipsecId: ${testIpsec.id}
        tunnelId: ${testTunnel.id}
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>def get_tunnel_security_associations(filters: Optional[Sequence[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[GetTunnelSecurityAssociationsFilterArgs]]]] = None,
                                     ipsec_id: Optional[pulumi.Input[str]] = None,
                                     tunnel_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetTunnelSecurityAssociationsResult]func GetTunnelSecurityAssociations(ctx *Context, args *GetTunnelSecurityAssociationsArgs, opts ...InvokeOption) (*GetTunnelSecurityAssociationsResult, error)
func GetTunnelSecurityAssociationsOutput(ctx *Context, args *GetTunnelSecurityAssociationsOutputArgs, opts ...InvokeOption) GetTunnelSecurityAssociationsResultOutput> 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)
}public static CompletableFuture<GetTunnelSecurityAssociationsResult> getTunnelSecurityAssociations(GetTunnelSecurityAssociationsArgs args, InvokeOptions options)
public static Output<GetTunnelSecurityAssociationsResult> getTunnelSecurityAssociations(GetTunnelSecurityAssociationsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getTunnelSecurityAssociations:getTunnelSecurityAssociations
  arguments:
    # arguments dictionaryThe following arguments are supported:
getTunnelSecurityAssociations Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- IpsecId string
- TunnelId string
- TunnelSecurity List<GetAssociations Tunnel Security Associations Tunnel Security Association> 
- The list of tunnel_security_associations.
- Filters
List<GetTunnel Security Associations Filter> 
- Id string
- The provider-assigned unique ID for this managed resource.
- IpsecId string
- TunnelId string
- TunnelSecurity []GetAssociations Tunnel Security Associations Tunnel Security Association 
- The list of tunnel_security_associations.
- Filters
[]GetTunnel Security Associations Filter 
- id String
- The provider-assigned unique ID for this managed resource.
- ipsecId String
- tunnelId String
- tunnelSecurity List<GetAssociations Tunnel Security Associations Tunnel Security Association> 
- The list of tunnel_security_associations.
- filters
List<GetTunnel Security Associations Filter> 
- id string
- The provider-assigned unique ID for this managed resource.
- ipsecId string
- tunnelId string
- tunnelSecurity GetAssociations Tunnel Security Associations Tunnel Security Association[] 
- The list of tunnel_security_associations.
- filters
GetTunnel Security Associations Filter[] 
- id str
- The provider-assigned unique ID for this managed resource.
- ipsec_id str
- tunnel_id str
- tunnel_security_ Sequence[Getassociations Tunnel Security Associations Tunnel Security Association] 
- The list of tunnel_security_associations.
- filters
Sequence[GetTunnel Security Associations Filter] 
- id String
- The provider-assigned unique ID for this managed resource.
- ipsecId String
- tunnelId String
- tunnelSecurity List<Property Map>Associations 
- The list of tunnel_security_associations.
- filters List<Property Map>
Supporting Types
GetTunnelSecurityAssociationsFilter    
GetTunnelSecurityAssociationsTunnelSecurityAssociation      
- CpeSubnet string
- The IP address and mask of the partner subnet used in policy based VPNs or static routes.
- OracleSubnet string
- The IP address and mask of the local subnet used in policy based VPNs or static routes.
- Time string
- Time in the current state, in seconds.
- TunnelSa stringError Info 
- Current state if the IPSec tunnel status is not UP, including phase one and phase two details and a possible reason the tunnel is notUP.
- TunnelSa stringStatus 
- The IPSec tunnel's phase one status.
- CpeSubnet string
- The IP address and mask of the partner subnet used in policy based VPNs or static routes.
- OracleSubnet string
- The IP address and mask of the local subnet used in policy based VPNs or static routes.
- Time string
- Time in the current state, in seconds.
- TunnelSa stringError Info 
- Current state if the IPSec tunnel status is not UP, including phase one and phase two details and a possible reason the tunnel is notUP.
- TunnelSa stringStatus 
- The IPSec tunnel's phase one status.
- cpeSubnet String
- The IP address and mask of the partner subnet used in policy based VPNs or static routes.
- oracleSubnet String
- The IP address and mask of the local subnet used in policy based VPNs or static routes.
- time String
- Time in the current state, in seconds.
- tunnelSa StringError Info 
- Current state if the IPSec tunnel status is not UP, including phase one and phase two details and a possible reason the tunnel is notUP.
- tunnelSa StringStatus 
- The IPSec tunnel's phase one status.
- cpeSubnet string
- The IP address and mask of the partner subnet used in policy based VPNs or static routes.
- oracleSubnet string
- The IP address and mask of the local subnet used in policy based VPNs or static routes.
- time string
- Time in the current state, in seconds.
- tunnelSa stringError Info 
- Current state if the IPSec tunnel status is not UP, including phase one and phase two details and a possible reason the tunnel is notUP.
- tunnelSa stringStatus 
- The IPSec tunnel's phase one status.
- cpe_subnet str
- The IP address and mask of the partner subnet used in policy based VPNs or static routes.
- oracle_subnet str
- The IP address and mask of the local subnet used in policy based VPNs or static routes.
- time str
- Time in the current state, in seconds.
- tunnel_sa_ strerror_ info 
- Current state if the IPSec tunnel status is not UP, including phase one and phase two details and a possible reason the tunnel is notUP.
- tunnel_sa_ strstatus 
- The IPSec tunnel's phase one status.
- cpeSubnet String
- The IP address and mask of the partner subnet used in policy based VPNs or static routes.
- oracleSubnet String
- The IP address and mask of the local subnet used in policy based VPNs or static routes.
- time String
- Time in the current state, in seconds.
- tunnelSa StringError Info 
- Current state if the IPSec tunnel status is not UP, including phase one and phase two details and a possible reason the tunnel is notUP.
- tunnelSa StringStatus 
- 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 ociTerraform Provider.