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 aggregate objects matching the given filters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = netbox.getAggregates({
limit: 10,
});
import pulumi
import pulumi_netbox as netbox
test = netbox.get_aggregates(limit=10)
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.GetAggregates(ctx, &netbox.GetAggregatesArgs{
Limit: pulumi.Float64Ref(10),
}, 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.GetAggregates.Invoke(new()
{
Limit = 10,
});
});
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.GetAggregatesArgs;
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.getAggregates(GetAggregatesArgs.builder()
.limit(10)
.build());
}
}
variables:
test:
fn::invoke:
function: netbox:getAggregates
arguments:
limit: 10
Example coming soon!
Using getAggregates
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 getAggregates(args: GetAggregatesArgs, opts?: InvokeOptions): Promise<GetAggregatesResult>
function getAggregatesOutput(args: GetAggregatesOutputArgs, opts?: InvokeOutputOptions): Output<GetAggregatesResult>def get_aggregates(filters: Optional[Sequence[GetAggregatesFilter]] = None,
limit: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetAggregatesResult
def get_aggregates_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetAggregatesFilterArgs]]]] = None,
limit: pulumi.Input[Optional[float]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetAggregatesResult]func GetAggregates(ctx *Context, args *GetAggregatesArgs, opts ...InvokeOption) (*GetAggregatesResult, error)
func GetAggregatesOutput(ctx *Context, args *GetAggregatesOutputArgs, opts ...InvokeOption) GetAggregatesResultOutput> Note: This function is named GetAggregates in the Go SDK.
public static class GetAggregates
{
public static Task<GetAggregatesResult> InvokeAsync(GetAggregatesArgs args, InvokeOptions? opts = null)
public static Output<GetAggregatesResult> Invoke(GetAggregatesInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetAggregatesResult> Invoke(GetAggregatesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetAggregatesResult> getAggregates(GetAggregatesArgs args, InvokeOptions options)
public static Output<GetAggregatesResult> getAggregates(GetAggregatesArgs args, InvokeOptions options)
public static Output<GetAggregatesResult> getAggregates(GetAggregatesArgs args, InvokeOutputOptions options)
fn::invoke:
function: netbox:index/getAggregates:getAggregates
arguments:
# arguments dictionarydata "netbox_get_aggregates" "name" {
# arguments
}The following arguments are supported:
- Filters
List<Get
Aggregates Filter> - Query filters, sent as API list parameters. Supported names: description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, id, idempty, idgt, idgte, idlt, idlte, idn, ownerid, owneridn, prefix, ririd, riridn, tag, tagany, tagn, tenantid, tenantid_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- Limit double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- Filters
[]Get
Aggregates Filter - Query filters, sent as API list parameters. Supported names: description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, id, idempty, idgt, idgte, idlt, idlte, idn, ownerid, owneridn, prefix, ririd, riridn, tag, tagany, tagn, tenantid, tenantid_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- Limit float64
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters list(object)
- Query filters, sent as API list parameters. Supported names: description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, id, idempty, idgt, idgte, idlt, idlte, idn, ownerid, owneridn, prefix, ririd, riridn, tag, tagany, tagn, tenantid, tenantid_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters
List<Get
Aggregates Filter> - Query filters, sent as API list parameters. Supported names: description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, id, idempty, idgt, idgte, idlt, idlte, idn, ownerid, owneridn, prefix, ririd, riridn, tag, tagany, tagn, tenantid, tenantid_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit Double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters
Get
Aggregates Filter[] - Query filters, sent as API list parameters. Supported names: description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, id, idempty, idgt, idgte, idlt, idlte, idn, ownerid, owneridn, prefix, ririd, riridn, tag, tagany, tagn, tenantid, tenantid_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters
Sequence[Get
Aggregates Filter] - Query filters, sent as API list parameters. Supported names: description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, id, idempty, idgt, idgte, idlt, idlte, idn, ownerid, owneridn, prefix, ririd, riridn, tag, tagany, tagn, tenantid, tenantid_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit float
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters List<Property Map>
- Query filters, sent as API list parameters. Supported names: description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, id, idempty, idgt, idgte, idlt, idlte, idn, ownerid, owneridn, prefix, ririd, riridn, tag, tagany, tagn, tenantid, tenantid_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit Number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
getAggregates Result
The following output properties are available:
- Aggregates
List<Get
Aggregates Aggregate> - The matching aggregates.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Aggregates Filter> - Query filters, sent as API list parameters. Supported names: description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, id, idempty, idgt, idgte, idlt, idlte, idn, ownerid, owneridn, prefix, ririd, riridn, tag, tagany, tagn, tenantid, tenantid_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- Limit double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- Aggregates
[]Get
Aggregates Aggregate - The matching aggregates.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Aggregates Filter - Query filters, sent as API list parameters. Supported names: description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, id, idempty, idgt, idgte, idlt, idlte, idn, ownerid, owneridn, prefix, ririd, riridn, tag, tagany, tagn, tenantid, tenantid_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- Limit float64
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- aggregates list(object)
- The matching aggregates.
- id string
- The provider-assigned unique ID for this managed resource.
- filters list(object)
- Query filters, sent as API list parameters. Supported names: description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, id, idempty, idgt, idgte, idlt, idlte, idn, ownerid, owneridn, prefix, ririd, riridn, tag, tagany, tagn, tenantid, tenantid_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- aggregates
List<Get
Aggregates Aggregate> - The matching aggregates.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Aggregates Filter> - Query filters, sent as API list parameters. Supported names: description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, id, idempty, idgt, idgte, idlt, idlte, idn, ownerid, owneridn, prefix, ririd, riridn, tag, tagany, tagn, tenantid, tenantid_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit Double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- aggregates
Get
Aggregates Aggregate[] - The matching aggregates.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Aggregates Filter[] - Query filters, sent as API list parameters. Supported names: description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, id, idempty, idgt, idgte, idlt, idlte, idn, ownerid, owneridn, prefix, ririd, riridn, tag, tagany, tagn, tenantid, tenantid_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- aggregates
Sequence[Get
Aggregates Aggregate] - The matching aggregates.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[Get
Aggregates Filter] - Query filters, sent as API list parameters. Supported names: description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, id, idempty, idgt, idgte, idlt, idlte, idn, ownerid, owneridn, prefix, ririd, riridn, tag, tagany, tagn, tenantid, tenantid_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit float
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- aggregates List<Property Map>
- The matching aggregates.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- Query filters, sent as API list parameters. Supported names: description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, id, idempty, idgt, idgte, idlt, idlte, idn, ownerid, owneridn, prefix, ririd, riridn, tag, tagany, tagn, tenantid, tenantid_*n. Repeating a name sends that parameter once per value. Custom fields filter as cf*\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
- limit Number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
Supporting Types
GetAggregatesAggregate
- 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).
- Date
Added string - Date the aggregate was added, as YYYY-MM-DD. Keeps its value when removed from the configuration.
- Description string
- Family double
- Address family: 4 or 6.
- Id double
- NetBox id.
- Last
Updated string - Owner
Id double - Id of the owner the object is assigned to.
- Prefix string
- The aggregate in CIDR notation, e.g. 10.0.0.0/8.
- Rir
Id double - Id of the RIR that allocated the aggregate.
- 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.
- Url string
- 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).
- Date
Added string - Date the aggregate was added, as YYYY-MM-DD. Keeps its value when removed from the configuration.
- Description string
- Family float64
- Address family: 4 or 6.
- Id float64
- NetBox id.
- Last
Updated string - Owner
Id float64 - Id of the owner the object is assigned to.
- Prefix string
- The aggregate in CIDR notation, e.g. 10.0.0.0/8.
- Rir
Id float64 - Id of the RIR that allocated the aggregate.
- []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.
- 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).
- date_
added string - Date the aggregate was added, as YYYY-MM-DD. Keeps its value when removed from the configuration.
- description string
- family number
- Address family: 4 or 6.
- id number
- NetBox id.
- last_
updated string - owner_
id number - Id of the owner the object is assigned to.
- prefix string
- The aggregate in CIDR notation, e.g. 10.0.0.0/8.
- rir_
id number - Id of the RIR that allocated the aggregate.
- 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.
- url string
- 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).
- date
Added String - Date the aggregate was added, as YYYY-MM-DD. Keeps its value when removed from the configuration.
- description String
- family Double
- Address family: 4 or 6.
- id Double
- NetBox id.
- last
Updated String - owner
Id Double - Id of the owner the object is assigned to.
- prefix String
- The aggregate in CIDR notation, e.g. 10.0.0.0/8.
- rir
Id Double - Id of the RIR that allocated the aggregate.
- 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.
- url String
- 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).
- date
Added string - Date the aggregate was added, as YYYY-MM-DD. Keeps its value when removed from the configuration.
- description string
- family number
- Address family: 4 or 6.
- id number
- NetBox id.
- last
Updated string - owner
Id number - Id of the owner the object is assigned to.
- prefix string
- The aggregate in CIDR notation, e.g. 10.0.0.0/8.
- rir
Id number - Id of the RIR that allocated the aggregate.
- 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.
- 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).
- date_
added str - Date the aggregate was added, as YYYY-MM-DD. Keeps its value when removed from the configuration.
- description str
- family float
- Address family: 4 or 6.
- id float
- NetBox id.
- last_
updated str - owner_
id float - Id of the owner the object is assigned to.
- prefix str
- The aggregate in CIDR notation, e.g. 10.0.0.0/8.
- rir_
id float - Id of the RIR that allocated the aggregate.
- 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.
- url str
- 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).
- date
Added String - Date the aggregate was added, as YYYY-MM-DD. Keeps its value when removed from the configuration.
- description String
- family Number
- Address family: 4 or 6.
- id Number
- NetBox id.
- last
Updated String - owner
Id Number - Id of the owner the object is assigned to.
- prefix String
- The aggregate in CIDR notation, e.g. 10.0.0.0/8.
- rir
Id Number - Id of the RIR that allocated the aggregate.
- 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.
- url String
GetAggregatesFilter
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