RemoteHostAuthenticationRule - resetRoutingRuleConditions
RemoteHostAuthenticationRule - resetRoutingRuleConditions
Description :
This command clears the conditions from a Routing Rule and adds back one condition.
All Available operator strings are listed below:
- equals
- does not equal
- starts with
- does not start with
- ends with
- does not end with
- contains
- is substring of
- does not contain
- is not substring of
- is one of
- is not one of
- matches
- does not match
- equals (case sensitive)
- does not equal (case sensitive)
- starts with (case sensitive)
- does not start with (case sensitive)
- ends with (case sensitive)
- does not end with (case sensitive)
- contains (case sensitive)
- is substring of (case sensitive)
- does not contain (case sensitive)
- is not substring of (case sensitive)
Note : For operator "is one of" specify the list of values as [value1,value2, . . .,valueN].
For more information about formatting the RHS property value for the various types of LHS properties and operators, see Formats for specifying property values in conditions in the BMC Server Automation online documentation.
For propName, note that the only valid properties for this rule type are:
- The built-in properties TARGET*.NAME, TARGET*.IP_ADDRESS and TARGET*.FQ_HOST
- Any custom properties added to the Server class
Return type : java.lang.Void
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
name | String | Name of the Remote Host Authentication Routing Rule. |
propName | String | Property name to be used in the rule condition. |
operator | String | Operator string to be used in the rule condition. |
propValue | String | Property value to be used in the rule condition. |
Example
The following example clears the conditions from a Remote Host Authentication Routing Rule and adds back a condition of "TARGET*.NAME" "starts with" "lin". Note the use of double quotes around "TARGET*.NAME". This is to prevent the asterisk * from being interpreted as a wildcard. If you use "TARGET*.IP_ADDRESS" or "TARGET*.FQ_HOST", be sure to enclose them in double quotes as well.
Script