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

當(dāng)前位置:主頁(yè) > 教程 > 服務(wù)器類 >

阿里云如何使用取消任務(wù)接口

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

  正在運(yùn)行的任務(wù)可以通過該接口取消。當(dāng)前只支持ImportImage和ExportImage兩個(gè)種類型的任務(wù)。

  請(qǐng)求參數(shù)

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

  返回參數(shù)

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

  錯(cuò)誤碼

錯(cuò)誤代碼 描述 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   指定的任務(wù)ID不存在  
IncorrectTaskStatus   The specified task status is not invalid.   403   指定的任務(wù)狀態(tài)不正確  
TaskActionNotSupport   The specified task action is not support   400   該任務(wù)類型不支持取消  
CancelTaskFailed   The task is failed to cancel, Please contact the administrator.   400   取消任務(wù)失敗,請(qǐng)聯(lián)系管理員  

  示例

  請(qǐng)求示例

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

  &RegionId=cn-hangzhou

  &TaskId=t-23ym6mvro

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

  返回示例

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

  JSON 格式

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