Admin Console Home Page Interface

QueryRestfulApi class

Interface address:/api/rest_j/v1/jobhistory/governanceStationAdmin

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Used to verify whether it is an administrator, if it is, it will return true if it is not false

Request Parameters:

No

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. data: {
  3. solution: null,
  4. admin: true
  5. }
  6. message: "OK"
  7. method: "/api/jobhistory/governanceStationAdmin"
  8. status: 0
  9. }

Interface address:/api/rest_j/v1/jobhistory/list

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Acquire global historical data list according to conditions and get all by default

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
creatorCreatorqueryfalsestring
endDateEnd timequeryfalseinteger(int64)
executeApplicationNameoperatorqueryfalsestring
isAdminViewWhether it is in administrator mode or normal modequeryfalseboolean
pageSizeNumber of pagesqueryfalseref
proxyUserProxy Userqueryfalsestring
startDateStart timequeryfalseinteger(int64)
statusend timequeryfalsestring
taskIDIDqueryfalseinteger(int64)
tpageNowpage numberqueryfalseref
pageNowpageNowqueryfalseinteger(int32)

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. {
  3. "method": "/api/jobhistory/list",
  4. "status": 0,
  5. "message": "OK",
  6. "data": {
  7. "solution": null,
  8. "totalPage": 90,
  9. "tasks": [{
  10. "taskID": ,
  11. "instance": ",
  12. "execId": "",
  13. "umUser": "",
  14. "engineInstance": null,
  15. "executionCode": "",
  16. "progress": "",
  17. "logPath": "",
  18. "resultLocation": "",
  19. "status": "",
  20. "createdTime": ,
  21. "updatedTime": ,
  22. "engineType": "",
  23. "errCode": 0,
  24. "errDesc": "",
  25. "executeApplicationName": "",
  26. "requestApplicationName": "",
  27. "runType": "datachecker",
  28. "paramsJson": "",
  29. "costTime": 1000,
  30. "strongerExecId": "",
  31. "sourceJson": "",
  32. "sourceTailor": "",
  33. "engineStartTime": null,
  34. "labels": [],
  35. "canRetry": ,
  36. "subJobs":
  37. }]
  38. }
  39. }
  40. }

Interface address:/api/rest_j/v1/jobhistory/listundone

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Undo list

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
creatorcreatorqueryfalsestring
endDateEnd timequeryfalseinteger(int64)
engineTypeengineTypequeryfalsestring
pageNowpageNowqueryfalseref
pageSizepageSizequeryfalseref
startDateStart timequeryfalseref
startTaskIDstartTaskIDqueryfalseinteger(int64)
statusstatusqueryfalsestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "data": {},
  3. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

Interface address:/api/rest_j/v1/jobhistory/{id}/get

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Get the detailed information of a history through the history ID

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
idHistoryIdqueryfalseinteger(int64)

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "method": "/api/jobhistory/1928730/get",
  3. "status": 0,
  4. "message": "OK",
  5. "data": {
  6. "task": {
  7. "taskID": ,
  8. "instance": "",
  9. "execId": "",
  10. "umUser": "",
  11. "engineInstance": "",
  12. "executionCode": "",
  13. "progress": "",
  14. "logPath": "",
  15. "resultLocation": "",
  16. "status": "",
  17. "createdTime":,
  18. "updatedTime": ,
  19. "engineType": "",
  20. "errCode": ,
  21. "errDesc": "",
  22. "executeApplicationName": "",
  23. "requestApplicationName": "",
  24. "runType": "hql",
  25. "paramsJson": "",
  26. "costTime": ,
  27. "strongerExecId": "",
  28. "sourceJson": "",
  29. "sourceTailor": "",
  30. "engineStartTime": null,
  31. "labels": [""],
  32. "canRetry": false,
  33. "subJobs": null
  34. }
  35. }
  36. }