Język

DeviceManagementClient Class

Definition

The DeviceManagementClient.

public class DeviceManagementClient
type DeviceManagementClient = class
Public Class DeviceManagementClient
Inheritance
DeviceManagementClient

Constructors

Name Description
DeviceManagementClient()

Initializes a new instance of DeviceManagementClient for mocking.

DeviceManagementClient(DeviceManagementClientSettings)

Initializes a new instance of DeviceManagementClient from a DeviceManagementClientSettings.

DeviceManagementClient(Uri, String, TokenCredential, DeviceUpdateClientOptions)

Initializes a new instance of DeviceManagementClient.

DeviceManagementClient(Uri, String, TokenCredential)

Initializes a new instance of DeviceManagementClient.

Properties

Name Description
Pipeline

The HTTP pipeline for sending and receiving REST requests and responses.

Methods

Name Description
CreateOrUpdateDeployment(String, String, RequestContent, RequestContext)

[Protocol Method] Creates or updates a deployment.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
CreateOrUpdateDeploymentAsync(String, String, RequestContent, RequestContext)

[Protocol Method] Creates or updates a deployment.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
DeleteDeployment(String, String, RequestContext)

[Protocol Method] Deletes a deployment.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
DeleteDeploymentAsync(String, String, RequestContext)

[Protocol Method] Deletes a deployment.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
DeleteDeploymentForDeviceClassSubgroup(String, String, String, RequestContext)

[Protocol Method] Deletes a device class subgroup deployment.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
DeleteDeploymentForDeviceClassSubgroupAsync(String, String, String, RequestContext)

[Protocol Method] Deletes a device class subgroup deployment.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
DeleteDeviceClass(String, RequestContext)

[Protocol Method] Deletes a device class. Device classes are created automatically when Device Update-enabled devices are connected to the hub but are not automatically cleaned up since they are referenced by DeviceClassSubgroups. If the user has deleted all DeviceClassSubgroups for a device class they can also delete the device class to remove the records from the system and to stop checking the compatibility of this device class with new updates. If a device is ever reconnected for this device class it will be re-created.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
DeleteDeviceClassAsync(String, RequestContext)

[Protocol Method] Deletes a device class. Device classes are created automatically when Device Update-enabled devices are connected to the hub but are not automatically cleaned up since they are referenced by DeviceClassSubgroups. If the user has deleted all DeviceClassSubgroups for a device class they can also delete the device class to remove the records from the system and to stop checking the compatibility of this device class with new updates. If a device is ever reconnected for this device class it will be re-created.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
DeleteDeviceClassSubgroup(String, String, RequestContext)

[Protocol Method] Deletes a device class subgroup. This subgroup is automatically created when a Device Update-enabled device is connected to the hub and reports its properties. Groups, subgroups, and deployments are not automatically cleaned up but are retained for history purposes. Users can call this method to delete a subgroup if they do not need to retain any of the history of the subgroup and no longer need it. If a device is ever connected again for this subgroup after the subgroup was deleted it will be automatically re-created but there will be no history.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
DeleteDeviceClassSubgroupAsync(String, String, RequestContext)

[Protocol Method] Deletes a device class subgroup. This subgroup is automatically created when a Device Update-enabled device is connected to the hub and reports its properties. Groups, subgroups, and deployments are not automatically cleaned up but are retained for history purposes. Users can call this method to delete a subgroup if they do not need to retain any of the history of the subgroup and no longer need it. If a device is ever connected again for this subgroup after the subgroup was deleted it will be automatically re-created but there will be no history.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
DeleteGroup(String, RequestContext)

[Protocol Method] Deletes a device group. This group is automatically created when a Device Update-enabled device is connected to the hub and reports its properties. Groups, subgroups, and deployments are not automatically cleaned up but are retained for history purposes. Users can call this method to delete a group if they do not need to retain any of the history of the group and no longer need it. If a device is ever connected again for this group after the group was deleted it will be automatically re-created but there will be no history.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
DeleteGroupAsync(String, RequestContext)

[Protocol Method] Deletes a device group. This group is automatically created when a Device Update-enabled device is connected to the hub and reports its properties. Groups, subgroups, and deployments are not automatically cleaned up but are retained for history purposes. Users can call this method to delete a group if they do not need to retain any of the history of the group and no longer need it. If a device is ever connected again for this group after the group was deleted it will be automatically re-created but there will be no history.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetBestUpdatesForDeviceClassSubgroup(String, String, RequestContext)

