Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
Description
Today, we must specify the exact collection name on which a policy rule is applied or omit it entirely in which case the rule matches all collections. In case a rule must apply to a subset of collections, before we create a new collection, we must copy over the rule with the collection name changed to the new collection.
It'd be nice to have a selector for collections based on the collection property.
For example:
{"replica": "#ALL", "collection":{"property_name":"property_value"}, "sysprop.node_type": "xyz"}
The above rule matches all collections which have property_name set to property_value as a collection property. This makes it possible to add just one rule and have it apply to all collections having the property.