Provision Job Status Query¶
Request¶
| Field | Description |
|---|---|
| URL | http://localhost:8083/api/osinstall/v1/device/isInInstallList |
| encode | UTF-8 |
| method | HTTP POST |
| payload | application/json |
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¶
| Field | Description |
|---|---|
| Status | success or failure |
| Content.Result |
|
| Message | return message |
Sample Response Message¶
{
"Content": {
"Result": "true"
},
"Message": "Device is in provisioning queue",
"Status": "success"
}