< Back

New-NSresponderaction

Sat Jan 11, 2020 12:28 am

NAME New-NSresponderaction



SYNOPSIS

The new-NSresponderaction creates a responder action.





SYNTAX

New-NSresponderaction -name <string> -responseStatusCode <uint> -type <string> [-comment <string>] [-reasonphrase

<string>] [-returnobject <SwitchParameter>] [-session <nitro_service>] [-target <string>] [<CommonParameters>]





DESCRIPTION

The new-NSresponderaction creates a responder action.





PARAMETERS

-session <nitro_service>

This mandatory parameter requires a nitro_service object. This can be requested using the get-nitrosession and

pipelined into this command.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-name <string>

Specify the name of the action



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-comment <string>

Specify a comment



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-target <string>

Expression specify what to respond with. Used with "respondwith" type.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-type <string>

Specify the type of action. Possible values = noop, respondwith, redirect, respondwithhtmlpage,

sqlresponse_ok, sqlresponse_error



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-responseStatusCode <uint>

specify the response status code, for example "302" indicates a redirect.



Required? true

Position? named

Default value 0

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-reasonphrase <string>

Expression specifying the reason phrase of the HTTP response.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-returnobject <SwitchParameter>

If set to true, the object that is created is returned. This is useful to testing purposes.



Required? false

Position? named

Default value False

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

com.citrix.netscaler.nitro.service.nitro_service

This mandatory parameter requires a nitro_service object. This can be requested using the get-nitrosession and

pipelined into this command.



System.String

Specify the name of the action



System.String

Specify a comment



System.String

Expression specify what to respond with. Used with "respondwith" type.



System.String

Specify the type of action. Possible values = noop, respondwith, redirect, respondwithhtmlpage,

sqlresponse_ok, sqlresponse_error



System.UInt32

specify the response status code, for example "302" indicates a redirect.



System.String

Expression specifying the reason phrase of the HTTP response.



System.Management.Automation.SwitchParameter

If set to true, the object that is created is returned. This is useful to testing purposes.





OUTPUTS

com.citrix.netscaler.nitro.resource.config.responder.responderaction







RELATED LINKS