search_entities
¶
search_entities(
entity_types: EntityTypes,
*,
config_overrides: Optional[IoTThingsGraphClientConfig] = 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/io_t_things_graph.py
1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 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 | |