The CreateRule method creates and configures a rule under the realm.
Syntax
The CreateRule method has the following format:
Netegrity::PolicyMgtRealm‑>CreateRule( ruleName [, ruleDesc] [, action] [, resource] [, allowAccess] [, regexMatch] [, activeExpr] [, isEnabled] )
Parameters
The CreateRule method accepts the following parameters:
ruleName (string)
Specifies the name of the rule.
ruleDesc (string)
(Optional) Specifies the description of the rule.
action (string)
(Optional) Specifies the type of action that the rule will execute. One of the following actions:
For action type Web Agent actions, use one or more of the following HTTP actions. Use commas to separate multiple actions:
For action type Authentication events:
For action type Authorization events:
resource (string)
(Optional) Specifies the resource protected by the rule. This value doesn't apply to action type Authentication events.
allowAccess (int)
(Optional) Specifies a flag to allow or deny access to the resource protected by the rule: 1 allows access, or 0 denies access. This flag applies only to action values of type GET, PUT, and/or POST. The default is 1.
regexMatch (int)
(Optional) Specifies a flag to allow regular expression pattern matching in the resource field : 1 allows regular expression matching, and 0 denies regular expression matching. This flag doesn't apply to action type Authentication events. The default is 0.
activeExpr (string)
(Optional) Specifies the active expression associated with the rule.
isEnabled (int)
(Optional) Specifies a flag to enable or disable the rule:1 to enable, or 0 to disable. The default is enabled.
Return Value
The CreateRule method returns one of the following values:
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |