Support generic hostgroup based on id