psm analytics rollback

Use this command to roll back a patch for a service created with Oracle Analytics Cloud - Classic.

Syntax

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

psm analytics rollback -s|--service-name serviceName 
  -r|--rollback-id nn 
    [-n|--additional-note free form text content]
    [-of|--output-format json|html|short]

Parameters

All parameters are required unless otherwise noted.

Parameter Description
-s|--service-name Specifies the name of the service.
-r|--rollback-id String identifying the patch operation to be rolled back. To retrieve the rollback ID, use analytics applied-patches command.
-n||--additional-note (Optional) Free-form text to provide additional information about the patch.
-of|-–output-format (Optional) Desired output format.

Accepted values: json, html, short

Example

$ psm analytics rollback -s Example1Service -r 1{
    "details":{
        "jobId":"34361",
        "message":"ANALYTICS-PATCHING-5038: Rollback of service from patch [Test_Patch_12.2.1.0.160119] is submitted as an asynchronous job."
    },
    "status":"Completed"
}

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

$ psm analytics operation-status -j 34361

When you see the message:

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

the patch was successfully rolled back.