< Back

New-NSauthorizationpolicy

Sat Jan 11, 2020 12:01 am

NAME New-NSauthorizationpolicy



SYNOPSIS





SYNTAX

New-NSauthorizationpolicy [-name] <string> [-action] <string> [-rule] <string> [-returnobject <SwitchParameter>]

[-session <nitro_service>] [<CommonParameters>]



New-NSauthorizationpolicy -policyobject <PSObject[]> [-onerrorcontinue <bool>] [-returnobject <SwitchParameter>]

[-session <nitro_service>] [<CommonParameters>]



New-NSauthorizationpolicy -policy <authorizationpolicy[]> [-onerrorcontinue <bool>] [-returnobject

<SwitchParameter>] [-session <nitro_service>] [<CommonParameters>]





DESCRIPTION





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>



Required? true

Position? 0

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-action <string>



Required? true

Position? 1

Default value ALLOW

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-rule <string>



Required? true

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-policyobject <PSObject[]>

The policyobject allows for a single or array of PSObjects. The PSObject must have a name, action and rule

property.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-onerrorcontinue <bool>

Specify whether the bulk submission should continue (true) in case of error, or rollback the changes (false)



Required? false

Position? named

Default value False

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-policy <authorizationpolicy[]>

Use the policy parameter to create an authorization policy by feeding in one or more authorization policy

object of type com.citrix.netscaler.nitro.resource.config.authorization.authorizationpolicy



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue, 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



System.String



System.String



System.Management.Automation.PSObject[]

The policyobject allows for a single or array of PSObjects. The PSObject must have a name, action and rule

property.



System.Boolean

Specify whether the bulk submission should continue (true) in case of error, or rollback the changes (false)



com.citrix.netscaler.nitro.resource.config.authorization.authorizationpolicy[]

Use the policy parameter to create an authorization policy by feeding in one or more authorization policy

object of type com.citrix.netscaler.nitro.resource.config.authorization.authorizationpolicy



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







RELATED LINKS