published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger
An aggregate (ipam.aggregate): a top-level block a RIR allocated.
From the official documentation:
NetBox allows us to specify the portions of IP space that are interesting to us by defining aggregates. Typically, an aggregate will correspond to either an allocation of public (globally routable) IP space granted by a regional authority, or a private (internally-routable) designation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = netbox.getAggregate({
id: 123,
});
import pulumi
import pulumi_netbox as netbox
test = netbox.get_aggregate(id=123)
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.LookupAggregate(ctx, &netbox.LookupAggregateArgs{
Id: pulumi.Float64Ref(123),
}, 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.GetAggregate.Invoke(new()
{
Id = 123,
});
});
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.GetAggregateArgs;
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.getAggregate(GetAggregateArgs.builder()
.id(123)
.build());
}
}
variables:
test:
fn::invoke:
function: netbox:getAggregate
arguments:
id: 123
Example coming soon!
Using getAggregate
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 getAggregate(args: GetAggregateArgs, opts?: InvokeOptions): Promise<GetAggregateResult>
function getAggregateOutput(args: GetAggregateOutputArgs, opts?: InvokeOutputOptions): Output<GetAggregateResult>def get_aggregate(custom_field_filters: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
id: Optional[float] = None,
owner_id: Optional[float] = None,
prefix: Optional[str] = None,
rir_id: Optional[float] = None,
tag_slug: Optional[str] = None,
tenant_id: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetAggregateResult
def get_aggregate_output(custom_field_filters: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
description: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[float]] = None,
owner_id: pulumi.Input[Optional[float]] = None,
prefix: pulumi.Input[Optional[str]] = None,
rir_id: pulumi.Input[Optional[float]] = None,
tag_slug: pulumi.Input[Optional[str]] = None,
tenant_id: pulumi.Input[Optional[float]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetAggregateResult]func LookupAggregate(ctx *Context, args *LookupAggregateArgs, opts ...InvokeOption) (*LookupAggregateResult, error)
func LookupAggregateOutput(ctx *Context, args *LookupAggregateOutputArgs, opts ...InvokeOption) LookupAggregateResultOutput> Note: This function is named LookupAggregate in the Go SDK.
public static class GetAggregate
{
public static Task<GetAggregateResult> InvokeAsync(GetAggregateArgs args, InvokeOptions? opts = null)
public static Output<GetAggregateResult> Invoke(GetAggregateInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetAggregateResult> Invoke(GetAggregateInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetAggregateResult> getAggregate(GetAggregateArgs args, InvokeOptions options)
public static Output<GetAggregateResult> getAggregate(GetAggregateArgs args, InvokeOptions options)
public static Output<GetAggregateResult> getAggregate(GetAggregateArgs args, InvokeOutputOptions options)
fn::invoke:
function: netbox:index/getAggregate:getAggregate
arguments:
# arguments dictionarydata "netbox_get_aggregate" "name" {
# arguments
}The following arguments are supported:
- Custom
Field Dictionary<string, string>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- Description string
- Id double
- NetBox id.
- 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.
- string
- Slug of a tag the object carries.
- Tenant
Id double - Id of the tenant.
- Custom
Field map[string]stringFilters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- Description string
- Id float64
- NetBox id.
- 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
- Slug of a tag the object carries.
- Tenant
Id float64 - Id of the tenant.
- custom_
field_ map(string)filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- description string
- id number
- NetBox id.
- 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.
- tag_
slug string - Slug of a tag the object carries.
- tenant_
id number - Id of the tenant.
- custom
Field Map<String,String>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- description String
- id Double
- NetBox id.
- 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.
- String
- Slug of a tag the object carries.
- tenant
Id Double - Id of the tenant.
- custom
Field {[key: string]: string}Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- description string
- id number
- NetBox id.
- 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
- Slug of a tag the object carries.
- tenant
Id number - Id of the tenant.
- custom_
field_ Mapping[str, str]filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- description str
- id float
- NetBox id.
- 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.
- tag_
slug str - Slug of a tag the object carries.
- tenant_
id float - Id of the tenant.
- custom
Field Map<String>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- description String
- id Number
- NetBox id.
- 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
- Slug of a tag the object carries.
- tenant
Id Number - Id of the tenant.
getAggregate Result
The following output properties are available:
- 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
- Custom
Field Dictionary<string, string>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- string
- Slug of a tag the object carries.
- 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
- Custom
Field map[string]stringFilters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- string
- Slug of a tag the object carries.
- 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
- custom_
field_ map(string)filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- tag_
slug string - Slug of a tag the object carries.
- 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
- custom
Field Map<String,String>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- String
- Slug of a tag the object carries.
- 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
- custom
Field {[key: string]: string}Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- string
- Slug of a tag the object carries.
- 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
- custom_
field_ Mapping[str, str]filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- tag_
slug str - Slug of a tag the object carries.
- 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
- custom
Field Map<String>Filters - Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
- String
- Slug of a tag the object carries.
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
published on Wednesday, Nov 4, 2026 by e-breuninger