def all_elements_by_type(name):
    """ Get specified elements based on the entry point verb from SMC api
    To get the entry points available, you can get these from the session::

        session.cache.entry_points

    Execution will get the entry point for the element type, then get all
    elements that match.

    For example::

        search.all_elements_by_type('host')

    :param name: top level entry point name
    :raises: `smc.api.exceptions.UnsupportedEntryPoint`
    :return: list with json representation of name match, else None
    """
    if name:
        entry = element_entry_point(name)
        if entry:  # in case an invalid entry point is specified
            result = element_by_href_as_json(entry)
            return result