New-NBDCIMRack
Since
v4.4.10.0
SYNOPSIS
Create a new rack in Netbox
SYNTAX
New-NBDCIMRack [-Name] <String> [-Site] <UInt64> [[-Location] <UInt64>] [[-Tenant] <UInt64>]
[[-Status] <String>] [[-Role] <UInt64>] [[-Serial] <String>] [[-Asset_Tag] <String>] [[-Rack_Type] <UInt64>]
[[-Width] <UInt16>] [[-U_Height] <UInt16>] [[-Starting_Unit] <UInt16>] [[-Desc_Units] <Boolean>]
[[-Outer_Width] <UInt16>] [[-Outer_Depth] <UInt16>] [[-Outer_Height] <UInt16>] [[-Mounting_Depth] <UInt16>]
[[-Max_Weight] <UInt32>] [[-Weight_Unit] <String>] [[-Facility_Id] <String>] [[-Description] <String>]
[[-Comments] <String>] [[-Custom_Fields] <Hashtable>] [[-Owner] <UInt64>] [[-Tags] <Object[]>] [-Raw]
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Creates a new rack object in Netbox.
EXAMPLES
EXAMPLE 1
New-NBDCIMRack -Name "Rack-01" -Site 1
Creates a new rack named "Rack-01" at site 1
EXAMPLE 2
New-NBDCIMRack -Name "Rack-02" -Site 1 -U_Height 48 -Status active
Creates a 48U active rack at site 1
PARAMETERS
-Name
The name of the rack (required)
```yaml Type: String Parameter Sets: (All) Aliases:
Required: True Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False ```
-Site
The site ID where the rack is located (required)
```yaml Type: UInt64 Parameter Sets: (All) Aliases:
Required: True Position: 2 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ```
-Location
The location ID within the site
```yaml Type: UInt64 Parameter Sets: (All) Aliases:
Required: False Position: 3 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ```
-Tenant
The tenant ID that owns this rack
```yaml Type: UInt64 Parameter Sets: (All) Aliases:
Required: False Position: 4 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ```
-Status
The operational status (active, planned, reserved, deprecated)
```yaml Type: String Parameter Sets: (All) Aliases:
Required: False Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False ```
-Role
The rack role ID
```yaml Type: UInt64 Parameter Sets: (All) Aliases:
Required: False Position: 6 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ```
-Serial
The serial number
```yaml Type: String Parameter Sets: (All) Aliases:
Required: False Position: 7 Default value: None Accept pipeline input: False Accept wildcard characters: False ```
-Asset_Tag
The asset tag
```yaml Type: String Parameter Sets: (All) Aliases:
Required: False Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False ```
-Rack_Type
The rack type ID
```yaml Type: UInt64 Parameter Sets: (All) Aliases:
Required: False Position: 9 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ```
-Width
The rack width (10 or 19 inches)
```yaml Type: UInt16 Parameter Sets: (All) Aliases:
Required: False Position: 10 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ```
-U_Height
The height in rack units (default: 42)
```yaml Type: UInt16 Parameter Sets: (All) Aliases:
Required: False Position: 11 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ```
-Starting_Unit
The starting unit number (default: 1)
```yaml Type: UInt16 Parameter Sets: (All) Aliases:
Required: False Position: 12 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ```
-Desc_Units
Whether units are numbered top-to-bottom
```yaml Type: Boolean Parameter Sets: (All) Aliases:
Required: False Position: 13 Default value: False Accept pipeline input: False Accept wildcard characters: False ```
-Outer_Width
The outer width in millimeters
```yaml Type: UInt16 Parameter Sets: (All) Aliases:
Required: False Position: 14 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ```
-Outer_Depth
The outer depth in millimeters
```yaml Type: UInt16 Parameter Sets: (All) Aliases:
Required: False Position: 15 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ```
-Outer_Height
The outer height in millimeters
```yaml Type: UInt16 Parameter Sets: (All) Aliases:
Required: False Position: 16 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ```
-Mounting_Depth
The mounting depth in millimeters
```yaml Type: UInt16 Parameter Sets: (All) Aliases:
Required: False Position: 17 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ```
-Max_Weight
The maximum weight capacity
```yaml Type: UInt32 Parameter Sets: (All) Aliases:
Required: False Position: 18 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ```
-Weight_Unit
The weight unit (kg, g, lb, oz)
```yaml Type: String Parameter Sets: (All) Aliases:
Required: False Position: 19 Default value: None Accept pipeline input: False Accept wildcard characters: False ```
-Facility_Id
The facility identifier
```yaml Type: String Parameter Sets: (All) Aliases:
Required: False Position: 20 Default value: None Accept pipeline input: False Accept wildcard characters: False ```
-Description
A description of the rack
```yaml Type: String Parameter Sets: (All) Aliases:
Required: False Position: 21 Default value: None Accept pipeline input: False Accept wildcard characters: False ```
-Comments
Additional comments
```yaml Type: String Parameter Sets: (All) Aliases:
Required: False Position: 22 Default value: None Accept pipeline input: False Accept wildcard characters: False ```
-Custom_Fields
A hashtable of custom fields
```yaml Type: Hashtable Parameter Sets: (All) Aliases:
Required: False Position: 23 Default value: None Accept pipeline input: False Accept wildcard characters: False ```
-Owner
The owner ID for object ownership (Netbox 4.5+ only).
```yaml Type: UInt64 Parameter Sets: (All) Aliases:
Required: False Position: 24 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ```
-Tags
{{ Fill Tags Description }}
```yaml Type: Object[] Parameter Sets: (All) Aliases:
Required: False Position: 25 Default value: None Accept pipeline input: False Accept wildcard characters: False ```
-Raw
Return the raw API response
```yaml Type: SwitchParameter Parameter Sets: (All) Aliases:
Required: False Position: Named Default value: False Accept pipeline input: False Accept wildcard characters: False ```
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: wi
Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ```
-Confirm
Prompts you for confirmation before running the cmdlet.
```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: cf
Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ```
-ProgressAction
{{ Fill ProgressAction Description }}
```yaml Type: ActionPreference Parameter Sets: (All) Aliases: proga
Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ```
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
System.Management.Automation.PSObject
NOTES
AddedInVersion: v4.4.10.0