Feature/provisioner apis

@return Result of the query, or 0 if no results.