Redeploy This Application

post

/management/weblogic/{version}/edit/appDeployments/{name}/redeploy

Redeploy this application.

This method supports both asynchronous and best effort synchronous invocations. The behavior is controlled by the 'Prefer' header.

Request

Path Parameters
Header Parameters
  • The 'Prefer' header parameter can be used to specify the preference on how this method runs. A value of 'respond-async' specifies a preference to submit the request and return immediately without waiting for completion. Alternatively a value of 'wait=#seconds' specifies a preference to wait for #seconds for method completion before returning. If the Prefer header is not specified or invalid, then a 300 second wait will be used.
  • The 'X-Requested-By' header is used to protect against Cross-Site Request Forgery (CSRF) attacks. The value is an arbitrary name such as 'MyClient'.
Security
Back to Top

Response

200 Response

Returns the following fields:

Back to Top

Examples

Synchronously invoke the redeploy action.

This example uses the POST method to synchronously invoke the redeploy action.

Example Request
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-X POST http://localhost:7001/management/weblogic/latest/edit/appDeployments/fairShare/redeploy?links=job,abort&fields=completed,progress,error,state,operationType,applicationName
Example Response
HTTP/1.1 200 OK

Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\//localhost:7001/management/weblogic/latest/domainRuntime/deploymentManager/deploymentProgressObjects/fairShare"
    }],
    "operationType": 4,
    "state": "STATE_COMPLETED",
    "applicationName": "fairShare",
    "progress": "success",
    "completed": true
}

Asynchronously invoke the redeploy action.

This example uses the POST method to asynchronously invoke the redeploy action.

Example Request
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{}" \
-H "Prefer:respond-async" \
-X POST http://localhost:7001/management/weblogic/latest/edit/appDeployments/fairShare/redeploy?links=job,abort&fields=completed,progress,error,state,operationType,applicationName
Example Response
HTTP/1.1 202 Accepted

Location: http://localhost:7001/management/weblogic/latest/domainRuntime/deploymentManager/deploymentProgressObjects/fairShare

Response Body:
{
    "links": [{
        "rel": "job",
        "href": "http:\//localhost:7001/management/weblogic/latest/domainRuntime/deploymentManager/deploymentProgressObjects/fairShare"
    }],
    "operationType": 4,
    "state": "STATE_RUNNING",
    "applicationName": "fairShare",
    "progress": "processing",
    "completed": false
}
Back to Top