Previous Topic: CreateGlobalResponse Method—Creates Global Response

Next Topic: CreateHostConfig Method—Creates Host Configuration Object

CreateGlobalRule Method—Creates Global Rule

The CreateGlobalRule method creates a rule that has a global scope.

Syntax

The CreateGlobalRule method has the following format:

Netegrity::PolicyMgtSession‑>CreateGlobalRule(ruleName, resource, event, agent[, ruleDesc][, allowAccess][, regexMatch][, activeExpr][, isEnabled])

Parameters

The CreateGlobalRule method accepts the following parameters:

ruleName (string)

Specifies the global rule's name.

resource (string)

Specifies the filter for the resource that the global rule is protecting.

event (string)

Specifies the type of event that the global rule is executing.

agent (PolicyMgtAgent | PolicyMgtGroup)

Specifies the agent or agent group associated with the global rule.

ruleDesc (string)

(Optional) Specifies the global rule's description.

allowAccess (int)

(Optional) Specifies whether to allow or deny access to the resource protected by the rule:

(Optional) Specifies whether to perform regular expression pattern matching:

(Optional) Specifies the global rule's active expression.

isEnabled (int)

(Optional) Specifies whether to enable or disable the global rule:

Return Value

The CreateGlobalRule method returns one of the following values:


Copyright © 2010 CA. All rights reserved. Email CA about this topic