mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 18:02:29 +00:00
17 lines
No EOL
450 B
PowerShell
17 lines
No EOL
450 B
PowerShell
|
|
function Set-NetboxTimeout {
|
|
[CmdletBinding(ConfirmImpact = 'Low',
|
|
SupportsShouldProcess = $true)]
|
|
[OutputType([uint16])]
|
|
param
|
|
(
|
|
[Parameter(Mandatory = $false)]
|
|
[ValidateRange(1, 65535)]
|
|
[uint16]$TimeoutSeconds = 30
|
|
)
|
|
|
|
if ($PSCmdlet.ShouldProcess('Netbox Timeout', 'Set')) {
|
|
$script:NetboxConfig.Timeout = $TimeoutSeconds
|
|
$script:NetboxConfig.Timeout
|
|
}
|
|
} |