1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. Rir
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger

    A NetBox RIR (ipam.rir).

    From the official documentation:

    Regional Internet registries are responsible for the allocation of globally-routable address space. The five RIRs are ARIN, RIPE, APNIC, LACNIC, and AFRINIC. However, some address space has been set aside for internal use, such as defined in RFCs 1918 and 6598. NetBox considers these RFCs as a sort of RIR as well; that is, an authority which “owns” certain address space. There also exist lower-tier registries which serve particular geographic areas.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = new netbox.Rir("test", {
        name: "test-rir",
        isPrivate: true,
        description: "test-description",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.Rir("test",
        name="test-rir",
        is_private=True,
        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 {
    		_, err := netbox.NewRir(ctx, "test", &netbox.RirArgs{
    			Name:        pulumi.String("test-rir"),
    			IsPrivate:   pulumi.Bool(true),
    			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",
            IsPrivate = true,
            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 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")
                .isPrivate(true)
                .description("test-description")
                .build());
    
        }
    }
    
    resources:
      test:
        type: netbox:Rir
        properties:
          name: test-rir
          isPrivate: true
          description: test-description
    
    Example coming soon!
    

    Create Rir Resource

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

    Constructor syntax

    new Rir(name: string, args?: RirArgs, opts?: CustomResourceOptions);
    @overload
    def Rir(resource_name: str,
            args: Optional[RirArgs] = None,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Rir(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            comments: Optional[str] = None,
            custom_fields: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            is_private: Optional[bool] = None,
            name: Optional[str] = None,
            owner_id: Optional[float] = None,
            slug: Optional[str] = None,
            tags: Optional[Sequence[str]] = None)
    func NewRir(ctx *Context, name string, args *RirArgs, opts ...ResourceOption) (*Rir, error)
    public Rir(string name, RirArgs? args = null, CustomResourceOptions? opts = null)
    public Rir(String name, RirArgs args)
    public Rir(String name, RirArgs args, CustomResourceOptions options)
    
    type: netbox:Rir
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "netbox_rir" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args RirArgs
    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 RirArgs
    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 RirArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RirArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RirArgs
    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 rirResource = new Netbox.Rir("rirResource", new()
    {
        Comments = "string",
        CustomFields = 
        {
            { "string", "string" },
        },
        Description = "string",
        IsPrivate = false,
        Name = "string",
        OwnerId = 0.0,
        Slug = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := netbox.NewRir(ctx, "rirResource", &netbox.RirArgs{
    	Comments: pulumi.String("string"),
    	CustomFields: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	IsPrivate:   pulumi.Bool(false),
    	Name:        pulumi.String("string"),
    	OwnerId:     pulumi.Float64(0),
    	Slug:        pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "netbox_rir" "rirResource" {
      lifecycle {
        create_before_destroy = true
      }
      comments = "string"
      custom_fields = {
        "string" = "string"
      }
      description = "string"
      is_private  = false
      name        = "string"
      owner_id    = 0
      slug        = "string"
      tags        = ["string"]
    }
    
    var rirResource = new Rir("rirResource", RirArgs.builder()
        .comments("string")
        .customFields(Map.of("string", "string"))
        .description("string")
        .isPrivate(false)
        .name("string")
        .ownerId(0.0)
        .slug("string")
        .tags("string")
        .build());
    
    rir_resource = netbox.Rir("rirResource",
        comments="string",
        custom_fields={
            "string": "string",
        },
        description="string",
        is_private=False,
        name="string",
        owner_id=float(0),
        slug="string",
        tags=["string"])
    
    const rirResource = new netbox.Rir("rirResource", {
        comments: "string",
        customFields: {
            string: "string",
        },
        description: "string",
        isPrivate: false,
        name: "string",
        ownerId: 0,
        slug: "string",
        tags: ["string"],
    });
    
    type: netbox:Rir
    properties:
        comments: string
        customFields:
            string: string
        description: string
        isPrivate: false
        name: string
        ownerId: 0
        slug: string
        tags:
            - string
    

    Rir 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 Rir resource accepts the following input properties:

    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
    IsPrivate bool
    IP space managed by this RIR is private.
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    Slug string
    URL-friendly unique shorthand; derived from name when not set.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    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
    IsPrivate bool
    IP space managed by this RIR is private.
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    Slug string
    URL-friendly unique shorthand; derived from name when not set.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    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
    is_private bool
    IP space managed by this RIR is private.
    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.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    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
    isPrivate Boolean
    IP space managed by this RIR is private.
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    slug String
    URL-friendly unique shorthand; derived from name when not set.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    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
    isPrivate boolean
    IP space managed by this RIR is private.
    name string
    ownerId number
    Id of the owner the object is assigned to.
    slug string
    URL-friendly unique shorthand; derived from name when not set.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    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
    is_private bool
    IP space managed by this RIR is private.
    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.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    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
    isPrivate Boolean
    IP space managed by this RIR is private.
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    slug String
    URL-friendly unique shorthand; derived from name when not set.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).

    Outputs

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

    AggregateCount double
    Number of aggregates under the RIR.
    Created string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    RirId double
    NetBox id.
    TagsAlls List<string>
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    AggregateCount float64
    Number of aggregates under the RIR.
    Created string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    RirId float64
    NetBox id.
    TagsAlls []string
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    aggregate_count number
    Number of aggregates under the RIR.
    created string
    id string
    The provider-assigned unique ID for this managed resource.
    last_updated string
    rir_id number
    NetBox id.
    tags_alls list(string)
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    aggregateCount Double
    Number of aggregates under the RIR.
    created String
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String
    rirId Double
    NetBox id.
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String
    aggregateCount number
    Number of aggregates under the RIR.
    created string
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdated string
    rirId number
    NetBox id.
    tagsAlls string[]
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    aggregate_count float
    Number of aggregates under the RIR.
    created str
    id str
    The provider-assigned unique ID for this managed resource.
    last_updated str
    rir_id float
    NetBox id.
    tags_alls Sequence[str]
    Slugs of all tags on the object, including the provider's default_tags.
    url str
    aggregateCount Number
    Number of aggregates under the RIR.
    created String
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String
    rirId Number
    NetBox id.
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String

    Look up Existing Rir Resource

    Get an existing Rir 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?: RirState, opts?: CustomResourceOptions): Rir
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            aggregate_count: Optional[float] = None,
            comments: Optional[str] = None,
            created: Optional[str] = None,
            custom_fields: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            is_private: Optional[bool] = None,
            last_updated: Optional[str] = None,
            name: Optional[str] = None,
            owner_id: Optional[float] = None,
            rir_id: Optional[float] = None,
            slug: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            tags_alls: Optional[Sequence[str]] = None,
            url: Optional[str] = None) -> Rir
    func GetRir(ctx *Context, name string, id IDInput, state *RirState, opts ...ResourceOption) (*Rir, error)
    public static Rir Get(string name, Input<string> id, RirState? state, CustomResourceOptions? opts = null)
    public static Rir get(String name, Output<String> id, RirState state, CustomResourceOptions options)
    resources:  existingRir:    type: netbox:Rir    get:      id: ${id}
    import {
      to = netbox_rir.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 RirState
    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 RirState
    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 RirState
    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 RirState
    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.
    The following state arguments are supported:
    AggregateCount double
    Number of aggregates under the RIR.
    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
    IsPrivate bool
    IP space managed by this RIR is private.
    LastUpdated string
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    RirId double
    NetBox id.
    Slug string
    URL-friendly unique shorthand; derived from name when not set.
    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.
    Url string
    AggregateCount float64
    Number of aggregates under the RIR.
    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
    IsPrivate bool
    IP space managed by this RIR is private.
    LastUpdated string
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    RirId float64
    NetBox id.
    Slug string
    URL-friendly unique shorthand; derived from name when not set.
    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.
    Url string
    aggregate_count number
    Number of aggregates under the RIR.
    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
    is_private bool
    IP space managed by this RIR is private.
    last_updated string
    name string
    owner_id number
    Id of the owner the object is assigned to.
    rir_id number
    NetBox id.
    slug string
    URL-friendly unique shorthand; derived from name when not set.
    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.
    url string
    aggregateCount Double
    Number of aggregates under the RIR.
    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
    isPrivate Boolean
    IP space managed by this RIR is private.
    lastUpdated String
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    rirId Double
    NetBox id.
    slug String
    URL-friendly unique shorthand; derived from name when not set.
    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.
    url String
    aggregateCount number
    Number of aggregates under the RIR.
    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
    isPrivate boolean
    IP space managed by this RIR is private.
    lastUpdated string
    name string
    ownerId number
    Id of the owner the object is assigned to.
    rirId number
    NetBox id.
    slug string
    URL-friendly unique shorthand; derived from name when not set.
    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.
    url string
    aggregate_count float
    Number of aggregates under the RIR.
    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
    is_private bool
    IP space managed by this RIR is private.
    last_updated str
    name str
    owner_id float
    Id of the owner the object is assigned to.
    rir_id float
    NetBox id.
    slug str
    URL-friendly unique shorthand; derived from name when not set.
    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.
    url str
    aggregateCount Number
    Number of aggregates under the RIR.
    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
    isPrivate Boolean
    IP space managed by this RIR is private.
    lastUpdated String
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    rirId Number
    NetBox id.
    slug String
    URL-friendly unique shorthand; derived from name when not set.
    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.
    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_rir.test

    id = “123”

    }

    The pulumi import command can be used, for example:

    $ pulumi import netbox:index/rir:Rir 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.1
    published on Monday, Nov 16, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial