API for getting rules which have a particular rule