QueryOperations Class
QueryOperations operations.
- Inheritance
-
builtins.objectQueryOperations
Constructor
QueryOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- api_version
Version of the Api. Constant value: "2021-04-12".
Methods
| get_twins |
Query an IoT Hub to retrieve information regarding device twins using a SQL-like language. See https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language for more information. Pagination is supported. This returns information about device twins only. |
get_twins
Query an IoT Hub to retrieve information regarding device twins using a SQL-like language. See https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language for more information. Pagination is supported. This returns information about device twins only.
get_twins(query_specification, x_ms_continuation=None, x_ms_max_item_count=None, custom_headers=None, raw=False, **operation_config)
Parameters
- query_specification
- QuerySpecification
The query string. See https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language for more information.
- x_ms_continuation
- str
The continuation token used to get the next page of results.
- x_ms_max_item_count
- str
The maximum number of items returned per page. The service may use a different value if the value specified is not acceptable.
- operation_config
Operation configuration overrides.
Returns
list or ClientRawResponse if raw=true
Return type
Exceptions
Attributes
models
models = <module 'azure.iot.hub.protocol.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\iot\\hub\\protocol\\models\\__init__.py'>
Feedback
Submit and view feedback for