< Back

Add-NSpolicyTovserver

Fri Jan 10, 2020 9:40 pm

NAME Add-NSpolicyTovserver



SYNOPSIS

The add-nspolicytovserver cmdlet is used to associate a policy with a vserver. Currently only for rewrite,

responder and appflow policies.





SYNTAX

Add-NSpolicyTovserver -policyname <string> -policytype <string> -vserver <string> [-bindpoint <string>]

[-gotopriorityExpression <string>] [-priority <uint>] [-session <nitro_service>] [<CommonParameters>]





DESCRIPTION

The add-nspolicytovserver cmdlet is used to associate a policy with a vserver.





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



-policyname <string>

Specify the name of the monitor



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-vserver <string>

Specify the name the service or service group to bind to



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-priority <uint>

Specify the weight of the binding.



Required? false

Position? named

Default value 100

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-bindpoint <string>

Specify the bindpoint of the binding. Required for rewrite policies.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-policytype <string>

Policy type.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-gotopriorityExpression <string>

Expression specifying the priority of the next policy which will get evaluated if the current policy rule

evaluates to TRUE. Common values are "END", "NEXT", but can be a NetScaler expression. Defaults to "END"



Required? false

Position? named

Default value

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 monitor



System.String

Specify the name the service or service group to bind to



System.UInt32

Specify the weight of the binding.



System.String

Specify the bindpoint of the binding. Required for rewrite policies.



System.String

Policy type.



System.String

Expression specifying the priority of the next policy which will get evaluated if the current policy rule

evaluates to TRUE. Common values are "END", "NEXT", but can be a NetScaler expression. Defaults to "END"





OUTPUTS





RELATED LINKS