Skip to main content
Version: Next(1.7.0)

Resource Management

RMMonitorRest class

All user resources

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

Request method: GET

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

Response data type: */*

Interface description:

All user resources

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
creatorcreatorqueryfalsestring
engineTypeengineTypequeryfalsestring
pagepagequeryfalseinteger(int32)
sizesizequeryfalseinteger(int32)
usernameusernamequeryfalsestring

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": null,
"status": 0,
"message": "OK",
"data": {
"total": 34,
"resources": [{
"id": ,
"username": "",
"creator": "",
"engineTypeWithVersion": "",
"resourceType": "",
"maxResource": {
"memory": ,
"cores": ,
"instance":
},
"minResource": {
"memory": ,
"cores": "instance": 0
},
"usedResource": {
"memory": ,
"cores": ,
"instance":
},
"lockedResource": {
"memory": 0,
"cores": 0,
"instance": 0
},
"expectedResource": null,
"leftResource": {
"memory": ,
"cores": ,
"instance":
},
"createTime": ,
"updateTime": ,
"loadResourceStatus": "",
"queueResourceStatus":
}]
}
}

Application List

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

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Get the list of application engines in resource management

Request example:

{
userCreator: ""
}

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
userCreatoruserCreatorquerytrueString

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": ,
"status": ,
"message": "",
"data": {
"applications": [{
"creator": "",
"applicationList": {
"usedResource": {
"memory": ,
"cores": ,
"instance":
},
"maxResource": {
"memory": ,
"cores": ,
"instance":
},
"lockedResource": {
"memory": ,
"cores": ,
"instance":
},
"minResource": {
"memory": ,
"cores": ,
"instance":
},
"engineInstances": [{
"resource": {
"resourceType": "",
"maxResource": {
"memory": ,
"cores": ,
"instance":
},
"minResource": {
"memory": ,
"cores": ,
"instance":
},
"usedResource": {
"memory": ,
"cores": ,
"instance":
},
"lockedResource": {
"memory": ,
"cores": ,
"instance":
},
"expectedResource": null,
"leftResource": {
"memory": ,
"cores": ,
"instance":
}
},
"engineType": "",
"owner": "",
"instance": "",
"creator": "",
"startTime": "",
"status": "",
"label": ""
}]
}
}]
}
}

EngineType

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

Request method: GET

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

Response data type: */*

Interface Description:

Engine Type

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:

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

Engine manager

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

Request method: POST

Request data type: application/json

Response data type: */*

Interface Description:

Engine Manager

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
paramparambodyfalseobject

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:

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

queue manager

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

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Queue Manager

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
paramparambodytrueobject

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:

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

queue

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

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Queue

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
paramparambodyfalseobject

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:

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

reset resources

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

Request method: DELETE

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

Response data type: */*

Interface description:

Reset resources

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
resourceIdresourceIdqueryfalseinteger(int32)

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
}

Resource information

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

Request method: POST

Request data type: application/json

Response data type: */*

Interface description:

Query resource list and detailed resource data such as usage percentage

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
paramparambodyfalseobject

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": null,
"status": 0,
"message": "OK",
"data": {
"userResources": [{
"userCreator": "",
"engineTypes": [{
"engineType": "",
"percent": ""
}],
"percent": ""
}]
}
}