[Protocol Method] Get the best available update for a device class subgroup and a count of how many devices need this update.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetBestUpdatesForDeviceClassSubgroupAsync(String, String, RequestContext)

[Protocol Method] Get the best available update for a device class subgroup and a count of how many devices need this update.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetBestUpdatesForGroups(String, RequestContext)

[Protocol Method] Get the best available updates for a device group and a count of how many devices need each update.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetBestUpdatesForGroupsAsync(String, RequestContext)

[Protocol Method] Get the best available updates for a device group and a count of how many devices need each update.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeployment(String, String, RequestContext)

[Protocol Method] Gets the deployment properties.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeploymentAsync(String, String, RequestContext)

[Protocol Method] Gets the deployment properties.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeploymentForDeviceClassSubgroup(String, String, String, RequestContext)

[Protocol Method] Gets the deployment properties.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeploymentForDeviceClassSubgroupAsync(String, String, String, RequestContext)

[Protocol Method] Gets the deployment properties.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeploymentsForDeviceClassSubgroups(String, String, String, RequestContext)

[Protocol Method] Gets a list of deployments for a device class subgroup.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeploymentsForDeviceClassSubgroupsAsync(String, String, String, RequestContext)

[Protocol Method] Gets a list of deployments for a device class subgroup.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeploymentsForGroups(String, String, RequestContext)

[Protocol Method] Gets a list of deployments for a device group.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeploymentsForGroupsAsync(String, String, RequestContext)

[Protocol Method] Gets a list of deployments for a device group.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeploymentStatus(String, String, RequestContext)

[Protocol Method] Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeploymentStatusAsync(String, String, RequestContext)

[Protocol Method] Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDevice(String, RequestContext)

[Protocol Method] Gets the device properties and latest deployment status for a device connected to Device Update for IoT Hub.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceAsync(String, RequestContext)

[Protocol Method] Gets the device properties and latest deployment status for a device connected to Device Update for IoT Hub.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceClass(String, RequestContext)

[Protocol Method] Gets the properties of a device class.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceClassAsync(String, RequestContext)

[Protocol Method] Gets the properties of a device class.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceClasses(String, RequestContext)

[Protocol Method] Gets a list of all device classes (sets of devices compatible with the same updates based on the model Id and compat properties reported in the Device Update PnP interface in IoT Hub) for all devices connected to Device Update for IoT Hub.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceClassesAsync(String, RequestContext)

[Protocol Method] Gets a list of all device classes (sets of devices compatible with the same updates based on the model Id and compat properties reported in the Device Update PnP interface in IoT Hub) for all devices connected to Device Update for IoT Hub.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceClassSubgroup(String, String, RequestContext)

[Protocol Method] Gets device class subgroup details. A device class subgroup is the set of devices within the group that share the same device class. All devices within the same device class are compatible with the same updates.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceClassSubgroupAsync(String, String, RequestContext)

[Protocol Method] Gets device class subgroup details. A device class subgroup is the set of devices within the group that share the same device class. All devices within the same device class are compatible with the same updates.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceClassSubgroupDeploymentStatus(String, String, String, RequestContext)

[Protocol Method] Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceClassSubgroupDeploymentStatusAsync(String, String, String, RequestContext)

[Protocol Method] Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceClassSubgroupsForGroups(String, String, RequestContext)

[Protocol Method] Get the device class subgroups for the group. A device class subgroup is the set of devices within the group that share the same device class. All devices within the same device class are compatible with the same updates.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceClassSubgroupsForGroupsAsync(String, String, RequestContext)

[Protocol Method] Get the device class subgroups for the group. A device class subgroup is the set of devices within the group that share the same device class. All devices within the same device class are compatible with the same updates.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceClassSubgroupUpdateCompliance(String, String, RequestContext)

[Protocol Method] Get device class subgroup update compliance information such as how many devices are on their latest update, how many need new updates, and how many are in progress on receiving a new update.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceClassSubgroupUpdateComplianceAsync(String, String, RequestContext)

[Protocol Method] Get device class subgroup update compliance information such as how many devices are on their latest update, how many need new updates, and how many are in progress on receiving a new update.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceModule(String, String, RequestContext)

[Protocol Method] Gets the device module properties and latest deployment status for a device module connected to Device Update for IoT Hub.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceModuleAsync(String, String, RequestContext)

[Protocol Method] Gets the device module properties and latest deployment status for a device module connected to Device Update for IoT Hub.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDevices(String, RequestContext)

[Protocol Method] Gets a list of devices connected to Device Update for IoT Hub.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDevicesAsync(String, RequestContext)

