provisionRequest element

Type: provisionRequest
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.

Example XML

<?xml version="1.0" encoding="UTF-8"?> <provisionRequest xmlns="http://eurotech.com/edc/2.0"> <id>...</id> <accountId>...</accountId> <createdOn>...</createdOn> <createdBy>...</createdBy> <modifiedOn>...</modifiedOn> <modifiedBy>...</modifiedBy> <activatesOn>...</activatesOn> <expiresOn>...</expiresOn> <status>...</status> <clientId>...</clientId> <activationKey>...</activationKey> <provisionUserId>...</provisionUserId> <provisionJob> <id>...</id> <accountId>...</accountId> <jobType>...</jobType> <displayName>...</displayName> <jobProperties>...</jobProperties> <createdOn>...</createdOn> <createdBy>...</createdBy> <startOn>...</startOn> <retryMaxAttempts>...</retryMaxAttempts> <retryCount>...</retryCount> <optlock>...</optlock> <status>...</status> </provisionJob> <optlock>...</optlock> <provisionSecureURL>...</provisionSecureURL> <provisionedCredentialsTight>...</provisionedCredentialsTight> </provisionRequest>

Example JSON

{ "id" : ..., "accountId" : ..., "createdOn" : "...", "createdBy" : ..., "modifiedOn" : "...", "modifiedBy" : ..., "activatesOn" : "...", "expiresOn" : "...", "status" : "ENABLED", "clientId" : "...", "activationKey" : "...", "provisionUserId" : ..., "provisionJob" : { "status" : "CREATED", "id" : ..., "accountId" : ..., "jobType" : "device_config_update", "displayName" : "...", "jobProperties" : "...", "createdOn" : "...", "createdBy" : ..., "startOn" : "...", "retryMaxAttempts" : ..., "retryCount" : ..., "optlock" : ... }, "optlock" : ..., "provisionSecureURL" : false, "provisionedCredentialsTight" : "INHERITED" }