Src/Private/Diagram/Get-AbrDiagBackupToFileProxy.ps1
|
function Get-AbrDiagBackupToFileProxy { <# .SYNOPSIS Function to build Backup Server to Proxy diagram. .DESCRIPTION Build a diagram of the configuration of Veeam VBR in PDF/PNG/SVG formats using Psgraph. .NOTES Version: 1.0.8 Author: AsBuiltReport Organization Twitter: @asbuiltreport Github: asbuiltreport .LINK https://github.com/AsBuiltReport/AsBuiltReport.Veeam.VBR #> [CmdletBinding()] param ( ) begin { } process { try { $FileBackupProxy = Get-AbrBackupProxyInfo -Type 'nas' if ($BackupServerInfo) { if ($FileBackupProxy) { if ($FileBackupProxy.Name.Count -le 1) { $FileBackupProxyColumnSize = 1 } elseif ($ColumnSize) { $FileBackupProxyColumnSize = $ColumnSize } else { $FileBackupProxyColumnSize = $FileBackupProxy.Name.Count } Add-HtmlNodeTable -Name 'FileProxies' -ImagesObj $Images -inputObject ($FileBackupProxy | ForEach-Object { if (Get-ValidateIP $_.Name) { $_.Name } else { $_.Name.split('.')[0] } }) -Align 'Center' -iconType 'VBR_Proxy_Server' -ColumnSize $FileBackupProxyColumnSize -IconDebug $IconDebug -MultiIcon -AditionalInfo $FileBackupProxy.AditionalInfo -Subgraph -SubgraphIconType 'VBR_Proxy' -SubgraphLabel 'File Backup Proxies' -SubgraphLabelPos 'top' -SubgraphTableStyle 'dashed,rounded' -FontColor $Fontcolor -TableBackgroundColor $MainGraphBGColor -CellBackgroundColor $MainGraphBGColor -TableBorderColor $Edgecolor -TableBorder '1' -FontSize 18 -SubgraphLabelFontSize 26 -SubgraphFontBold -SubgraphLabelFontColor $Fontcolor -NodeObject Add-NodeEdge -From BackupServers -To FileProxies -EdgeColor $Edgecolor -EdgeStyle dashed -EdgeThickness 3 -EdgeLength 3 } } } catch { Write-PScriboMessage $_.Exception.Message } } end {} } |