nameserver type fix.

This commit is contained in:
2022-12-14 16:55:08 +03:00
parent 833bb183eb
commit ea9b760933
5 changed files with 34 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ function Invoke-Request {
if ($_tokenStatus -eq "Expired") { Update-Session }
$_uri = "$($script:psipamSession.URL)/api/$($script:psipamSession.AppID)/$Controller"
if ($SubController -ne $null) { $SubController;$_uri += "/$SubController" }
if ($SubController -ne $null) { $_uri += "/$SubController" }
if ($Identifiers -ne $null) { $_uri += "/$($Identifiers -join '/')/" }
$_headers = @{

View File

@@ -17,6 +17,7 @@ function Get-Nameserver {
Controller = [PS.IPAM.controllers]::tools
SubController = [PS.IPAM.subcontrollers]::nameservers
Method = "GET"
Type = [PS.IPAM.types]::nameserver
}
switch ($PSCmdlet.ParameterSetName) {
"ByID" { $_nameserverId = $Id; break }