How to get the Datasource test connection status using http api

Posted on

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 ?


{"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}