Conditions (Advanced view)
Define the resource and/or user conditions that the load balancing rule should apply to.
Syntax
[resource.resourcetype = "resourcetypevalue"] [OPERATOR] [(((resource.property = propertyvalue) [OPERATOR (resource.property = propertyvalue)))]
If you select a resource and a resource condition from the drop-down list in the Basic view, the Conditions field in the Advanced view is automatically filled in with corresponding code for the selected resource type.
Conditions are defined using property-value pairs. You are not required to specify resource or user conditions. In fact, you can leave the Conditions field empty.
The order that you define conditions does not matter. This means that you can define the resources first and then the user and/or resource conditions or the other way round. However, it is recommended that you are consistent in the order in which you define resources and conditions as this simplifies troubleshooting.
Arguments
Argument | Description |
---|---|
resource | Implies that the conditions will be applied to a resource. |
resourcetype | Implies that the conditions will be applied to a resource of the type defined by the resourcetypevalue. You can also use pre-defined functions for conditions to return property values. |
resourcetypevalue | You must provide at least one resource type value, for available values. |
property | The property name for the resource condition, for available names. |
propertyvalue | The value of the selected property name. |
Properties
Property name | Description |
---|---|
name | The name of the resource |
owner.environment.browser | The browser environment of the owner of the resource |
owner.environment.device | The device environment of the owner of the resource |
owner.environment.ip | The IP environment of the owner of the resource |
owner.environment.os | The OS environment of the owner of the resource |
owner.environment.requesttype | The request type environment of the owner of the resource |
owner.group | The group memberships of the owner retrieved from the user directory. |
owner.name | The user name of the owner of the resource |
owner.userdirectory | The user directory of the owner of the resource |
owner.userid | The user id of the owner of the resource |
streams.name | The name of the associated stream |
Examples and results
Example | Result |
---|---|
resource.resourcetype="App" and (resource.name like "*") | The rule will apply to all apps. Tip noteThe same rule can be defined by simply setting the Resource field to App* and leaving the Conditions field empty. |
resource.resourcetype="App" and (resource.name like "My*") | The rule will apply to all apps that have names beginning with "My". |
resource.resourcetype="App" and (resource.@Department="Test") | The rule will apply to all apps with the custom property Department set to Test. |
resource.resourcetype="App" and !(resource.@Department="Test") | The rule will apply to all nodes except the nodes with custom property Department set to Test. |
With Resource filter=* and Conditions field empty | This rule will apply to all resources and all users. |