Query the execution plan instance

Last Updated: Mar 31, 2017

Query the execution plan instance.

Request parameters

Field Type Required? Default Value Description
Id String Yes None Execution plan Id.
RegionId String Yes None The region Id of the execution plan instance.
ExecutionPlanIdList Array<String> Yes None Queried execution plan ID list, a character string array, such as: [“WF-5D93B00901730B5E”,”WF-5D93B0090173ABCD”].
OnlyLastInstance Boolean No False When onlyLastInstance=true, it indicates to return the latest execution plan running record (that is, instance) among all the execution plans in the execution plan ID list. If you set onlyLastInstance=true, you do not need to set pagename or pagesize parameters. Even you have set the parameters, they cannot be effective.
PageNumber Integer No 1 Requested page number.
PageSize Integer No 10 Requested page size.

Returned parameters

Field Type Description
ExecutionPlanInstances Array<ExecutionPlanInstance> Execution plan instance data.
TotalCount Integer Total count.
PageNumber Integer Current page number.
PageSize Integer Requested page size.

Example

Request example

  1. https://emr.aliyuncs.com/?Action=ListExecutionPlanInstances
  2. &ExecutionPlanIdList=%5B%22WF-5D93B00901730B5E%22%2C%22WF-5D93B0090173ABCD%22%5D
  3. &OnlyLastInstance=true
  4. &PageNumber=1
  5. &PageSize=50
  6. &RegionId=cn-hangzhou
  7. &Public request parameters

Returned format

JSON format

  1. {
  2. "code": "200",
  3. "data": {
  4. "ExecutionPlanInstances": {
  5. "ExecutionPlanInstance": [
  6. {
  7. "ClusterId": "C-3C0EAC0AEB3505E0",
  8. "ClusterName": "b",
  9. "ClusterType": "2",
  10. "ExecutionPlanId": "WF-5D93B00901730B5E",
  11. "ExecutionPlanName": "smoketest_hivejoinonoss_existcluster",
  12. "Id": "1",
  13. "LogEnable": true,
  14. "LogPath": "oss://emr/logs",
  15. "RunTime": 259,
  16. "StartTime": 1455440610718,
  17. "Status": "SUCCESS"
  18. },
  19. {
  20. "ClusterId": "C-ADCAAC0AEB350081",
  21. "ClusterName": "Cluster_OnDemandWithHourSchedual",
  22. "ClusterType": "2",
  23. "ExecutionPlanId": "WF-5D93B0090173ABCD",
  24. "ExecutionPlanName": "EP_onDemandWithHourSchedual",
  25. "Id": "2",
  26. "LogEnable": true,
  27. "LogPath": "oss://genmao",
  28. "RunTime": 297,
  29. "StartTime": 1454585142032,
  30. "Status": "SUCCESS"
  31. }
  32. ]
  33. },
  34. "PageNumber": 1,
  35. "PageSize": 2,
  36. "RequestId": "1436ECB1-C06B-4DA4-92FF-387D94190340",
  37. "TotalCount": 2
  38. },
  39. "requestId": "1436ECB1-C06B-4DA4-92FF-387D94190340",
  40. "successResponse": true
  41. }
Thank you! We've received your feedback.