cancel_task
GET
xvs-signature
签名字段 xvs-timestamp
签名时间戳 service_code
任务相关的服务码task_id
需要取消的任务的id, 此id可由(获取任务列表api)[../task]取得以下是一次调用的抓包数据:
GET /api/20140928/cancel_task?service_code=TESTING&task_id=aws-cn_north_1-5-6b7ebef291e362fe HTTP/1.1
Host: c.zhiboyun.com
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
xvs-timestamp: 1444274867308
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
xvs-signature: d7d9b6a672ba8b30b7870494e04e4ab186ba9c729445b2960a990fc885f3abb1
以下是云返回的抓包数据:
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: text/plain
Date: Thu, 08 Oct 2015 03:27:47 GMT
transfer-encoding: chunked
Connection: keep-alive
a
{"ret": 0}
0
ret
调用结果 0
表示成功,非0
失败。错误代码参考API返回代码表有关任务的说明参考基本概念中有关任务的描述