1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. RackReservation
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 reservation of rack units (dcim.rackreservation).

    From the official documentation:

    Users can reserve specific units within a rack for future use. An arbitrary set of units within a rack can be associated with a single reservation, but reservations cannot span multiple racks. A description is required for each reservation, reservations may optionally be associated with a specific tenant.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = new netbox.Site("test", {name: "test-site"});
    const testRack = new netbox.Rack("test", {
        name: "test-rack",
        siteId: test.siteId,
    });
    const testUser = new netbox.User("test", {
        username: "test-user",
        password: "test-password",
    });
    const testTenant = new netbox.Tenant("test", {name: "test-tenant"});
    const testRackReservation = new netbox.RackReservation("test", {
        rackId: testRack.rackId,
        units: [
            1,
            2,
            3,
        ],
        userId: testUser.userId,
        tenantId: testTenant.tenantId,
        description: "test-description",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.Site("test", name="test-site")
    test_rack = netbox.Rack("test",
        name="test-rack",
        site_id=test.site_id)
    test_user = netbox.User("test",
        username="test-user",
        password="test-password")
    test_tenant = netbox.Tenant("test", name="test-tenant")
    test_rack_reservation = netbox.RackReservation("test",
        rack_id=test_rack.rack_id,
        units=[
            1,
            2,
            3,
        ],
        user_id=test_user.user_id,
        tenant_id=test_tenant.tenant_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.NewSite(ctx, "test", &netbox.SiteArgs{
    			Name: pulumi.String("test-site"),
    		})
    		if err != nil {
    			return err
    		}
    		testRack, err := netbox.NewRack(ctx, "test", &netbox.RackArgs{
    			Name:   pulumi.String("test-rack"),
    			SiteId: test.SiteId,
    		})
    		if err != nil {
    			return err
    		}
    		testUser, err := netbox.NewUser(ctx, "test", &netbox.UserArgs{
    			Username: pulumi.String("test-user"),
    			Password: pulumi.String("test-password"),
    		})
    		if err != nil {
    			return err
    		}
    		testTenant, err := netbox.NewTenant(ctx, "test", &netbox.TenantArgs{
    			Name: pulumi.String("test-tenant"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netbox.NewRackReservation(ctx, "test", &netbox.RackReservationArgs{
    			RackId: testRack.RackId,
    			Units: pulumi.Float64Array{
    				pulumi.Float64(1),
    				pulumi.Float64(2),
    				pulumi.Float64(3),
    			},
    			UserId:      testUser.UserId,
    			TenantId:    testTenant.TenantId,
    			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.Site("test", new()
        {
            Name = "test-site",
        });
    
        var testRack = new Netbox.Rack("test", new()
        {
            Name = "test-rack",
            SiteId = test.SiteId,
        });
    
        var testUser = new Netbox.User("test", new()
        {
            Username = "test-user",
            Password = "test-password",
        });
    
        var testTenant = new Netbox.Tenant("test", new()
        {
            Name = "test-tenant",
        });
    
        var testRackReservation = new Netbox.RackReservation("test", new()
        {
            RackId = testRack.RackId,
            Units = new[]
            {
                1,
                2,
                3,
            },
            UserId = testUser.UserId,
            TenantId = testTenant.TenantId,
            Description = "test-description",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.Site;
    import com.pulumi.netbox.SiteArgs;
    import com.pulumi.netbox.Rack;
    import com.pulumi.netbox.RackArgs;
    import com.pulumi.netbox.User;
    import com.pulumi.netbox.UserArgs;
    import com.pulumi.netbox.Tenant;
    import com.pulumi.netbox.TenantArgs;
    import com.pulumi.netbox.RackReservation;
    import com.pulumi.netbox.RackReservationArgs;
    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 Site("test", SiteArgs.builder()
                .name("test-site")
                .build());
    
            var testRack = new Rack("testRack", RackArgs.builder()
                .name("test-rack")
                .siteId(test.siteId())
                .build());
    
            var testUser = new User("testUser", UserArgs.builder()
                .username("test-user")
                .password("test-password")
                .build());
    
            var testTenant = new Tenant("testTenant", TenantArgs.builder()
                .name("test-tenant")
                .build());
    
            var testRackReservation = new RackReservation("testRackReservation", RackReservationArgs.builder()
                .rackId(testRack.rackId())
                .units(            
                    1.0,
                    2.0,
                    3.0)
                .userId(testUser.userId())
                .tenantId(testTenant.tenantId())
                .description("test-description")
                .build());
    
        }
    }
    
    resources:
      test:
        type: netbox:Site
        properties:
          name: test-site
      testRack:
        type: netbox:Rack
        name: test
        properties:
          name: test-rack
          siteId: ${test.siteId}
      testUser:
        type: netbox:User
        name: test
        properties:
          username: test-user
          password: test-password
      testTenant:
        type: netbox:Tenant
        name: test
        properties:
          name: test-tenant
      testRackReservation:
        type: netbox:RackReservation
        name: test
        properties:
          rackId: ${testRack.rackId}
          units:
            - 1
            - 2
            - 3
          userId: ${testUser.userId}
          tenantId: ${testTenant.tenantId}
          description: test-description
    
    Example coming soon!
    

    Create RackReservation Resource

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

    Constructor syntax

    new RackReservation(name: string, args: RackReservationArgs, opts?: CustomResourceOptions);
    @overload
    def RackReservation(resource_name: str,
                        args: RackReservationArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def RackReservation(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        description: Optional[str] = None,
                        rack_id: Optional[float] = None,
                        units: Optional[Sequence[float]] = None,
                        user_id: Optional[float] = None,
                        comments: Optional[str] = None,
                        custom_fields: Optional[Mapping[str, str]] = None,
                        owner_id: Optional[float] = None,
                        status: Optional[str] = None,
                        tags: Optional[Sequence[str]] = None,
                        tenant_id: Optional[float] = None)
    func NewRackReservation(ctx *Context, name string, args RackReservationArgs, opts ...ResourceOption) (*RackReservation, error)
    public RackReservation(string name, RackReservationArgs args, CustomResourceOptions? opts = null)
    public RackReservation(String name, RackReservationArgs args)
    public RackReservation(String name, RackReservationArgs args, CustomResourceOptions options)
    
    type: netbox:RackReservation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "netbox_rack_reservation" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args RackReservationArgs
    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 RackReservationArgs
    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 RackReservationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RackReservationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RackReservationArgs
    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 rackReservationResource = new Netbox.RackReservation("rackReservationResource", new()
    {
        Description = "string",
        RackId = 0.0,
        Units = new[]
        {
            0.0,
        },
        UserId = 0.0,
        Comments = "string",
        CustomFields = 
        {
            { "string", "string" },
        },
        OwnerId = 0.0,
        Status = "string",
        Tags = new[]
        {
            "string",
        },
        TenantId = 0.0,
    });
    
    example, err := netbox.NewRackReservation(ctx, "rackReservationResource", &netbox.RackReservationArgs{
    	Description: pulumi.String("string"),
    	RackId:      pulumi.Float64(0),
    	Units: pulumi.Float64Array{
    		pulumi.Float64(0),
    	},
    	UserId:   pulumi.Float64(0),
    	Comments: pulumi.String("string"),
    	CustomFields: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	OwnerId: pulumi.Float64(0),
    	Status:  pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TenantId: pulumi.Float64(0),
    })
    
    resource "netbox_rack_reservation" "rackReservationResource" {
      lifecycle {
        create_before_destroy = true
      }
      description = "string"
      rack_id     = 0
      units       = [0]
      user_id     = 0
      comments    = "string"
      custom_fields = {
        "string" = "string"
      }
      owner_id  = 0
      status    = "string"
      tags      = ["string"]
      tenant_id = 0
    }
    
    var rackReservationResource = new RackReservation("rackReservationResource", RackReservationArgs.builder()
        .description("string")
        .rackId(0.0)
        .units(0.0)
        .userId(0.0)
        .comments("string")
        .customFields(Map.of("string", "string"))
        .ownerId(0.0)
        .status("string")
        .tags("string")
        .tenantId(0.0)
        .build());
    
    rack_reservation_resource = netbox.RackReservation("rackReservationResource",
        description="string",
        rack_id=float(0),
        units=[float(0)],
        user_id=float(0),
        comments="string",
        custom_fields={
            "string": "string",
        },
        owner_id=float(0),
        status="string",
        tags=["string"],
        tenant_id=float(0))
    
    const rackReservationResource = new netbox.RackReservation("rackReservationResource", {
        description: "string",
        rackId: 0,
        units: [0],
        userId: 0,
        comments: "string",
        customFields: {
            string: "string",
        },
        ownerId: 0,
        status: "string",
        tags: ["string"],
        tenantId: 0,
    });
    
    type: netbox:RackReservation
    properties:
        comments: string
        customFields:
            string: string
        description: string
        ownerId: 0
        rackId: 0
        status: string
        tags:
            - string
        tenantId: 0
        units:
            - 0
        userId: 0
    

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

    Description string
    Purpose of the reservation.
    RackId double
    Id of the rack.
    Units List<double>
    Rack unit numbers being reserved.
    UserId double
    Id of the NetBox user holding the reservation.
    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).
    OwnerId double
    Id of the owner the object is assigned to.
    Status string
    Status of the reservation. One of: pending, active, stale.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TenantId double
    Id of the tenant.
    Description string
    Purpose of the reservation.
    RackId float64
    Id of the rack.
    Units []float64
    Rack unit numbers being reserved.
    UserId float64
    Id of the NetBox user holding the reservation.
    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).
    OwnerId float64
    Id of the owner the object is assigned to.
    Status string
    Status of the reservation. One of: pending, active, stale.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TenantId float64
    Id of the tenant.
    description string
    Purpose of the reservation.
    rack_id number
    Id of the rack.
    units list(number)
    Rack unit numbers being reserved.
    user_id number
    Id of the NetBox user holding the reservation.
    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).
    owner_id number
    Id of the owner the object is assigned to.
    status string
    Status of the reservation. One of: pending, active, stale.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenant_id number
    Id of the tenant.
    description String
    Purpose of the reservation.
    rackId Double
    Id of the rack.
    units List<Double>
    Rack unit numbers being reserved.
    userId Double
    Id of the NetBox user holding the reservation.
    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).
    ownerId Double
    Id of the owner the object is assigned to.
    status String
    Status of the reservation. One of: pending, active, stale.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenantId Double
    Id of the tenant.
    description string
    Purpose of the reservation.
    rackId number
    Id of the rack.
    units number[]
    Rack unit numbers being reserved.
    userId number
    Id of the NetBox user holding the reservation.
    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).
    ownerId number
    Id of the owner the object is assigned to.
    status string
    Status of the reservation. One of: pending, active, stale.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenantId number
    Id of the tenant.
    description str
    Purpose of the reservation.
    rack_id float
    Id of the rack.
    units Sequence[float]
    Rack unit numbers being reserved.
    user_id float
    Id of the NetBox user holding the reservation.
    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).
    owner_id float
    Id of the owner the object is assigned to.
    status str
    Status of the reservation. One of: pending, active, stale.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenant_id float
    Id of the tenant.
    description String
    Purpose of the reservation.
    rackId Number
    Id of the rack.
    units List<Number>
    Rack unit numbers being reserved.
    userId Number
    Id of the NetBox user holding the reservation.
    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).
    ownerId Number
    Id of the owner the object is assigned to.
    status String
    Status of the reservation. One of: pending, active, stale.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tenantId Number
    Id of the tenant.

    Outputs

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

    Created string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    RackReservationId double
    NetBox id.
    TagsAlls List<string>
    Slugs of all tags on the object, including the provider's default_tags.
    UnitCount double
    Number of rack units reserved.
    Url string
    Created string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated string
    RackReservationId float64
    NetBox id.
    TagsAlls []string
    Slugs of all tags on the object, including the provider's default_tags.
    UnitCount float64
    Number of rack units reserved.
    Url string
    created string
    id string
    The provider-assigned unique ID for this managed resource.
    last_updated string
    rack_reservation_id number
    NetBox id.
    tags_alls list(string)
    Slugs of all tags on the object, including the provider's default_tags.
    unit_count number
    Number of rack units reserved.
    url string
    created String
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String
    rackReservationId Double
    NetBox id.
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    unitCount Double
    Number of rack units reserved.
    url String
    created string
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdated string
    rackReservationId number
    NetBox id.
    tagsAlls string[]
    Slugs of all tags on the object, including the provider's default_tags.
    unitCount number
    Number of rack units reserved.
    url string
    created str
    id str
    The provider-assigned unique ID for this managed resource.
    last_updated str
    rack_reservation_id float
    NetBox id.
    tags_alls Sequence[str]
    Slugs of all tags on the object, including the provider's default_tags.
    unit_count float
    Number of rack units reserved.
    url str
    created String
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated String
    rackReservationId Number
    NetBox id.
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    unitCount Number
    Number of rack units reserved.
    url String

    Look up Existing RackReservation Resource

    Get an existing RackReservation 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?: RackReservationState, opts?: CustomResourceOptions): RackReservation
    @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,
            last_updated: Optional[str] = None,
            owner_id: Optional[float] = None,
            rack_id: Optional[float] = None,
            rack_reservation_id: Optional[float] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            tags_alls: Optional[Sequence[str]] = None,
            tenant_id: Optional[float] = None,
            unit_count: Optional[float] = None,
            units: Optional[Sequence[float]] = None,
            url: Optional[str] = None,
            user_id: Optional[float] = None) -> RackReservation
    func GetRackReservation(ctx *Context, name string, id IDInput, state *RackReservationState, opts ...ResourceOption) (*RackReservation, error)
    public static RackReservation Get(string name, Input<string> id, RackReservationState? state, CustomResourceOptions? opts = null)
    public static RackReservation get(String name, Output<String> id, RackReservationState state, CustomResourceOptions options)
    resources:  existingRackReservation:    type: netbox:RackReservation    get:      id: ${id}
    import {
      to = netbox_rack_reservation.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 RackReservationState
    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 RackReservationState
    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 RackReservationState
    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 RackReservationState
    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:
    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
    Purpose of the reservation.
    LastUpdated string
    OwnerId double
    Id of the owner the object is assigned to.
    RackId double
    Id of the rack.
    RackReservationId double
    NetBox id.
    Status string
    Status of the reservation. One of: pending, active, stale.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls List<string>
    Slugs of all tags on the object, including the provider's default_tags.
    TenantId double
    Id of the tenant.
    UnitCount double
    Number of rack units reserved.
    Units List<double>
    Rack unit numbers being reserved.
    Url string
    UserId double
    Id of the NetBox user holding the reservation.
    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
    Purpose of the reservation.
    LastUpdated string
    OwnerId float64
    Id of the owner the object is assigned to.
    RackId float64
    Id of the rack.
    RackReservationId float64
    NetBox id.
    Status string
    Status of the reservation. One of: pending, active, stale.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls []string
    Slugs of all tags on the object, including the provider's default_tags.
    TenantId float64
    Id of the tenant.
    UnitCount float64
    Number of rack units reserved.
    Units []float64
    Rack unit numbers being reserved.
    Url string
    UserId float64
    Id of the NetBox user holding the reservation.
    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
    Purpose of the reservation.
    last_updated string
    owner_id number
    Id of the owner the object is assigned to.
    rack_id number
    Id of the rack.
    rack_reservation_id number
    NetBox id.
    status string
    Status of the reservation. One of: pending, active, stale.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls list(string)
    Slugs of all tags on the object, including the provider's default_tags.
    tenant_id number
    Id of the tenant.
    unit_count number
    Number of rack units reserved.
    units list(number)
    Rack unit numbers being reserved.
    url string
    user_id number
    Id of the NetBox user holding the reservation.
    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
    Purpose of the reservation.
    lastUpdated String
    ownerId Double
    Id of the owner the object is assigned to.
    rackId Double
    Id of the rack.
    rackReservationId Double
    NetBox id.
    status String
    Status of the reservation. One of: pending, active, stale.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    tenantId Double
    Id of the tenant.
    unitCount Double
    Number of rack units reserved.
    units List<Double>
    Rack unit numbers being reserved.
    url String
    userId Double
    Id of the NetBox user holding the reservation.
    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
    Purpose of the reservation.
    lastUpdated string
    ownerId number
    Id of the owner the object is assigned to.
    rackId number
    Id of the rack.
    rackReservationId number
    NetBox id.
    status string
    Status of the reservation. One of: pending, active, stale.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls string[]
    Slugs of all tags on the object, including the provider's default_tags.
    tenantId number
    Id of the tenant.
    unitCount number
    Number of rack units reserved.
    units number[]
    Rack unit numbers being reserved.
    url string
    userId number
    Id of the NetBox user holding the reservation.
    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
    Purpose of the reservation.
    last_updated str
    owner_id float
    Id of the owner the object is assigned to.
    rack_id float
    Id of the rack.
    rack_reservation_id float
    NetBox id.
    status str
    Status of the reservation. One of: pending, active, stale.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls Sequence[str]
    Slugs of all tags on the object, including the provider's default_tags.
    tenant_id float
    Id of the tenant.
    unit_count float
    Number of rack units reserved.
    units Sequence[float]
    Rack unit numbers being reserved.
    url str
    user_id float
    Id of the NetBox user holding the reservation.
    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
    Purpose of the reservation.
    lastUpdated String
    ownerId Number
    Id of the owner the object is assigned to.
    rackId Number
    Id of the rack.
    rackReservationId Number
    NetBox id.
    status String
    Status of the reservation. One of: pending, active, stale.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    tenantId Number
    Id of the tenant.
    unitCount Number
    Number of rack units reserved.
    units List<Number>
    Rack unit numbers being reserved.
    url String
    userId Number
    Id of the NetBox user holding the reservation.

    Import

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

    terraform

    import {

    to = netbox_rack_reservation.test

    id = “123”

    }

    The pulumi import command can be used, for example:

    $ pulumi import netbox:index/rackReservation:RackReservation 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