rest: add policy support for get entity

Change-Id: I7f0d8130e442d160f8cd1e00aceea10d7839828e
Merge "rest: add policy support for get entity"