[Protocol Method] Gets a list of devices connected to Device Update for IoT Hub.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceStatesForDeviceClassSubgroupDeployments(String, String, String, String, RequestContext)

[Protocol Method] Gets a list of devices in a deployment along with their state. Useful for getting a list of failed devices.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeviceStatesForDeviceClassSubgroupDeploymentsAsync(String, String, String, String, RequestContext)

[Protocol Method] Gets a list of devices in a deployment along with their state. Useful for getting a list of failed devices.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetGroup(String, RequestContext)

[Protocol Method] Gets the device group properties.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetGroupAsync(String, RequestContext)

[Protocol Method] Gets the device group properties.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetGroups(String, RequestContext)

[Protocol Method] Gets a list of all device groups. The $default group will always be returned first.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetGroupsAsync(String, RequestContext)

[Protocol Method] Gets a list of all device groups. The $default group will always be returned first.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetHealthOfDevices(String, RequestContext)

[Protocol Method] Get list of device health

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetHealthOfDevicesAsync(String, RequestContext)

[Protocol Method] Get list of device health

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetInstallableUpdatesForDeviceClasses(String, RequestContext)

[Protocol Method] Gets a list of installable updates for a device class.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetInstallableUpdatesForDeviceClassesAsync(String, RequestContext)

[Protocol Method] Gets a list of installable updates for a device class.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetLogCollection(String, RequestContext)

[Protocol Method] Get the device diagnostics log collection

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetLogCollectionAsync(String, RequestContext)

[Protocol Method] Get the device diagnostics log collection

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetLogCollectionDetailedStatus(String, RequestContext)

[Protocol Method] Get log collection with detailed status

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetLogCollectionDetailedStatusAsync(String, RequestContext)

[Protocol Method] Get log collection with detailed status

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetLogCollections(RequestContext)

[Protocol Method] Get all device diagnostics log collections

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetLogCollectionsAsync(RequestContext)

[Protocol Method] Get all device diagnostics log collections

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetOperationStatus(String, Nullable<ETag>, RequestContext)

[Protocol Method] Retrieve operation status.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetOperationStatusAsync(String, Nullable<ETag>, RequestContext)

[Protocol Method] Retrieve operation status.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetOperationStatuses(String, Nullable<Int32>, RequestContext)

[Protocol Method] Get a list of all device import operations. Completed operations are kept for 7 days before auto-deleted.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetOperationStatusesAsync(String, Nullable<Int32>, RequestContext)

[Protocol Method] Get a list of all device import operations. Completed operations are kept for 7 days before auto-deleted.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetUpdateCompliance(RequestContext)

[Protocol Method] Gets the breakdown of how many devices are on their latest update, have new updates available, or are in progress receiving new updates.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetUpdateComplianceAsync(RequestContext)

[Protocol Method] Gets the breakdown of how many devices are on their latest update, have new updates available, or are in progress receiving new updates.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetUpdateComplianceForGroup(String, RequestContext)

[Protocol Method] Get device group update compliance information such as how many devices are on their latest update, how many need new updates, and how many are in progress on receiving a new update.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetUpdateComplianceForGroupAsync(String, RequestContext)

[Protocol Method] Get device group update compliance information such as how many devices are on their latest update, how many need new updates, and how many are in progress on receiving a new update.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
ImportDevices(WaitUntil, RequestContent, RequestContext)

Import existing devices from IoT Hub. This is a long-running-operation; use Operation-Location response header value to check for operation status.

ImportDevicesAsync(WaitUntil, RequestContent, RequestContext)

Import existing devices from IoT Hub. This is a long-running-operation; use Operation-Location response header value to check for operation status.

RetryDeployment(String, String, String, RequestContext)

[Protocol Method] Retries a deployment with failed devices.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
RetryDeploymentAsync(String, String, String, RequestContext)

[Protocol Method] Retries a deployment with failed devices.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
StartLogCollection(String, RequestContent, RequestContext)

[Protocol Method] Start the device diagnostics log collection on specified devices.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
StartLogCollectionAsync(String, RequestContent, RequestContext)

[Protocol Method] Start the device diagnostics log collection on specified devices.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
StopDeployment(String, String, String, RequestContext)

[Protocol Method] Stops a deployment.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
StopDeploymentAsync(String, String, String, RequestContext)

[Protocol Method] Stops a deployment.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
UpdateDeviceClass(String, RequestContent, RequestContext)

[Protocol Method] Update device class details.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
UpdateDeviceClassAsync(String, RequestContent, RequestContext)

[Protocol Method] Update device class details.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

Applies to