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

This resource resumes a suspended data source. When you resume a data source, WebLogic Server marks the data source as enabled and allows applications to reserve connections from the data source. If you suspended the data source (not forcibly suspended), all connections are preserved exactly as they were before the data source was suspended. Clients that had reserved a connection before the data source was suspended can continue exactly where they left off.

NOTE: You cannot resume a data source that did not start correctly, for example, if the database server is unavailable.

The resource supports the following methods:

POST Method

The POST method on this resource resumes individual data sources that are in the Suspended state.

Roles

Administrator, Deployer, Operator

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   Resuming a Suspended Data Source

This example uses the POST method to resume a suspended 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/resume

Example Response

HTTP/1.1 200 OK

Response Body:
{"messages": [{
    "message": "Data Source 'TestDataSource' was successfully resumed.",
    "severity": "SUCCESS"
}]}