IoTHubConfigurationManager Class
A class to provide convenience APIs for IoTHub Configuration Manager operations, based on top of the auto generated IotHub REST APIs
- Inheritance
-
builtins.objectIoTHubConfigurationManager
Constructor
IoTHubConfigurationManager(connection_string=None, host=None, auth=None)
Parameters
- connection_string
- host
- auth
Methods
| apply_configuration_on_edge_device |
Applies the provided configuration content to the specified edge device. Modules content is mandantory. |
| create_configuration |
Creates a configuration for devices or modules of an IoTHub. |
| delete_configuration |
Deletes a configuration from an IoTHub. |
| from_connection_string |
Classmethod initializer for a IoTHubConfigurationManager Service client. Creates IoTHubConfigurationManager class from connection string. After a successful creation the class has been authenticated with IoTHub and it is ready to call the member APIs to communicate with IoTHub. |
| from_token_credential |
Classmethod initializer for a IoTHubConfigurationManager Service client. Creates IoTHubConfigurationManager class from host name url and Azure token credential. After a successful creation the class has been authenticated with IoTHub and it is ready to call the member APIs to communicate with IoTHub. |
| get_configuration |
Retrieves the IoTHub configuration for a particular device. |
| get_configurations |
Retrieves multiple configurations for device and modules of an IoTHub. Returns the specified number of configurations. Pagination is not supported. |
| test_configuration_queries |
Validates the target condition query and custom metric queries for a configuration. |
| update_configuration |
Updates a configuration for devices or modules of an IoTHub. Note: that configuration Id and Content cannot be updated by the user. |
apply_configuration_on_edge_device
Applies the provided configuration content to the specified edge device. Modules content is mandantory.
apply_configuration_on_edge_device(device_id, configuration_content)
Parameters
- configuration_content
Returns
An object.
Exceptions
create_configuration
Creates a configuration for devices or modules of an IoTHub.
create_configuration(configuration)
Parameters
Returns
Configuration object containing the created configuration.
Exceptions
delete_configuration
Deletes a configuration from an IoTHub.
delete_configuration(configuration_id, etag=None)
Parameters
Returns
Configuration object containing the updated configuration.
Exceptions
from_connection_string
Classmethod initializer for a IoTHubConfigurationManager Service client. Creates IoTHubConfigurationManager class from connection string.
After a successful creation the class has been authenticated with IoTHub and it is ready to call the member APIs to communicate with IoTHub.
from_connection_string(connection_string)
Parameters
- connection_string
- str
The IoTHub connection string used to authenticate connection with IoTHub.
- connection_string
Return type
Exceptions
from_token_credential
Classmethod initializer for a IoTHubConfigurationManager Service client. Creates IoTHubConfigurationManager class from host name url and Azure token credential.
After a successful creation the class has been authenticated with IoTHub and it is ready to call the member APIs to communicate with IoTHub.
from_token_credential(url, token_credential)
Parameters
- token_credential
Return type
Exceptions
get_configuration
Retrieves the IoTHub configuration for a particular device.
get_configuration(configuration_id)
Parameters
Returns
The Configuration object.
Exceptions
get_configurations
Retrieves multiple configurations for device and modules of an IoTHub. Returns the specified number of configurations. Pagination is not supported.
get_configurations(max_count=None)
Parameters
Returns
The list[Configuration] object.
Exceptions
test_configuration_queries
Validates the target condition query and custom metric queries for a configuration.
test_configuration_queries(configuration_queries_test_input)
Parameters
Returns
The ConfigurationQueriesTestResponse object.
Exceptions
update_configuration
Updates a configuration for devices or modules of an IoTHub. Note: that configuration Id and Content cannot be updated by the user.
update_configuration(configuration, etag)
Parameters
Returns
Configuration object containing the updated configuration.
Exceptions
Feedback
Submit and view feedback for