Rollback a Patch

put

/paas/api/v1.1/instancemgmt/{identityDomainId}/services/jaas/instances/{serviceId}/patches/{rollbackId}/rollback

Rolls back a patch for an Oracle Java Cloud Service instance.

(Not available on Oracle Cloud at Customer) Rollback a WebLogic Server software version upgrade patch: Rolling back a WebLogic Server version upgrade is a combination of procedures you perform manually. As part of rolling back a version upgrade, use this endpoint to restore the WebLogic Server software version information (that is stored in Oracle Java Cloud Service) to the original version number prior to the upgrade. See Roll Back an Upgrade in the chapter Upgrade the WebLogic Server Version for an Oracle Java Cloud Service Instance in Administering Oracle Java Cloud Service.

Request

Supported Media Types
Path Parameters
Header Parameters
Body ()
The request can contain a note about the rollback operation.
Root Schema : rollback-request
Type: object
Show Source
Back to Top

Response

Supported Media Types

202 Response

Accepted. See Status Codes for information about other possible HTTP status codes.
Body ()
Root Schema : rollback-response
Type: object
The response body includes information about the rollback operation.
Show Source
Nested Schema : details
Type: object
Groups the details of the rollback operation.
Show Source
Back to Top

Examples

The following example shows how to roll back a patch operation for an Oracle Java Cloud Service instance by submitting a PUT request on the REST resource using cURL.

Note: The command in this example uses the URL structure https://rest_server_url/resource-path, where rest_server_url is the REST server to contact for your identity domain (or Cloud Account). See Send Requests.

cURL Command

curl -i -X PUT -u username:password -d @rollback.json -H "Content-Type:application/json" -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances/ExampleInstance/patches/88992/rollback

Example of Request Body

The following shows an example of the request body.

{
   "additionalNote": "Rolling back the JDK patch."
}

Example of Response Body

The following are examples of the response body in JSON format.

{
   "details":
   {
      "jobId":"6553026",
      "message":"JCS-PATCHING-038: Rollback of service from patch [otd_jdk1.7.0_95] is submitted as an asynchronous job."
   },
   "status":"Completed"
}
{
   "status":"Completed",
   "details":{
      "message":"PSM-PATCH-50038:  Rollback of service from patch [wls_upg_12.2.1.3.190115_for_12cRelease212] is submitted as an  asynchronous job.",
      "jobId":"206236"
   }
}
Back to Top