Vim
find_entity_view
Searches the inventory tree for a managed entity that matches the specified entity type. Search begins with root folder unless the begin_entity parameter is specified.
view_type: Managed entity type specified as one of these strings:
begin_entity (optional): Managed object reference that specifies starting point for search (in context of inventory).
filter (optional): A hash of one or more name-value pairs, in which the name represents the property value to test and the value represents a pattern the property must match. If more than one pair is present, all the patterns must match.
A reference to a view object containing the same properties as the managed entity. If there is more than one managed entity that matches the specified entity type, the subroutine returns the first managed entity found only. If there are no matching managed entities, the subroutine returns undef.