Skip to main content
Version: 1.1.3

ECM Resource Information Management

ECResourceInfoRestfulApi class

delete EC info

Interface address:/api/rest_j/v1/linkisManager/ecinfo/delete/{ticketid}}

Request method: DELETE

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

Response data type: application/json

Interface description:

Delete EC information

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
ticketidticketidpathtruestring

Response Status:

Status codeDescriptionschema
200OKMessage
204No Content
401Unauthorized
403Forbidden

Response parameters:

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

Sample Response:

{
"data": {},
"message": "",
"method": "",
"status": 0
}

Get EC information

Interface address: /api/rest_j/v1/linkisManager/ecinfo/get

Request method: GET

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

Response data type: application/json

Interface description:

Get EC information

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
ticketidticketidquerytruestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

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

Sample Response:

{
"data": {},
"message": "",
"method": "",
"status": 0
}

ECM resource list

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

Request method: GET

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

Response data type: application/json

Interface description:

Get a detailed list of all ECM resources, which can be queried according to conditions, and query all by default

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
instanceinstance namequeryfalsestring
nodeHealthyStatus, the status has the following enumeration types 'Healthy', 'UnHealthy', 'WARN', 'StockAvailable', 'StockUnavailable'queryfalsestring
ownerCreatorqueryfalsestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

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

Sample Response:

{
"method": "/api/linkisManager/listAllEMs",
"status": 0,
"message": "OK",
"data": {
"EMs": [{
"labels": [{
"stringValue": "",
"labelKey": "",
"feature": "",
"instance": "",
"serviceInstance": {
"instance": "",
"applicationName": ""
},
"serviceName": "",
"featureKey": "",
"empty":
}],
"applicationName": "",
"instance": ":",
"resourceType": "",
"maxResource": {
"memory": ,
"cores": ,
"instance":
},
"minResource": {
"memory": ,
"cores": ,
"instance":
},
"usedResource": {
"memory": ,
"cores": ,
"instance":
},
"lockedResource": {
"memory": 0,
"cores": 0,
"instance": 0
},
"expectedResource": {
"memory": 0,
"cores": 0,
"instance": 0
},
"leftResource": {
"memory": ,
"cores": ,
"instance":
},
"owner": "",
"runningTasks": null,
"pendingTasks": null,
"succeedTasks": null,
"failedTasks": null,
"maxMemory": ,
"usedMemory": ,
"systemCPUUsed": null,
"systemLeftMemory": ,
"nodeHealthy": "",
"msg": "",
"startTime":
}]
}
}

Edit EMC instance

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

Request method: PUT

Request data type: application/json

Response data type: application/json

Interface description:

Edit or modify the instance under EMC management

Request Parameters:

Parameter nameParameter descriptionRequiredRequest typeData typeschema
applicationNameEngine LabelfalseStringString
emStatusInstance status, the status has the following enumeration types 'Healthy', 'UnHealthy', 'WARN', 'StockAvailable', 'StockUnavailable'falseStringString
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:

{
"method": "/api/linkisManager/modifyEMInfo",
"status": 0,
"message": "success",
"data": {}
}

Open engine log

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

Request method: POST

Request data type: application/json

Response data type: application/json

Interface description:

Open the engine log, the stdout type engine log is opened by default

Request example:

{
applicationName: ""
emInstance: ""
instance: ""
parameters: {
pageSize: ,
fromLine: ,
logType: ""
}
}

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
applicationNameEngine LabelStringfalseString
emInstanceInstance nameStringfalseString
fromLineFrom LineStringfalseString
instanceEngine instance nameStringfalseString
logTypeLog type, default stdout type, belonging to parametersStringfalseString
pageSizePage SizeStringfalseString
parametersPagination informationMapfalseMap

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:

{
"method": "/api/linkisManager/openEngineLog",
"status": 0,
"message": "OK",
"data": {
"result": {
"logPath": "",
"logs": [""],
"endLine": ,
"rows":
},
"isError": false,
"errorMsg": ""
}
}