Skip to content

Missing parameter in New-NSResponderPolicy #110

@masters274

Description

@masters274

https://docs.citrix.com/en-us/citrix-adc/12-1/appexpert/responder/setting-responder-default-action.html

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions