Resource groups are filters defining the scope for a group of configuration rules (via an associated configuration group). A given service component or property can have multiple resource groups defined, each identified by a unique ID (rgid).
The order of resource groups is important, as it is used to determine precedence for overlapping matches. Individually added resource groups are kept in the order in which they were added, each one given a sequence number starting from 0.
For any HTTP request, the matching resource group with the lowest sequence number governs the behavior for that request.
In addition to the standard Add, Update, and Delete operations, resource groups support rearranging the order via a PUT operation.
A resource group consists of the following elements:
- rgid—string in [A-Za-z0-9_] format.
- rgtype—resource group type. (Currently limited to "path".)
- rgdef—array of string identifiers defining the resource group.
A request path is considered a match for the resource group if any of the expressions in rgdef match the request. Supported wildcards for rgdef include:
'*' matches 0 or more characters
'+' matches 1 or more non-/ (slash, or 'directory separator') characters