V2.1 Stop OTA Job¶
Stop a batch of firmware OTA upgrade tasks.
This API is available in EnOS 2.2.0 and above.
Operation Permissions¶
Ensure that the application has been granted with the invoking permissions. For more information, see Getting API Calling Permissions.
Request Format¶
POST https://{apigw-address}/connect-service/v2.1/ota-jobs?action=stop
Request Parameters (URI)¶
Name |
Location (Path/Query) |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|---|
orgId |
Query |
Mandatory |
String |
The organization ID which the asset belongs to. How to get orgId>> |
jobId |
Query |
Mandatory |
String |
The job ID. Visit EnOS Application Portal > Developer Console, and view the Job ID in the Task ID column under Operation Monitoring > OTA Upgrade. |
Error Codes¶
Code |
Message |
Description |
---|---|---|
24404 |
Job not found |
The job cannot be found. |
24616 |
Job has stopped |
The job has already stopped. |
Samples¶
Request Sample¶
url: https://{apigw-address}/connect-service/v2.1/ota-jobs?action=stop&orgId=yourOrgId&jobId=yourJobId
method: POST
Return Sample¶
{
"code":0,
"msg":"OK",
"requestId":"a37e8666-212c-4b18-91d1-c7254724aec8",
"data":null
}
SDK Samples¶
You can access the SDK samples for Connection Service on GitHub: