Provision Job Status Query

Request

Request
Field Description
URL http://localhost:8083/api/osinstall/v1/device/isInInstallList
encode UTF-8
method HTTP POST
payload application/json

Payload

Payload
Field Type Required Description
Sn string yes device serial number

Payload Sample

{
    "Sn": "test"
}

Code Sample (PHP)

<?php
     $data = array("Sn" => "test");
     $str = json_encode($data);

     $ch = curl_init('http://localhost:8083/api/osinstall/v1/device/isInInstallList');
     curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
     curl_setopt($ch, CURLOPT_POSTFIELDS, $str);
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
     curl_setopt($ch, CURLOPT_HTTPHEADER, array(
         'Content-Type: application/json',
         'Content-Length: ' . strlen($str))
     );

     $result = curl_exec($ch);
     echo $result;
 ?>

Response

Response Format
Field Description
Status success or failure
Content.Result
  • true device is in provision queue
  • false device is NOT in provision queue
Message return message

Sample Response Message

{
    "Content": {
        "Result": "true"
    },
    "Message": "Device is in provisioning queue",
    "Status": "success"
}