Device Registration State - Query
Gets the registration state of devices in this enrollmentGroup.
POST https://your-dps.azure-devices-provisioning.net/registrations/{id}/query?api-version=2021-10-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
id
|
path | True |
string |
Enrollment group ID. |
api-version
|
query | True |
string |
The API version to use for the request. Supported versions include: 2021-10-01 |
Request Header
Name | Required | Type | Description |
---|---|---|---|
x-ms-max-item-count |
integer int32 |
pageSize |
|
x-ms-continuation |
string |
continuation token |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Success Headers
|
|
Other Status Codes |
Error response Headers x-ms-error-code: string |
Definitions
Name | Description |
---|---|
Device |
Device registration state. |
Provisioning |
Contains the properties of an error returned by the Azure IoT Hub Provisioning Service. |
DeviceRegistrationState
Device registration state.
Name | Type | Description |
---|---|---|
assignedHub |
string |
Assigned Azure IoT Hub. |
createdDateTimeUtc |
string |
Registration create date time (in UTC). |
deviceId |
string |
Device ID. |
errorCode |
integer |
Error code. |
errorMessage |
string |
Error message. |
etag |
string |
The entity tag associated with the resource. |
lastUpdatedDateTimeUtc |
string |
Last updated date time (in UTC). |
payload |
object |
|
registrationId |
string |
This id is used to uniquely identify a device registration of an enrollment. A case-insensitive string (up to 128 characters long) of alphanumeric characters plus certain special characters : . _ -. No special characters allowed at start or end. |
status |
enum:
|
Enrollment status. |
substatus |
enum:
|
Substatus for 'Assigned' devices. Possible values include - 'initialAssignment': Device has been assigned to an IoT hub for the first time, 'deviceDataMigrated': Device has been assigned to a different IoT hub and its device data was migrated from the previously assigned IoT hub. Device data was removed from the previously assigned IoT hub, 'deviceDataReset': Device has been assigned to a different IoT hub and its device data was populated from the initial state stored in the enrollment. Device data was removed from the previously assigned IoT hub, 'reprovisionedToInitialAssignment': Device has been re-provisioned to a previously assigned IoT hub. |
ProvisioningServiceErrorDetails
Contains the properties of an error returned by the Azure IoT Hub Provisioning Service.
Name | Type | Description |
---|---|---|
errorCode |
integer |
|
info |
object |
|
message |
string |
|
timestampUtc |
string |
|
trackingId |
string |