2 Replies Latest reply on Dec 13, 2019 6:23 AM by Wolfgang Mayer

    How to get the Datasource test connection status using http api

    balamv Newbie

      Hi,
      I like to check if the respective database connection is successful for the datasource using http management api. I was not getting the expected output, can some one help me here ?

      http://MANAGEMENT_HOST:PORT/management/host/MYHOST/server/MYSERVER/datasources/xa-data-source/MYDATASOURCE/operation=test-connection-in-pool

      {"outcome": "failed", "result": null, "failure-description": "WFLYCTL0216: Management resource '[\n (\"subsystem\" => \"datasources\"),\n (\"xa-data-source\" => \"MYDATASOURCE:operation=test-connection-in-pool\")\n]' not found", "rolled-back": true}