1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getTunnelSecurityAssociations
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Core.getTunnelSecurityAssociations

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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,
    });
    
    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[_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]
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getTunnelSecurityAssociations:getTunnelSecurityAssociations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    IpsecId string
    The OCID of the IPSec connection.
    TunnelId string
    The OCID of the tunnel.
    Filters List<GetTunnelSecurityAssociationsFilter>
    IpsecId string
    The OCID of the IPSec connection.
    TunnelId string
    The OCID of the tunnel.
    Filters []GetTunnelSecurityAssociationsFilter
    ipsecId String
    The OCID of the IPSec connection.
    tunnelId String
    The OCID of the tunnel.
    filters List<GetTunnelSecurityAssociationsFilter>
    ipsecId string
    The OCID of the IPSec connection.
    tunnelId string
    The OCID of the tunnel.
    filters GetTunnelSecurityAssociationsFilter[]
    ipsec_id str
    The OCID of the IPSec connection.
    tunnel_id str
    The OCID of the tunnel.
    filters Sequence[core.GetTunnelSecurityAssociationsFilter]
    ipsecId String
    The OCID of the IPSec connection.
    tunnelId String
    The OCID of the tunnel.
    filters 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 string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    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.
    TunnelSaErrorInfo 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 string
    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.
    TunnelSaErrorInfo 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 string
    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.
    tunnelSaErrorInfo 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 String
    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.
    tunnelSaErrorInfo 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 string
    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_error_info 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 str
    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.
    tunnelSaErrorInfo 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 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.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi