Massimo Danieli -
Massimo Danieli -

Reputation: 51

WSO2 ESB : how to retrive the Carbon Applications List

for monitoring purpose I was looking for a way, possibly via JMX or SNMP, to retrieve the Carbon Applications List and for each one of those the version. I googled and read the docs but wasn't able to find anything Any idea ?

TIA

Max

Upvotes: 0

Views: 295

Answers (1)

maheeka
maheeka

Reputation: 2093

You can view the list or carbon apps deployed by calling admin services.

To get the list of carbon apps you should invoke ApplicationAdmin admin service.

Admin Service URL: https://localhost:9443/services/ApplicationAdmin

Sample Request Payload:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mgt="http://mgt.application.carbon.wso2.org">
   <soapenv:Header/>
   <soapenv:Body>
      <mgt:listAllApplications/>
   </soapenv:Body>
</soapenv:Envelope>

Sample Response Payload:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <ns:listAllApplicationsResponse xmlns:ns="http://mgt.application.carbon.wso2.org" xmlns:ax21="http://mgt.application.carbon.wso2.org/xsd">
         <ns:return>ContainerAPICompositeApplication_1.0.0</ns:return>
         <ns:return>SalesforceCompositeProject_1.0.0</ns:return>
      </ns:listAllApplicationsResponse>
   </soapenv:Body>
</soapenv:Envelope>

Make sure you pass in the authenticated session ID when making the request. You can find more details on this at : http://itsmaheeka.blogspot.com/2016/06/wso2-admin-services.html

Upvotes: 1

Related Questions