Formats for specifying property values in conditions
Various BLCLI commands enable you to define conditions that contain properties (for example, the addCondition command in the SmartServerGroup namespace). You define these conditions by specifying a left-hand-side (LHS) operand (the property name), an operator, and a right-hand-side (RHS) operand (the property value).
The following table describes how to format the RHS property value for each type of LHS property and operator:
LHS (propName) | Operator | RHS (propValue) | RHS format (example) |
---|---|---|---|
String |
| String | “propertyValue” String value with up to 2000 characters |
String |
| List of Strings | “[comma,separated,values]” |
String |
| String regular expression | “regexpattern” Regex expressions must be compatible with the Java implementation of regex. |
Integer |
| Integer | “1” |
Integer | Between | Range of integers | “[1-5]” |
Decimal |
| Decimal | “4.8” |
Decimal | Between | Range of decimals | “[1.2-5.5]” |
Date |
| Date | Java SimpleDateFormat: For example: |
Date | Between | Range of dates | “[MM/dd/yyyy hh:mm:ss -MM/dd/yyyy hh:mm:ss]” For example (on one line): “[09/26/2013 18:37:21 -09/26/2014 18:37:21]” |
Date |
| Integer | “30” |
Boolean |
| Boolean | “true” or “false” |
|
| FilePermission ACE Mask
| “domain\\name AceType [comma,separated,list, of,permissions]” AceTypes can be the following:
For example (on one line): “MyACEName Allow [AceNode.TraverseExecute, AceNode.ListRead, AceNode.CreateWrite]” |
|
|
| “domain\\name AceType [+permission,-permission, …]” AceTypes can be the following:
A + character before the permission signifies that the value must be set. A - character signifies that the value does not need to be set. Permissions that are to be ignored need not be listed.
For example: “*\\Administrator Allow [+AceNode.TraverseExecute, -AceNode.ListRead]” |
Unix Permission |
| Unix Permission Flag | “Group Execute” A Unix Permission Flag is of the enum type (a predefined list of values). Any of its possible values can be given as a string. |
Unix Permission |
| List of Unix Permission Flags | “[Group Execute,World Read,Owner Write]” Comma separated list of Unix Permission Flag values enclosed in square brackets. |
Unix Permission |
| Unix Permission | “0444” The value is a long number that represents combination of read, write, and execute permissions. |
Unix Permission |
| List of Unix Permissions | [“0444”, “0766”, “7777”] List of long numbers |