ConvertTo-NBRackHTML
Since
v4.4.10.0
SYNOPSIS
Convert rack elevation data to HTML format
SYNTAX
ConvertTo-NBRackHTML [-RackName] <String> [[-SiteName] <String>] [[-UHeight] <Int32>] [[-Face] <String>]
[[-ElevationData] <PSObject[]>] [[-SvgContent] <String>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
DESCRIPTION
Internal helper function that generates a standalone HTML page representing a rack elevation diagram.
EXAMPLES
EXAMPLE 1
$elevation = Get-NBDCIMRackElevation -Id 24
ConvertTo-NBRackHTML -RackName "DC1-R01" -SiteName "Amsterdam" -UHeight 42 -Face Front -ElevationData $elevation
Generates a standalone HTML page with a styled rack elevation table.
EXAMPLE 2
$svg = Get-NBDCIMRackElevation -Id 24 -Render svg
ConvertTo-NBRackHTML -RackName "DC1-R01" -SiteName "Amsterdam" -UHeight 42 -Face Front -SvgContent $svg
Generates an HTML page with embedded SVG from Netbox native renderer.
EXAMPLE 3
$elevation = Get-NBDCIMRackElevation -Id 24
ConvertTo-NBRackHTML -RackName "DC1-R01" -SiteName "Amsterdam" -UHeight 42 -Face Front -ElevationData $elevation | Out-File rack.html -Encoding utf8
Generates HTML and saves to file.
PARAMETERS
-RackName
Display name of the rack
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SiteName
Display name of the site
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-UHeight
Total height of the rack in U
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: 42
Accept pipeline input: False
Accept wildcard characters: False
-Face
Face being displayed (Front or Rear)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: Front
Accept pipeline input: False
Accept wildcard characters: False
-ElevationData
Array of elevation unit objects from Get-NBDCIMRackElevation
Type: PSObject[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SvgContent
Optional SVG content to embed (when using native renderer)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction
{{ Fill ProgressAction Description }}
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.String
NOTES
AddedInVersion: v4.4.10.0 This is an internal helper function. Use Export-NBRackElevation -Format HTML for the public interface.