The AccessType method sets or retrieves the flag that allows or denies access to the resource protected by the rule.
Syntax
The AccessType method has the following format:
Netegrity::PolicyMgtRule‑>AccessType([allowAccess])
Parameters
The AccessType method accepts the following parameter:
allowAccess (int)
(Optional) Specifies whether the rule allows access to the resource:
Return Value
The AccessType method returns one of the following values:
The Action method sets or retrieves the action for the rule.
Syntax
The Action method has the following format:
Netegrity::PolicyMgtRule‑>Action([action])
Parameters
The Action method accepts the following parameter:
action (string)
(Optional) Specifies the action to perform, as follows:
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:
Return Value
The Action method returns one of the following values:
The ActiveExpr method sets or retrieves the active expression for the rule.
Syntax
The ActiveExpr method has the following format:
Netegrity::PolicyMgtRule‑>ActiveExpr([expr])
Parameters
The ActiveExpr method accepts the following parameters:
expr (string)
(Optional) Specifies the active expression to execute.
Return Value
The ActiveExpr method returns one of the following values:
The Agent method sets or retrieves an agent object or an agent group object associated with the global rule.
Syntax
The Agent method has the following format:
Netegrity::PolicyMgtRule‑>Agent(agentObject)
Parameters
The Agent method accepts the following parameter:
agentObject (objectType)
Specifies the agent object or agent group object to associate with the rule. objectType can be either PolicyMgtAgent or PolicyMgtGroup.
Return Value
The Agent method returns a new or existing PolicyMgtAgent object or PolicyMgtGroup object.
Remarks
After the rule is created, the agent associated with the rule can be changed only within the same agent type (such as Web Agent).
Note: Rules that have domain scope are associated with agents indirectly, through a realm.
The Description method sets or retrieves the description of the rule.
Syntax
The Description method has the following format:
Netegrity::PolicyMgtRule‑>Description([ruleDesc])
Parameters
The Description method accepts the following parameter:
ruleDesc (string)
(Optional) Specifies the description of the rule.
Return Value
The Description method returns one of the following values:
The IsEnabled method enables or disables the rule.
Syntax
The IsEnabled method has the following format:
Netegrity::PolicyMgtRule‑>IsEnabled([enableFlag])
Parameters
The IsEnabled method accepts the following parameter:
enableFlag (type)
(Optional) Specifies whether to enable the rule:
Return Value
The IsEnabled method returns one of the following values:
The Name method sets or retrieves the rule name.
Syntax
The Name method has the following format:
Netegrity::PolicyMgtRule‑>Name([ruleName])
Parameters
The Name method accepts the following parameter:
ruleName (string)
Specifies the rule name.
Return Value
The Name method returns one of the following values:
The RegexMatch method sets or retrieves the flag that determines whether regular expression pattern matching is enabled for resource-matching operations.
Syntax
The RegexMatch method has the following format:
Netegrity::PolicyMgtRule‑>RegexMatch([enableFlag])
Parameters
The RegexMatch method accepts the following parameters:
enableFlag (int)
(Optional) Specifies whether to allow regular expression pattern matching:
Return Value
The RegexMatch method returns one of the following values:
The Resource method sets or retrieves the resource protected by the rule.
Syntax
The Resource method has the following format:
Netegrity::PolicyMgtRule‑>Resource()
Parameters
The Resource method accepts no parameters.
Return Value
The Resource method returns one of the following values:
Copyright © 2015 CA Technologies.
All rights reserved.
|
|