psm jcs rollback

Use this command to roll back a patch for an Oracle Java Cloud Service instance.

Syntax

In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.

psm jcs rollback -s|--service-name serviceName 
      -r|--rollback-id nn 
      [-a|--additional-note string]
      [-of|-–output-format json|html|short]
      [-wc|--wait-until-complete true|false] 

Parameters

All parameters are required unless otherwise noted.

Parameter Description
-s|--service-name serviceName Name of the Oracle Java Cloud Service instance.
-r|--rollback-id nn String identifying the patch operation to be rolled back. To retrieve the rollback Id, use applied-patchescommand.
-a|--additional-note string (Optional) Text string. Add a note to describe the rollback operation.
-of|-–output-format json|html|short (Optional) Output format of the command’s response:

Accepted values: json, html, short

The default output format is the one you specified when using the psm setup command to configure the psm CLI.

-wc|--wait-until-complete true|false

(Optional) A boolean value that, when set to true, makes the command behave synchronously; that is, it does not return until the submitted job is complete. The following message is displayed until the job is complete:
Waiting for the job to complete... (it cannot be cancelled)
Default: false

Example

$ psm jcs rollback -s Example1Instance -r 88992 -of json
{
    "details":{
        "jobId":"34361",
        "message":"JCS-PATCHING-5038: Rollback of service from patch [Test_Patch_12.2.1.0.160119] is submitted as an asynchronous job."
    },
}

Note that this command returned a job ID. To see the status of your patch rollback operation, use this ID with the psm jcs operation-status command:

$ psm jcs operation-status -j 34361 -of json

When you see the message:

    "operationId":364,
    "operationType":"ROLLBACK",
    "serviceId":364,
    "serviceName":"Example1Instance",
    "serviceType":"jaas",
    "startDate":"2016-04-28T21:37:51.458+0000",
    "status":"SUCCEED",
    "summaryMessage":"ROLLBACK"

the patch was successfully rolled back.