Add get_entity method in indexer

Make a single request to get entity and archive policy
definitions

Change-Id: I49c9e1cb099d3d2e994c8420f087290e4c10dc17
Merge "Add get_entity method in indexer"