Returns the list of all the ProvisionRequest associated with the currently connected user with specified offset and limit query parameters. Is it possible to filter result for:
name | type | description | default | constraints | multivalued |
---|---|---|---|---|---|
clientIDs | query | yes | |||
endDate | query | no | |||
limit | query | 50 | required | no | |
offset | query | 0 | required | no | |
startDate | query | 0 | no | ||
statuses | query | "ABANDONED" or "APPS_INSTALLED" or "APPS_INSTALLING" or "COMPLETED" or "CONF_UPDATED" or "CONF_UPDATING" or "CREATED" or "FAILED" or "RUNNING" or "SKIPPED" or "STARTED" or "STOPPED" or "STOPPING" | yes |
media type | data type | description |
---|---|---|
application/json | ProvisionRequestsResult (JSON) | The list of ProvisionRequest object. |
application/xml | provisionRequestsResult (XML) |
GET /provisionRequests
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"limitExceeded" : true,
"provisionRequest" : [ {
"id" : 12345,
"accountId" : 12345,
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"activatesOn" : 12345,
"expiresOn" : 12345,
"status" : "ENABLED",
"clientId" : "...",
"activationKey" : "...",
"provisionUserId" : 12345,
"provisionJob" : {
"status" : "COMPLETED",
"id" : 12345,
"accountId" : 12345,
"jobType" : "device_certificate_revoke",
"displayName" : "...",
"jobProperties" : "...",
"createdOn" : 12345,
"createdBy" : 12345,
"startOn" : 12345,
"retryMaxAttempts" : 12345,
"retryCount" : 12345,
"optlock" : 12345
},
"optlock" : 12345,
"provisionSecureURL" : true,
"provisionedCredentialsTight" : "STRICT"
}, {
"id" : 12345,
"accountId" : 12345,
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"activatesOn" : 12345,
"expiresOn" : 12345,
"status" : "ENABLED",
"clientId" : "...",
"activationKey" : "...",
"provisionUserId" : 12345,
"provisionJob" : {
"status" : "APPS_INSTALLING",
"id" : 12345,
"accountId" : 12345,
"jobType" : "device_provision_v3",
"displayName" : "...",
"jobProperties" : "...",
"createdOn" : 12345,
"createdBy" : 12345,
"startOn" : 12345,
"retryMaxAttempts" : 12345,
"retryCount" : 12345,
"optlock" : 12345
},
"optlock" : 12345,
"provisionSecureURL" : true,
"provisionedCredentialsTight" : "LOOSE"
} ]
}
Creates a new ProvisionRequest based on the information provided in the ProvisionRequestCreator parameter.
media type | data type | description |
---|---|---|
application/json | ProvisionRequestCreator (JSON) | Provides the information for the new ProvisionRequest to be created. |
application/xml | provisionRequestCreator (XML) |
media type | data type | description |
---|---|---|
application/json | ProvisionRequest (JSON) | The newly created ProvisionRequest object. |
application/xml | provisionRequest (XML) |
POST /provisionRequests
Content-Type: application/json
Accept: application/json
{
"accountId" : 12345,
"activatesOn" : 12345,
"expiresOn" : 12345,
"clientId" : "...",
"generateActivationKey" : true,
"provisionUserUsername" : "...",
"provisionUserPassword" : "...",
"retryMaxAttempts" : 12345,
"provisionAttachments" : [ {
"name" : "...",
"contentType" : "CONFIGURATION",
"body" : "..."
}, {
"name" : "...",
"contentType" : "COMMAND",
"body" : "..."
} ],
"overwriteIfDuplicate" : true,
"provisionSecureURL" : true,
"deviceCredentialsTight" : "LOOSE"
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"id" : 12345,
"accountId" : 12345,
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"activatesOn" : 12345,
"expiresOn" : 12345,
"status" : "ENABLED",
"clientId" : "...",
"activationKey" : "...",
"provisionUserId" : 12345,
"provisionJob" : {
"status" : "ABANDONED",
"id" : 12345,
"accountId" : 12345,
"jobType" : "device_provision_v1",
"displayName" : "...",
"jobProperties" : "...",
"createdOn" : 12345,
"createdBy" : 12345,
"startOn" : 12345,
"retryMaxAttempts" : 12345,
"retryCount" : 12345,
"optlock" : 12345
},
"optlock" : 12345,
"provisionSecureURL" : true,
"provisionedCredentialsTight" : "INHERITED"
}
Return the number of provision request used by this account. Remember that the account resources may be shared with sub-accounts of this account.
media type | data type | description |
---|---|---|
application/json | LongResult (JSON) | the number of provision request associated with this account. |
application/xml | longResult (XML) |
GET /provisionRequests/count
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"value" : 12345
}
Deletes the ProvisionRequest specified by the "provisionRequestId" path parameter.
When deleting a provisionRequest the associated provisionJob and all related attachment will also be deleted.
name | type | description | constraints |
---|---|---|---|
provisionRequestId | path | The id of the ProvisionRequest to be deleted. | required |
DELETE /provisionRequests/{provisionRequestId}
Content-Type: */*
...
HTTP/1.1 204 No Content
Returns the ProvisionRequest and its associated ProvisionJob, specified by the provisionRequestId path parameter.
name | type | description | constraints |
---|---|---|---|
provisionRequestId | path | The id of the ProvisionRequest requested. | required |
media type | data type | description |
---|---|---|
application/json | ProvisionRequest (JSON) | The requested ProvisionRequest object. |
application/xml | provisionRequest (XML) |
GET /provisionRequests/{provisionRequestId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : 12345,
"accountId" : 12345,
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"activatesOn" : 12345,
"expiresOn" : 12345,
"status" : "ENABLED",
"clientId" : "...",
"activationKey" : "...",
"provisionUserId" : 12345,
"provisionJob" : {
"status" : "FAILED",
"id" : 12345,
"accountId" : 12345,
"jobType" : "device_software_install",
"displayName" : "...",
"jobProperties" : "...",
"createdOn" : 12345,
"createdBy" : 12345,
"startOn" : 12345,
"retryMaxAttempts" : 12345,
"retryCount" : 12345,
"optlock" : 12345
},
"optlock" : 12345,
"provisionSecureURL" : true,
"provisionedCredentialsTight" : "LOOSE"
}
Updates the ProvisionRequest specified by the "provisionRequestId" path parameter
based on the information provided in the ProvisionRequest parameter.
Only certain fields are editable after a provision request has been created.
The editable fields are:
name | type | description | constraints |
---|---|---|---|
provisionRequestId | path | The id of the ProvisionRequest to be updated. | required |
media type | data type | description |
---|---|---|
application/json | ProvisionRequest (JSON) | The modified ProvisionRequest whose attribute need to be updated. |
application/xml | provisionRequest (XML) |
media type | data type | description |
---|---|---|
application/json | ProvisionRequest (JSON) | The updated provision request. |
application/xml | provisionRequest (XML) |
PUT /provisionRequests/{provisionRequestId}
Content-Type: application/json
Accept: application/json
{
"id" : 12345,
"accountId" : 12345,
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"activatesOn" : 12345,
"expiresOn" : 12345,
"status" : "DISABLED",
"clientId" : "...",
"activationKey" : "...",
"provisionUserId" : 12345,
"provisionJob" : {
"status" : "CONF_UPDATED",
"id" : 12345,
"accountId" : 12345,
"jobType" : "billing_report",
"displayName" : "...",
"jobProperties" : "...",
"createdOn" : 12345,
"createdBy" : 12345,
"startOn" : 12345,
"retryMaxAttempts" : 12345,
"retryCount" : 12345,
"optlock" : 12345
},
"optlock" : 12345,
"provisionSecureURL" : true,
"provisionedCredentialsTight" : "INHERITED"
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"id" : 12345,
"accountId" : 12345,
"createdOn" : 12345,
"createdBy" : 12345,
"modifiedOn" : 12345,
"modifiedBy" : 12345,
"activatesOn" : 12345,
"expiresOn" : 12345,
"status" : "ENABLED",
"clientId" : "...",
"activationKey" : "...",
"provisionUserId" : 12345,
"provisionJob" : {
"status" : "CONF_UPDATED",
"id" : 12345,
"accountId" : 12345,
"jobType" : "device_command",
"displayName" : "...",
"jobProperties" : "...",
"createdOn" : 12345,
"createdBy" : 12345,
"startOn" : 12345,
"retryMaxAttempts" : 12345,
"retryCount" : 12345,
"optlock" : 12345
},
"optlock" : 12345,
"provisionSecureURL" : true,
"provisionedCredentialsTight" : "LOOSE"
}
Return the list of the executions for the specified Provision Request
name | type | description | constraints |
---|---|---|---|
provisionRequestId | path | required |
media type | data type | description |
---|---|---|
application/json | ProvisionRequestExecutionsResult (JSON) | |
application/xml | provisionRequestExecutionsResult (XML) |
GET /provisionRequests/{provisionRequestId}/executions
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"provisionRequestExecution" : [ {
"status" : "STOPPED",
"accountId" : 12345,
"jobId" : 12345,
"executionId" : 12345,
"startedOn" : 12345,
"endedOn" : 12345,
"log" : "...",
"optlock" : 12345
}, {
"status" : "CREATED",
"accountId" : 12345,
"jobId" : 12345,
"executionId" : 12345,
"startedOn" : 12345,
"endedOn" : 12345,
"log" : "...",
"optlock" : 12345
} ]
}
Send a stop signal to the provisioning execution.
The stop signal will be captured only at next step, so is not possible to stop the device job during the current step processing.
Be careful that stopping a provision request can be harmful for the target device.
name | type | description | constraints |
---|---|---|---|
ProvisionJobExecutionId | path | required | |
provisionRequestId | path | required |
POST /provisionRequests/{provisionRequestId}/executions/{ProvisionJobExecutionId}/sendStopSignal
Content-Type: */*
...
HTTP/1.1 201 Created