published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger
A NetBox ASN range (ipam.asnrange): a contiguous block of AS numbers under one RIR.
From the official documentation:
Ranges can be defined to group AS numbers numerically and to facilitate their automatic provisioning. Each range must be assigned to a RIR.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = new netbox.Rir("test", {name: "test-rir"});
const testAsnRange = new netbox.AsnRange("test", {
name: "test-asn-range",
slug: "test-asn-range",
rirId: test.rirId,
start: 64512,
end: 64521,
description: "test-description",
});
import pulumi
import pulumi_netbox as netbox
test = netbox.Rir("test", name="test-rir")
test_asn_range = netbox.AsnRange("test",
name="test-asn-range",
slug="test-asn-range",
rir_id=test.rir_id,
start=64512,
end=64521,
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.NewRir(ctx, "test", &netbox.RirArgs{
Name: pulumi.String("test-rir"),
})
if err != nil {
return err
}
_, err = netbox.NewAsnRange(ctx, "test", &netbox.AsnRangeArgs{
Name: pulumi.String("test-asn-range"),
Slug: pulumi.String("test-asn-range"),
RirId: test.RirId,
Start: pulumi.Float64(64512),
End: pulumi.Float64(64521),
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.Rir("test", new()
{
Name = "test-rir",
});
var testAsnRange = new Netbox.AsnRange("test", new()
{
Name = "test-asn-range",
Slug = "test-asn-range",
RirId = test.RirId,
Start = 64512,
End = 64521,
Description = "test-description",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.netbox.Rir;
import com.pulumi.netbox.RirArgs;
import com.pulumi.netbox.AsnRange;
import com.pulumi.netbox.AsnRangeArgs;
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 Rir("test", RirArgs.builder()
.name("test-rir")
.build());
var testAsnRange = new AsnRange("testAsnRange", AsnRangeArgs.builder()
.name("test-asn-range")
.slug("test-asn-range")
.rirId(test.rirId())
.start(64512.0)
.end(64521.0)
.description("test-description")
.build());
}
}
resources:
test:
type: netbox:Rir
properties:
name: test-rir
testAsnRange:
type: netbox:AsnRange
name: test
properties:
name: test-asn-range
slug: test-asn-range
rirId: ${test.rirId}
start: 64512
end: 64521
description: test-description
Example coming soon!
Create AsnRange Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AsnRange(name: string, args: AsnRangeArgs, opts?: CustomResourceOptions);@overload
def AsnRange(resource_name: str,
args: AsnRangeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AsnRange(resource_name: str,
opts: Optional[ResourceOptions] = None,
end: Optional[float] = None,
rir_id: Optional[float] = None,
start: Optional[float] = None,
comments: Optional[str] = None,
custom_fields: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
name: Optional[str] = None,
owner_id: Optional[float] = None,
slug: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
tenant_id: Optional[float] = None)func NewAsnRange(ctx *Context, name string, args AsnRangeArgs, opts ...ResourceOption) (*AsnRange, error)public AsnRange(string name, AsnRangeArgs args, CustomResourceOptions? opts = null)
public AsnRange(String name, AsnRangeArgs args)
public AsnRange(String name, AsnRangeArgs args, CustomResourceOptions options)
type: netbox:AsnRange
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "netbox_asn_range" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AsnRangeArgs
- 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 AsnRangeArgs
- 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 AsnRangeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AsnRangeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AsnRangeArgs
- 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 asnRangeResource = new Netbox.AsnRange("asnRangeResource", new()
{
End = 0.0,
RirId = 0.0,
Start = 0.0,
Comments = "string",
CustomFields =
{
{ "string", "string" },
},
Description = "string",
Name = "string",
OwnerId = 0.0,
Slug = "string",
Tags = new[]
{
"string",
},
TenantId = 0.0,
});
example, err := netbox.NewAsnRange(ctx, "asnRangeResource", &netbox.AsnRangeArgs{
End: pulumi.Float64(0),
RirId: pulumi.Float64(0),
Start: pulumi.Float64(0),
Comments: pulumi.String("string"),
CustomFields: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
OwnerId: pulumi.Float64(0),
Slug: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TenantId: pulumi.Float64(0),
})
resource "netbox_asn_range" "asnRangeResource" {
lifecycle {
create_before_destroy = true
}
end = 0
rir_id = 0
start = 0
comments = "string"
custom_fields = {
"string" = "string"
}
description = "string"
name = "string"
owner_id = 0
slug = "string"
tags = ["string"]
tenant_id = 0
}
var asnRangeResource = new AsnRange("asnRangeResource", AsnRangeArgs.builder()
.end(0.0)
.rirId(0.0)
.start(0.0)
.comments("string")
.customFields(Map.of("string", "string"))
.description("string")
.name("string")
.ownerId(0.0)
.slug("string")
.tags("string")
.tenantId(0.0)
.build());
asn_range_resource = netbox.AsnRange("asnRangeResource",
end=float(0),
rir_id=float(0),
start=float(0),
comments="string",
custom_fields={
"string": "string",
},
description="string",
name="string",
owner_id=float(0),
slug="string",
tags=["string"],
tenant_id=float(0))
const asnRangeResource = new netbox.AsnRange("asnRangeResource", {
end: 0,
rirId: 0,
start: 0,
comments: "string",
customFields: {
string: "string",
},
description: "string",
name: "string",
ownerId: 0,
slug: "string",
tags: ["string"],
tenantId: 0,
});
type: netbox:AsnRange
properties:
comments: string
customFields:
string: string
description: string
end: 0
name: string
ownerId: 0
rirId: 0
slug: string
start: 0
tags:
- string
tenantId: 0
AsnRange 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 AsnRange resource accepts the following input properties:
- End double
- Last AS number in the range. Must be a whole number.
- Rir
Id double - Id of the RIR the range is allocated by.
- Start double
- First AS number in the range. Must be a whole number.
- 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
- Name string
- Owner
Id double - Id of the owner the object is assigned to.
- Slug string
- URL-friendly unique shorthand; derived from name when not set.
- 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 the range belongs to.
- End float64
- Last AS number in the range. Must be a whole number.
- Rir
Id float64 - Id of the RIR the range is allocated by.
- Start float64
- First AS number in the range. Must be a whole number.
- 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
- Name string
- Owner
Id float64 - Id of the owner the object is assigned to.
- Slug string
- URL-friendly unique shorthand; derived from name when not set.
- []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 the range belongs to.
- end number
- Last AS number in the range. Must be a whole number.
- rir_
id number - Id of the RIR the range is allocated by.
- start number
- First AS number in the range. Must be a whole number.
- 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
- name string
- owner_
id number - Id of the owner the object is assigned to.
- slug string
- URL-friendly unique shorthand; derived from name when not set.
- 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 the range belongs to.
- end Double
- Last AS number in the range. Must be a whole number.
- rir
Id Double - Id of the RIR the range is allocated by.
- start Double
- First AS number in the range. Must be a whole number.
- 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
- name String
- owner
Id Double - Id of the owner the object is assigned to.
- slug String
- URL-friendly unique shorthand; derived from name when not set.
- 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 the range belongs to.
- end number
- Last AS number in the range. Must be a whole number.
- rir
Id number - Id of the RIR the range is allocated by.
- start number
- First AS number in the range. Must be a whole number.
- 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
- name string
- owner
Id number - Id of the owner the object is assigned to.
- slug string
- URL-friendly unique shorthand; derived from name when not set.
- 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 the range belongs to.
- end float
- Last AS number in the range. Must be a whole number.
- rir_
id float - Id of the RIR the range is allocated by.
- start float
- First AS number in the range. Must be a whole number.
- 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
- name str
- owner_
id float - Id of the owner the object is assigned to.
- slug str
- URL-friendly unique shorthand; derived from name when not set.
- 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 the range belongs to.
- end Number
- Last AS number in the range. Must be a whole number.
- rir
Id Number - Id of the RIR the range is allocated by.
- start Number
- First AS number in the range. Must be a whole number.
- 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
- name String
- owner
Id Number - Id of the owner the object is assigned to.
- slug String
- URL-friendly unique shorthand; derived from name when not set.
- 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 the range belongs to.
Outputs
All input properties are implicitly available as output properties. Additionally, the AsnRange resource produces the following output properties:
- Asn
Count double - Number of ASNs in the range.
- Asn
Range doubleId - NetBox id.
- Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - List<string>
- Slugs of all tags on the object, including the provider's default_tags.
- Url string
- Asn
Count float64 - Number of ASNs in the range.
- Asn
Range float64Id - NetBox id.
- Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - []string
- Slugs of all tags on the object, including the provider's default_tags.
- Url string
- asn_
count number - Number of ASNs in the range.
- asn_
range_ numberid - NetBox id.
- created string
- id string
- The provider-assigned unique ID for this managed resource.
- last_
updated string - list(string)
- Slugs of all tags on the object, including the provider's default_tags.
- url string
- asn
Count Double - Number of ASNs in the range.
- asn
Range DoubleId - NetBox id.
- created String
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- url String
- asn
Count number - Number of ASNs in the range.
- asn
Range numberId - NetBox id.
- created string
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated string - string[]
- Slugs of all tags on the object, including the provider's default_tags.
- url string
- asn_
count float - Number of ASNs in the range.
- asn_
range_ floatid - NetBox id.
- created str
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated str - Sequence[str]
- Slugs of all tags on the object, including the provider's default_tags.
- url str
- asn
Count Number - Number of ASNs in the range.
- asn
Range NumberId - NetBox id.
- created String
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- url String
Look up Existing AsnRange Resource
Get an existing AsnRange 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?: AsnRangeState, opts?: CustomResourceOptions): AsnRange@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
asn_count: Optional[float] = None,
asn_range_id: Optional[float] = None,
comments: Optional[str] = None,
created: Optional[str] = None,
custom_fields: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
end: Optional[float] = None,
last_updated: Optional[str] = None,
name: Optional[str] = None,
owner_id: Optional[float] = None,
rir_id: Optional[float] = None,
slug: Optional[str] = None,
start: Optional[float] = None,
tags: Optional[Sequence[str]] = None,
tags_alls: Optional[Sequence[str]] = None,
tenant_id: Optional[float] = None,
url: Optional[str] = None) -> AsnRangefunc GetAsnRange(ctx *Context, name string, id IDInput, state *AsnRangeState, opts ...ResourceOption) (*AsnRange, error)public static AsnRange Get(string name, Input<string> id, AsnRangeState? state, CustomResourceOptions? opts = null)public static AsnRange get(String name, Output<String> id, AsnRangeState state, CustomResourceOptions options)resources: _: type: netbox:AsnRange get: id: ${id}import {
to = netbox_asn_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.
- Asn
Count double - Number of ASNs in the range.
- Asn
Range doubleId - NetBox id.
- 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 double
- Last AS number in the range. Must be a whole number.
- Last
Updated string - Name string
- Owner
Id double - Id of the owner the object is assigned to.
- Rir
Id double - Id of the RIR the range is allocated by.
- Slug string
- URL-friendly unique shorthand; derived from name when not set.
- Start double
- First AS number in the range. Must be a whole number.
- 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 the range belongs to.
- Url string
- Asn
Count float64 - Number of ASNs in the range.
- Asn
Range float64Id - NetBox id.
- 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 float64
- Last AS number in the range. Must be a whole number.
- Last
Updated string - Name string
- Owner
Id float64 - Id of the owner the object is assigned to.
- Rir
Id float64 - Id of the RIR the range is allocated by.
- Slug string
- URL-friendly unique shorthand; derived from name when not set.
- Start float64
- First AS number in the range. Must be a whole number.
- []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 the range belongs to.
- Url string
- asn_
count number - Number of ASNs in the range.
- asn_
range_ numberid - NetBox id.
- 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 number
- Last AS number in the range. Must be a whole number.
- last_
updated string - name string
- owner_
id number - Id of the owner the object is assigned to.
- rir_
id number - Id of the RIR the range is allocated by.
- slug string
- URL-friendly unique shorthand; derived from name when not set.
- start number
- First AS number in the range. Must be a whole number.
- 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 the range belongs to.
- url string
- asn
Count Double - Number of ASNs in the range.
- asn
Range DoubleId - NetBox id.
- 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 Double
- Last AS number in the range. Must be a whole number.
- last
Updated String - name String
- owner
Id Double - Id of the owner the object is assigned to.
- rir
Id Double - Id of the RIR the range is allocated by.
- slug String
- URL-friendly unique shorthand; derived from name when not set.
- start Double
- First AS number in the range. Must be a whole number.
- 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 the range belongs to.
- url String
- asn
Count number - Number of ASNs in the range.
- asn
Range numberId - NetBox id.
- 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 number
- Last AS number in the range. Must be a whole number.
- last
Updated string - name string
- owner
Id number - Id of the owner the object is assigned to.
- rir
Id number - Id of the RIR the range is allocated by.
- slug string
- URL-friendly unique shorthand; derived from name when not set.
- start number
- First AS number in the range. Must be a whole number.
- 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 the range belongs to.
- url string
- asn_
count float - Number of ASNs in the range.
- asn_
range_ floatid - NetBox id.
- 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 float
- Last AS number in the range. Must be a whole number.
- last_
updated str - name str
- owner_
id float - Id of the owner the object is assigned to.
- rir_
id float - Id of the RIR the range is allocated by.
- slug str
- URL-friendly unique shorthand; derived from name when not set.
- start float
- First AS number in the range. Must be a whole number.
- 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 the range belongs to.
- url str
- asn
Count Number - Number of ASNs in the range.
- asn
Range NumberId - NetBox id.
- 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 Number
- Last AS number in the range. Must be a whole number.
- last
Updated String - name String
- owner
Id Number - Id of the owner the object is assigned to.
- rir
Id Number - Id of the RIR the range is allocated by.
- slug String
- URL-friendly unique shorthand; derived from name when not set.
- start Number
- First AS number in the range. Must be a whole number.
- 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 the range belongs to.
- url String
Import
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = netbox_asn_range.test
id = “123”
}
The pulumi import command can be used, for example:
$ pulumi import netbox:index/asnRange:AsnRange 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 Wednesday, Nov 4, 2026 by e-breuninger