Engine Material Refresh Interface

The material resources mainly used for the engine (under {LINKIS_INSTALL_HOME}/lib/linkis-engineconn-plugin, the jar package/configuration file of the engine) are updated to BML.

Interface address:/api/rest_j/v1/engineplugin/refresh

Request method: GET

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

Response data type: */*

Interface description: Update the material resources of the specified engine

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
ecTypeEngine Typequerytruestring
versionversion can be empty or *queryfalsestring

Sample Request:

  1. #url
  2. http://ip:port/api/rest_j/v1/engineplugin/refresh?ecType=hive&version=2.3.3
  3. #Request Header
  4. Content-Type:application/json
  5. Token-Code:BML-AUTH
  6. Token-User:hadoop

Response parameters:

parameter nameparameter descriptiontypeschema
dataobject
messagestring
methodstring
statusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "method": null,
  3. "status": 0,
  4. "message": "OK",
  5. "data": {
  6. "msg": "Refresh successfully"
  7. }
  8. }

refreshAll

Interface address:/api/rest_j/v1/engineplugin/refreshAll

Request method: GET

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

Response data type: */*

Interface description: Update material resources of all engines

Request Parameters: none

Response parameters:

parameter nameparameter descriptiontypeschema
dataobject
messagestring
methodstring
statusinteger(int32)integer(int32)

Sample Response:

  1. {
  2. "method": null,
  3. "status": 0,
  4. "message": "OK",
  5. "data": {
  6. "msg": "Refresh successfully"
  7. }
  8. }