Skip to main content Skip to complementary content

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.

Warning noteIf you define a rule without specifying at least one Resource or Node access condition, your rule will apply to all resources and / or nodes.

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 descriptions
ArgumentDescription
resourceImplies 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.

Security rule conventions

resourcetypevalue

You must provide at least one resource type value, for available values.

Resource filter (Advanced view)

property

The property name for the resource condition, for available names.

Properties

propertyvalueThe value of the selected property name.

Properties

Property descriptions
Property nameDescription
nameThe name of the resource
owner.environment.browserThe browser environment of the owner of the resource
owner.environment.deviceThe device environment of the owner of the resource
owner.environment.ipThe IP environment of the owner of the resource
owner.environment.osThe OS environment of the owner of the resource
owner.environment.requesttypeThe request type environment of the owner of the resource
owner.groupThe group memberships of the owner retrieved from the user directory.
owner.nameThe user name of the owner of the resource
owner.userdirectoryThe user directory of the owner of the resource
owner.useridThe user id of the owner of the resource
streams.nameThe name of the associated stream

Examples and results

Examples and results
ExampleResult
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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!