Class DeviceManagementClient
-
Method Summary
Modifier and TypeMethodDescriptionbeginImportDevices
(BinaryData importType, RequestOptions requestOptions) Import existing devices from IoT Hub.createOrUpdateDeploymentWithResponse
(String groupId, String deploymentId, BinaryData deployment, RequestOptions requestOptions) Creates or updates a deployment.deleteDeploymentForDeviceClassSubgroupWithResponse
(String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) Deletes a device class subgroup deployment.deleteDeploymentWithResponse
(String groupId, String deploymentId, RequestOptions requestOptions) Deletes a deployment.deleteDeviceClassSubgroupWithResponse
(String groupId, String deviceClassId, RequestOptions requestOptions) Deletes a device class subgroup.deleteDeviceClassWithResponse
(String deviceClassId, RequestOptions requestOptions) Deletes a device class.deleteGroupWithResponse
(String groupId, RequestOptions requestOptions) Deletes a device group.getBestUpdatesForDeviceClassSubgroupWithResponse
(String groupId, String deviceClassId, RequestOptions requestOptions) Get the best available update for a device class subgroup and a count of how many devices need this update.getDeploymentForDeviceClassSubgroupWithResponse
(String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) Gets the deployment properties.getDeploymentStatusWithResponse
(String groupId, String deploymentId, RequestOptions requestOptions) Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed.getDeploymentWithResponse
(String groupId, String deploymentId, RequestOptions requestOptions) Gets the deployment properties.getDeviceClassSubgroupDeploymentStatusWithResponse
(String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed.getDeviceClassSubgroupUpdateComplianceWithResponse
(String groupId, String deviceClassId, RequestOptions requestOptions) 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.getDeviceClassSubgroupWithResponse
(String groupId, String deviceClassId, RequestOptions requestOptions) Gets device class subgroup details.getDeviceClassWithResponse
(String deviceClassId, RequestOptions requestOptions) Gets the properties of a device class.getDeviceModuleWithResponse
(String deviceId, String moduleId, RequestOptions requestOptions) Gets the device module properties and latest deployment status for a device module connected to Device Update for IoT Hub.getDeviceWithResponse
(String deviceId, RequestOptions requestOptions) Gets the device properties and latest deployment status for a device connected to Device Update for IoT Hub.getGroupWithResponse
(String groupId, RequestOptions requestOptions) Gets the device group properties.getLogCollectionDetailedStatusWithResponse
(String operationId, RequestOptions requestOptions) Get log collection with detailed status.getLogCollectionWithResponse
(String logCollectionId, RequestOptions requestOptions) Get the device diagnostics log collection.getOperationWithResponse
(String operationId, RequestOptions requestOptions) Retrieve operation status.getUpdateComplianceForGroupWithResponse
(String groupId, RequestOptions requestOptions) 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.getUpdateComplianceWithResponse
(RequestOptions requestOptions) Gets the breakdown of how many devices are on their latest update, have new updates available, or are in progress receiving new updates.listBestUpdatesForGroup
(String groupId, RequestOptions requestOptions) Get the best available updates for a device group and a count of how many devices need each update.listDeploymentsForDeviceClassSubgroup
(String groupId, String deviceClassId, RequestOptions requestOptions) Gets a list of deployments for a device class subgroup.listDeploymentsForGroup
(String groupId, RequestOptions requestOptions) Gets a list of deployments for a device group.listDeviceClasses
(RequestOptions requestOptions) Gets a list of all device classes (unique combinations of device manufacturer and model) for all devices connected to Device Update for IoT Hub.listDeviceClassSubgroupsForGroup
(String groupId, RequestOptions requestOptions) Get the device class subgroups for the group.listDeviceHealth
(String filter, RequestOptions requestOptions) Get list of device health.listDevices
(RequestOptions requestOptions) Gets a list of devices connected to Device Update for IoT Hub.listDeviceStatesForDeviceClassSubgroupDeployment
(String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) Gets a list of devices in a deployment along with their state.listGroups
(RequestOptions requestOptions) Gets a list of all device groups.listInstallableUpdatesForDeviceClass
(String deviceClassId, RequestOptions requestOptions) Gets a list of installable updates for a device class.listLogCollections
(RequestOptions requestOptions) Get all device diagnostics log collections.listOperations
(RequestOptions requestOptions) Get a list of all device import operations.retryDeploymentWithResponse
(String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) Retries a deployment with failed devices.startLogCollectionWithResponse
(String logCollectionId, BinaryData logCollection, RequestOptions requestOptions) Start the device diagnostics log collection on specified devices.stopDeploymentWithResponse
(String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) Stops a deployment.updateDeviceClassWithResponse
(String deviceClassId, BinaryData deviceClassPatch, RequestOptions requestOptions) Update device class details.
-
Method Details
-
listDeviceClasses
Gets a list of all device classes (unique combinations of device manufacturer and model) for all devices connected to Device Update for IoT Hub.Response Body Schema
{ value (Required): [ (Required){ deviceClassId: String (Required) friendlyName: String (Optional) deviceClassProperties (Required): { contractModel (Optional): { id: String (Required) name: String (Required) } compatProperties (Required): { String: String (Required) } } bestCompatibleUpdate (Optional): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } } ] nextLink: String (Optional) }
- Parameters:
requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- a list of all device classes (unique combinations of device manufacturer and model) for all devices
connected to Device Update for IoT Hub as paginated response with
PagedIterable
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getDeviceClassWithResponse
public Response<BinaryData> getDeviceClassWithResponse(String deviceClassId, RequestOptions requestOptions) Gets the properties of a device class.Response Body Schema
{ deviceClassId: String (Required) friendlyName: String (Optional) deviceClassProperties (Required): { contractModel (Optional): { id: String (Required) name: String (Required) } compatProperties (Required): { String: String (Required) } } bestCompatibleUpdate (Optional): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } }
- Parameters:
deviceClassId
- Device class identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the properties of a device class along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
updateDeviceClassWithResponse
public Response<BinaryData> updateDeviceClassWithResponse(String deviceClassId, BinaryData deviceClassPatch, RequestOptions requestOptions) Update device class details.Request Body Schema
{ friendlyName: String (Required) }
Response Body Schema
{ deviceClassId: String (Required) friendlyName: String (Optional) deviceClassProperties (Required): { contractModel (Optional): { id: String (Required) name: String (Required) } compatProperties (Required): { String: String (Required) } } bestCompatibleUpdate (Optional): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } }
- Parameters:
deviceClassId
- Device class identifier.deviceClassPatch
- The device class json merge patch body. Currently only supports patching friendlyName.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- device class metadata along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
deleteDeviceClassWithResponse
public Response<Void> deleteDeviceClassWithResponse(String deviceClassId, RequestOptions requestOptions) 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.- Parameters:
deviceClassId
- Device class identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
listInstallableUpdatesForDeviceClass
public PagedIterable<BinaryData> listInstallableUpdatesForDeviceClass(String deviceClassId, RequestOptions requestOptions) Gets a list of installable updates for a device class.Response Body Schema
{ value (Required): [ (Required){ updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } ] nextLink: String (Optional) }
- Parameters:
deviceClassId
- Device class identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- a list of installable updates for a device class as paginated response with
PagedIterable
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
listDevices
Gets a list of devices connected to Device Update for IoT Hub.Query Parameters
Query Parameters Name Type Required Description filter String No Restricts the set of devices returned. You can filter on GroupId, DeviceClassId, or GroupId and DeploymentStatus. RequestOptions.addQueryParam(java.lang.String, java.lang.String)
Response Body Schema
{ value (Required): [ (Required){ deviceId: String (Required) moduleId: String (Optional) deviceClassId: String (Required) groupId: String (Optional) lastAttemptedUpdate (Optional): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } deploymentStatus: String(Succeeded/InProgress/Canceled/Failed) (Optional) installedUpdate (Optional): (recursive schema, see installedUpdate above) onLatestUpdate: boolean (Required) lastDeploymentId: String (Optional) lastInstallResult (Optional): { resultCode: int (Required) extendedResultCode: int (Required) resultDetails: String (Optional) stepResults (Optional): [ (Optional){ update (Optional): (recursive schema, see update above) description: String (Optional) resultCode: int (Required) extendedResultCode: int (Required) resultDetails: String (Optional) } ] } } ] nextLink: String (Optional) }
- Parameters:
requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- a list of devices connected to Device Update for IoT Hub as paginated response with
PagedIterable
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
beginImportDevices
public SyncPoller<BinaryData,BinaryData> beginImportDevices(BinaryData importType, RequestOptions requestOptions) Import existing devices from IoT Hub. This is a long-running-operation; use Operation-Location response header value to check for operation status.Request Body Schema
String(Devices/Modules/All)
- Parameters:
importType
- The types of devices to import.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getDeviceWithResponse
Gets the device properties and latest deployment status for a device connected to Device Update for IoT Hub.Response Body Schema
{ deviceId: String (Required) moduleId: String (Optional) deviceClassId: String (Required) groupId: String (Optional) lastAttemptedUpdate (Optional): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } deploymentStatus: String(Succeeded/InProgress/Canceled/Failed) (Optional) installedUpdate (Optional): (recursive schema, see installedUpdate above) onLatestUpdate: boolean (Required) lastDeploymentId: String (Optional) lastInstallResult (Optional): { resultCode: int (Required) extendedResultCode: int (Required) resultDetails: String (Optional) stepResults (Optional): [ (Optional){ update (Optional): (recursive schema, see update above) description: String (Optional) resultCode: int (Required) extendedResultCode: int (Required) resultDetails: String (Optional) } ] } }
- Parameters:
deviceId
- Device identifier in Azure IoT Hub.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the device properties and latest deployment status for a device connected to Device Update for IoT Hub
along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getDeviceModuleWithResponse
public Response<BinaryData> getDeviceModuleWithResponse(String deviceId, String moduleId, RequestOptions requestOptions) Gets the device module properties and latest deployment status for a device module connected to Device Update for IoT Hub.Response Body Schema
{ deviceId: String (Required) moduleId: String (Optional) deviceClassId: String (Required) groupId: String (Optional) lastAttemptedUpdate (Optional): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } deploymentStatus: String(Succeeded/InProgress/Canceled/Failed) (Optional) installedUpdate (Optional): (recursive schema, see installedUpdate above) onLatestUpdate: boolean (Required) lastDeploymentId: String (Optional) lastInstallResult (Optional): { resultCode: int (Required) extendedResultCode: int (Required) resultDetails: String (Optional) stepResults (Optional): [ (Optional){ update (Optional): (recursive schema, see update above) description: String (Optional) resultCode: int (Required) extendedResultCode: int (Required) resultDetails: String (Optional) } ] } }
- Parameters:
deviceId
- Device identifier in Azure IoT Hub.moduleId
- Device module identifier in Azure IoT Hub.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the device module properties and latest deployment status for a device module connected to Device Update
for IoT Hub along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getUpdateComplianceWithResponse
Gets the breakdown of how many devices are on their latest update, have new updates available, or are in progress receiving new updates.Response Body Schema
{ totalDeviceCount: int (Required) onLatestUpdateDeviceCount: int (Required) newUpdatesAvailableDeviceCount: int (Required) updatesInProgressDeviceCount: int (Required) }
- Parameters:
requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the breakdown of how many devices are on their latest update, have new updates available, or are in
progress receiving new updates along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
listGroups
Gets a list of all device groups. The $default group will always be returned first.Query Parameters
Query Parameters Name Type Required Description orderby String No Orders the set of groups returned. You can order by any combination of groupId, device count, created date, subgroupsWithNewUpdatesAvailableCount, subgroupsWithUpdatesInProgressCount, or subgroupsOnLatestUpdateCount. RequestOptions.addQueryParam(java.lang.String, java.lang.String)
Response Body Schema
{ value (Required): [ (Required){ groupId: String (Required) groupType: String(IoTHubTag/DefaultNoTag) (Required) createdDateTime: String (Required) deviceCount: Integer (Optional) subgroupsWithNewUpdatesAvailableCount: Integer (Optional) subgroupsWithUpdatesInProgressCount: Integer (Optional) subgroupsWithOnLatestUpdateCount: Integer (Optional) deployments (Optional): [ String (Optional) ] } ] nextLink: String (Optional) }
- Parameters:
requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- a list of all device groups as paginated response with
PagedIterable
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getGroupWithResponse
Gets the device group properties.Response Body Schema
{ groupId: String (Required) groupType: String(IoTHubTag/DefaultNoTag) (Required) createdDateTime: String (Required) deviceCount: Integer (Optional) subgroupsWithNewUpdatesAvailableCount: Integer (Optional) subgroupsWithUpdatesInProgressCount: Integer (Optional) subgroupsWithOnLatestUpdateCount: Integer (Optional) deployments (Optional): [ String (Optional) ] }
- Parameters:
groupId
- Group identity.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the device group properties along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
deleteGroupWithResponse
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.- Parameters:
groupId
- Group identity.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getUpdateComplianceForGroupWithResponse
public Response<BinaryData> getUpdateComplianceForGroupWithResponse(String groupId, RequestOptions requestOptions) 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.Response Body Schema
{ totalDeviceCount: int (Required) onLatestUpdateDeviceCount: int (Required) newUpdatesAvailableDeviceCount: int (Required) updatesInProgressDeviceCount: int (Required) }
- Parameters:
groupId
- Group identity.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- 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 along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
listBestUpdatesForGroup
public PagedIterable<BinaryData> listBestUpdatesForGroup(String groupId, RequestOptions requestOptions) Get the best available updates for a device group and a count of how many devices need each update.Query Parameters
Query Parameters Name Type Required Description filter String No Restricts the set of bestUpdates returned. You can filter on update Provider, Name and Version property. This filter is deprecated and should not be used. RequestOptions.addQueryParam(java.lang.String, java.lang.String)
Response Body Schema
{ value (Required): [ (Required){ groupId: String (Required) deviceClassId: String (Required) update (Required): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } deviceCount: int (Required) } ] nextLink: String (Optional) }
- Parameters:
groupId
- Group identity.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the best available updates for a device group and a count of how many devices need each update as
paginated response with
PagedIterable
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
listDeploymentsForGroup
public PagedIterable<BinaryData> listDeploymentsForGroup(String groupId, RequestOptions requestOptions) Gets a list of deployments for a device group.Query Parameters
Query Parameters Name Type Required Description orderby String No Orders the set of deployments returned. You can order by start date. RequestOptions.addQueryParam(java.lang.String, java.lang.String)
Response Body Schema
{ value (Required): [ (Required){ deploymentId: String (Required) startDateTime: OffsetDateTime (Required) update (Required): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } groupId: String (Required) deviceClassSubgroups (Optional): [ String (Optional) ] isCanceled: Boolean (Optional) isRetried: Boolean (Optional) rollbackPolicy (Optional): { update (Required): (recursive schema, see update above) failure (Required): { devicesFailedPercentage: int (Required) devicesFailedCount: int (Required) } } isCloudInitiatedRollback: Boolean (Optional) } ] nextLink: String (Optional) }
- Parameters:
groupId
- Group identity.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- a list of deployments for a device group as paginated response with
PagedIterable
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getDeploymentWithResponse
public Response<BinaryData> getDeploymentWithResponse(String groupId, String deploymentId, RequestOptions requestOptions) Gets the deployment properties.Response Body Schema
{ deploymentId: String (Required) startDateTime: OffsetDateTime (Required) update (Required): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } groupId: String (Required) deviceClassSubgroups (Optional): [ String (Optional) ] isCanceled: Boolean (Optional) isRetried: Boolean (Optional) rollbackPolicy (Optional): { update (Required): (recursive schema, see update above) failure (Required): { devicesFailedPercentage: int (Required) devicesFailedCount: int (Required) } } isCloudInitiatedRollback: Boolean (Optional) }
- Parameters:
groupId
- Group identity.deploymentId
- Deployment identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the deployment properties along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
createOrUpdateDeploymentWithResponse
public Response<BinaryData> createOrUpdateDeploymentWithResponse(String groupId, String deploymentId, BinaryData deployment, RequestOptions requestOptions) Creates or updates a deployment.Request Body Schema
{ deploymentId: String (Required) startDateTime: OffsetDateTime (Required) update (Required): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } groupId: String (Required) deviceClassSubgroups (Optional): [ String (Optional) ] isCanceled: Boolean (Optional) isRetried: Boolean (Optional) rollbackPolicy (Optional): { update (Required): (recursive schema, see update above) failure (Required): { devicesFailedPercentage: int (Required) devicesFailedCount: int (Required) } } isCloudInitiatedRollback: Boolean (Optional) }
Response Body Schema
{ deploymentId: String (Required) startDateTime: OffsetDateTime (Required) update (Required): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } groupId: String (Required) deviceClassSubgroups (Optional): [ String (Optional) ] isCanceled: Boolean (Optional) isRetried: Boolean (Optional) rollbackPolicy (Optional): { update (Required): (recursive schema, see update above) failure (Required): { devicesFailedPercentage: int (Required) devicesFailedCount: int (Required) } } isCloudInitiatedRollback: Boolean (Optional) }
- Parameters:
groupId
- Group identity.deploymentId
- Deployment identifier.deployment
- The deployment properties.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- deployment metadata along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
deleteDeploymentWithResponse
public Response<Void> deleteDeploymentWithResponse(String groupId, String deploymentId, RequestOptions requestOptions) Deletes a deployment.- Parameters:
groupId
- Group identity.deploymentId
- Deployment identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getDeploymentStatusWithResponse
public Response<BinaryData> getDeploymentStatusWithResponse(String groupId, String deploymentId, RequestOptions requestOptions) Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed.Response Body Schema
{ groupId: String (Required) deploymentState: String(Active/ActiveWithSubgroupFailures/Failed/Inactive/Canceled) (Required) error (Optional): { code: String (Required) message: String (Required) target: String (Optional) details (Optional): [ (recursive schema, see above) ] innererror (Optional): { code: String (Required) message: String (Optional) errorDetail: String (Optional) innerError (Optional): (recursive schema, see innerError above) } occurredDateTime: OffsetDateTime (Optional) } subgroupStatus (Required): [ (Required){ groupId: String (Required) deviceClassId: String (Required) deploymentState: String(Active/Failed/Inactive/Canceled) (Required) error (Optional): (recursive schema, see error above) totalDevices: Integer (Optional) devicesInProgressCount: Integer (Optional) devicesCompletedFailedCount: Integer (Optional) devicesCompletedSucceededCount: Integer (Optional) devicesCanceledCount: Integer (Optional) } ] }
- Parameters:
groupId
- Group identity.deploymentId
- Deployment identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the status of a deployment including a breakdown of how many devices in the deployment are in progress,
completed, or failed along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
listDeviceClassSubgroupsForGroup
public PagedIterable<BinaryData> listDeviceClassSubgroupsForGroup(String groupId, RequestOptions requestOptions) Get the device class subgroups for the group.Query Parameters
Query Parameters Name Type Required Description filter String No Restricts the set of device class subgroups returned. You can filter on compat properties by name and value. RequestOptions.addQueryParam(java.lang.String, java.lang.String)
Response Body Schema
{ value (Required): [ (Required){ deviceClassId: String (Required) groupId: String (Required) createdDateTime: String (Required) deviceCount: Integer (Optional) deploymentId: String (Optional) } ] nextLink: String (Optional) }
- Parameters:
groupId
- Group identity.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the device class subgroups for the group as paginated response with
PagedIterable
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getDeviceClassSubgroupWithResponse
public Response<BinaryData> getDeviceClassSubgroupWithResponse(String groupId, String deviceClassId, RequestOptions requestOptions) Gets device class subgroup details.Response Body Schema
{ deviceClassId: String (Required) groupId: String (Required) createdDateTime: String (Required) deviceCount: Integer (Optional) deploymentId: String (Optional) }
- Parameters:
groupId
- Group identity.deviceClassId
- Device class identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- device class subgroup details along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
deleteDeviceClassSubgroupWithResponse
public Response<Void> deleteDeviceClassSubgroupWithResponse(String groupId, String deviceClassId, RequestOptions requestOptions) Deletes a device class subgroup.- Parameters:
groupId
- Group identity.deviceClassId
- Device class identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getDeviceClassSubgroupUpdateComplianceWithResponse
public Response<BinaryData> getDeviceClassSubgroupUpdateComplianceWithResponse(String groupId, String deviceClassId, RequestOptions requestOptions) 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.Response Body Schema
{ totalDeviceCount: int (Required) onLatestUpdateDeviceCount: int (Required) newUpdatesAvailableDeviceCount: int (Required) updatesInProgressDeviceCount: int (Required) }
- Parameters:
groupId
- Group identity.deviceClassId
- Device class identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- 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 along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getBestUpdatesForDeviceClassSubgroupWithResponse
public Response<BinaryData> getBestUpdatesForDeviceClassSubgroupWithResponse(String groupId, String deviceClassId, RequestOptions requestOptions) Get the best available update for a device class subgroup and a count of how many devices need this update.Response Body Schema
{ groupId: String (Required) deviceClassId: String (Required) update (Required): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } deviceCount: int (Required) }
- Parameters:
groupId
- Group identity.deviceClassId
- Device class identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the best available update for a device class subgroup and a count of how many devices need this update
along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
listDeploymentsForDeviceClassSubgroup
public PagedIterable<BinaryData> listDeploymentsForDeviceClassSubgroup(String groupId, String deviceClassId, RequestOptions requestOptions) Gets a list of deployments for a device class subgroup.Query Parameters
Query Parameters Name Type Required Description orderby String No Orders the set of deployments returned. You can order by start date. RequestOptions.addQueryParam(java.lang.String, java.lang.String)
Response Body Schema
{ value (Required): [ (Required){ deploymentId: String (Required) startDateTime: OffsetDateTime (Required) update (Required): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } groupId: String (Required) deviceClassSubgroups (Optional): [ String (Optional) ] isCanceled: Boolean (Optional) isRetried: Boolean (Optional) rollbackPolicy (Optional): { update (Required): (recursive schema, see update above) failure (Required): { devicesFailedPercentage: int (Required) devicesFailedCount: int (Required) } } isCloudInitiatedRollback: Boolean (Optional) } ] nextLink: String (Optional) }
- Parameters:
groupId
- Group identity.deviceClassId
- Device class identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- a list of deployments for a device class subgroup as paginated response with
PagedIterable
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getDeploymentForDeviceClassSubgroupWithResponse
public Response<BinaryData> getDeploymentForDeviceClassSubgroupWithResponse(String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) Gets the deployment properties.Response Body Schema
{ deploymentId: String (Required) startDateTime: OffsetDateTime (Required) update (Required): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } groupId: String (Required) deviceClassSubgroups (Optional): [ String (Optional) ] isCanceled: Boolean (Optional) isRetried: Boolean (Optional) rollbackPolicy (Optional): { update (Required): (recursive schema, see update above) failure (Required): { devicesFailedPercentage: int (Required) devicesFailedCount: int (Required) } } isCloudInitiatedRollback: Boolean (Optional) }
- Parameters:
groupId
- Group identity.deviceClassId
- Device class identifier.deploymentId
- Deployment identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the deployment properties along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
deleteDeploymentForDeviceClassSubgroupWithResponse
public Response<Void> deleteDeploymentForDeviceClassSubgroupWithResponse(String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) Deletes a device class subgroup deployment.- Parameters:
groupId
- Group identity.deviceClassId
- Device class identifier.deploymentId
- Deployment identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
stopDeploymentWithResponse
public Response<BinaryData> stopDeploymentWithResponse(String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) Stops a deployment.Response Body Schema
{ deploymentId: String (Required) startDateTime: OffsetDateTime (Required) update (Required): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } groupId: String (Required) deviceClassSubgroups (Optional): [ String (Optional) ] isCanceled: Boolean (Optional) isRetried: Boolean (Optional) rollbackPolicy (Optional): { update (Required): (recursive schema, see update above) failure (Required): { devicesFailedPercentage: int (Required) devicesFailedCount: int (Required) } } isCloudInitiatedRollback: Boolean (Optional) }
- Parameters:
groupId
- Group identity.deviceClassId
- Device class identifier.deploymentId
- Deployment identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- deployment metadata along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
retryDeploymentWithResponse
public Response<BinaryData> retryDeploymentWithResponse(String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) Retries a deployment with failed devices.Response Body Schema
{ deploymentId: String (Required) startDateTime: OffsetDateTime (Required) update (Required): { updateId (Required): { provider: String (Required) name: String (Required) version: String (Required) } description: String (Optional) friendlyName: String (Optional) } groupId: String (Required) deviceClassSubgroups (Optional): [ String (Optional) ] isCanceled: Boolean (Optional) isRetried: Boolean (Optional) rollbackPolicy (Optional): { update (Required): (recursive schema, see update above) failure (Required): { devicesFailedPercentage: int (Required) devicesFailedCount: int (Required) } } isCloudInitiatedRollback: Boolean (Optional) }
- Parameters:
groupId
- Group identity.deviceClassId
- Device class identifier.deploymentId
- Deployment identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- deployment metadata along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getDeviceClassSubgroupDeploymentStatusWithResponse
public Response<BinaryData> getDeviceClassSubgroupDeploymentStatusWithResponse(String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed.Response Body Schema
{ groupId: String (Required) deviceClassId: String (Required) deploymentState: String(Active/Failed/Inactive/Canceled) (Required) error (Optional): { code: String (Required) message: String (Required) target: String (Optional) details (Optional): [ (recursive schema, see above) ] innererror (Optional): { code: String (Required) message: String (Optional) errorDetail: String (Optional) innerError (Optional): (recursive schema, see innerError above) } occurredDateTime: OffsetDateTime (Optional) } totalDevices: Integer (Optional) devicesInProgressCount: Integer (Optional) devicesCompletedFailedCount: Integer (Optional) devicesCompletedSucceededCount: Integer (Optional) devicesCanceledCount: Integer (Optional) }
- Parameters:
groupId
- Group identity.deviceClassId
- Device class identifier.deploymentId
- Deployment identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the status of a deployment including a breakdown of how many devices in the deployment are in progress,
completed, or failed along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
listDeviceStatesForDeviceClassSubgroupDeployment
public PagedIterable<BinaryData> listDeviceStatesForDeviceClassSubgroupDeployment(String groupId, String deviceClassId, String deploymentId, RequestOptions requestOptions) Gets a list of devices in a deployment along with their state. Useful for getting a list of failed devices.Query Parameters
Query Parameters Name Type Required Description filter String No Restricts the set of deployment device states returned. You can filter on deviceId and moduleId and/or deviceState. RequestOptions.addQueryParam(java.lang.String, java.lang.String)
Response Body Schema
{ value (Required): [ (Required){ deviceId: String (Required) moduleId: String (Optional) retryCount: int (Required) movedOnToNewDeployment: boolean (Required) deviceState: String(Succeeded/InProgress/Canceled/Failed) (Required) } ] nextLink: String (Optional) }
- Parameters:
groupId
- Group identity.deviceClassId
- Device class identifier.deploymentId
- Deployment identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- a list of devices in a deployment along with their state as paginated response with
PagedIterable
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getOperationWithResponse
public Response<BinaryData> getOperationWithResponse(String operationId, RequestOptions requestOptions) Retrieve operation status.Header Parameters
Header Parameters Name Type Required Description If-None-Match String No Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value. RequestOptions.addHeader(java.lang.String, java.lang.String)
Response Body Schema
{ operationId: String (Required) status: String(NotStarted/Running/Succeeded/Failed) (Required) error (Optional): { code: String (Required) message: String (Required) target: String (Optional) details (Optional): [ (recursive schema, see above) ] innererror (Optional): { code: String (Required) message: String (Optional) errorDetail: String (Optional) innerError (Optional): (recursive schema, see innerError above) } occurredDateTime: OffsetDateTime (Optional) } traceId: String (Optional) lastActionDateTime: OffsetDateTime (Required) createdDateTime: OffsetDateTime (Required) etag: String (Optional) }
- Parameters:
operationId
- Operation identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- operation metadata along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
listOperations
Get a list of all device import operations. Completed operations are kept for 7 days before auto-deleted.Query Parameters
Query Parameters Name Type Required Description filter String No Restricts the set of operations returned. Only one specific filter is supported: "status eq 'NotStarted' or status eq 'Running'" top Integer No Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. RequestOptions.addQueryParam(java.lang.String, java.lang.String)
Response Body Schema
{ value (Required): [ (Required){ operationId: String (Required) status: String(NotStarted/Running/Succeeded/Failed) (Required) error (Optional): { code: String (Required) message: String (Required) target: String (Optional) details (Optional): [ (recursive schema, see above) ] innererror (Optional): { code: String (Required) message: String (Optional) errorDetail: String (Optional) innerError (Optional): (recursive schema, see innerError above) } occurredDateTime: OffsetDateTime (Optional) } traceId: String (Optional) lastActionDateTime: OffsetDateTime (Required) createdDateTime: OffsetDateTime (Required) etag: String (Optional) } ] nextLink: String (Optional) }
- Parameters:
requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- a list of all device import operations as paginated response with
PagedIterable
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
startLogCollectionWithResponse
public Response<BinaryData> startLogCollectionWithResponse(String logCollectionId, BinaryData logCollection, RequestOptions requestOptions) Start the device diagnostics log collection on specified devices.Request Body Schema
{ operationId: String (Optional) deviceList (Required): [ (Required){ deviceId: String (Required) moduleId: String (Optional) } ] description: String (Optional) createdDateTime: String (Optional) lastActionDateTime: String (Optional) status: String(NotStarted/Running/Succeeded/Failed) (Optional) }
Response Body Schema
{ operationId: String (Optional) deviceList (Required): [ (Required){ deviceId: String (Required) moduleId: String (Optional) } ] description: String (Optional) createdDateTime: String (Optional) lastActionDateTime: String (Optional) status: String(NotStarted/Running/Succeeded/Failed) (Optional) }
- Parameters:
logCollectionId
- Log collection identifier.logCollection
- The log collection properties.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- diagnostics request body along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getLogCollectionWithResponse
public Response<BinaryData> getLogCollectionWithResponse(String logCollectionId, RequestOptions requestOptions) Get the device diagnostics log collection.Response Body Schema
{ operationId: String (Optional) deviceList (Required): [ (Required){ deviceId: String (Required) moduleId: String (Optional) } ] description: String (Optional) createdDateTime: String (Optional) lastActionDateTime: String (Optional) status: String(NotStarted/Running/Succeeded/Failed) (Optional) }
- Parameters:
logCollectionId
- Log collection identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the device diagnostics log collection along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
listLogCollections
Get all device diagnostics log collections.Response Body Schema
{ value (Required): [ (Required){ operationId: String (Optional) deviceList (Required): [ (Required){ deviceId: String (Required) moduleId: String (Optional) } ] description: String (Optional) createdDateTime: String (Optional) lastActionDateTime: String (Optional) status: String(NotStarted/Running/Succeeded/Failed) (Optional) } ] nextLink: String (Optional) }
- Parameters:
requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- all device diagnostics log collections as paginated response with
PagedIterable
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getLogCollectionDetailedStatusWithResponse
public Response<BinaryData> getLogCollectionDetailedStatusWithResponse(String operationId, RequestOptions requestOptions) Get log collection with detailed status.Response Body Schema
{ operationId: String (Optional) createdDateTime: String (Optional) lastActionDateTime: String (Optional) status: String(NotStarted/Running/Succeeded/Failed) (Optional) deviceStatus (Optional): [ (Optional){ deviceId: String (Required) moduleId: String (Optional) status: String(NotStarted/Running/Succeeded/Failed) (Required) resultCode: String (Optional) extendedResultCode: String (Optional) logLocation: String (Optional) } ] description: String (Optional) }
- Parameters:
operationId
- Operation identifier.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- log collection with detailed status along with
Response
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
listDeviceHealth
Get list of device health.Response Body Schema
{ value (Required): [ (Required){ deviceId: String (Required) moduleId: String (Optional) state: String(healthy/unhealthy) (Required) digitalTwinModelId: String (Optional) healthChecks (Required): [ (Required){ name: String (Optional) result: String(success/userError) (Optional) } ] } ] nextLink: String (Optional) }
- Parameters:
filter
- Filter list by specified properties.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- list of device health as paginated response with
PagedIterable
. - Throws:
HttpResponseException
- thrown if the request is rejected by server.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-