search_entities
async
¶
search_entities(
entity_types: EntityTypes,
*,
config_overrides: Optional[AsyncIoTThingsGraphClientConfig] = None,
filters: Optional[EntityFilters] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
namespace_version: Optional[Version] = None,
) -> SearchEntitiesResponse
Searches for entities of the specified type. You can search for entities in your namespace and the public namespace that you're tracking.
Parameters:
-
entity_types(EntityTypes) –The entity types for which to search.
-
filters(Optional[EntityFilters], default:None) –Optional filter to apply to the search. Valid filters are
NAMENAMESPACE,SEMANTIC_TYPE_PATHandREFERENCED_ENTITY_ID.REFERENCED_ENTITY_IDfilters on entities that are used by the entity in the result set. For example, you can filter on the ID of a property that is used in a state.Multiple filters function as OR criteria in the query. Multiple values passed inside the filter function as AND criteria.
-
next_token(Optional[NextToken], default:None) –The string that specifies the next page of results. Use this when you're paginating results.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in the response.
-
namespace_version(Optional[Version], default:None) –The version of the user's namespace. Defaults to the latest version of the user's namespace.
Raises:
-
InternalFailureException– -
InvalidRequestException– -
ThrottlingException– -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iotthingsgraph/_services/async_io_t_things_graph.py
1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 | |