Skip to content

Provision

Device provisioning and management APIs.

These APIs provide devices with the necessary provisioning APIs to manage communications with a device cloud.

GetCerts

Provision a device with MQTT certificates.

After a device has been claimed for management by a user into a device cloud, the device can call "getCerts" to request provisioning of MQTT certificates to secure communications.

This call returns the certificate, private key and communications endpoint to use for secure MQTT communications with the device cloud.

Endpoint

HTTP
POST /provision/getCerts

Authorized User Role

device

Request Body

FieldTypeRequiredNotes
idstringyesDevice claim ID.

Response

MQTT certificate and endpoints for device communications.

FieldTypeNotes
accountIdstringApp Account ID.
certificatestringX.509 certificate.
endpointstringMQTT host endpoint for communciations.
idstringDevice ID.
keystringX.509 certificate key.
portnumberMQTT TCP/IP port number.
thingstringAWS IoT Core thing name for the device.

GetCreds

Get IAM credentials.

Get credentials for use in the device that is hosted in a dedicated cloud.

This will create temprorary IAM credentials based on the configured Cloud.deviceRole (default IotoDeviceRole). These credentials can be used with appropriate AWS SDK or Ioto AWS Sigv4 APIs.

Endpoint

HTTP
POST /provision/getCreds

Authorized User Role

device

Response

A set of AWS IAM credentials that can be used with AWS APIs.

FieldTypeNotes
accessKeyIdstringAWS access key ID.
secretAccessKeystringAWS secret access key.
sessionTokenstringAWS credentials session token.
expiresdateWhen the credentials expire.
regionstringAWS region.

Update

Device update.

Check for software updates.

Returns a message if no update is available. Otherwise, returns a download URL, version, update ID and checksum.

Endpoint

HTTP
POST /provision/update

Authorized User Role

update

Request Body

FieldTypeRequiredNotes
idstringyesDevice ID.
productstringyesProduct name.
versionstringyesVersion to update to.
testbooleanDevice is a test device.
*anyAny other fields.

Response

Object Record.

FieldTypeNotes
checksumstringDownload checksum.
versionstringVersion to update to.
messagestringMessage.
urlstringDownload URL for the software update.
updatestringSelected update ID.

UpdateReport

Device update report.

Post update status.

Endpoint

HTTP
POST /provision/updateReport

Authorized User Role

update

Request Body

FieldTypeRequiredNotes
idstringyesDevice ID.
updatestringyesUpdate status.
successbooleanyesUpdate success.