< Back
Add-NSpolicytoGroup
Post
NAME Add-NSpolicytoGroup
SYNOPSIS
The Add-NSpolicytogroup binds an policy to a aaa group
SYNTAX
Add-NSpolicytoGroup [-group] <string> -policyname <string> -priority <uint> [-session <nitro_service>] [-type
<string>] [<CommonParameters>]
Add-NSpolicytoGroup [-group] <string> -netmask <string> -network <string> [-session <nitro_service>]
[<CommonParameters>]
Add-NSpolicytoGroup [-group] <string> -bookmark <string> [-session <nitro_service>] [<CommonParameters>]
Add-NSpolicytoGroup [-group] <string> -intranetapplication <string> [-session <nitro_service>] [<CommonParameters>]
DESCRIPTION
Use this cmdlet to binds policies, bookmarks, intranet IP, intranet applications to aaa groups. AAA groups are
used by VPN as well as the AAA functionality.
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
-group <string>
Specify the group. This is mandatory.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-policyname <string>
Specify the policy.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-priority <uint>
Specify the priority. This is required
Required? true
Position? named
Default value 0
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-type <string>
Specify the type. This is only used for authorization policies.Possible values = REQUEST, UDP_REQUEST,
DNS_REQUEST, ICMP_REQUEST. Only used by NetScalers version 12.0.56.20 and above.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-network <string>
Specify the network for the intranet IPs. You must also provide the netmask
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-netmask <string>
Specify the netmask for the intranet IPs. You must also provide the network
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-bookmark <string>
Specify an existing bookmark using the bookmark name. Note, this does not create the bookmark. This command
only binds a bookmark that has already been created.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-intranetapplication <string>
Specify the intranet application using the name.
Required? true
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 group. This is mandatory.
System.String
Specify the policy.
System.UInt32
Specify the priority. This is required
System.String
Specify the type. This is only used for authorization policies.Possible values = REQUEST, UDP_REQUEST,
DNS_REQUEST, ICMP_REQUEST. Only used by NetScalers version 12.0.56.20 and above.
System.String
Specify the network for the intranet IPs. You must also provide the netmask
System.String
Specify the netmask for the intranet IPs. You must also provide the network
System.String
Specify an existing bookmark using the bookmark name. Note, this does not create the bookmark. This command
only binds a bookmark that has already been created.
System.String
Specify the intranet application using the name.
OUTPUTS
---------- EXAMPLE 1 ----------
adding a policyadd-nspolicytogroup -group "vpnusers" -policyname "proxy-tpol" -priority 100
adding an intranet IPs
add-nspolicytogroup -group "vpnusers" -network "172.16.0.0" -netmask "255.255.255.0"
adding a bookmark
add-nspolicytogroup -group "vpnusers" -bookmark "bookmark1"
adding an intranet application
add-nspolicytogroup -group "vpnusers" -intranetapplication "testapp"
RELATED LINKS
SYNOPSIS
The Add-NSpolicytogroup binds an policy to a aaa group
SYNTAX
Add-NSpolicytoGroup [-group] <string> -policyname <string> -priority <uint> [-session <nitro_service>] [-type
<string>] [<CommonParameters>]
Add-NSpolicytoGroup [-group] <string> -netmask <string> -network <string> [-session <nitro_service>]
[<CommonParameters>]
Add-NSpolicytoGroup [-group] <string> -bookmark <string> [-session <nitro_service>] [<CommonParameters>]
Add-NSpolicytoGroup [-group] <string> -intranetapplication <string> [-session <nitro_service>] [<CommonParameters>]
DESCRIPTION
Use this cmdlet to binds policies, bookmarks, intranet IP, intranet applications to aaa groups. AAA groups are
used by VPN as well as the AAA functionality.
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
-group <string>
Specify the group. This is mandatory.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-policyname <string>
Specify the policy.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-priority <uint>
Specify the priority. This is required
Required? true
Position? named
Default value 0
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-type <string>
Specify the type. This is only used for authorization policies.Possible values = REQUEST, UDP_REQUEST,
DNS_REQUEST, ICMP_REQUEST. Only used by NetScalers version 12.0.56.20 and above.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-network <string>
Specify the network for the intranet IPs. You must also provide the netmask
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-netmask <string>
Specify the netmask for the intranet IPs. You must also provide the network
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-bookmark <string>
Specify an existing bookmark using the bookmark name. Note, this does not create the bookmark. This command
only binds a bookmark that has already been created.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-intranetapplication <string>
Specify the intranet application using the name.
Required? true
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 group. This is mandatory.
System.String
Specify the policy.
System.UInt32
Specify the priority. This is required
System.String
Specify the type. This is only used for authorization policies.Possible values = REQUEST, UDP_REQUEST,
DNS_REQUEST, ICMP_REQUEST. Only used by NetScalers version 12.0.56.20 and above.
System.String
Specify the network for the intranet IPs. You must also provide the netmask
System.String
Specify the netmask for the intranet IPs. You must also provide the network
System.String
Specify an existing bookmark using the bookmark name. Note, this does not create the bookmark. This command
only binds a bookmark that has already been created.
System.String
Specify the intranet application using the name.
OUTPUTS
---------- EXAMPLE 1 ----------
adding a policyadd-nspolicytogroup -group "vpnusers" -policyname "proxy-tpol" -priority 100
adding an intranet IPs
add-nspolicytogroup -group "vpnusers" -network "172.16.0.0" -netmask "255.255.255.0"
adding a bookmark
add-nspolicytogroup -group "vpnusers" -bookmark "bookmark1"
adding an intranet application
add-nspolicytogroup -group "vpnusers" -intranetapplication "testapp"
RELATED LINKS