Runtime Registration - Register Device
Registers the devices.
PUT https://global.azure-devices-provisioning.net/{idScope}/registrations/{registrationId}/register?api-version=2021-10-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
id
|
path | True |
string |
|
registration
|
path | True |
string |
The registration ID is alphanumeric, lowercase, and may contain hyphens. |
api-version
|
query | True |
string |
The API version to use for the request. Supported versions include: 2021-10-01 |
Request Body
Name | Type | Description |
---|---|---|
payload |
object |
|
registrationId |
string |
The registration ID is a case-insensitive string (up to 128 characters long) of alphanumeric characters plus certain special characters : . _ -. No special characters allowed at start or end. |
tpm |
Attestation via TPM. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Success |
|
202 Accepted |
Accepted Headers
|
|
Other Status Codes |
Error response Headers x-ms-error-code: string |
Definitions
Name | Description |
---|---|
Device |
Device registration. |
Device |
Device registration result. |
Provisioning |
Contains the properties of an error returned by the Azure IoT Hub Provisioning Service. |
Registration |
Registration operation status. |
Symmetric |
Registration result returned when using SymmetricKey attestation. |
Tpm |
Attestation via TPM. |
Tpm |
TPM registration result. |
X509Certificate |
X509 certificate info. |
X509Registration |
X509 registration result. |
DeviceRegistration
Device registration.
Name | Type | Description |
---|---|---|
payload |
object |
|
registrationId |
string |
The registration ID is a case-insensitive string (up to 128 characters long) of alphanumeric characters plus certain special characters : . _ -. No special characters allowed at start or end. |
tpm |
Attestation via TPM. |
DeviceRegistrationResult
Device registration result.
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. |
symmetricKey |
Registration result returned when using SymmetricKey attestation. |
|
tpm |
TPM registration result. |
|
x509 |
X509 registration result. |
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 |
RegistrationOperationStatus
Registration operation status.
Name | Type | Description |
---|---|---|
operationId |
string |
Operation ID. |
registrationState |
Device registration result. |
|
status |
enum:
|
Device enrollment status. |
SymmetricKeyRegistrationResult
Registration result returned when using SymmetricKey attestation.
Name | Type | Description |
---|---|---|
enrollmentGroupId |
string |
TpmAttestation
Attestation via TPM.
Name | Type | Description |
---|---|---|
endorsementKey |
string |
|
storageRootKey |
string |
TpmRegistrationResult
TPM registration result.
Name | Type | Description |
---|---|---|
authenticationKey |
string |
Encrypted authentication key. |
X509CertificateInfo
X509 certificate info.
Name | Type | Description |
---|---|---|
issuerName |
string |
|
notAfterUtc |
string |
|
notBeforeUtc |
string |
|
serialNumber |
string |
|
sha1Thumbprint |
string |
|
sha256Thumbprint |
string |
|
subjectName |
string |
|
version |
integer |
X509RegistrationResult
X509 registration result.
Name | Type | Description |
---|---|---|
certificateInfo |
X509 certificate info. |
|
enrollmentGroupId |
string |
|
signingCertificateInfo |
X509 certificate info. |