Add filtering support to the list methods of API.
Allow nulls on API.