< Back

Add-NSPolicyToGlobal

Fri Jan 10, 2020 9:38 pm

NAME Add-NSPolicyToGlobal



SYNOPSIS

The add-nspolicytoglobal command is used to bind global policies such as authentication policies.





SYNTAX

Add-NSPolicyToGlobal [-policyname] <string> [[-priority] <uint>] [[-nextfactor] <string>]

[[-gotopriorityexpression] <string>] [-globalbindtype <string>] [-session <nitro_service>] [<CommonParameters>]





DESCRIPTION

Use for global bindings. Doesn't work with syslog policies.





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 policy name



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-priority <uint>

Specify the priority



Required? false

Position? 1

Default value 0

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-nextfactor <string>

Specify the next factor. This is only used for advanced policies.



Required? false

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-gotopriorityexpression <string>

Specify the priority expression



Required? false

Position? 3

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-globalbindtype <string>

Specify the global bind type,. Require for advanced policies.



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 policy name



System.UInt32

Specify the priority



System.String

Specify the next factor. This is only used for advanced policies.



System.String

Specify the priority expression



System.String

Specify the global bind type,. Require for advanced policies.





OUTPUTS



---------- EXAMPLE 1 ----------



add-nspolicytoglobal -policyname "ldap-pol" -priority 100



Assign the ldap-pol policy to global



RELATED LINKS