mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-16 19:25:47 +00:00
15 lines
382 B
PowerShell
15 lines
382 B
PowerShell
|
|
function Set-NetboxURLPath {
|
|||
|
|
[CmdletBinding(ConfirmImpact = 'Low',
|
|||
|
|
SupportsShouldProcess = $true)]
|
|||
|
|
[OutputType([string])]
|
|||
|
|
param
|
|||
|
|
(
|
|||
|
|
[Parameter(Mandatory = $true)]
|
|||
|
|
[string]$Path
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
if ($PSCmdlet.ShouldProcess('Netbox URL Path', 'Set')) {
|
|||
|
|
$script:NetboxConfig.URLPath = $Path.Trim()
|
|||
|
|
$script:NetboxConfig.URLPath
|
|||
|
|
}
|
|||
|
|
}
|