api for creating/getting a list of hostgroup objects