Home > Article > Operation and Maintenance > How to use CancelTask to cancel a running task
The content of this article is about how to use CancelTask to cancel a running task. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
CancelTask
Request Parameters
# #Return parameters
are all public return parameters. See Public Parameters.Example
Request example
https://ecs.aliyuncs.com/?Action=CancelTask &RegionId=cn-hangzhou &TaskId=t-23ym6mvro &<公共请求参数>
Return example
XML format
<CancelTaskResponse> <RequestId>4BE2C7FE-C7A4-4675-A153-174E032AABFB</RequestId> </CancelTaskResponse>
JSON format
{ "RequestId": "4BE2C7FE-C7A4-4675-A153-174E032AABFB" }
Error code
The following are error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of How to use CancelTask to cancel a running task. For more information, please follow other related articles on the PHP Chinese website!