In your functions, you are taking $PSBoundParameters and converting it to a JSON string then sending it to the API. This causes unneeded properties to be sent with the request when the function is called with common parameters such as -Verbose or -Debug. The Isilon API responds with an error when these properties are sent.
Might I suggest you sanitize your properties before sending to the API? The function below will remove common properties.
In your functions, you are taking
$PSBoundParameters
and converting it to a JSON string then sending it to the API. This causes unneeded properties to be sent with the request when the function is called with common parameters such as-Verbose
or-Debug
. The Isilon API responds with an error when these properties are sent.Might I suggest you sanitize your properties before sending to the API? The function below will remove common properties.
This function could then be called like so: