本文在介紹如何使用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中文網其他相關文章!