本文在介绍如何使用DescribeTasks查询指定的异步请求的进度的基础上,重点探讨了其具体步骤,本文内容紧凑,希望大家可以有所收获。
DescribeTasks
请求参数
返回参数
示例
请求示例
https://ecs.aliyuncs.com/?Action=DescribeTasks &RegionId=cn-hangzhou &<公共请求参数>
返回示例
XML格式
<DescribeTasksResponse> <PageNumber>1</PageNumber> <TotalCount>2</TotalCount> <PageSize>2</PageSize> <RegionId>cn-hangzhou</RegionId> <RequestId>E5C82807-5588-4661-9A96-350B206A7623</RequestId> <TaskSet> <Task> <CreationTime>2015-11-24T12:50Z</CreationTime> <FinishedTime>2015-11-24T12:50Z</FinishedTime> <SupportCancel>true</SupportCancel> <TaskAction>IMPORT_IMAGE</TaskAction> <TaskStatus>Finished</TaskStatus> <TaskId>t-23mo8zf9w</TaskId> </Task> <Task> <CreationTime>2015-11-23T15:10Z</CreationTime> <FinishedTime>2015-11-23T15:16Z</FinishedTime> <SupportCancel>true</SupportCancel> <TaskAction>IMPORT_IMAGE</TaskAction> <TaskStatus>Finished</TaskStatus> <TaskId>t-23sgu0dyj</TaskId> </Task> </TaskSet> </DescribeTasksResponse>
JSON格式
{ "PageNumber": 1, "TotalCount": 2, "PageSize": 2, "RegionId": "cn-hangzhou", "RequestId": "F746C690-D9EA-4F87-AF31-8E1910FAB541", "TaskSet": { "Task": [ { "CreationTime": "2015-11-24T12:50Z", "FinishedTime": "2015-11-24T12:50Z", "SupportCancel": true, "TaskAction": "ImportImage", "TaskStatus": "Finished", "TaskId": "t-23mo8zf9w" }, { "CreationTime": "2015-11-23T15:10Z", "FinishedTime": "2015-11-23T15:16Z", "SupportCancel": true, "TaskAction": "ImportImage", "TaskStatus": "Finished", "TaskId": "t-23sgu0dyj" } ] } }
错误码
以下为本接口特有的错误码。更多错误码,请访问 API错误中心。
以上是如何使用DescribeTasks查询指定的异步请求的进度的详细内容。更多信息请关注PHP中文网其他相关文章!