RegistryClient Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. registry. RegistryClient
- com.
public class RegistryClient
Use the RegistryClient to manage the identity registry in IoT hubs. To access twins, use the TwinClient.
Constructor Summary
Constructor | Description |
---|---|
RegistryClient(String connectionString) |
Constructor to create instance from connection string |
RegistryClient(String hostName, AzureSasCredential azureSasCredential) |
Create a new RegistryClient instance. |
RegistryClient(String hostName, AzureSasCredential azureSasCredential, RegistryClientOptions options) |
Create a new RegistryClient instance. |
RegistryClient(String connectionString, RegistryClientOptions options) |
Constructor to create instance from connection string |
RegistryClient(String hostName, TokenCredential credential) |
Create a new RegistryClient instance. |
RegistryClient(String hostName, TokenCredential credential, RegistryClientOptions options) |
Create a new RegistryClient instance. |
Method Summary
Constructor Details
RegistryClient
public RegistryClient(String connectionString)
Constructor to create instance from connection string
Parameters:
RegistryClient
public RegistryClient(String hostName, AzureSasCredential azureSasCredential)
Create a new RegistryClient instance.
Parameters:
RegistryClient
public RegistryClient(String hostName, AzureSasCredential azureSasCredential, RegistryClientOptions options)
Create a new RegistryClient instance.
Parameters:
RegistryClient
public RegistryClient(String connectionString, RegistryClientOptions options)
Constructor to create instance from connection string
Parameters:
RegistryClient
public RegistryClient(String hostName, TokenCredential credential)
Create a new RegistryClient instance.
Parameters:
RegistryClient
public RegistryClient(String hostName, TokenCredential credential, RegistryClientOptions options)
Create a new RegistryClient instance.
Parameters:
Method Details
addDevice
public Device addDevice(Device device)
Add device using the given Device object Return with the response device object from IotHub
Parameters:
Returns:
Throws:
addModule
public Module addModule(Module module)
Add module using the given Module object Return with the response module object from IotHub
Parameters:
Returns:
Throws:
exportDevices
public RegistryJob exportDevices(RegistryJob exportDevicesParameters)
Create a bulk export job.
Parameters:
Returns:
Throws:
exportDevices
public RegistryJob exportDevices(String exportBlobContainerUri, boolean excludeKeys)
Create a bulk export job.
Parameters:
Returns:
Throws:
getDevice
public Device getDevice(String deviceId)
Get device data by device Id from IotHub
Parameters:
Returns:
Throws:
getJob
public RegistryJob getJob(String jobId)
Get the properties of an existing job.
Parameters:
Returns:
Throws:
getModule
public Module getModule(String deviceId, String moduleId)
Get module data by device Id and module Id from IotHub
Parameters:
Returns:
Throws:
getModulesOnDevice
public List
Get modules data by device Id from IotHub
Parameters:
Returns:
Throws:
getStatistics
public RegistryStatistics getStatistics()
Get device statistics
Returns:
Throws:
importDevices
public RegistryJob importDevices(RegistryJob importDevicesParameters)
Create a bulk import job.
Parameters:
Returns:
Throws:
importDevices
public RegistryJob importDevices(String importBlobContainerUri, String outputBlobContainerUri)
Create a bulk import job.
Parameters:
Returns:
Throws:
removeDevice
public void removeDevice(Device device)
Remove device
Parameters:
Throws:
removeDevice
public void removeDevice(String deviceId)
Remove device
Parameters:
Throws:
removeModule
public void removeModule(Module module)
Remove module
Parameters:
Throws:
removeModule
public void removeModule(String deviceId, String moduleId)
Remove module
Parameters:
Throws:
updateDevice
public Device updateDevice(Device device)
Update device not forced
Parameters:
Returns:
Throws:
updateModule
public Module updateModule(Module module)
Update module not forced
Parameters:
Returns:
Throws: