Closed iainbrighton closed 8 years ago
I'm happy to submit a PR for this if you want me to? I'm just not sure what the impact is and what else might be affected..
@devblackops Doing some additional testing and it appears that later versions of the API complain about the standard -Action add
, -Action delete
and -Action update
requests. The API uses the standard PUT, POST and DELETE HTTP verbs for these actions and only the likes of -Action unset
are actually required in the request.
It looks like the older versions of the API just ignored the extraneous actions - hence why this has only just come to light. The API hasn't changed.
When attempting to call
Set-NSHostname
(orSet-NSTimezone
) an error is returned by the Nitro API. I can't find anything concrete, but the API implementation must have changed as I'm sure this used to work? There may be other API calls that are impacted too.Current Behavior
Possible Solution
Removing the
-Action update
from https://github.com/devblackops/NetScaler/blob/master/NetScaler/Public/Set-NSHostname.ps1#L67 (and https://github.com/devblackops/NetScaler/blob/master/NetScaler/Public/Set-NSTimeZone.ps1#L76) resolves the issue, for example:Your Environment