1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. IpRange
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

    A range of IP addresses (ipam.iprange).

    From the official documentation:

    This model represents an arbitrary range of individual IPv4 or IPv6 addresses, inclusive of its starting and ending addresses. For instance, the range 192.0.2.10 to 192.0.2.20 has eleven members. (The total member count is available as the size property on an IPRange instance.) Like prefixes and IP addresses, each IP range may optionally be assigned to a VRF and/or tenant.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = new netbox.Vrf("test", {name: "test-vrf"});
    const testIpRange = new netbox.IpRange("test", {
        startAddress: "192.0.2.129/24",
        endAddress: "192.0.2.200/24",
        vrfId: test.vrfId,
        description: "test-description",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.Vrf("test", name="test-vrf")
    test_ip_range = netbox.IpRange("test",
        start_address="192.0.2.129/24",
        end_address="192.0.2.200/24",
        vrf_id=test.vrf_id,
        description="test-description")
    
    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 {
    		test, err := netbox.NewVrf(ctx, "test", &netbox.VrfArgs{
    			Name: pulumi.String("test-vrf"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netbox.NewIpRange(ctx, "test", &netbox.IpRangeArgs{
    			StartAddress: pulumi.String("192.0.2.129/24"),
    			EndAddress:   pulumi.String("192.0.2.200/24"),
    			VrfId:        test.VrfId,
    			Description:  pulumi.String("test-description"),
    		})
    		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 = new Netbox.Vrf("test", new()
        {
            Name = "test-vrf",
        });
    
        var testIpRange = new Netbox.IpRange("test", new()
        {
            StartAddress = "192.0.2.129/24",
            EndAddress = "192.0.2.200/24",
            VrfId = test.VrfId,
            Description = "test-description",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.Vrf;
    import com.pulumi.netbox.VrfArgs;
    import com.pulumi.netbox.IpRange;
    import com.pulumi.netbox.IpRangeArgs;
    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) {
            var test = new Vrf("test", VrfArgs.builder()
                .name("test-vrf")
                .build());
    
            var testIpRange = new IpRange("testIpRange", IpRangeArgs.builder()
                .startAddress("192.0.2.129/24")
                .endAddress("192.0.2.200/24")
                .vrfId(test.vrfId())
                .description("test-description")
                .build());
    
        }
    }
    
    resources:
      test:
        type: netbox:Vrf
        properties:
          name: test-vrf
      testIpRange:
        type: netbox:IpRange
        name: test
        properties:
          startAddress: 192.0.2.129/24
          endAddress: 192.0.2.200/24
          vrfId: ${test.vrfId}
          description: test-description
    
    Example coming soon!
    

    Create IpRange Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IpRange(name: string, args: IpRangeArgs, opts?: CustomResourceOptions);
    @overload
    def IpRange(resource_name: str,
                args: IpRangeArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def IpRange(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                end_address: Optional[str] = None,
                start_address: Optional[str] = None,
                owner_id: Optional[float] = None,
                description: Optional[str] = None,
                mark_populated: Optional[bool] = None,
                mark_utilized: Optional[bool] = None,
                comments: Optional[str] = None,
                role_id: Optional[float] = None,
                custom_fields: Optional[Mapping[str, str]] = None,
                status: Optional[str] = None,
                tags: Optional[Sequence[str]] = None,
                tenant_id: Optional[float] = None,
                vrf_id: Optional[float] = None)
    func NewIpRange(ctx *Context, name string, args IpRangeArgs, opts ...ResourceOption) (*IpRange, error)
    public IpRange(string name, IpRangeArgs args, CustomResourceOptions? opts = null)
    public IpRange(String name, IpRangeArgs args)
    public IpRange(String name, IpRangeArgs args, CustomResourceOptions options)
    
    type: netbox:IpRange
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "netbox_ip_range" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args IpRangeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IpRangeArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IpRangeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IpRangeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IpRangeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var ipRangeResource = new Netbox.IpRange("ipRangeResource", new()
    {
        EndAddress = "string",
        StartAddress = "string",
        OwnerId = 0.0,
        Description = "string",
        MarkPopulated = false,
        MarkUtilized = false,
        Comments = "string",
        RoleId = 0.0,
        CustomFields = 
        {
            { "string", "string" },
        },
        Status = "string",
        Tags = new[]
        {
            "string",
        },
        TenantId = 0.0,
        VrfId = 0.0,
    });
    
    example, err := netbox.NewIpRange(ctx, "ipRangeResource", &netbox.IpRangeArgs{
    	EndAddress:    pulumi.String("string"),
    	StartAddress:  pulumi.String("string"),
    	OwnerId:       pulumi.Float64(0),
    	Description:   pulumi.String("string"),
    	MarkPopulated: pulumi.Bool(false),
    	MarkUtilized:  pulumi.Bool(false),
    	Comments:      pulumi.String("string"),
    	RoleId:        pulumi.Float64(0),
    	CustomFields: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Status: pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TenantId: pulumi.Float64(0),
    	VrfId:    pulumi.Float64(0),
    })
    
    resource "netbox_ip_range" "ipRangeResource" {
      lifecycle {
        create_before_destroy = true
      }
      end_address    = "string"
      start_address  = "string"
      owner_id       = 0
      description    = "string"
      mark_populated = false
      mark_utilized  = false
      comments       = "string"
      role_id        = 0
      custom_fields = {
        "string" = "string"
      }
      status    = "string"
      tags      = ["string"]
      tenant_id = 0
      vrf_id    = 0
    }
    
    var ipRangeResource = new IpRange("ipRangeResource", IpRangeArgs.builder()
        .endAddress("string")
        .startAddress("string")
        .ownerId(0.0)
        .description("string")
        .markPopulated(false)
        .markUtilized(false)
        .comments("string")
        .roleId(0.0)
        .customFields(Map.of("string", "string"))
        .status("string")
        .tags("string")
        .tenantId(0.0)
        .vrfId(0.0)
        .build());
    
    ip_range_resource = netbox.IpRange("ipRangeResource",
        end_address="string",
        start_address="string",
        owner_id=float(0),
        description="string",
        mark_populated=False,
        mark_utilized=False,
        comments="string",
        role_id=float(0),
        custom_fields={
            "string": "string",
        },
        status="string",
        tags=["string"],
        tenant_id=float(0),
        vrf_id=float(0))
    
    const ipRangeResource = new netbox.IpRange("ipRangeResource", {
        endAddress: "string",
        startAddress: "string",
        ownerId: 0,
        description: "string",
        markPopulated: false,
        markUtilized: false,
        comments: "string",
        roleId: 0,
        customFields: {
            string: "string",
        },
        status: "string",
        tags: ["string"],
        tenantId: 0,
        vrfId: 0,
    });
    
    type: netbox:IpRange
    properties:
        comments: string
        customFields:
            string: string
        description: string
        endAddress: string
        markPopulated: false
        markUtilized: false
        ownerId: 0
        roleId: 0
        startAddress: string
        status: string
        tags:
            - string
        tenantId: 0
        vrfId: 0
    

    IpRange Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The IpRange resource accepts the following input properties:

    EndAddress string
    Last address of the range with its mask, e.g. 10.0.0.50/24.
    StartAddress string
    First address of the range with its mask, e.g. 10.0.0.1/24.
    Comments 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
    MarkPopulated bool
    Treat the range as fully populated.
    MarkUtilized bool
    Treat the range as fully utilized.
    OwnerId double
    Id of the owner the object is assigned to.
    RoleId double
    Id of the IPAM role.
    Status string
    Operational status. One of: active, reserved, deprecated.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TenantId double
    Id of the tenant.
    VrfId double
    Id of the VRF.
    EndAddress string
    Last address of the range with its mask, e.g. 10.0.0.50/24.
    StartAddress string
    First address of the range with its mask, e.g. 10.0.0.1/24.
    Comments 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
    MarkPopulated bool
    Treat the range as fully populated.
    MarkUtilized bool
    Treat the range as fully utilized.
    OwnerId float64
    Id of the owner the object is assigned to.
    RoleId float64
    Id of the IPAM role.
    Status string
    Operational status. One of: active, reserved, deprecated.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TenantId float64
    Id of the tenant.
    VrfId float64
    Id of the VRF.
    end_address string
    Last address of the range with its mask, e.g. 10.0.0.50/24.
    start_address string
    First address of the range with its mask, e.g. 10.0.0.1/24.
    comments 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
    mark_populated bool
    Treat the range as fully populated.
    mark_utilized bool
    Treat the range as fully utilized.
    owner_id number
    Id of the owner the object is assigned to.
    role_id number
    Id of the IPAM role.
    status string
    Operational status. One of: active, reserved, deprecated.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenant_id number
    Id of the tenant.
    vrf_id number
    Id of the VRF.
    endAddress String
    Last address of the range with its mask, e.g. 10.0.0.50/24.
    startAddress String
    First address of the range with its mask, e.g. 10.0.0.1/24.
    comments 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
    markPopulated Boolean
    Treat the range as fully populated.
    markUtilized Boolean
    Treat the range as fully utilized.
    ownerId Double
    Id of the owner the object is assigned to.
    roleId Double
    Id of the IPAM role.
    status String
    Operational status. One of: active, reserved, deprecated.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenantId Double
    Id of the tenant.
    vrfId Double
    Id of the VRF.
    endAddress string
    Last address of the range with its mask, e.g. 10.0.0.50/24.
    startAddress string
    First address of the range with its mask, e.g. 10.0.0.1/24.
    comments 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
    markPopulated boolean
    Treat the range as fully populated.
    markUtilized boolean
    Treat the range as fully utilized.
    ownerId number
    Id of the owner the object is assigned to.
    roleId number
    Id of the IPAM role.
    status string
    Operational status. One of: active, reserved, deprecated.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenantId number
    Id of the tenant.
    vrfId number
    Id of the VRF.
    end_address str
    Last address of the range with its mask, e.g. 10.0.0.50/24.
    start_address str
    First address of the range with its mask, e.g. 10.0.0.1/24.
    comments 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
    mark_populated bool
    Treat the range as fully populated.
    mark_utilized bool
    Treat the range as fully utilized.
    owner_id float
    Id of the owner the object is assigned to.
    role_id float
    Id of the IPAM role.
    status str
    Operational status. One of: active, reserved, deprecated.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenant_id float
    Id of the tenant.
    vrf_id float
    Id of the VRF.
    endAddress String
    Last address of the range with its mask, e.g. 10.0.0.50/24.
    startAddress String
    First address of the range with its mask, e.g. 10.0.0.1/24.
    comments 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
    markPopulated Boolean
    Treat the range as fully populated.
    markUtilized Boolean
    Treat the range as fully utilized.
    ownerId Number
    Id of the owner the object is assigned to.
    roleId Number
    Id of the IPAM role.
    status String
    Operational status. One of: active, reserved, deprecated.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenantId Number
    Id of the tenant.
    vrfId Number
    Id of the VRF.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IpRange resource produces the following output properties:

    Created string
    Family double
    Address family: 4 or 6.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpRangeId double
    NetBox id.
    LastUpdated string
    Size double
    Number of addresses in the range.
    TagsAlls List<string>
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    Created string
    Family float64
    Address family: 4 or 6.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpRangeId float64
    NetBox id.
    LastUpdated string
    Size float64
    Number of addresses in the range.
    TagsAlls []string
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    created string
    family number
    Address family: 4 or 6.
    id string
    The provider-assigned unique ID for this managed resource.
    ip_range_id number
    NetBox id.
    last_updated string
    size number
    Number of addresses in the range.
    tags_alls list(string)
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    created String
    family Double
    Address family: 4 or 6.
    id String
    The provider-assigned unique ID for this managed resource.
    ipRangeId Double
    NetBox id.
    lastUpdated String
    size Double
    Number of addresses in the range.
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String
    created string
    family number
    Address family: 4 or 6.
    id string
    The provider-assigned unique ID for this managed resource.
    ipRangeId number
    NetBox id.
    lastUpdated string
    size number
    Number of addresses in the range.
    tagsAlls string[]
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    created str
    family float
    Address family: 4 or 6.
    id str
    The provider-assigned unique ID for this managed resource.
    ip_range_id float
    NetBox id.
    last_updated str
    size float
    Number of addresses in the range.
    tags_alls Sequence[str]
    Slugs of all tags on the object, including the provider's default_tags.
    url str
    created String
    family Number
    Address family: 4 or 6.
    id String
    The provider-assigned unique ID for this managed resource.
    ipRangeId Number
    NetBox id.
    lastUpdated String
    size Number
    Number of addresses in the range.
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String

    Look up Existing IpRange Resource

    Get an existing IpRange resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IpRangeState, opts?: CustomResourceOptions): IpRange
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            comments: Optional[str] = None,
            created: Optional[str] = None,
            custom_fields: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            end_address: Optional[str] = None,
            family: Optional[float] = None,
            ip_range_id: Optional[float] = None,
            last_updated: Optional[str] = None,
            mark_populated: Optional[bool] = None,
            mark_utilized: Optional[bool] = None,
            owner_id: Optional[float] = None,
            role_id: Optional[float] = None,
            size: Optional[float] = None,
            start_address: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            tags_alls: Optional[Sequence[str]] = None,
            tenant_id: Optional[float] = None,
            url: Optional[str] = None,
            vrf_id: Optional[float] = None) -> IpRange
    func GetIpRange(ctx *Context, name string, id IDInput, state *IpRangeState, opts ...ResourceOption) (*IpRange, error)
    public static IpRange Get(string name, Input<string> id, IpRangeState? state, CustomResourceOptions? opts = null)
    public static IpRange get(String name, Output<String> id, IpRangeState state, CustomResourceOptions options)
    resources:  _:    type: netbox:IpRange    get:      id: ${id}
    import {
      to = netbox_ip_range.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    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
    EndAddress string
    Last address of the range with its mask, e.g. 10.0.0.50/24.
    Family double
    Address family: 4 or 6.
    IpRangeId double
    NetBox id.
    LastUpdated string
    MarkPopulated bool
    Treat the range as fully populated.
    MarkUtilized bool
    Treat the range as fully utilized.
    OwnerId double
    Id of the owner the object is assigned to.
    RoleId double
    Id of the IPAM role.
    Size double
    Number of addresses in the range.
    StartAddress string
    First address of the range with its mask, e.g. 10.0.0.1/24.
    Status string
    Operational status. One of: active, reserved, deprecated.
    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
    VrfId double
    Id of the VRF.
    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
    EndAddress string
    Last address of the range with its mask, e.g. 10.0.0.50/24.
    Family float64
    Address family: 4 or 6.
    IpRangeId float64
    NetBox id.
    LastUpdated string
    MarkPopulated bool
    Treat the range as fully populated.
    MarkUtilized bool
    Treat the range as fully utilized.
    OwnerId float64
    Id of the owner the object is assigned to.
    RoleId float64
    Id of the IPAM role.
    Size float64
    Number of addresses in the range.
    StartAddress string
    First address of the range with its mask, e.g. 10.0.0.1/24.
    Status string
    Operational status. One of: active, reserved, deprecated.
    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
    VrfId float64
    Id of the VRF.
    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
    end_address string
    Last address of the range with its mask, e.g. 10.0.0.50/24.
    family number
    Address family: 4 or 6.
    ip_range_id number
    NetBox id.
    last_updated string
    mark_populated bool
    Treat the range as fully populated.
    mark_utilized bool
    Treat the range as fully utilized.
    owner_id number
    Id of the owner the object is assigned to.
    role_id number
    Id of the IPAM role.
    size number
    Number of addresses in the range.
    start_address string
    First address of the range with its mask, e.g. 10.0.0.1/24.
    status string
    Operational status. One of: active, reserved, deprecated.
    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
    vrf_id number
    Id of the VRF.
    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
    endAddress String
    Last address of the range with its mask, e.g. 10.0.0.50/24.
    family Double
    Address family: 4 or 6.
    ipRangeId Double
    NetBox id.
    lastUpdated String
    markPopulated Boolean
    Treat the range as fully populated.
    markUtilized Boolean
    Treat the range as fully utilized.
    ownerId Double
    Id of the owner the object is assigned to.
    roleId Double
    Id of the IPAM role.
    size Double
    Number of addresses in the range.
    startAddress String
    First address of the range with its mask, e.g. 10.0.0.1/24.
    status String
    Operational status. One of: active, reserved, deprecated.
    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
    vrfId Double
    Id of the VRF.
    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
    endAddress string
    Last address of the range with its mask, e.g. 10.0.0.50/24.
    family number
    Address family: 4 or 6.
    ipRangeId number
    NetBox id.
    lastUpdated string
    markPopulated boolean
    Treat the range as fully populated.
    markUtilized boolean
    Treat the range as fully utilized.
    ownerId number
    Id of the owner the object is assigned to.
    roleId number
    Id of the IPAM role.
    size number
    Number of addresses in the range.
    startAddress string
    First address of the range with its mask, e.g. 10.0.0.1/24.
    status string
    Operational status. One of: active, reserved, deprecated.
    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
    vrfId number
    Id of the VRF.
    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
    end_address str
    Last address of the range with its mask, e.g. 10.0.0.50/24.
    family float
    Address family: 4 or 6.
    ip_range_id float
    NetBox id.
    last_updated str
    mark_populated bool
    Treat the range as fully populated.
    mark_utilized bool
    Treat the range as fully utilized.
    owner_id float
    Id of the owner the object is assigned to.
    role_id float
    Id of the IPAM role.
    size float
    Number of addresses in the range.
    start_address str
    First address of the range with its mask, e.g. 10.0.0.1/24.
    status str
    Operational status. One of: active, reserved, deprecated.
    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
    vrf_id float
    Id of the VRF.
    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
    endAddress String
    Last address of the range with its mask, e.g. 10.0.0.50/24.
    family Number
    Address family: 4 or 6.
    ipRangeId Number
    NetBox id.
    lastUpdated String
    markPopulated Boolean
    Treat the range as fully populated.
    markUtilized Boolean
    Treat the range as fully utilized.
    ownerId Number
    Id of the owner the object is assigned to.
    roleId Number
    Id of the IPAM role.
    size Number
    Number of addresses in the range.
    startAddress String
    First address of the range with its mask, e.g. 10.0.0.1/24.
    status String
    Operational status. One of: active, reserved, deprecated.
    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
    vrfId Number
    Id of the VRF.

    Import

    In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:

    terraform

    import {

    to = netbox_ip_range.test

    id = “123”

    }

    The pulumi import command can be used, for example:

    $ pulumi import netbox:index/ipRange:IpRange test 123
    

    To learn more about importing existing cloud resources, see Importing resources.

    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