search_things
¶
search_things(
entity_id: Urn,
*,
config_overrides: Optional[IoTThingsGraphClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
namespace_version: Optional[Version] = None,
) -> SearchThingsResponse
Searches for things associated with the specified entity. You can search by both device and device model.
For example, if two different devices, camera1 and camera2, implement the camera device model, the user can associate thing1 to camera1 and thing2 to camera2. SearchThings(camera2) will return only thing2, but SearchThings(camera) will return both thing1 and thing2.
This action searches for exact matches and doesn't perform partial text matching.
Parameters:
-
entity_id(Urn) –The ID of the entity to which the things are associated.
The IDs should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME -
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– -
ResourceNotFoundException– -
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
2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 | |