This resource suspends a data source. When you suspend a data source (not forcibly suspend), the data source is marked as disabled and applications cannot reserve connections from the pool. Applications that already have a reserved connection from the data source when it is suspended will get an exception when trying to reserve the connection. WebLogic Server preserves all connections in the data source exactly as they were before the data source was suspended.
The resource supports the following methods:
The POST method on this resource suspends individual instances of a data source. When you suspend a data source, applications can no longer get a database connection from the data source.
This method returns one of the Standard HTTP Status Codes.
This example uses the POST method to suspend a data source.
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/suspend
Example Response
HTTP/1.1 200 OK Response Body: {"messages": [{ "message": "Data Source 'TestDataSource' was successfully suspended.", "severity": "SUCCESS" }]}