mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 18:02:29 +00:00
11 lines
313 B
PowerShell
11 lines
313 B
PowerShell
|
|
function Get-NetboxHostPort {
|
|||
|
|
[CmdletBinding()]
|
|||
|
|
param ()
|
|||
|
|
|
|||
|
|
Write-Verbose "Getting Netbox host port"
|
|||
|
|
if ($null -eq $script:NetboxConfig.HostPort) {
|
|||
|
|
throw "Netbox host port is not set! You may set it with Set-NetboxHostPort -Port 'https'"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$script:NetboxConfig.HostPort
|
|||
|
|
}
|