/management/wls/{version}/deployments/library/id/{library-name}

This resource manages a library.

The resource supports the following methods:

DELETE Method

The DELETE method undeploys the library identified by the resource URL.

Roles

Administrator

Request Query Parameters

This resource launches a job to undeploy the library.

_detached

(Optional) Specifies whether this method runs in detached (background) mode or synchronously.

If the __detached=true query parameter is specified (detached invocation), then this method returns immediately after launching the job. Otherwise, it waits for the job to complete, fail, or timeout (synchronous invocation).

Response Body

If the method was invoked synchronously and successfully launched the job, the response body includes a DeploymentJob entity containing the state of the job (completed, failed, or still running in the case of a timeout) as well as a link to the job resource.

This method can return the following links:

  • uri=/wls/jobs/deployment/{job-id} rel=job title=id

Response Codes

If the method was invoked synchronously and the job successfully completed, the method returns a 200 OK status code. If the job timed out, the method returns a 202 Accepted status code.

If the method was invoked detached and successfully launched the job, the method returns a 202 Accepted status code and a link to the job resource. In this case, the response does not include a DeploymentJob entity.

Example

Example 1   Undeploying a Library

This example uses the DELETE method to undeploy a library.

Example Request

curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X DELETE http://localhost:7001/management/wls/latest/deployments/library/id/airline

Example Response

HTTP/1.1 200 OK

Response Body:
{
    "messages": [{
        "message": "Undeployed the library 'airline'.",
        "severity": "SUCCESS"
    }],
    "links": [{
        "rel": "job",
        "uri": "http:\/\/localhost:7001\/management\/wls\/latest\/jobs\/deployment\/id\/3"
    }],
    "item": {
        "operation": "remove",
        "status": "completed",
        "beginTime": 1390587121460,
        "endTime": 1390587121632,
        "name": "ADTR-3",
        "id": "3",
        "type": "deployment",
        "targets": [
            {
                "errors": [],
                "status": "completed",
                "name": "Cluster-0",
                "type": "cluster"
            },
            {
                "errors": [],
                "status": "completed",
                "name": "myserver",
                "type": "server"
            }
        ],
        "deploymentName": "airline",
        "description": "[Deployer:149117]remove library airline on Cluster-0,myserver."
    }
}

GET Method

The GET method on this resource returns information about the library identified by the resource URL.

Roles

Administrator, Deployer, Operator, Monitor

Response Body

The response body returned includes a Library entity that contains information about the specified library.

This method can return the following links:

  • uri=/management/wls/{version}/deployments/library/id/{library-name}/undeploy rel=undeploy

  • uri=/management/wls/{version}/deployments/library rel=parent

Response Codes

This method returns one of the Standard HTTP Status Codes.

Example

Example 1   Viewing a Library

This example uses the GET method to find information about a specific library.

Example Request

curl -v \
--user username:password \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-X GET http://localhost:7001/management/wls/latest/deployments/library/id/airline

Example Response

HTTP/1.1 200 OK

Response Body:
{
    "links": [
        {
            "rel": "parent",
            "uri": "http:\/\/localhost:7001\/management\/wls\/latest\/deployments\/library"
        },
        {
            "rel": "action",
            "uri": "http:\/\/localhost:7001\/management\/wls\/latest\/deployments\/library\/id\/airline\/redeploy",
            "title": "redeploy"
        }
    ],
    "item": {
        "name": "airline",
        "state": "active",
        "type": "library",
        "targets": ["myserver"],
        "displayName": "airline",
        "deploymentPath": "\/deployments\/airline.war"
    }
}