Cancels a dynamic update policy.

Limits

  • You can only cancel dynamic update jobs by this operation. This operation is invalid for static update jobs.
  • The maximum number of queries per second (QPS) for a single Alibaba Cloud account to call this operation is 10. The quota is shared between the Alibaba Cloud account and RAM users.

Request parameters

Parameter Type Required Description
Action String Yes The operation that you want to perform. Set the value to CancelOTAStrategyByJob.
JobId String Yes The ID of the update job to be cancelled.

JobId is a response parameter that is returned by the CreateOTADynamicUpgradeJob operation. You can also obtain the ID on the Firmware Details page of the IoT Platform console.

IotInstanceId String No The ID of your IoT Platform instance. This parameter is not required for public instances. However, the parameter is required for the instances that you have purchased.
Common request parameters N/A Yes For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Description
RequestId String The globally unique ID that is generated by Alibaba Cloud for the request.
Success Boolean Indicates whether the call is successful. true indicates that the call was successful. false indicates that the call failed.
ErrorMessage String The error message returned if the call fails.
Code String The error code returned if the call fails. For more information about error codes, see Error codes.

Examples

Sample requests

https://iot.cn-shanghai.aliyuncs.com/?Action=CancelOTAStrategyByJob
&JobId=HvKuBpuk3rdk6E92CP****0200
&Common request parameters

Sample success responses

  • JSON format
    {
      "RequestId": "291438BA-6E10-4C4C-B761-243B9A0D324F",
      "Success": true
    }
  • XML format
    <? xml version="1.0" encoding="utf-8"? >
    <CancelOTAStrategyByJobResponse>
      <RequestId>A01829CE-75A1-4920-B775-921146A1AB79</RequestId>
      <Success>true</Success>
    </CancelOTAStrategyByJobResponse>