This resource shuts down a running data source. When you shut down a data source (not forcibly shut down), WebLogic Server closes database connections in the data source and shuts down the data source. If any connections from the data source are currently in use, the operation will fail.
The resource supports the following methods:
The POST method on this resource shuts down a data source.
This method returns one of the Standard HTTP Status Codes.
This example uses the POST method to shut down 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/shutdown
Example Response
HTTP/1.1 200 OK Response Body: {"messages": [{ "message": "Data Source 'TestDataSource' was successfully stopped.", "severity": "SUCCESS" }]}