Scripting and Programming Guides › Scripting Guide for Perl › CLI Policy Management Methods › Policy Methods
Policy Methods
The following methods act on PolicyMgtPolicy objects:
- ActiveExpr Method—Sets or retrieves the active expression associated with the policy.
- AddRule Method—Adds a rule to the policy
- AddUser Method—Adds a user to the policy
- AllowNested Method—Sets or removes the AllowNested flag based on the value of flag specifying recursive evaluation
- CreateIPConfigHostName Method—Creates an IP configuration object from the specified host name
- CreateIPConfigRange Method—Creates an IP configuration object from the specified range of IP addresses
- CreateIPConfigSingleHost Method—Creates an IP configuration object from the specified IP address
- CreateIPConfigSubnetMask Method—Creates an IP Address configuration based on the IP address and subnet mask passed to the method
- DeleteIPConfig Method—Deletes an IP configuration object
- Description Method—Sets or retrieves the description of the policy
- EnforceANDEvaluation Method—Sets or removes the ANDUser/Group flag
- ExcludeUser Method—Excludes or includes a user
- GetAllIPConfigs Method—Retrieves all IP configuration objects in the policy
- GetAllRules Method—Retrieves an array of all rules associated with the policy
- GetAllUsers Method—Retrieves an array of all users associated with the policy
- IsEnabled Method—Enables or disables the policy
- Name Method—Sets or retrieves the policy name
- RemoveResponse Method—Removes the response for a configured rule in the policy
- RemoveRule Method—Removes the specified rule from the policy
- RemoveUser Method—Removes a user from the policy
- SetResponse Method—Sets the response for a configured rule in the policy
- VariableExpr Method—Sets, retrieves, or removes the active expression associated with the policy