public class RegistryManager extends Object
DeviceTwin client.| Constructor and Description |
|---|
RegistryManager()
Deprecated.
As of release 1.22.0, replaced by
createFromConnectionString(String) |
RegistryManager(String connectionString)
Constructor to create instance from connection string
|
RegistryManager(String hostName,
com.azure.core.credential.AzureSasCredential azureSasCredential)
Create a new RegistryManager instance.
|
RegistryManager(String hostName,
com.azure.core.credential.AzureSasCredential azureSasCredential,
RegistryManagerOptions options)
Create a new RegistryManager instance.
|
RegistryManager(String connectionString,
RegistryManagerOptions options)
Constructor to create instance from connection string
|
RegistryManager(String hostName,
com.azure.core.credential.TokenCredential credential)
Create a new RegistryManager instance.
|
RegistryManager(String hostName,
com.azure.core.credential.TokenCredential credential,
RegistryManagerOptions options)
Create a new RegistryManager instance.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
addConfiguration(Configuration configuration)
Add configuration using the given Configuration object
Return with the response configuration object from IotHub
|
Device |
addDevice(Device device)
Add device using the given Device object
Return with the response device object from IotHub
|
CompletableFuture<Device> |
addDeviceAsync(Device device)
Deprecated.
Use the synchronous version of this API
addDevice(Device). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads. |
Module |
addModule(Module module)
Add module using the given Module object
Return with the response module object from IotHub
|
void |
applyConfigurationContentOnDevice(String deviceId,
ConfigurationContent content)
Apply the provided configuration content to the provided device
|
void |
close()
Gracefully close running threads, and then shutdown the underlying executor service
|
static RegistryManager |
createFromConnectionString(String connectionString)
Deprecated.
because this method declares a thrown IOException even though it never throws an IOException. Users
are recommended to use
RegistryManager(String) instead since it does not declare this exception even
though it constructs the same RegistryManager. |
static RegistryManager |
createFromConnectionString(String connectionString,
RegistryManagerOptions options)
Deprecated.
because this method declares a thrown IOException even though it never throws an IOException. Users
are recommended to use
RegistryManager(String, RegistryManagerOptions) instead since it does not declare this exception even
though it constructs the same RegistryManager. |
JobProperties |
exportDevices(JobProperties exportDevicesParameters)
Create a bulk export job.
|
JobProperties |
exportDevices(String exportBlobContainerUri,
Boolean excludeKeys)
Create a bulk export job.
|
CompletableFuture<JobProperties> |
exportDevicesAsync(JobProperties exportDevicesParameters)
Deprecated.
Use the synchronous version of this API
exportDevices(JobProperties). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads. |
CompletableFuture<JobProperties> |
exportDevicesAsync(String exportBlobContainerUri,
Boolean excludeKeys)
Deprecated.
Use the synchronous version of this API
exportDevices(String, Boolean). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads. |
Configuration |
getConfiguration(String configurationId)
Get configuration by configuration Id from IotHub
|
List<Configuration> |
getConfigurations(Integer maxCount)
Get list of Configuration
|
Device |
getDevice(String deviceId)
Get device data by device Id from IotHub
|
CompletableFuture<Device> |
getDeviceAsync(String deviceId)
Deprecated.
Use the synchronous version of this API
getDevice(String). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads. |
String |
getDeviceConnectionString(Device device)
Return the iothub device connection string for a provided device.
|
ArrayList<Device> |
getDevices(Integer maxCount)
Deprecated.
as of release 1.12.0. Please use
DeviceTwin.queryTwin(String sqlQuery, Integer pageSize)
to query for all devices. |
CompletableFuture<ArrayList<Device>> |
getDevicesAsync(Integer maxCount)
Deprecated.
as of release 1.12.0. Please use
DeviceTwin.queryTwin(String sqlQuery, Integer pageSize)
to query for all devices. |
JobProperties |
getJob(String jobId)
Get the properties of an existing job.
|
CompletableFuture<JobProperties> |
getJobAsync(String jobId)
Deprecated.
Use the synchronous version of this API
getJob(String). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads. |
Module |
getModule(String deviceId,
String moduleId)
Get module data by device Id and module Id from IotHub
|
List<Module> |
getModulesOnDevice(String deviceId)
Get modules data by device Id from IotHub
|
RegistryStatistics |
getStatistics()
Get device statistics
|
CompletableFuture<RegistryStatistics> |
getStatisticsAsync()
Deprecated.
Use the synchronous version of this API
getStatistics(). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads. |
JobProperties |
importDevices(JobProperties importDevicesParameters)
Create a bulk import job.
|
JobProperties |
importDevices(String importBlobContainerUri,
String outputBlobContainerUri)
Create a bulk import job.
|
CompletableFuture<JobProperties> |
importDevicesAsync(JobProperties importParameters)
Deprecated.
Use the synchronous version of this API
importDevices(JobProperties). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads. |
CompletableFuture<JobProperties> |
importDevicesAsync(String importBlobContainerUri,
String outputBlobContainerUri)
Deprecated.
Use the synchronous version of this API
importDevices(String, String). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads. |
void |
open()
Deprecated.
as of release 1.13.0 this API is no longer supported and open is done implicitly by the respective APIs
Opens this registry manager's executor service after it has been closed.
|
void |
removeConfiguration(Configuration config)
Send remove configuration request and verify response
|
void |
removeConfiguration(String configurationId)
Send remove configuration request and verify response
|
void |
removeDevice(Device device)
Remove device
|
void |
removeDevice(String deviceId)
Remove device
|
CompletableFuture<Boolean> |
removeDeviceAsync(String deviceId)
Deprecated.
Use the synchronous version of this API
removeDevice(Device). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads. |
void |
removeModule(Module module)
Remove module
|
void |
removeModule(String deviceId,
String moduleId)
Remove module
|
Configuration |
updateConfiguration(Configuration configuration)
Update configuration not forced
|
Configuration |
updateConfiguration(Configuration configuration,
Boolean forceUpdate)
Deprecated.
the forceUpdate argument does nothing so this method will always behave the same as @link #updateConfiguration(Configuration)}
|
Device |
updateDevice(Device device)
Update device not forced
|
Device |
updateDevice(Device device,
Boolean forceUpdate)
Deprecated.
The forceUpdate argument does nothing so this method will always behave the same as
updateDevice(Device) |
CompletableFuture<Device> |
updateDeviceAsync(Device device)
Deprecated.
Use the synchronous version of this API
updateDevice(Device). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads. |
CompletableFuture<Device> |
updateDeviceAsync(Device device,
Boolean forceUpdate)
Deprecated.
The forceUpdate argument does nothing so this method will always behave the same as
updateDeviceAsync(Device) |
Module |
updateModule(Module module)
Update module not forced
|
Module |
updateModule(Module module,
Boolean forceUpdate)
Deprecated.
The forceUpdate argument does nothing so this method will always behave the same as @link #updateModule(Module)}
|
@Deprecated public RegistryManager()
createFromConnectionString(String)public RegistryManager(String connectionString)
connectionString - The iot hub connection stringpublic RegistryManager(String connectionString, RegistryManagerOptions options)
connectionString - The iot hub connection stringoptions - The connection options to use when connecting to the service.public RegistryManager(String hostName, com.azure.core.credential.TokenCredential credential)
hostName - The hostname of your IoT Hub instance (For instance, "your-iot-hub.azure-devices.net")credential - The custom TokenCredential that will provide authentication tokens to
this library when they are needed. The provided tokens must be Json Web Tokens.public RegistryManager(String hostName, com.azure.core.credential.TokenCredential credential, RegistryManagerOptions options)
hostName - The hostname of your IoT Hub instance (For instance, "your-iot-hub.azure-devices.net")credential - The custom TokenCredential that will provide authentication tokens to
this library when they are needed. The provided tokens must be Json Web Tokens.options - The connection options to use when connecting to the service.public RegistryManager(String hostName, com.azure.core.credential.AzureSasCredential azureSasCredential)
hostName - The hostname of your IoT Hub instance (For instance, "your-iot-hub.azure-devices.net")azureSasCredential - The SAS token provider that will be used for authentication.public RegistryManager(String hostName, com.azure.core.credential.AzureSasCredential azureSasCredential, RegistryManagerOptions options)
hostName - The hostname of your IoT Hub instance (For instance, "your-iot-hub.azure-devices.net")azureSasCredential - The SAS token provider that will be used for authentication.options - The connection options to use when connecting to the service.@Deprecated public static RegistryManager createFromConnectionString(String connectionString) throws IOException
RegistryManager(String) instead since it does not declare this exception even
though it constructs the same RegistryManager.connectionString - The iot hub connection stringIOException - This exception is never thrown.@Deprecated public static RegistryManager createFromConnectionString(String connectionString, RegistryManagerOptions options) throws IOException
RegistryManager(String, RegistryManagerOptions) instead since it does not declare this exception even
though it constructs the same RegistryManager.connectionString - The iot hub connection stringoptions - The connection options to use when connecting to the service.IOException - This exception is never thrown.@Deprecated public void open()
public void close()
public Device addDevice(Device device) throws IOException, IotHubException, com.google.gson.JsonSyntaxException
device - The device object to addIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxException@Deprecated public CompletableFuture<Device> addDeviceAsync(Device device) throws IOException, IotHubException
addDevice(Device). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads.device - The device object to addIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedpublic Device getDevice(String deviceId) throws IOException, IotHubException, com.google.gson.JsonSyntaxException
deviceId - The id of requested deviceIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxException@Deprecated public CompletableFuture<Device> getDeviceAsync(String deviceId) throws IOException, IotHubException
getDevice(String). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads.deviceId - The id of requested deviceIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failed@Deprecated public ArrayList<Device> getDevices(Integer maxCount) throws IOException, IotHubException, com.google.gson.JsonSyntaxException
DeviceTwin.queryTwin(String sqlQuery, Integer pageSize)
to query for all devices.maxCount - The requested count of devicesIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxException@Deprecated public CompletableFuture<ArrayList<Device>> getDevicesAsync(Integer maxCount) throws IOException, IotHubException
DeviceTwin.queryTwin(String sqlQuery, Integer pageSize)
to query for all devices.maxCount - The requested count of devicesIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedpublic String getDeviceConnectionString(Device device)
device - The device object to get the connectionStringpublic Device updateDevice(Device device) throws IOException, IotHubException
device - The device object containing updated dataIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failed@Deprecated public Device updateDevice(Device device, Boolean forceUpdate) throws IOException, IotHubException, com.google.gson.JsonSyntaxException
updateDevice(Device)device - The device object containing updated dataforceUpdate - This value is not usedIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxException@Deprecated public CompletableFuture<Device> updateDeviceAsync(Device device) throws IOException, IotHubException
updateDevice(Device). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads.device - The device object containing updated dataIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failed@Deprecated public CompletableFuture<Device> updateDeviceAsync(Device device, Boolean forceUpdate) throws IOException, IotHubException
updateDeviceAsync(Device)device - The device object containing updated dataforceUpdate - True is the update has to be forced regardless if the device stateIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedpublic void removeDevice(String deviceId) throws IOException, IotHubException
deviceId - The device name to removeIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedpublic void removeDevice(Device device) throws IOException, IotHubException, IllegalArgumentException
device - The device name to removeIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedIllegalArgumentException - This exception is thrown if the device is null@Deprecated public CompletableFuture<Boolean> removeDeviceAsync(String deviceId) throws IOException, IotHubException
removeDevice(Device). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads.deviceId - The device object to removeIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedpublic RegistryStatistics getStatistics() throws IOException, IotHubException, com.google.gson.JsonSyntaxException
IOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxException@Deprecated public CompletableFuture<RegistryStatistics> getStatisticsAsync() throws IOException, IotHubException
getStatistics(). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads.IOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedpublic JobProperties exportDevices(String exportBlobContainerUri, Boolean excludeKeys) throws IllegalArgumentException, IOException, IotHubException, com.google.gson.JsonSyntaxException
exportBlobContainerUri - URI containing SAS token to a blob container where export data will be placedexcludeKeys - Whether the devices keys should be excluded from the exported data or notIllegalArgumentException - This exception is thrown if the exportBlobContainerUri or excludeKeys parameters are nullIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxException@Deprecated public CompletableFuture<JobProperties> exportDevicesAsync(String exportBlobContainerUri, Boolean excludeKeys) throws IllegalArgumentException, IOException, IotHubException, com.google.gson.JsonSyntaxException
exportDevices(String, Boolean). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads.excludeKeys - if to exclude keys or notexportBlobContainerUri - the blob storage container URI to store at.IllegalArgumentException - This exception is thrown if the exportBlobContainerUri or excludeKeys parameters are nullIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxExceptionpublic JobProperties exportDevices(JobProperties exportDevicesParameters) throws IllegalArgumentException, IOException, IotHubException, com.google.gson.JsonSyntaxException
exportDevicesParameters - A JobProperties object containing input parameters for export Devices job
This API also supports identity based storage authentication, identity authentication
support is currently available in limited regions. If a user wishes to try it out,
they will need to set an Environment Variable of "EnabledStorageIdentity" and set it to "1"
otherwise default key based authentication is used for storage
More details here IllegalArgumentException - This exception is thrown if the exportBlobContainerUri or excludeKeys parameters are nullIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxException@Deprecated public CompletableFuture<JobProperties> exportDevicesAsync(JobProperties exportDevicesParameters) throws IllegalArgumentException, IOException, IotHubException, com.google.gson.JsonSyntaxException
exportDevices(JobProperties). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads.exportDevicesParameters - A JobProperties object containing input parameters for export Devices job
This API also supports identity based storage authentication, identity authentication
support is currently available in limited regions. If a user wishes to try it out,
they will need to set an Environment Variable of "EnabledStorageIdentity" and set it to "1"
otherwise default key based authentication is used for storage
More details here IllegalArgumentException - This exception is thrown if the exportBlobContainerUri or excludeKeys parameters are nullIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxExceptionpublic JobProperties importDevices(String importBlobContainerUri, String outputBlobContainerUri) throws IllegalArgumentException, IOException, IotHubException, com.google.gson.JsonSyntaxException
importBlobContainerUri - URI containing SAS token to a blob container that contains registry data to syncoutputBlobContainerUri - URI containing SAS token to a blob container where the result of the bulk import operation will be placedIllegalArgumentException - This exception is thrown if the importBlobContainerUri or outputBlobContainerUri parameters are nullIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxException@Deprecated public CompletableFuture<JobProperties> importDevicesAsync(String importBlobContainerUri, String outputBlobContainerUri) throws IllegalArgumentException, IOException, IotHubException, com.google.gson.JsonSyntaxException
importDevices(String, String). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads.importBlobContainerUri - Uri for importBlobContaineroutputBlobContainerUri - Uri for outputBlobContainerIllegalArgumentException - This exception is thrown if the exportBlobContainerUri or excludeKeys parameters are nullIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxExceptionpublic JobProperties importDevices(JobProperties importDevicesParameters) throws IllegalArgumentException, IOException, IotHubException, com.google.gson.JsonSyntaxException
importDevicesParameters - A JobProperties object containing input parameters for import Devices job
This API also supports identity based storage authentication, identity authentication
support is currently available in limited regions. If a user wishes to try it out,
they will need to set an Environment Variable of "EnabledStorageIdentity" and set it to "1"
otherwise default key based authentication is used for storage
More details here IllegalArgumentException - This exception is thrown if the importBlobContainerUri or outputBlobContainerUri parameters are nullIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxException@Deprecated public CompletableFuture<JobProperties> importDevicesAsync(JobProperties importParameters) throws IllegalArgumentException, IOException, IotHubException, com.google.gson.JsonSyntaxException
importDevices(JobProperties). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads.importParameters - A JobProperties object containing input parameters for import Devices job
This API also supports identity based storage authentication, identity authentication
support is currently available in limited regions. If a user wishes to try it out,
they will need to set an Environment Variable of "EnabledStorageIdentity" and set it to "1"
otherwise default key based authentication is used for storage
More details here IllegalArgumentException - This exception is thrown if the exportBlobContainerUri or excludeKeys parameters are nullIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxExceptionpublic JobProperties getJob(String jobId) throws IllegalArgumentException, IOException, IotHubException, com.google.gson.JsonSyntaxException
jobId - The id of the job to be retrieved.IllegalArgumentException - This exception is thrown if the jobId parameter is nullIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxException@Deprecated public CompletableFuture<JobProperties> getJobAsync(String jobId) throws IllegalArgumentException, IOException, IotHubException
getJob(String). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads.jobId - jobID as StringIllegalArgumentException - This exception is thrown if the jobId parameter is nullIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedpublic Module addModule(Module module) throws IOException, IotHubException, com.google.gson.JsonSyntaxException
module - The module object to addIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxExceptionpublic Module getModule(String deviceId, String moduleId) throws IOException, IotHubException, com.google.gson.JsonSyntaxException
deviceId - The id of requested devicemoduleId - The id of requested moduleIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxExceptionpublic List<Module> getModulesOnDevice(String deviceId) throws IOException, IotHubException, com.google.gson.JsonSyntaxException
deviceId - The id of requested deviceIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxExceptionpublic Module updateModule(Module module) throws IOException, IotHubException
module - The module object containing updated dataIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failed@Deprecated public Module updateModule(Module module, Boolean forceUpdate) throws IOException, IotHubException, com.google.gson.JsonSyntaxException
module - The module object containing updated dataforceUpdate - This value is not usedIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxExceptionpublic void removeModule(String deviceId, String moduleId) throws IOException, IotHubException
deviceId - The device name associated with the module to be removedmoduleId - The module name to be removedIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedpublic void removeModule(Module module) throws IOException, IotHubException, IllegalArgumentException
module - The module to be removedIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedIllegalArgumentException - This exception is thrown if the input module is nullpublic Configuration addConfiguration(Configuration configuration) throws IOException, IotHubException, com.google.gson.JsonSyntaxException
configuration - The configuration object to addIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxExceptionpublic Configuration getConfiguration(String configurationId) throws IOException, IotHubException, com.google.gson.JsonSyntaxException
configurationId - The id of requested configurationIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxExceptionpublic List<Configuration> getConfigurations(Integer maxCount) throws IOException, IotHubException, com.google.gson.JsonSyntaxException
maxCount - The requested count of configurationsIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxExceptionpublic Configuration updateConfiguration(Configuration configuration) throws IOException, IotHubException
configuration - The configuration object containing updated dataIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failed@Deprecated public Configuration updateConfiguration(Configuration configuration, Boolean forceUpdate) throws IOException, IotHubException, com.google.gson.JsonSyntaxException
configuration - The configuration object containing updated dataforceUpdate - This value is not usedIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedcom.google.gson.JsonSyntaxExceptionpublic void removeConfiguration(String configurationId) throws IOException, IotHubException
configurationId - The configuration to be removedIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedpublic void removeConfiguration(Configuration config) throws IOException, IotHubException, IllegalArgumentException
config - The configuration to be removedIOException - This exception is thrown if the IO operation failedIotHubException - This exception is thrown if the response verification failedIllegalArgumentException - This exception is thrown if the input configuration is nullpublic void applyConfigurationContentOnDevice(String deviceId, ConfigurationContent content) throws IOException, IotHubException
deviceId - The device to apply the configuration tocontent - The configuration content to apply to the deviceIOException - If the iot hub cannot be reachedIotHubException - If the response from the hub was an error code. This exception will contain that codeCopyright © 2022. All rights reserved.