久久96国产精品久久久-久久发布国产伦子伦精品-久久精品国产精品青草-久久天天躁夜夜躁狠狠85麻豆

技術(shù)員聯(lián)盟提供win764位系統(tǒng)下載,win10,win7,xp,裝機純凈版,64位旗艦版,綠色軟件,免費軟件下載基地!

當前位置:主頁 > 教程 > 服務器類 >

阿里云如何使用取消任務接口

來源:技術(shù)員聯(lián)盟┆發(fā)布時間:2017-05-01 01:01┆點擊:

  正在運行的任務可以通過該接口取消。當前只支持ImportImage和ExportImage兩個種類型的任務。

  請求參數(shù)

名稱 類型 是否必須 描述
Action   String     操作接口名,取值:CancelTask。  
RegionId   String     地域ID  
TaskId   String     任務Id  

  返回參數(shù)

  全是公共返回參數(shù),詳見公共返回參數(shù)

  錯誤碼

錯誤代碼 描述 Http 狀態(tài)碼 語義
MissingParameter   An input parameter "RegionId" that is mandatory for processing the request is not supplied.   400   缺少 RegionId 值  
MissingParameter   An input parameter "TaskId" that is mandatory for processing the request is not supplied.   400   缺少 TaskId 值  
RegionId.NotFound   The specified region is not found.   400   指定的regionId 不存在  
InvalidTaskId.NotFound   The specified taskId is not found.   400   指定的任務ID不存在  
IncorrectTaskStatus   The specified task status is not invalid.   403   指定的任務狀態(tài)不正確  
TaskActionNotSupport   The specified task action is not support   400   該任務類型不支持取消  
CancelTaskFailed   The task is failed to cancel, Please contact the administrator.   400   取消任務失敗,請聯(lián)系管理員  

  示例

  請求示例

  https://ecs.aliyuncs.com/?Action=CancelTask

  &RegionId=cn-hangzhou

  &TaskId=t-23ym6mvro

  &<公共請求參數(shù)>

  返回示例

阿里云如何使用取消任務接口 三聯(lián)

  JSON 格式

  {"RequestId": "4BE2C7FE-C7A4-4675-A153-174E032AAB