published on Wednesday, Nov 4, 2026 by e-breuninger
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 = netbox.getIpRange({
id: 123,
});
import pulumi
import pulumi_netbox as netbox
test = netbox.get_ip_range(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.LookupIpRange(ctx, &netbox.LookupIpRangeArgs{
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.GetIpRange.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.GetIpRangeArgs;
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.getIpRange(GetIpRangeArgs.builder()
.id(123)
.build());
}
}
variables:
test:
fn::invoke:
function: netbox:getIpRange
arguments:
id: 123
Example coming soon!
Using getIpRange
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 getIpRange(args: GetIpRangeArgs, opts?: InvokeOptions): Promise<GetIpRangeResult>
function getIpRangeOutput(args: GetIpRangeOutputArgs, opts?: InvokeOutputOptions): Output<GetIpRangeResult>def get_ip_range(custom_field_filters: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
end_address: Optional[str] = None,
id: Optional[float] = None,
mark_utilized: Optional[bool] = None,
owner_id: Optional[float] = None,
range_contains: Optional[str] = None,
role_id: Optional[float] = None,
role_slug: Optional[str] = None,
start_address: Optional[str] = None,
status: Optional[str] = None,
tag_slug: Optional[str] = None,
tenant_id: Optional[float] = None,
tenant_slug: Optional[str] = None,
vrf_id: Optional[float] = None,
vrf_rd: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIpRangeResult
def get_ip_range_output(custom_field_filters: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
description: pulumi.Input[Optional[str]] = None,
end_address: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[float]] = None,
mark_utilized: pulumi.Input[Optional[bool]] = None,
owner_id: pulumi.Input[Optional[float]] = None,
range_contains: pulumi.Input[Optional[str]] = None,
role_id: pulumi.Input[Optional[float]] = None,
role_slug: pulumi.Input[Optional[str]] = None,
start_address: pulumi.Input[Optional[str]] = None,
status: pulumi.Input[Optional[str]] = None,
tag_slug: pulumi.Input[Optional[str]] = None,
tenant_id: pulumi.Input[Optional[float]] = None,
tenant_slug: pulumi.Input[Optional[str]] = None,
vrf_id: pulumi.Input[Optional[float]] = None,
vrf_rd: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetIpRangeResult]func LookupIpRange(ctx *Context, args *LookupIpRangeArgs, opts ...InvokeOption) (*LookupIpRangeResult, error)
func LookupIpRangeOutput(ctx *Context, args *LookupIpRangeOutputArgs, opts ...InvokeOption) LookupIpRangeResultOutput> Note: This function is named LookupIpRange in the Go SDK.
public static class GetIpRange
{
public static Task<GetIpRangeResult> InvokeAsync(GetIpRangeArgs args, InvokeOptions? opts = null)
public static Output<GetIpRangeResult> Invoke(GetIpRangeInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetIpRangeResult> Invoke(GetIpRangeInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetIpRangeResult> getIpRange(GetIpRangeArgs args, InvokeOptions options)
public static Output<GetIpRangeResult> getIpRange(GetIpRangeArgs args, InvokeOptions options)
public static Output<GetIpRangeResult> getIpRange(GetIpRangeArgs args, InvokeOutputOptions options)
fn::invoke:
function: netbox:index/getIpRange:getIpRange
arguments:
# arguments dictionarydata "netbox_get_ip_range" "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
- End
Address string - Last address of the range with its mask, e.g. 10.0.0.50/24.
- Id double
- NetBox id.
- Mark
Utilized bool - Treat the range as fully utilized.
- Owner
Id double - Id of the owner the object is assigned to.
- Range
Contains string - Ranges containing this IP or prefix.
- Role
Id double - Id of the IPAM role.
- Role
Slug string - Slug of the role.
- 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
- Slug of a tag the object carries.
- Tenant
Id double - Id of the tenant.
- Tenant
Slug string - Slug of the tenant.
- Vrf
Id double - Id of the VRF.
- Vrf
Rd string - Route distinguisher of the VRF.
- 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
- End
Address string - Last address of the range with its mask, e.g. 10.0.0.50/24.
- Id float64
- NetBox id.
- Mark
Utilized bool - Treat the range as fully utilized.
- Owner
Id float64 - Id of the owner the object is assigned to.
- Range
Contains string - Ranges containing this IP or prefix.
- Role
Id float64 - Id of the IPAM role.
- Role
Slug string - Slug of the role.
- 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
- Slug of a tag the object carries.
- Tenant
Id float64 - Id of the tenant.
- Tenant
Slug string - Slug of the tenant.
- Vrf
Id float64 - Id of the VRF.
- Vrf
Rd string - Route distinguisher of the VRF.
- 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
- end_
address string - Last address of the range with its mask, e.g. 10.0.0.50/24.
- id number
- NetBox id.
- mark_
utilized bool - Treat the range as fully utilized.
- owner_
id number - Id of the owner the object is assigned to.
- range_
contains string - Ranges containing this IP or prefix.
- role_
id number - Id of the IPAM role.
- role_
slug string - Slug of the role.
- 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.
- tag_
slug string - Slug of a tag the object carries.
- tenant_
id number - Id of the tenant.
- tenant_
slug string - Slug of the tenant.
- vrf_
id number - Id of the VRF.
- vrf_
rd string - Route distinguisher of the VRF.
- 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
- end
Address String - Last address of the range with its mask, e.g. 10.0.0.50/24.
- id Double
- NetBox id.
- mark
Utilized Boolean - Treat the range as fully utilized.
- owner
Id Double - Id of the owner the object is assigned to.
- range
Contains String - Ranges containing this IP or prefix.
- role
Id Double - Id of the IPAM role.
- role
Slug String - Slug of the role.
- 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
- Slug of a tag the object carries.
- tenant
Id Double - Id of the tenant.
- tenant
Slug String - Slug of the tenant.
- vrf
Id Double - Id of the VRF.
- vrf
Rd String - Route distinguisher of the VRF.
- 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
- end
Address string - Last address of the range with its mask, e.g. 10.0.0.50/24.
- id number
- NetBox id.
- mark
Utilized boolean - Treat the range as fully utilized.
- owner
Id number - Id of the owner the object is assigned to.
- range
Contains string - Ranges containing this IP or prefix.
- role
Id number - Id of the IPAM role.
- role
Slug string - Slug of the role.
- 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
- Slug of a tag the object carries.
- tenant
Id number - Id of the tenant.
- tenant
Slug string - Slug of the tenant.
- vrf
Id number - Id of the VRF.
- vrf
Rd string - Route distinguisher of the VRF.
- 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
- end_
address str - Last address of the range with its mask, e.g. 10.0.0.50/24.
- id float
- NetBox id.
- mark_
utilized bool - Treat the range as fully utilized.
- owner_
id float - Id of the owner the object is assigned to.
- range_
contains str - Ranges containing this IP or prefix.
- role_
id float - Id of the IPAM role.
- role_
slug str - Slug of the role.
- 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.
- tag_
slug str - Slug of a tag the object carries.
- tenant_
id float - Id of the tenant.
- tenant_
slug str - Slug of the tenant.
- vrf_
id float - Id of the VRF.
- vrf_
rd str - Route distinguisher of the VRF.
- 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
- end
Address String - Last address of the range with its mask, e.g. 10.0.0.50/24.
- id Number
- NetBox id.
- mark
Utilized Boolean - Treat the range as fully utilized.
- owner
Id Number - Id of the owner the object is assigned to.
- range
Contains String - Ranges containing this IP or prefix.
- role
Id Number - Id of the IPAM role.
- role
Slug String - Slug of the role.
- 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
- Slug of a tag the object carries.
- tenant
Id Number - Id of the tenant.
- tenant
Slug String - Slug of the tenant.
- vrf
Id Number - Id of the VRF.
- vrf
Rd String - Route distinguisher of the VRF.
getIpRange 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).
- 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.
- Id double
- 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.
- 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.
- Range
Contains string - Ranges containing this IP or prefix.
- Role
Slug string - Slug of the role.
- string
- Slug of a tag the object carries.
- Tenant
Slug string - Slug of the tenant.
- Vrf
Rd string - Route distinguisher 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.
- Id float64
- 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.
- 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.
- Range
Contains string - Ranges containing this IP or prefix.
- Role
Slug string - Slug of the role.
- string
- Slug of a tag the object carries.
- Tenant
Slug string - Slug of the tenant.
- Vrf
Rd string - Route distinguisher 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.
- 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.
- 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.
- 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.
- range_
contains string - Ranges containing this IP or prefix.
- role_
slug string - Slug of the role.
- tag_
slug string - Slug of a tag the object carries.
- tenant_
slug string - Slug of the tenant.
- vrf_
rd string - Route distinguisher 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.
- id Double
- 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.
- 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.
- range
Contains String - Ranges containing this IP or prefix.
- role
Slug String - Slug of the role.
- String
- Slug of a tag the object carries.
- tenant
Slug String - Slug of the tenant.
- vrf
Rd String - Route distinguisher 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.
- id number
- 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.
- 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.
- range
Contains string - Ranges containing this IP or prefix.
- role
Slug string - Slug of the role.
- string
- Slug of a tag the object carries.
- tenant
Slug string - Slug of the tenant.
- vrf
Rd string - Route distinguisher 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.
- 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.
- 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.
- 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.
- range_
contains str - Ranges containing this IP or prefix.
- role_
slug str - Slug of the role.
- tag_
slug str - Slug of a tag the object carries.
- tenant_
slug str - Slug of the tenant.
- vrf_
rd str - Route distinguisher 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.
- id Number
- 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.
- 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.
- range
Contains String - Ranges containing this IP or prefix.
- role
Slug String - Slug of the role.
- String
- Slug of a tag the object carries.
- tenant
Slug String - Slug of the tenant.
- vrf
Rd String - Route distinguisher of the VRF.
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