This resource tests a data source's database connection.
The resource supports the following methods:
The POST method on this resource tests the data source's database connection.
This method returns one of the Standard HTTP Status Codes.
This example uses the POST method to test a data source's connectivity with a database.
Example Request
curl -v \ --user username:password \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X POST http://localhost:7001/management/wls/latest/datasources/id/TestDataSource/test
Example Response
HHTTP/1.1 200 OK Response Body: {"messages": [{ "message": "Data Source 'TestDataSource' is working correctly.", "severity": "SUCCESS" }]}