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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getClusters({
        filters: [{
            name: "name",
            value: "test-cluster",
        }],
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_clusters(filters=[{
        "name": "name",
        "value": "test-cluster",
    }])
    
    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.GetClusters(ctx, &netbox.GetClustersArgs{
    			Filters: []netbox.GetClustersFilter{
    				{
    					Name:  "name",
    					Value: "test-cluster",
    				},
    			},
    		}, 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.GetClusters.Invoke(new()
        {
            Filters = new[]
            {
                new Netbox.Inputs.GetClustersFilterInputArgs
                {
                    Name = "name",
                    Value = "test-cluster",
                },
            },
        });
    
    });
    
    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.GetClustersArgs;
    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.getClusters(GetClustersArgs.builder()
                .filters(GetClustersFilterArgs.builder()
                    .name("name")
                    .value("test-cluster")
                    .build())
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getClusters
          arguments:
            filters:
              - name: name
                value: test-cluster
    
    Example coming soon!
    

    Using getClusters

    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 getClusters(args: GetClustersArgs, opts?: InvokeOptions): Promise<GetClustersResult>
    function getClustersOutput(args: GetClustersOutputArgs, opts?: InvokeOutputOptions): Output<GetClustersResult>
    def get_clusters(filters: Optional[Sequence[GetClustersFilter]] = None,
                     limit: Optional[float] = None,
                     opts: Optional[InvokeOptions] = None) -> GetClustersResult
    def get_clusters_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetClustersFilterArgs]]]] = None,
                     limit: pulumi.Input[Optional[float]] = None,
                     opts: Optional[InvokeOutputOptions] = None) -> Output[GetClustersResult]
    func GetClusters(ctx *Context, args *GetClustersArgs, opts ...InvokeOption) (*GetClustersResult, error)
    func GetClustersOutput(ctx *Context, args *GetClustersOutputArgs, opts ...InvokeOption) GetClustersResultOutput

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

    public static class GetClusters 
    {
        public static Task<GetClustersResult> InvokeAsync(GetClustersArgs args, InvokeOptions? opts = null)
        public static Output<GetClustersResult> Invoke(GetClustersInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetClustersResult> Invoke(GetClustersInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetClustersResult> getClusters(GetClustersArgs args, InvokeOptions options)
    public static Output<GetClustersResult> getClusters(GetClustersArgs args, InvokeOptions options)
    public static Output<GetClustersResult> getClusters(GetClustersArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getClusters:getClusters
      arguments:
        # arguments dictionary
    data "netbox_get_clusters" "name" {
        # arguments
    }

    The following arguments are supported:

    Filters List<GetClustersFilter>
    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, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, location, locationn, locationid, locationidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, region, regionn, regionid, regionidn, scopeid, scopeidempty, scope_idgt, scope_idgte, scope_idlt, scope_idlte, scope_idn, scopetype, scopetypen, site, siten, sitegroup, sitegroupn, sitegroupid, sitegroupidn, siteid, siteidn, 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, type, typen, typeid, typeidn. 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 []GetClustersFilter
    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, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, location, locationn, locationid, locationidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, region, regionn, regionid, regionidn, scopeid, scopeidempty, scope_idgt, scope_idgte, scope_idlt, scope_idlte, scope_idn, scopetype, scopetypen, site, siten, sitegroup, sitegroupn, sitegroupid, sitegroupidn, siteid, siteidn, 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, type, typen, typeid, typeidn. 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, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, location, locationn, locationid, locationidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, region, regionn, regionid, regionidn, scopeid, scopeidempty, scope_idgt, scope_idgte, scope_idlt, scope_idlte, scope_idn, scopetype, scopetypen, site, siten, sitegroup, sitegroupn, sitegroupid, sitegroupidn, siteid, siteidn, 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, type, typen, typeid, typeidn. 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<GetClustersFilter>
    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, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, location, locationn, locationid, locationidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, region, regionn, regionid, regionidn, scopeid, scopeidempty, scope_idgt, scope_idgte, scope_idlt, scope_idlte, scope_idn, scopetype, scopetypen, site, siten, sitegroup, sitegroupn, sitegroupid, sitegroupidn, siteid, siteidn, 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, type, typen, typeid, typeidn. 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 GetClustersFilter[]
    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, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, location, locationn, locationid, locationidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, region, regionn, regionid, regionidn, scopeid, scopeidempty, scope_idgt, scope_idgte, scope_idlt, scope_idlte, scope_idn, scopetype, scopetypen, site, siten, sitegroup, sitegroupn, sitegroupid, sitegroupidn, siteid, siteidn, 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, type, typen, typeid, typeidn. 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[GetClustersFilter]
    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, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, location, locationn, locationid, locationidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, region, regionn, regionid, regionidn, scopeid, scopeidempty, scope_idgt, scope_idgte, scope_idlt, scope_idlte, scope_idn, scopetype, scopetypen, site, siten, sitegroup, sitegroupn, sitegroupid, sitegroupidn, siteid, siteidn, 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, type, typen, typeid, typeidn. 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, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, location, locationn, locationid, locationidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, region, regionn, regionid, regionidn, scopeid, scopeidempty, scope_idgt, scope_idgte, scope_idlt, scope_idlte, scope_idn, scopetype, scopetypen, site, siten, sitegroup, sitegroupn, sitegroupid, sitegroupidn, siteid, siteidn, 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, type, typen, typeid, typeidn. 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.

    getClusters Result

    The following output properties are available:

    Clusters List<GetClustersCluster>
    The matching clusters.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetClustersFilter>
    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, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, location, locationn, locationid, locationidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, region, regionn, regionid, regionidn, scopeid, scopeidempty, scope_idgt, scope_idgte, scope_idlt, scope_idlte, scope_idn, scopetype, scopetypen, site, siten, sitegroup, sitegroupn, sitegroupid, sitegroupidn, siteid, siteidn, 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, type, typen, typeid, typeidn. 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.
    Clusters []GetClustersCluster
    The matching clusters.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetClustersFilter
    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, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, location, locationn, locationid, locationidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, region, regionn, regionid, regionidn, scopeid, scopeidempty, scope_idgt, scope_idgte, scope_idlt, scope_idlte, scope_idn, scopetype, scopetypen, site, siten, sitegroup, sitegroupn, sitegroupid, sitegroupidn, siteid, siteidn, 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, type, typen, typeid, typeidn. 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.
    clusters list(object)
    The matching clusters.
    id string
    The provider-assigned unique ID for this managed resource.
    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, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, location, locationn, locationid, locationidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, region, regionn, regionid, regionidn, scopeid, scopeidempty, scope_idgt, scope_idgte, scope_idlt, scope_idlte, scope_idn, scopetype, scopetypen, site, siten, sitegroup, sitegroupn, sitegroupid, sitegroupidn, siteid, siteidn, 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, type, typen, typeid, typeidn. 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.
    clusters List<GetClustersCluster>
    The matching clusters.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetClustersFilter>
    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, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, location, locationn, locationid, locationidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, region, regionn, regionid, regionidn, scopeid, scopeidempty, scope_idgt, scope_idgte, scope_idlt, scope_idlte, scope_idn, scopetype, scopetypen, site, siten, sitegroup, sitegroupn, sitegroupid, sitegroupidn, siteid, siteidn, 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, type, typen, typeid, typeidn. 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.
    clusters GetClustersCluster[]
    The matching clusters.
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetClustersFilter[]
    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, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, location, locationn, locationid, locationidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, region, regionn, regionid, regionidn, scopeid, scopeidempty, scope_idgt, scope_idgte, scope_idlt, scope_idlte, scope_idn, scopetype, scopetypen, site, siten, sitegroup, sitegroupn, sitegroupid, sitegroupidn, siteid, siteidn, 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, type, typen, typeid, typeidn. 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.
    clusters Sequence[GetClustersCluster]
    The matching clusters.
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[GetClustersFilter]
    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, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, location, locationn, locationid, locationidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, region, regionn, regionid, regionidn, scopeid, scopeidempty, scope_idgt, scope_idgte, scope_idlt, scope_idlte, scope_idn, scopetype, scopetypen, site, siten, sitegroup, sitegroupn, sitegroupid, sitegroupidn, siteid, siteidn, 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, type, typen, typeid, typeidn. 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.
    clusters List<Property Map>
    The matching clusters.
    id String
    The provider-assigned unique ID for this managed resource.
    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, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, location, locationn, locationid, locationidn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, q, region, regionn, regionid, regionidn, scopeid, scopeidempty, scope_idgt, scope_idgte, scope_idlt, scope_idlte, scope_idn, scopetype, scopetypen, site, siten, sitegroup, sitegroupn, sitegroupid, sitegroupidn, siteid, siteidn, 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, type, typen, typeid, typeidn. 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

    GetClustersCluster

    ClusterGroupId double
    Id of the cluster group.
    ClusterTypeId double
    Id of the cluster type.
    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
    DeviceCount double
    Number of devices in the cluster.
    Id double
    NetBox id.
    LastUpdated string
    LocationId double
    Id of the location the object is scoped to (scope_type dcim.location).
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    RegionId double
    Id of the region the object is scoped to (scope_type dcim.region).
    ScopeId double
    Id of the scope object (see scope_type).
    ScopeType string
    Content type of the scope. Derived from siteid, locationid, regionid or sitegroupid when one of those is set; set it together with scopeid otherwise. One of: dcim.site, dcim.location, dcim.region, dcim.sitegroup.
    SiteGroupId double
    Id of the site group the object is scoped to (scope_type dcim.sitegroup).
    SiteId double
    Id of the site the object is scoped to (scope*type dcim.site). Conflicts with the other scope aliases and with setting the scope** pair directly.
    Status string
    Operational status. One of: planned, staging, active, decommissioning, offline.
    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
    VirtualMachineCount double
    Number of virtual machines in the cluster.
    ClusterGroupId float64
    Id of the cluster group.
    ClusterTypeId float64
    Id of the cluster type.
    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
    DeviceCount float64
    Number of devices in the cluster.
    Id float64
    NetBox id.
    LastUpdated string
    LocationId float64
    Id of the location the object is scoped to (scope_type dcim.location).
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    RegionId float64
    Id of the region the object is scoped to (scope_type dcim.region).
    ScopeId float64
    Id of the scope object (see scope_type).
    ScopeType string
    Content type of the scope. Derived from siteid, locationid, regionid or sitegroupid when one of those is set; set it together with scopeid otherwise. One of: dcim.site, dcim.location, dcim.region, dcim.sitegroup.
    SiteGroupId float64
    Id of the site group the object is scoped to (scope_type dcim.sitegroup).
    SiteId float64
    Id of the site the object is scoped to (scope*type dcim.site). Conflicts with the other scope aliases and with setting the scope** pair directly.
    Status string
    Operational status. One of: planned, staging, active, decommissioning, offline.
    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
    VirtualMachineCount float64
    Number of virtual machines in the cluster.
    cluster_group_id number
    Id of the cluster group.
    cluster_type_id number
    Id of the cluster type.
    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
    device_count number
    Number of devices in the cluster.
    id number
    NetBox id.
    last_updated string
    location_id number
    Id of the location the object is scoped to (scope_type dcim.location).
    name string
    owner_id number
    Id of the owner the object is assigned to.
    region_id number
    Id of the region the object is scoped to (scope_type dcim.region).
    scope_id number
    Id of the scope object (see scope_type).
    scope_type string
    Content type of the scope. Derived from siteid, locationid, regionid or sitegroupid when one of those is set; set it together with scopeid otherwise. One of: dcim.site, dcim.location, dcim.region, dcim.sitegroup.
    site_group_id number
    Id of the site group the object is scoped to (scope_type dcim.sitegroup).
    site_id number
    Id of the site the object is scoped to (scope*type dcim.site). Conflicts with the other scope aliases and with setting the scope** pair directly.
    status string
    Operational status. One of: planned, staging, active, decommissioning, offline.
    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
    virtual_machine_count number
    Number of virtual machines in the cluster.
    clusterGroupId Double
    Id of the cluster group.
    clusterTypeId Double
    Id of the cluster type.
    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
    deviceCount Double
    Number of devices in the cluster.
    id Double
    NetBox id.
    lastUpdated String
    locationId Double
    Id of the location the object is scoped to (scope_type dcim.location).
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    regionId Double
    Id of the region the object is scoped to (scope_type dcim.region).
    scopeId Double
    Id of the scope object (see scope_type).
    scopeType String
    Content type of the scope. Derived from siteid, locationid, regionid or sitegroupid when one of those is set; set it together with scopeid otherwise. One of: dcim.site, dcim.location, dcim.region, dcim.sitegroup.
    siteGroupId Double
    Id of the site group the object is scoped to (scope_type dcim.sitegroup).
    siteId Double
    Id of the site the object is scoped to (scope*type dcim.site). Conflicts with the other scope aliases and with setting the scope** pair directly.
    status String
    Operational status. One of: planned, staging, active, decommissioning, offline.
    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
    virtualMachineCount Double
    Number of virtual machines in the cluster.
    clusterGroupId number
    Id of the cluster group.
    clusterTypeId number
    Id of the cluster type.
    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
    deviceCount number
    Number of devices in the cluster.
    id number
    NetBox id.
    lastUpdated string
    locationId number
    Id of the location the object is scoped to (scope_type dcim.location).
    name string
    ownerId number
    Id of the owner the object is assigned to.
    regionId number
    Id of the region the object is scoped to (scope_type dcim.region).
    scopeId number
    Id of the scope object (see scope_type).
    scopeType string
    Content type of the scope. Derived from siteid, locationid, regionid or sitegroupid when one of those is set; set it together with scopeid otherwise. One of: dcim.site, dcim.location, dcim.region, dcim.sitegroup.
    siteGroupId number
    Id of the site group the object is scoped to (scope_type dcim.sitegroup).
    siteId number
    Id of the site the object is scoped to (scope*type dcim.site). Conflicts with the other scope aliases and with setting the scope** pair directly.
    status string
    Operational status. One of: planned, staging, active, decommissioning, offline.
    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
    virtualMachineCount number
    Number of virtual machines in the cluster.
    cluster_group_id float
    Id of the cluster group.
    cluster_type_id float
    Id of the cluster type.
    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
    device_count float
    Number of devices in the cluster.
    id float
    NetBox id.
    last_updated str
    location_id float
    Id of the location the object is scoped to (scope_type dcim.location).
    name str
    owner_id float
    Id of the owner the object is assigned to.
    region_id float
    Id of the region the object is scoped to (scope_type dcim.region).
    scope_id float
    Id of the scope object (see scope_type).
    scope_type str
    Content type of the scope. Derived from siteid, locationid, regionid or sitegroupid when one of those is set; set it together with scopeid otherwise. One of: dcim.site, dcim.location, dcim.region, dcim.sitegroup.
    site_group_id float
    Id of the site group the object is scoped to (scope_type dcim.sitegroup).
    site_id float
    Id of the site the object is scoped to (scope*type dcim.site). Conflicts with the other scope aliases and with setting the scope** pair directly.
    status str
    Operational status. One of: planned, staging, active, decommissioning, offline.
    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
    virtual_machine_count float
    Number of virtual machines in the cluster.
    clusterGroupId Number
    Id of the cluster group.
    clusterTypeId Number
    Id of the cluster type.
    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
    deviceCount Number
    Number of devices in the cluster.
    id Number
    NetBox id.
    lastUpdated String
    locationId Number
    Id of the location the object is scoped to (scope_type dcim.location).
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    regionId Number
    Id of the region the object is scoped to (scope_type dcim.region).
    scopeId Number
    Id of the scope object (see scope_type).
    scopeType String
    Content type of the scope. Derived from siteid, locationid, regionid or sitegroupid when one of those is set; set it together with scopeid otherwise. One of: dcim.site, dcim.location, dcim.region, dcim.sitegroup.
    siteGroupId Number
    Id of the site group the object is scoped to (scope_type dcim.sitegroup).
    siteId Number
    Id of the site the object is scoped to (scope*type dcim.site). Conflicts with the other scope aliases and with setting the scope** pair directly.
    status String
    Operational status. One of: planned, staging, active, decommissioning, offline.
    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
    virtualMachineCount Number
    Number of virtual machines in the cluster.

    GetClustersFilter

    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.

    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