/management/wls/{version}/datasources/id/{data-source-name}/test

This resource tests a data source's database connection.

The resource supports the following methods:

POST Method

The POST method on this resource tests the data source's database connection.

Roles

Administrator, Deployer, Operator, Monitor

Response Body

A success response body includes status messages returned by this operation.

Response Codes

This method returns one of the Standard HTTP Status Codes.

Example

Example 1   Testing a Data Source

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