Make get_list common for both type of resources