Engine Management

EngineRestfulApi class

Interface address:/api/rest_j/v1/linkisManager/createEngineConn

Request method: POST

Request data type: application/json

Response data type: application/json

Interface description:

Create engine connection

Request Parameters:

No

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
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/linkisManager/executeEngineConnOperation

Request method: POST

Request data type: application/json

Response data type: application/json

Interface description:

Execute engine connection operation

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
jsonNodejsonNodebodytrueJsonNodeJsonNode

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
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/linkisManager/getEngineConn

Request method: POST

Request data type: application/json

Response data type: application/json

Interface description:

Get engine connection

Request Parameters:

No

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
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. }

kill engine connection

Interface address: /api/rest_j/v1/linkisManager/killEngineConn

Request method: POST

Request data type: application/json

Response data type: application/json

Interface description:

kill engine connection

Request Parameters:

No

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
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/linkisManager/listAllNodeHealthyStatus

Request method: GET

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

Response data type: application/json

Interface description:

All node status

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
onlyEditableonlyEditablequeryfalseboolean

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/linkisManager/listAllNodeHealthyStatus",
  3. "status": 0,
  4. "message": "OK",
  5. "data": {
  6. "nodeStatus": []
  7. }
  8. }

Interface address: /api/rest_j/v1/linkisManager/listEMEngines

Request method: POST

Request data type: application/json

Response data type: application/json

Interface description:

List Engine

Request example:

  1. {
  2. em: {
  3. serviceInstance: {
  4. applicationName: "linkis-cg-engineconnmanager",
  5. instance: "localhost110003:9102"
  6. }
  7. }
  8. }

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
applicationNameEngine tag name, which belongs to the value in serviceInstanceStringfalseString
emThe outermost layer of the input parameterMapfalseMap
emInstanceThe name of the engine instance and the level of ‘em’ belong to the outermost layerStringfalseString
engineTypeThe engine type belongs to the outermost level with the same level as ‘em’StringfalseString
instanceInstance nameStringfalseString
nodeStatusThe status is the outermost level with ‘em’, and the status has the following enumeration types ‘Healthy’, ‘UnHealthy’, ‘WARN’, ‘StockAvailable’, ‘StockUnavailable’StringfalseString
ownerThe creator is at the same level as ‘em’ and belongs to the outermost layerStringfalseString
serviceInstanceThe input parameter belongs to ‘’emMapfalseMap

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
401Unauthorized
403Forbidden
404Not Found

Response parameters:

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

Sample Response:

  1. {
  2. "method": "/api/linkisManager/listEMEngines",
  3. "status": 0,
  4. "message": "OK",
  5. "data": {
  6. "engines": []
  7. }
  8. }

Interface address:/api/rest_j/v1/linkisManager/listUserEngines

Request method: GET

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

Response data type: application/json

Interface description:

Engine user set

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. "message": "",
  4. "method": "",
  5. "status": 0
  6. }

Interface address:/api/rest_j/v1/linkisManager/modifyEngineInfo

Request method: PUT

Request data type: application/json

Response data type: application/json

Interface description:

Edit engine instance content

Request Parameters:

Parameter nameParameter descriptionRequiredRequest typeData typeschema
applicationNameEngine LabelfalseStringString
emStatusRunning StatusfalseStringString
instanceEngine instance namefalseStringString
labelKeyThe label in the added content belongs to the key in the map in the labels collectionfalseStringString
labelsThe engine instance updates the parameter content, and the collection stores the map typefalseListList
stringValueThe value of the label in the added content belongs to the value in the map in the labels collectionfalseStringString

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
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. }

kill engine

Interface address: /api/rest_j/v1/linkisManager/rm/enginekill

Request method: POST

Request data type: application/json

Response data type: application/json

Interface description:

Close the engine, one or more can be closed

Request example:

  1. [
  2. {
  3. engineInstance: "",
  4. applicationName:""
  5. }
  6. ]

Request Parameters:

Parameter nameParameter descriptionRequiredRequest typeData typeschema
applicationNameThe application name, the outermost layer is an array and the engineInstance parameter is a levelfalseStringString
engineInstanceThe name of the engine instance, the outermost layer is an array and the applicationName parameter is a levelfalseStringString

Response Status:

Status codeDescriptionschema
200OKMessage
201Created
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. }