1. Packages
  2. Packages
  3. Nsxt Provider
  4. API Docs
  5. getPolicyIpsecVpnTunnelProfile
Viewing docs for nsxt 3.12.0
published on Monday, May 18, 2026 by vmware
Viewing docs for nsxt 3.12.0
published on Monday, May 18, 2026 by vmware

    This data source provides information about policy IPSec VPN Tunnel Profile configured on NSX.

    This data source is applicable to NSX Policy Manager and VMC.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nsxt from "@pulumi/nsxt";
    
    const test = nsxt.getPolicyIpsecVpnTunnelProfile({
        displayName: "ipsec_vpn_tunnel_profile1",
    });
    
    import pulumi
    import pulumi_nsxt as nsxt
    
    test = nsxt.get_policy_ipsec_vpn_tunnel_profile(display_name="ipsec_vpn_tunnel_profile1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/nsxt/v3/nsxt"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := nsxt.LookupPolicyIpsecVpnTunnelProfile(ctx, &nsxt.LookupPolicyIpsecVpnTunnelProfileArgs{
    			DisplayName: pulumi.StringRef("ipsec_vpn_tunnel_profile1"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nsxt = Pulumi.Nsxt;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Nsxt.GetPolicyIpsecVpnTunnelProfile.Invoke(new()
        {
            DisplayName = "ipsec_vpn_tunnel_profile1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nsxt.NsxtFunctions;
    import com.pulumi.nsxt.inputs.GetPolicyIpsecVpnTunnelProfileArgs;
    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 test = NsxtFunctions.getPolicyIpsecVpnTunnelProfile(GetPolicyIpsecVpnTunnelProfileArgs.builder()
                .displayName("ipsec_vpn_tunnel_profile1")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: nsxt:getPolicyIpsecVpnTunnelProfile
          arguments:
            displayName: ipsec_vpn_tunnel_profile1
    
    Example coming soon!
    

    Using getPolicyIpsecVpnTunnelProfile

    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 getPolicyIpsecVpnTunnelProfile(args: GetPolicyIpsecVpnTunnelProfileArgs, opts?: InvokeOptions): Promise<GetPolicyIpsecVpnTunnelProfileResult>
    function getPolicyIpsecVpnTunnelProfileOutput(args: GetPolicyIpsecVpnTunnelProfileOutputArgs, opts?: InvokeOptions): Output<GetPolicyIpsecVpnTunnelProfileResult>
    def get_policy_ipsec_vpn_tunnel_profile(description: Optional[str] = None,
                                            display_name: Optional[str] = None,
                                            id: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetPolicyIpsecVpnTunnelProfileResult
    def get_policy_ipsec_vpn_tunnel_profile_output(description: pulumi.Input[Optional[str]] = None,
                                            display_name: pulumi.Input[Optional[str]] = None,
                                            id: pulumi.Input[Optional[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetPolicyIpsecVpnTunnelProfileResult]
    func LookupPolicyIpsecVpnTunnelProfile(ctx *Context, args *LookupPolicyIpsecVpnTunnelProfileArgs, opts ...InvokeOption) (*LookupPolicyIpsecVpnTunnelProfileResult, error)
    func LookupPolicyIpsecVpnTunnelProfileOutput(ctx *Context, args *LookupPolicyIpsecVpnTunnelProfileOutputArgs, opts ...InvokeOption) LookupPolicyIpsecVpnTunnelProfileResultOutput

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

    public static class GetPolicyIpsecVpnTunnelProfile 
    {
        public static Task<GetPolicyIpsecVpnTunnelProfileResult> InvokeAsync(GetPolicyIpsecVpnTunnelProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetPolicyIpsecVpnTunnelProfileResult> Invoke(GetPolicyIpsecVpnTunnelProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPolicyIpsecVpnTunnelProfileResult> getPolicyIpsecVpnTunnelProfile(GetPolicyIpsecVpnTunnelProfileArgs args, InvokeOptions options)
    public static Output<GetPolicyIpsecVpnTunnelProfileResult> getPolicyIpsecVpnTunnelProfile(GetPolicyIpsecVpnTunnelProfileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: nsxt:index/getPolicyIpsecVpnTunnelProfile:getPolicyIpsecVpnTunnelProfile
      arguments:
        # arguments dictionary
    data "nsxt_getpolicyipsecvpntunnelprofile" "name" {
        # arguments
    }

    The following arguments are supported:

    Description string
    The description of the resource.
    DisplayName string
    The Display Name of the IPSec VPN Tunnel Profile.
    Id string
    The ID of IPSec VPN Tunnel Profile to retrieve.
    Description string
    The description of the resource.
    DisplayName string
    The Display Name of the IPSec VPN Tunnel Profile.
    Id string
    The ID of IPSec VPN Tunnel Profile to retrieve.
    description string
    The description of the resource.
    display_name string
    The Display Name of the IPSec VPN Tunnel Profile.
    id string
    The ID of IPSec VPN Tunnel Profile to retrieve.
    description String
    The description of the resource.
    displayName String
    The Display Name of the IPSec VPN Tunnel Profile.
    id String
    The ID of IPSec VPN Tunnel Profile to retrieve.
    description string
    The description of the resource.
    displayName string
    The Display Name of the IPSec VPN Tunnel Profile.
    id string
    The ID of IPSec VPN Tunnel Profile to retrieve.
    description str
    The description of the resource.
    display_name str
    The Display Name of the IPSec VPN Tunnel Profile.
    id str
    The ID of IPSec VPN Tunnel Profile to retrieve.
    description String
    The description of the resource.
    displayName String
    The Display Name of the IPSec VPN Tunnel Profile.
    id String
    The ID of IPSec VPN Tunnel Profile to retrieve.

    getPolicyIpsecVpnTunnelProfile Result

    The following output properties are available:

    DisplayName string
    Id string
    Path string
    The NSX path of the policy resource.
    Description string
    The description of the resource.
    DisplayName string
    Id string
    Path string
    The NSX path of the policy resource.
    Description string
    The description of the resource.
    display_name string
    id string
    path string
    The NSX path of the policy resource.
    description string
    The description of the resource.
    displayName String
    id String
    path String
    The NSX path of the policy resource.
    description String
    The description of the resource.
    displayName string
    id string
    path string
    The NSX path of the policy resource.
    description string
    The description of the resource.
    display_name str
    id str
    path str
    The NSX path of the policy resource.
    description str
    The description of the resource.
    displayName String
    id String
    path String
    The NSX path of the policy resource.
    description String
    The description of the resource.

    Package Details

    Repository
    nsxt vmware/terraform-provider-nsxt
    License
    Notes
    This Pulumi package is based on the nsxt Terraform Provider.
    Viewing docs for nsxt 3.12.0
    published on Monday, May 18, 2026 by vmware

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial