1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getRouteTargets
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 route_target objects matching the given filters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getRouteTargets({
        filters: [{
            name: "name",
            value: "test-route_target",
        }],
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_route_targets(filters=[{
        "name": "name",
        "value": "test-route_target",
    }])
    
    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.GetRouteTargets(ctx, &netbox.GetRouteTargetsArgs{
    			Filters: []netbox.GetRouteTargetsFilter{
    				{
    					Name:  "name",
    					Value: "test-route_target",
    				},
    			},
    		}, 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.GetRouteTargets.Invoke(new()
        {
            Filters = new[]
            {
                new Netbox.Inputs.GetRouteTargetsFilterInputArgs
                {
                    Name = "name",
                    Value = "test-route_target",
                },
            },
        });
    
    });
    
    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.GetRouteTargetsArgs;
    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.getRouteTargets(GetRouteTargetsArgs.builder()
                .filters(GetRouteTargetsFilterArgs.builder()
                    .name("name")
                    .value("test-route_target")
                    .build())
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getRouteTargets
          arguments:
            filters:
              - name: name
                value: test-route_target
    
    Example coming soon!
    

    Using getRouteTargets

    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 getRouteTargets(args: GetRouteTargetsArgs, opts?: InvokeOptions): Promise<GetRouteTargetsResult>
    function getRouteTargetsOutput(args: GetRouteTargetsOutputArgs, opts?: InvokeOutputOptions): Output<GetRouteTargetsResult>
    def get_route_targets(filters: Optional[Sequence[GetRouteTargetsFilter]] = None,
                          limit: Optional[float] = None,
                          opts: Optional[InvokeOptions] = None) -> GetRouteTargetsResult
    def get_route_targets_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetRouteTargetsFilterArgs]]]] = None,
                          limit: pulumi.Input[Optional[float]] = None,
                          opts: Optional[InvokeOutputOptions] = None) -> Output[GetRouteTargetsResult]
    func GetRouteTargets(ctx *Context, args *GetRouteTargetsArgs, opts ...InvokeOption) (*GetRouteTargetsResult, error)
    func GetRouteTargetsOutput(ctx *Context, args *GetRouteTargetsOutputArgs, opts ...InvokeOption) GetRouteTargetsResultOutput

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

    public static class GetRouteTargets 
    {
        public static Task<GetRouteTargetsResult> InvokeAsync(GetRouteTargetsArgs args, InvokeOptions? opts = null)
        public static Output<GetRouteTargetsResult> Invoke(GetRouteTargetsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetRouteTargetsResult> Invoke(GetRouteTargetsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetRouteTargetsResult> getRouteTargets(GetRouteTargetsArgs args, InvokeOptions options)
    public static Output<GetRouteTargetsResult> getRouteTargets(GetRouteTargetsArgs args, InvokeOptions options)
    public static Output<GetRouteTargetsResult> getRouteTargets(GetRouteTargetsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getRouteTargets:getRouteTargets
      arguments:
        # arguments dictionary
    data "netbox_get_route_targets" "name" {
        # arguments
    }

    The following arguments are supported:

    Filters List<GetRouteTargetsFilter>
    Query filters, sent as API list parameters. Supported names: created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, exportingl2vpn, exportingl2vpnn, exportingl2vpnid, exportingl2vpnidn, exportingvrf, exportingvrfn, exportingvrfid, exportingvrfidn, id, idempty, idgt, idgte, idlt, idlte, idn, importingl2vpn, importingl2vpnn, importingl2vpnid, importingl2vpnidn, importingvrf, importingvrfn, importingvrfid, importingvrfidn, 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, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn. 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 []GetRouteTargetsFilter
    Query filters, sent as API list parameters. Supported names: created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, exportingl2vpn, exportingl2vpnn, exportingl2vpnid, exportingl2vpnidn, exportingvrf, exportingvrfn, exportingvrfid, exportingvrfidn, id, idempty, idgt, idgte, idlt, idlte, idn, importingl2vpn, importingl2vpnn, importingl2vpnid, importingl2vpnidn, importingvrf, importingvrfn, importingvrfid, importingvrfidn, 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, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn. 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: created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, exportingl2vpn, exportingl2vpnn, exportingl2vpnid, exportingl2vpnidn, exportingvrf, exportingvrfn, exportingvrfid, exportingvrfidn, id, idempty, idgt, idgte, idlt, idlte, idn, importingl2vpn, importingl2vpnn, importingl2vpnid, importingl2vpnidn, importingvrf, importingvrfn, importingvrfid, importingvrfidn, 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, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn. 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<GetRouteTargetsFilter>
    Query filters, sent as API list parameters. Supported names: created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, exportingl2vpn, exportingl2vpnn, exportingl2vpnid, exportingl2vpnidn, exportingvrf, exportingvrfn, exportingvrfid, exportingvrfidn, id, idempty, idgt, idgte, idlt, idlte, idn, importingl2vpn, importingl2vpnn, importingl2vpnid, importingl2vpnidn, importingvrf, importingvrfn, importingvrfid, importingvrfidn, 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, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn. 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 GetRouteTargetsFilter[]
    Query filters, sent as API list parameters. Supported names: created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, exportingl2vpn, exportingl2vpnn, exportingl2vpnid, exportingl2vpnidn, exportingvrf, exportingvrfn, exportingvrfid, exportingvrfidn, id, idempty, idgt, idgte, idlt, idlte, idn, importingl2vpn, importingl2vpnn, importingl2vpnid, importingl2vpnidn, importingvrf, importingvrfn, importingvrfid, importingvrfidn, 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, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn. 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[GetRouteTargetsFilter]
    Query filters, sent as API list parameters. Supported names: created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, exportingl2vpn, exportingl2vpnn, exportingl2vpnid, exportingl2vpnidn, exportingvrf, exportingvrfn, exportingvrfid, exportingvrfidn, id, idempty, idgt, idgte, idlt, idlte, idn, importingl2vpn, importingl2vpnn, importingl2vpnid, importingl2vpnidn, importingvrf, importingvrfn, importingvrfid, importingvrfidn, 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, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn. 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: created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, exportingl2vpn, exportingl2vpnn, exportingl2vpnid, exportingl2vpnidn, exportingvrf, exportingvrfn, exportingvrfid, exportingvrfidn, id, idempty, idgt, idgte, idlt, idlte, idn, importingl2vpn, importingl2vpnn, importingl2vpnid, importingl2vpnidn, importingvrf, importingvrfn, importingvrfid, importingvrfidn, 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, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn. 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.

    getRouteTargets Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    RouteTargets List<GetRouteTargetsRouteTarget>
    The matching route*targets.
    Filters List<GetRouteTargetsFilter>
    Query filters, sent as API list parameters. Supported names: created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, exportingl2vpn, exportingl2vpnn, exportingl2vpnid, exportingl2vpnidn, exportingvrf, exportingvrfn, exportingvrfid, exportingvrfidn, id, idempty, idgt, idgte, idlt, idlte, idn, importingl2vpn, importingl2vpnn, importingl2vpnid, importingl2vpnidn, importingvrf, importingvrfn, importingvrfid, importingvrfidn, 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, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn. 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.
    RouteTargets []GetRouteTargetsRouteTarget
    The matching route*targets.
    Filters []GetRouteTargetsFilter
    Query filters, sent as API list parameters. Supported names: created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, exportingl2vpn, exportingl2vpnn, exportingl2vpnid, exportingl2vpnidn, exportingvrf, exportingvrfn, exportingvrfid, exportingvrfidn, id, idempty, idgt, idgte, idlt, idlte, idn, importingl2vpn, importingl2vpnn, importingl2vpnid, importingl2vpnidn, importingvrf, importingvrfn, importingvrfid, importingvrfidn, 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, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn. 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.
    route_targets list(object)
    The matching route*targets.
    filters list(object)
    Query filters, sent as API list parameters. Supported names: created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, exportingl2vpn, exportingl2vpnn, exportingl2vpnid, exportingl2vpnidn, exportingvrf, exportingvrfn, exportingvrfid, exportingvrfidn, id, idempty, idgt, idgte, idlt, idlte, idn, importingl2vpn, importingl2vpnn, importingl2vpnid, importingl2vpnidn, importingvrf, importingvrfn, importingvrfid, importingvrfidn, 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, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn. 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.
    routeTargets List<GetRouteTargetsRouteTarget>
    The matching route*targets.
    filters List<GetRouteTargetsFilter>
    Query filters, sent as API list parameters. Supported names: created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, exportingl2vpn, exportingl2vpnn, exportingl2vpnid, exportingl2vpnidn, exportingvrf, exportingvrfn, exportingvrfid, exportingvrfidn, id, idempty, idgt, idgte, idlt, idlte, idn, importingl2vpn, importingl2vpnn, importingl2vpnid, importingl2vpnidn, importingvrf, importingvrfn, importingvrfid, importingvrfidn, 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, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn. 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.
    routeTargets GetRouteTargetsRouteTarget[]
    The matching route*targets.
    filters GetRouteTargetsFilter[]
    Query filters, sent as API list parameters. Supported names: created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, exportingl2vpn, exportingl2vpnn, exportingl2vpnid, exportingl2vpnidn, exportingvrf, exportingvrfn, exportingvrfid, exportingvrfidn, id, idempty, idgt, idgte, idlt, idlte, idn, importingl2vpn, importingl2vpnn, importingl2vpnid, importingl2vpnidn, importingvrf, importingvrfn, importingvrfid, importingvrfidn, 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, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn. 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.
    route_targets Sequence[GetRouteTargetsRouteTarget]
    The matching route*targets.
    filters Sequence[GetRouteTargetsFilter]
    Query filters, sent as API list parameters. Supported names: created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, exportingl2vpn, exportingl2vpnn, exportingl2vpnid, exportingl2vpnidn, exportingvrf, exportingvrfn, exportingvrfid, exportingvrfidn, id, idempty, idgt, idgte, idlt, idlte, idn, importingl2vpn, importingl2vpnn, importingl2vpnid, importingl2vpnidn, importingvrf, importingvrfn, importingvrfid, importingvrfidn, 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, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn. 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.
    routeTargets List<Property Map>
    The matching route*targets.
    filters List<Property Map>
    Query filters, sent as API list parameters. Supported names: created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, exportingl2vpn, exportingl2vpnn, exportingl2vpnid, exportingl2vpnidn, exportingvrf, exportingvrfn, exportingvrfid, exportingvrfidn, id, idempty, idgt, idgte, idlt, idlte, idn, importingl2vpn, importingl2vpnn, importingl2vpnid, importingl2vpnidn, importingvrf, importingvrfn, importingvrfid, importingvrfidn, 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, tag, tagany, tagn, tagid, tagidany, tag_idn, tenant, tenantn, tenantgroup, tenantgroupn, tenantgroupid, tenantgroupidn, tenantid, tenantidn. 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

    GetRouteTargetsFilter

    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.

    GetRouteTargetsRouteTarget

    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
    Id double
    NetBox id.
    LastUpdated string
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    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.
    Url string
    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
    Id float64
    NetBox id.
    LastUpdated string
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    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.
    Url string
    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
    id number
    NetBox id.
    last_updated string
    name string
    owner_id number
    Id of the owner the object is assigned to.
    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.
    url string
    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
    id Double
    NetBox id.
    lastUpdated String
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    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.
    url String
    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
    id number
    NetBox id.
    lastUpdated string
    name string
    ownerId number
    Id of the owner the object is assigned to.
    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.
    url string
    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
    id float
    NetBox id.
    last_updated str
    name str
    owner_id float
    Id of the owner the object is assigned to.
    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.
    url str
    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
    id Number
    NetBox id.
    lastUpdated String
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    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.
    url String

    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