-
-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Expected Behavior
-DefaultAction would be an optional parameter, that would be added to the -Payload parameter of _InvokeNSRestApi
if ($DefaultAction) {
$params += @{
undefAction = $DefaultAction
}
}
undefAction is defined in the Citrix documentation
_InvokeNSRestApi -Session $Session -Method POST -Type responderpolicy -Payload $params -Action add
Current Behavior
Does not currently allow for setting a default action in a responder policy.
Possible Solution
Add a string parameter named DefaultAction. I wouldn't use a validate set as there can be user defined actions. Default values match that of the -Action parameter.
I suggest appending the $params hash table if the parameter is defined.
Steps to Reproduce (for bugs)
N/A
Context
We use automation presented via tools to unprivileged Techs, which manage responder policies, sort of like an ACL would work. These help us apply filtering directly to VIPs. Not having the limits our automation.
Your Environment
No bug...