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
accountIdstringManager 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 IAM 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.

Endpoint

HTTP
POST /provision/update

Authorized User Role

update

Request Body

FieldTypeRequired
idstringyes
productstringyes
versionstringyes
testboolean
*any

Response

FieldTypeNotes
checksumstringDownload checksum.
versionstringVersion to update to.
urlstringDownload URL for the software update.
updatestringSelected update (quote on report).

UpdateReport

Device update report

Post update status.

Endpoint

HTTP
POST /provision/updateReport

Authorized User Role

update

Request Body

FieldTypeRequired
idstringyes
updatestringyes
successbooleanyes