Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 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 dictionarydata "netbox_get_vpn_tunnels" "name" {
# arguments
}The following arguments are supported:
- Filters
List<Get
Vpn Tunnels Filter> - Query filters, sent as API list parameters. Supported names: groupid, groupidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tagn. 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
[]Get
Vpn Tunnels Filter - Query filters, sent as API list parameters. Supported names: groupid, groupidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tagn. 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: groupid, groupidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tagn. 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<Get
Vpn Tunnels Filter> - Query filters, sent as API list parameters. Supported names: groupid, groupidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tagn. 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
Get
Vpn Tunnels Filter[] - Query filters, sent as API list parameters. Supported names: groupid, groupidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tagn. 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[Get
Vpn Tunnels Filter] - Query filters, sent as API list parameters. Supported names: groupid, groupidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tagn. 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: groupid, groupidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tagn. 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.
- Vpn
Tunnels List<GetVpn Tunnels Vpn Tunnel> - The matching vpn*tunnels.
- Filters
List<Get
Vpn Tunnels Filter> - Query filters, sent as API list parameters. Supported names: groupid, groupidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tagn. 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.
- Vpn
Tunnels []GetVpn Tunnels Vpn Tunnel - The matching vpn*tunnels.
- Filters
[]Get
Vpn Tunnels Filter - Query filters, sent as API list parameters. Supported names: groupid, groupidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tagn. 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: groupid, groupidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tagn. 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.
- vpn
Tunnels List<GetVpn Tunnels Vpn Tunnel> - The matching vpn*tunnels.
- filters
List<Get
Vpn Tunnels Filter> - Query filters, sent as API list parameters. Supported names: groupid, groupidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tagn. 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.
- vpn
Tunnels GetVpn Tunnels Vpn Tunnel[] - The matching vpn*tunnels.
- filters
Get
Vpn Tunnels Filter[] - Query filters, sent as API list parameters. Supported names: groupid, groupidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tagn. 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[GetVpn Tunnels Vpn Tunnel] - The matching vpn*tunnels.
- filters
Sequence[Get
Vpn Tunnels Filter] - Query filters, sent as API list parameters. Supported names: groupid, groupidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tagn. 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.
- vpn
Tunnels List<Property Map> - The matching vpn*tunnels.
- filters List<Property Map>
- Query filters, sent as API list parameters. Supported names: groupid, groupidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, ownerid, owneridn, tag, tagany, tagn. 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
GetVpnTunnelsVpnTunnel
- Comments string
- Created string
- Custom
Fields 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.
- Ipsec
Profile doubleId - Id of the IPsec profile.
- Last
Updated string - Name string
- Owner
Id double - Id of the owner the object is assigned to.
- Status string
- Operational status. One of: planned, active, disabled.
- List<string>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- List<string>
- Slugs of all tags on the object, including the provider's default_tags.
- Tenant
Id double - Id of the tenant.
- Termination
Count double - Number of terminations of the tunnel.
- Tunnel
Group doubleId - Deprecated alias of vpntunnelgroup_id.
- Tunnel
Id double - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- Url string
- Vpn
Tunnel doubleGroup Id - Id of the tunnel group.
- Comments string
- Created string
- Custom
Fields 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.
- Ipsec
Profile float64Id - Id of the IPsec profile.
- Last
Updated string - Name string
- Owner
Id float64 - Id of the owner the object is assigned to.
- Status string
- Operational status. One of: planned, active, disabled.
- []string
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- []string
- Slugs of all tags on the object, including the provider's default_tags.
- Tenant
Id float64 - Id of the tenant.
- Termination
Count float64 - Number of terminations of the tunnel.
- Tunnel
Group float64Id - Deprecated alias of vpntunnelgroup_id.
- Tunnel
Id float64 - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- Url string
- Vpn
Tunnel float64Group Id - 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_ numberid - 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.
- list(string)
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- 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_ numberid - Deprecated alias of vpntunnelgroup_id.
- tunnel_
id number - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- url string
- vpn_
tunnel_ numbergroup_ id - Id of the tunnel group.
- comments String
- created String
- custom
Fields 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.
- ipsec
Profile DoubleId - Id of the IPsec profile.
- last
Updated String - name String
- owner
Id Double - Id of the owner the object is assigned to.
- status String
- Operational status. One of: planned, active, disabled.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- tenant
Id Double - Id of the tenant.
- termination
Count Double - Number of terminations of the tunnel.
- tunnel
Group DoubleId - Deprecated alias of vpntunnelgroup_id.
- tunnel
Id Double - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- url String
- vpn
Tunnel DoubleGroup Id - Id of the tunnel group.
- comments string
- created string
- custom
Fields {[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.
- ipsec
Profile numberId - 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.
- string[]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- 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 numberId - Deprecated alias of vpntunnelgroup_id.
- tunnel
Id number - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- url string
- vpn
Tunnel numberGroup Id - 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_ floatid - 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.
- Sequence[str]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- 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_ floatid - Deprecated alias of vpntunnelgroup_id.
- tunnel_
id float - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- url str
- vpn_
tunnel_ floatgroup_ id - 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 NumberId - 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.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- 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 NumberId - Deprecated alias of vpntunnelgroup_id.
- tunnel
Id Number - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- url String
- vpn
Tunnel NumberGroup Id - Id of the tunnel group.
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger