published on Monday, Nov 16, 2026 by e-breuninger
published on Monday, Nov 16, 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:
- 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 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
- Mark
Populated bool - Treat the range as fully populated.
- Mark
Utilized bool - Treat the range as fully utilized.
- Owner
Id double - Id of the owner the object is assigned to.
- Role
Id double - Id of the IPAM role.
- Status string
- Operational status. One of: active, reserved, deprecated.
- List<string>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Tenant
Id double - Id of the tenant.
- Vrf
Id double - 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]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 float64 - Id of the owner the object is assigned to.
- Role
Id float64 - Id of the IPAM role.
- Status string
- Operational status. One of: active, reserved, deprecated.
- []string
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Tenant
Id float64 - Id of the tenant.
- Vrf
Id 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.
- 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.
- 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,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 Boolean - Treat the range as fully populated.
- mark
Utilized Boolean - Treat the range as fully utilized.
- owner
Id Double - Id of the owner the object is assigned to.
- role
Id Double - Id of the IPAM role.
- status String
- Operational status. One of: active, reserved, deprecated.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- tenant
Id Double - Id of the tenant.
- vrf
Id Double - 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 {[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
- mark
Populated boolean - Treat the range as fully populated.
- mark
Utilized boolean - 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.
- 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.
- 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.
- 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.
- 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 Boolean - Treat the range as fully populated.
- mark
Utilized Boolean - 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.
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the IpRange resource produces the following output properties:
- created string
- family number
- Address family: 4 or 6.
- id string
- The provider-assigned unique ID for this managed resource.
- ip_
range_ numberid - NetBox id.
- last_
updated string - size number
- Number of addresses in the range.
- list(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_ floatid - NetBox id.
- last_
updated str - size float
- Number of addresses in the range.
- Sequence[str]
- Slugs of all tags on the object, including the provider's default_tags.
- url str
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) -> IpRangefunc 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: existingIpRange: type: netbox:IpRange get: id: ${id}import {
to = netbox_ip_range.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state IpRangeState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state IpRangeState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state IpRangeState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state IpRangeState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- 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).
- Description string
- End
Address string - Last address of the range with its mask, e.g. 10.0.0.50/24.
- Family double
- Address family: 4 or 6.
- Ip
Range doubleId - 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 double - Id of the owner the object is assigned to.
- Role
Id double - Id of the IPAM role.
- Size double
- 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.
- 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
- Vrf
Id double - Id of the VRF.
- 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).
- Description string
- End
Address string - Last address of the range with its mask, e.g. 10.0.0.50/24.
- Family float64
- Address family: 4 or 6.
- Ip
Range float64Id - 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 float64 - Id of the owner the object is assigned to.
- Role
Id float64 - Id of the IPAM role.
- Size float64
- 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.
- []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
- Vrf
Id 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_ numberid - 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.
- 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
- vrf_
id number - Id of the VRF.
- 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).
- description String
- end
Address String - Last address of the range with its mask, e.g. 10.0.0.50/24.
- family Double
- Address family: 4 or 6.
- ip
Range DoubleId - NetBox id.
- last
Updated String - mark
Populated Boolean - Treat the range as fully populated.
- mark
Utilized Boolean - Treat the range as fully utilized.
- owner
Id Double - Id of the owner the object is assigned to.
- role
Id Double - Id of the IPAM role.
- size Double
- 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.
- 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
- vrf
Id Double - Id of the VRF.
- 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).
- 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 numberId - NetBox id.
- last
Updated string - mark
Populated boolean - Treat the range as fully populated.
- mark
Utilized boolean - 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.
- 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
- vrf
Id 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_ floatid - 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.
- 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
- vrf_
id float - 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 NumberId - NetBox id.
- last
Updated String - mark
Populated Boolean - Treat the range as fully populated.
- mark
Utilized Boolean - 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.
- 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
- vrf
Id 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
netboxTerraform Provider.
published on Monday, Nov 16, 2026 by e-breuninger