Remove unnecessary fields in the RESTful Management API from WebLogic

0

I'm developing a service for monitoring applications deployed on WebLogic servers and for that I'm using your REST API to query the information and perform the operations I need.

By using the GET /management/wls/12.1.3.0/deployments/application endpoint, I can see a list of all applications deployed in the domain in order to retrieve the application name, state, targets, health, and URL information I need for my service. However, due to the large number of applications, this request takes an average of 4 seconds (!!!) to return a response, which is unthinkable.

In in Oracle documentation it is mentioned that I can use the _includeFields=field1[,field2,...] or _excludeFields=field1[,field2,...] to filter my request and potentially optimize not only the size of the response but also the time it takes to be generated. However, none of these seems to have the intended effect because even specifying the _includeFields=name,targets,health,urls parameter still receives all the information and not just the ones that are really useful to me.

Does anyone know how I can spell out which fields I want so that I can not receive more information to optimize the request and make my service more efficient?

Thank you!

    
asked by anonymous 04.04.2018 / 17:11

0 answers