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

This resource shrinks the pool of database connections in individual instances of a data source.

The resource supports the following methods:

POST Method

The POST method on this resource shrinks the connection pool in a data source.

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   Shrinking The Connection Pool in a Data Source

This example uses the POST method to shrink the connection pool for a specific 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/shrink

Example Response

HTTP/1.1 200 OK

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