provisionRequest

Extends: edcEntity
Namespace: http://eurotech.com/edc/2.0
XML Schema: edc.xsd

ProvisionRequest is a object that represent all information of a provision request for a device.

A provision request is owned by the target account even if the device will connect to the provision broker using a user that belong to the provision account.

A ProvisionRequest object contains a nested ProvisionJob that represent the background job that will be triggered upon device request to be provisioned. The nested ProvisionJob will contain information the provisioning process of a device, its retry counter and general status.

XML

Elements

name (type) min/max
occurs
description
id (long) 1/1
accountId (long) 1/1
createdOn (dateTime) 0/1
createdBy (long) 1/1
modifiedOn (dateTime) 0/1
modifiedBy (long) 1/1
activatesOn (dateTime) 0/1
expiresOn (dateTime) 0/1
status (provisionRequestStatus) 0/1
clientId (string) 0/1
activationKey (string) 0/1
provisionUserId (long) 1/1
provisionJob (provisionJob) 0/1
optlock (int) 1/1 The optlock field is used to detect that this entity has not been modified by someone else. When updating an entity, first do a find to get the latest version of the entity and note the value of the optlock. Then in the update operation, set the optlock value to match the value that you found. If someone else has updated the entity between your find and update operations, the update will fail and the db/server will return an error.

See this stackoverflow question for more information on optimistic locking.

provisionSecureURL (boolean) 1/1
provisionedCredentialsTight (deviceCredentialsTight) 0/1

JSON

property type description
id id (long)
accountId accountId (long)
createdOn createdOn (dateTime)
createdBy createdBy (long)
modifiedOn modifiedOn (dateTime)
modifiedBy modifiedBy (long)
activatesOn activatesOn (dateTime)
expiresOn expiresOn (dateTime)
status status (provisionRequestStatus)
clientId clientId (string)
activationKey activationKey (string)
provisionUserId provisionUserId (long)
provisionJob provisionJob (provisionJob)
optlock optlock (int) The optlock field is used to detect that this entity has not been modified by someone else. When updating an entity, first do a find to get the latest version of the entity and note the value of the optlock. Then in the update operation, set the optlock value to match the value that you found. If someone else has updated the entity between your find and update operations, the update will fail and the db/server will return an error.

See this stackoverflow question for more information on optimistic locking.

provisionSecureURL provisionSecureURL (boolean)
provisionedCredentialsTight provisionedCredentialsTight (deviceCredentialsTight)