1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getVpnTunnels
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger

    Lists vpn_tunnel objects matching the given filters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getVpnTunnels({
        filters: [{
            name: "name",
            value: "test-vpn_tunnel",
        }],
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_vpn_tunnels(filters=[{
        "name": "name",
        "value": "test-vpn_tunnel",
    }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v6/netbox"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := netbox.GetVpnTunnels(ctx, &netbox.GetVpnTunnelsArgs{
    			Filters: []netbox.GetVpnTunnelsFilter{
    				{
    					Name:  "name",
    					Value: "test-vpn_tunnel",
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Netbox = Pulumi.Netbox;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Netbox.GetVpnTunnels.Invoke(new()
        {
            Filters = new[]
            {
                new Netbox.Inputs.GetVpnTunnelsFilterInputArgs
                {
                    Name = "name",
                    Value = "test-vpn_tunnel",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.NetboxFunctions;
    import com.pulumi.netbox.inputs.GetVpnTunnelsArgs;
    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 = NetboxFunctions.getVpnTunnels(GetVpnTunnelsArgs.builder()
                .filters(GetVpnTunnelsFilterArgs.builder()
                    .name("name")
                    .value("test-vpn_tunnel")
                    .build())
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getVpnTunnels
          arguments:
            filters:
              - name: name
                value: test-vpn_tunnel
    
    Example coming soon!
    

    Using getVpnTunnels

    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 getVpnTunnels(args: GetVpnTunnelsArgs, opts?: InvokeOptions): Promise<GetVpnTunnelsResult>
    function getVpnTunnelsOutput(args: GetVpnTunnelsOutputArgs, opts?: InvokeOutputOptions): Output<GetVpnTunnelsResult>
    def get_vpn_tunnels(filters: Optional[Sequence[GetVpnTunnelsFilter]] = None,
                        limit: Optional[float] = None,
                        opts: Optional[InvokeOptions] = None) -> GetVpnTunnelsResult
    def get_vpn_tunnels_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetVpnTunnelsFilterArgs]]]] = None,
                        limit: pulumi.Input[Optional[float]] = None,
                        opts: Optional[InvokeOutputOptions] = None) -> Output[GetVpnTunnelsResult]
    func GetVpnTunnels(ctx *Context, args *GetVpnTunnelsArgs, opts ...InvokeOption) (*GetVpnTunnelsResult, error)
    func GetVpnTunnelsOutput(ctx *Context, args *GetVpnTunnelsOutputArgs, opts ...InvokeOption) GetVpnTunnelsResultOutput

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

    public static class GetVpnTunnels 
    {
        public static Task<GetVpnTunnelsResult> InvokeAsync(GetVpnTunnelsArgs args, InvokeOptions? opts = null)
        public static Output<GetVpnTunnelsResult> Invoke(GetVpnTunnelsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetVpnTunnelsResult> Invoke(GetVpnTunnelsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetVpnTunnelsResult> getVpnTunnels(GetVpnTunnelsArgs args, InvokeOptions options)
    public static Output<GetVpnTunnelsResult> getVpnTunnels(GetVpnTunnelsArgs args, InvokeOptions options)
    public static Output<GetVpnTunnelsResult> getVpnTunnels(GetVpnTunnelsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getVpnTunnels:getVpnTunnels
      arguments:
        # arguments dictionary
    data "netbox_get_vpn_tunnels" "name" {
        # arguments
    }

    The following arguments are supported:

    Filters List<GetVpnTunnelsFilter>
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, encapsulation, encapsulationempty, encapsulationic, encapsulationie, encapsulationiew, encapsulationiregex, encapsulationisw, encapsulationn, encapsulationnic, encapsulationnie, encapsulationniew, encapsulationnisw, encapsulationregex, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, ipsecprofile, ipsecprofilen, ipsecprofileid, ipsecprofileidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, status, statusempty, statusic, statusie, statusiew, statusiregex, statusisw, statusn, statusnic, statusnie, statusniew, statusnisw, statusregex, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn, tunnelid, tunnelidempty, tunnel_idgt, tunnel_idgte, tunnel_idlt, tunnel_idlte, tunnel_id_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    Limit double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    Filters []GetVpnTunnelsFilter
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, encapsulation, encapsulationempty, encapsulationic, encapsulationie, encapsulationiew, encapsulationiregex, encapsulationisw, encapsulationn, encapsulationnic, encapsulationnie, encapsulationniew, encapsulationnisw, encapsulationregex, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, ipsecprofile, ipsecprofilen, ipsecprofileid, ipsecprofileidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, status, statusempty, statusic, statusie, statusiew, statusiregex, statusisw, statusn, statusnic, statusnie, statusniew, statusnisw, statusregex, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn, tunnelid, tunnelidempty, tunnel_idgt, tunnel_idgte, tunnel_idlt, tunnel_idlte, tunnel_id_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    Limit float64
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters list(object)
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, encapsulation, encapsulationempty, encapsulationic, encapsulationie, encapsulationiew, encapsulationiregex, encapsulationisw, encapsulationn, encapsulationnic, encapsulationnie, encapsulationniew, encapsulationnisw, encapsulationregex, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, ipsecprofile, ipsecprofilen, ipsecprofileid, ipsecprofileidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, status, statusempty, statusic, statusie, statusiew, statusiregex, statusisw, statusn, statusnic, statusnie, statusniew, statusnisw, statusregex, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn, tunnelid, tunnelidempty, tunnel_idgt, tunnel_idgte, tunnel_idlt, tunnel_idlte, tunnel_id_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters List<GetVpnTunnelsFilter>
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, encapsulation, encapsulationempty, encapsulationic, encapsulationie, encapsulationiew, encapsulationiregex, encapsulationisw, encapsulationn, encapsulationnic, encapsulationnie, encapsulationniew, encapsulationnisw, encapsulationregex, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, ipsecprofile, ipsecprofilen, ipsecprofileid, ipsecprofileidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, status, statusempty, statusic, statusie, statusiew, statusiregex, statusisw, statusn, statusnic, statusnie, statusniew, statusnisw, statusregex, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn, tunnelid, tunnelidempty, tunnel_idgt, tunnel_idgte, tunnel_idlt, tunnel_idlte, tunnel_id_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit Double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters GetVpnTunnelsFilter[]
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, encapsulation, encapsulationempty, encapsulationic, encapsulationie, encapsulationiew, encapsulationiregex, encapsulationisw, encapsulationn, encapsulationnic, encapsulationnie, encapsulationniew, encapsulationnisw, encapsulationregex, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, ipsecprofile, ipsecprofilen, ipsecprofileid, ipsecprofileidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, status, statusempty, statusic, statusie, statusiew, statusiregex, statusisw, statusn, statusnic, statusnie, statusniew, statusnisw, statusregex, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn, tunnelid, tunnelidempty, tunnel_idgt, tunnel_idgte, tunnel_idlt, tunnel_idlte, tunnel_id_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters Sequence[GetVpnTunnelsFilter]
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, encapsulation, encapsulationempty, encapsulationic, encapsulationie, encapsulationiew, encapsulationiregex, encapsulationisw, encapsulationn, encapsulationnic, encapsulationnie, encapsulationniew, encapsulationnisw, encapsulationregex, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, ipsecprofile, ipsecprofilen, ipsecprofileid, ipsecprofileidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, status, statusempty, statusic, statusie, statusiew, statusiregex, statusisw, statusn, statusnic, statusnie, statusniew, statusnisw, statusregex, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn, tunnelid, tunnelidempty, tunnel_idgt, tunnel_idgte, tunnel_idlt, tunnel_idlte, tunnel_id_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit float
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters List<Property Map>
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, encapsulation, encapsulationempty, encapsulationic, encapsulationie, encapsulationiew, encapsulationiregex, encapsulationisw, encapsulationn, encapsulationnic, encapsulationnie, encapsulationniew, encapsulationnisw, encapsulationregex, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, ipsecprofile, ipsecprofilen, ipsecprofileid, ipsecprofileidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, status, statusempty, statusic, statusie, statusiew, statusiregex, statusisw, statusn, statusnic, statusnie, statusniew, statusnisw, statusregex, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn, tunnelid, tunnelidempty, tunnel_idgt, tunnel_idgte, tunnel_idlt, tunnel_idlte, tunnel_id_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit Number
    The maximum number of objects to return from the API lookup. Defaults to 1000.

    getVpnTunnels Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    VpnTunnels List<GetVpnTunnelsVpnTunnel>
    The matching vpn*tunnels.
    Filters List<GetVpnTunnelsFilter>
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, encapsulation, encapsulationempty, encapsulationic, encapsulationie, encapsulationiew, encapsulationiregex, encapsulationisw, encapsulationn, encapsulationnic, encapsulationnie, encapsulationniew, encapsulationnisw, encapsulationregex, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, ipsecprofile, ipsecprofilen, ipsecprofileid, ipsecprofileidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, status, statusempty, statusic, statusie, statusiew, statusiregex, statusisw, statusn, statusnic, statusnie, statusniew, statusnisw, statusregex, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn, tunnelid, tunnelidempty, tunnel_idgt, tunnel_idgte, tunnel_idlt, tunnel_idlte, tunnel_id_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    Limit double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    Id string
    The provider-assigned unique ID for this managed resource.
    VpnTunnels []GetVpnTunnelsVpnTunnel
    The matching vpn*tunnels.
    Filters []GetVpnTunnelsFilter
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, encapsulation, encapsulationempty, encapsulationic, encapsulationie, encapsulationiew, encapsulationiregex, encapsulationisw, encapsulationn, encapsulationnic, encapsulationnie, encapsulationniew, encapsulationnisw, encapsulationregex, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, ipsecprofile, ipsecprofilen, ipsecprofileid, ipsecprofileidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, status, statusempty, statusic, statusie, statusiew, statusiregex, statusisw, statusn, statusnic, statusnie, statusniew, statusnisw, statusregex, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn, tunnelid, tunnelidempty, tunnel_idgt, tunnel_idgte, tunnel_idlt, tunnel_idlte, tunnel_id_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    Limit float64
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id string
    The provider-assigned unique ID for this managed resource.
    vpn_tunnels list(object)
    The matching vpn*tunnels.
    filters list(object)
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, encapsulation, encapsulationempty, encapsulationic, encapsulationie, encapsulationiew, encapsulationiregex, encapsulationisw, encapsulationn, encapsulationnic, encapsulationnie, encapsulationniew, encapsulationnisw, encapsulationregex, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, ipsecprofile, ipsecprofilen, ipsecprofileid, ipsecprofileidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, status, statusempty, statusic, statusie, statusiew, statusiregex, statusisw, statusn, statusnic, statusnie, statusniew, statusnisw, statusregex, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn, tunnelid, tunnelidempty, tunnel_idgt, tunnel_idgte, tunnel_idlt, tunnel_idlte, tunnel_id_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id String
    The provider-assigned unique ID for this managed resource.
    vpnTunnels List<GetVpnTunnelsVpnTunnel>
    The matching vpn*tunnels.
    filters List<GetVpnTunnelsFilter>
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, encapsulation, encapsulationempty, encapsulationic, encapsulationie, encapsulationiew, encapsulationiregex, encapsulationisw, encapsulationn, encapsulationnic, encapsulationnie, encapsulationniew, encapsulationnisw, encapsulationregex, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, ipsecprofile, ipsecprofilen, ipsecprofileid, ipsecprofileidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, status, statusempty, statusic, statusie, statusiew, statusiregex, statusisw, statusn, statusnic, statusnie, statusniew, statusnisw, statusregex, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn, tunnelid, tunnelidempty, tunnel_idgt, tunnel_idgte, tunnel_idlt, tunnel_idlte, tunnel_id_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit Double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id string
    The provider-assigned unique ID for this managed resource.
    vpnTunnels GetVpnTunnelsVpnTunnel[]
    The matching vpn*tunnels.
    filters GetVpnTunnelsFilter[]
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, encapsulation, encapsulationempty, encapsulationic, encapsulationie, encapsulationiew, encapsulationiregex, encapsulationisw, encapsulationn, encapsulationnic, encapsulationnie, encapsulationniew, encapsulationnisw, encapsulationregex, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, ipsecprofile, ipsecprofilen, ipsecprofileid, ipsecprofileidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, status, statusempty, statusic, statusie, statusiew, statusiregex, statusisw, statusn, statusnic, statusnie, statusniew, statusnisw, statusregex, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn, tunnelid, tunnelidempty, tunnel_idgt, tunnel_idgte, tunnel_idlt, tunnel_idlte, tunnel_id_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id str
    The provider-assigned unique ID for this managed resource.
    vpn_tunnels Sequence[GetVpnTunnelsVpnTunnel]
    The matching vpn*tunnels.
    filters Sequence[GetVpnTunnelsFilter]
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, encapsulation, encapsulationempty, encapsulationic, encapsulationie, encapsulationiew, encapsulationiregex, encapsulationisw, encapsulationn, encapsulationnic, encapsulationnie, encapsulationniew, encapsulationnisw, encapsulationregex, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, ipsecprofile, ipsecprofilen, ipsecprofileid, ipsecprofileidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, status, statusempty, statusic, statusie, statusiew, statusiregex, statusisw, statusn, statusnic, statusnie, statusniew, statusnisw, statusregex, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn, tunnelid, tunnelidempty, tunnel_idgt, tunnel_idgte, tunnel_idlt, tunnel_idlte, tunnel_id_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit float
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id String
    The provider-assigned unique ID for this managed resource.
    vpnTunnels List<Property Map>
    The matching vpn*tunnels.
    filters List<Property Map>
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, encapsulation, encapsulationempty, encapsulationic, encapsulationie, encapsulationiew, encapsulationiregex, encapsulationisw, encapsulationn, encapsulationnic, encapsulationnie, encapsulationniew, encapsulationnisw, encapsulationregex, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, ipsecprofile, ipsecprofilen, ipsecprofileid, ipsecprofileidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, status, statusempty, statusic, statusie, statusiew, statusiregex, statusisw, statusn, statusnic, statusnie, statusniew, statusnisw, statusregex, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn, tunnelid, tunnelidempty, tunnel_idgt, tunnel_idgte, tunnel_idlt, tunnel_idlte, tunnel_id_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit Number
    The maximum number of objects to return from the API lookup. Defaults to 1000.

    Supporting Types

    GetVpnTunnelsFilter

    Name string
    Name of the query filter (the API list parameter).
    Value string
    Value to filter by.
    Name string
    Name of the query filter (the API list parameter).
    Value string
    Value to filter by.
    name string
    Name of the query filter (the API list parameter).
    value string
    Value to filter by.
    name String
    Name of the query filter (the API list parameter).
    value String
    Value to filter by.
    name string
    Name of the query filter (the API list parameter).
    value string
    Value to filter by.
    name str
    Name of the query filter (the API list parameter).
    value str
    Value to filter by.
    name String
    Name of the query filter (the API list parameter).
    value String
    Value to filter by.

    GetVpnTunnelsVpnTunnel

    Comments string
    Created string
    CustomFields Dictionary<string, string>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    Description string
    Encapsulation string
    Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
    Id double
    NetBox id.
    IpsecProfileId double
    Id of the IPsec profile.
    LastUpdated string
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    Status string
    Operational status. One of: planned, active, disabled.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls List<string>
    Slugs of all tags on the object, including the provider's default_tags.
    TenantId double
    Id of the tenant.
    TerminationCount double
    Number of terminations of the tunnel.
    TunnelGroupId double
    Deprecated alias of vpntunnelgroup_id.

    Deprecated: Deprecated

    TunnelId double
    Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
    Url string
    VpnTunnelGroupId double
    Id of the tunnel group.
    Comments string
    Created string
    CustomFields map[string]string
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    Description string
    Encapsulation string
    Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
    Id float64
    NetBox id.
    IpsecProfileId float64
    Id of the IPsec profile.
    LastUpdated string
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    Status string
    Operational status. One of: planned, active, disabled.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls []string
    Slugs of all tags on the object, including the provider's default_tags.
    TenantId float64
    Id of the tenant.
    TerminationCount float64
    Number of terminations of the tunnel.
    TunnelGroupId float64
    Deprecated alias of vpntunnelgroup_id.

    Deprecated: Deprecated

    TunnelId float64
    Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
    Url string
    VpnTunnelGroupId float64
    Id of the tunnel group.
    comments string
    created string
    custom_fields map(string)
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description string
    encapsulation string
    Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
    id number
    NetBox id.
    ipsec_profile_id number
    Id of the IPsec profile.
    last_updated string
    name string
    owner_id number
    Id of the owner the object is assigned to.
    status string
    Operational status. One of: planned, active, disabled.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls list(string)
    Slugs of all tags on the object, including the provider's default_tags.
    tenant_id number
    Id of the tenant.
    termination_count number
    Number of terminations of the tunnel.
    tunnel_group_id number
    Deprecated alias of vpntunnelgroup_id.

    Deprecated: Deprecated

    tunnel_id number
    Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
    url string
    vpn_tunnel_group_id number
    Id of the tunnel group.
    comments String
    created String
    customFields Map<String,String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description String
    encapsulation String
    Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
    id Double
    NetBox id.
    ipsecProfileId Double
    Id of the IPsec profile.
    lastUpdated String
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    status String
    Operational status. One of: planned, active, disabled.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    tenantId Double
    Id of the tenant.
    terminationCount Double
    Number of terminations of the tunnel.
    tunnelGroupId Double
    Deprecated alias of vpntunnelgroup_id.

    Deprecated: Deprecated

    tunnelId Double
    Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
    url String
    vpnTunnelGroupId Double
    Id of the tunnel group.
    comments string
    created string
    customFields {[key: string]: string}
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description string
    encapsulation string
    Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
    id number
    NetBox id.
    ipsecProfileId number
    Id of the IPsec profile.
    lastUpdated string
    name string
    ownerId number
    Id of the owner the object is assigned to.
    status string
    Operational status. One of: planned, active, disabled.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls string[]
    Slugs of all tags on the object, including the provider's default_tags.
    tenantId number
    Id of the tenant.
    terminationCount number
    Number of terminations of the tunnel.
    tunnelGroupId number
    Deprecated alias of vpntunnelgroup_id.

    Deprecated: Deprecated

    tunnelId number
    Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
    url string
    vpnTunnelGroupId number
    Id of the tunnel group.
    comments str
    created str
    custom_fields Mapping[str, str]
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description str
    encapsulation str
    Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
    id float
    NetBox id.
    ipsec_profile_id float
    Id of the IPsec profile.
    last_updated str
    name str
    owner_id float
    Id of the owner the object is assigned to.
    status str
    Operational status. One of: planned, active, disabled.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls Sequence[str]
    Slugs of all tags on the object, including the provider's default_tags.
    tenant_id float
    Id of the tenant.
    termination_count float
    Number of terminations of the tunnel.
    tunnel_group_id float
    Deprecated alias of vpntunnelgroup_id.

    Deprecated: Deprecated

    tunnel_id float
    Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
    url str
    vpn_tunnel_group_id float
    Id of the tunnel group.
    comments String
    created String
    customFields Map<String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description String
    encapsulation String
    Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
    id Number
    NetBox id.
    ipsecProfileId Number
    Id of the IPsec profile.
    lastUpdated String
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    status String
    Operational status. One of: planned, active, disabled.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    tenantId Number
    Id of the tenant.
    terminationCount Number
    Number of terminations of the tunnel.
    tunnelGroupId Number
    Deprecated alias of vpntunnelgroup_id.

    Deprecated: Deprecated

    tunnelId Number
    Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
    url String
    vpnTunnelGroupId Number
    Id of the tunnel group.

    Package Details

    Repository
    netbox e-breuninger/terraform-provider-netbox
    License
    Notes
    This Pulumi package is based on the netbox Terraform Provider.
    netbox
    Viewing docs for netbox 6.0.1
    published on Monday, Nov 16, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial