Friday, January 18, 2019

Weblogic REST API


 Heath check script in Python
https://github.com/dveselka/python/blob/master/getState.py

https://docs.oracle.com/middleware/1221/wls/WLRUR/overview.htm#WLRUR111

Command reference
https://docs.oracle.com/middleware/1221/wls/WLRDR/resources.htm#_management_weblogic_version_domainruntime_domainpartitionruntimes_name_deploymentmanager_appdeploymentruntimes_name_update

https://docs.oracle.com/cd/E24329_01/web.1211/e26722/toc.htm#RESTS143

https://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_2_1/01-30-001-ManageWLSREST1221/Manage_WLS_REST1221.html#section1

https://www.oracle.com/technetwork/articles/soa/oliveira-wls-rest-javafx-1723982.html

https://www.middlewareinventory.com/blog/how-to-use-weblogic-rest-api-examples/

http://www.munzandmore.com/2015/ora/weblogic-12-2-1-rest-management-interface

https://localhost:7001/management/tenant-monitoring/servers/AdminServer

https://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes

Using curl with https

curl -k  -v --noproxy "*"  -v --user   weblogic:weblogic123 -H X-Requested-By:MyClient -H Accept:application/json -X GET https://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes/AdminServer/applicationRuntimes/myApp


----------------------------------------------------------------------
Monitor the servers
----------------------------------------------------------------------
 
curl -v \
--user monitor:monitor123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/weblogic/latest/domainRuntime/serverRuntimes?links=none&fields=name,overallHealthState,healthState,state,openSocketsCurrentCount,activationTime
 

No comments:

Post a Comment