1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getAggregate
Viewing docs for netbox 6.0.0
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

    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 dictionary
    data "netbox_get_aggregate" "name" {
        # arguments
    }

    The following arguments are supported:

    CustomFieldFilters Dictionary<string, string>
    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.
    OwnerId double
    Id of the owner the object is assigned to.
    Prefix string
    The aggregate in CIDR notation, e.g. 10.0.0.0/8.
    RirId double
    Id of the RIR that allocated the aggregate.
    TagSlug string
    Slug of a tag the object carries.
    TenantId double
    Id of the tenant.
    CustomFieldFilters map[string]string
    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.
    OwnerId float64
    Id of the owner the object is assigned to.
    Prefix string
    The aggregate in CIDR notation, e.g. 10.0.0.0/8.
    RirId float64
    Id of the RIR that allocated the aggregate.
    TagSlug string
    Slug of a tag the object carries.
    TenantId float64
    Id of the tenant.
    custom_field_filters map(string)
    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.
    customFieldFilters Map<String,String>
    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.
    ownerId Double
    Id of the owner the object is assigned to.
    prefix String
    The aggregate in CIDR notation, e.g. 10.0.0.0/8.
    rirId Double
    Id of the RIR that allocated the aggregate.
    tagSlug String
    Slug of a tag the object carries.
    tenantId Double
    Id of the tenant.
    customFieldFilters {[key: string]: string}
    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.
    ownerId number
    Id of the owner the object is assigned to.
    prefix string
    The aggregate in CIDR notation, e.g. 10.0.0.0/8.
    rirId number
    Id of the RIR that allocated the aggregate.
    tagSlug string
    Slug of a tag the object carries.
    tenantId number
    Id of the tenant.
    custom_field_filters Mapping[str, str]
    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.
    customFieldFilters Map<String>
    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.
    ownerId Number
    Id of the owner the object is assigned to.
    prefix String
    The aggregate in CIDR notation, e.g. 10.0.0.0/8.
    rirId Number
    Id of the RIR that allocated the aggregate.
    tagSlug String
    Slug of a tag the object carries.
    tenantId Number
    Id of the tenant.

    getAggregate Result

    The following output properties are available:

    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).
    DateAdded 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.
    LastUpdated string
    OwnerId double
    Id of the owner the object is assigned to.
    Prefix string
    The aggregate in CIDR notation, e.g. 10.0.0.0/8.
    RirId double
    Id of the RIR that allocated the aggregate.
    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
    CustomFieldFilters Dictionary<string, string>
    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.
    TagSlug string
    Slug of a tag the object carries.
    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).
    DateAdded 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.
    LastUpdated string
    OwnerId float64
    Id of the owner the object is assigned to.
    Prefix string
    The aggregate in CIDR notation, e.g. 10.0.0.0/8.
    RirId float64
    Id of the RIR that allocated the aggregate.
    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
    CustomFieldFilters map[string]string
    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.
    TagSlug 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.
    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
    custom_field_filters map(string)
    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
    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).
    dateAdded 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.
    lastUpdated String
    ownerId Double
    Id of the owner the object is assigned to.
    prefix String
    The aggregate in CIDR notation, e.g. 10.0.0.0/8.
    rirId Double
    Id of the RIR that allocated the aggregate.
    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
    customFieldFilters Map<String,String>
    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.
    tagSlug String
    Slug of a tag the object carries.
    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).
    dateAdded 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.
    lastUpdated string
    ownerId number
    Id of the owner the object is assigned to.
    prefix string
    The aggregate in CIDR notation, e.g. 10.0.0.0/8.
    rirId number
    Id of the RIR that allocated the aggregate.
    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
    customFieldFilters {[key: string]: string}
    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.
    tagSlug 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.
    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
    custom_field_filters Mapping[str, str]
    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
    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).
    dateAdded 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.
    lastUpdated String
    ownerId Number
    Id of the owner the object is assigned to.
    prefix String
    The aggregate in CIDR notation, e.g. 10.0.0.0/8.
    rirId Number
    Id of the RIR that allocated the aggregate.
    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
    customFieldFilters Map<String>
    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.
    tagSlug 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 netbox Terraform Provider.
    netbox
    Viewing docs for netbox 6.0.0
    published on Wednesday, Nov 4, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial