psm jcs operation-status

Use this command to track the status of a CLI operation performed on an Oracle Java Cloud Service instance; for example, psm jcs scale or psm jcs create-service.

A number of CLI commands will return a numeric job ID, indicating that processing has commenced. When you use psm jcs operation-status, you need to include this job ID with the command. Be aware that, when you run this command, some operations take longer to complete than others. You might need to repeat it a few times before the STATUS: SUCCEED message appears.

Syntax

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

psm jcs operation-status -j|--job-id jobId 
  [-of|-–output-format json|html|short]

Parameters

All parameters are required unless otherwise noted.

Parameter Description
-j|--job—id jobId Job ID of the 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.

Example

$ psm jcs operation-status -j 7495 -of json
{
    "activityLogId":7126,
    "authDomain":"myteamabca",
    "authUser":"weblogic",
    "endDate":"2016-04-28T21:10:40.854+0000",
    "identityDomain":"myteamabca",
    "initiatedBy":"USER",
    "jobId":34348,
    "messages":[
        {
            "activityDate":"2016-04-28T21:08:31.022+0000",
            "message":"Activity Submitted"
        },
        {
            "activityDate":"2016-04-28T21:08:31.046+0000",
            "message":"Activity Started"
        },
        {
            "activityDate":"2016-04-28T21:08:31.096+0000",
            "message":"Stopping service [Example1Instance]..."
        },
        {
            "activityDate":"2016-04-28T21:10:38.283+0000",
            "message":"Stopped all Compute resources..."
        },
        {
            "activityDate":"2016-04-28T21:10:40.843+0000",
            "message":"Stopped service [Example1Instance]."
        },
        {
            "activityDate":"2016-04-28T21:10:40.854+0000",
            "message":"Activity Ended"
        }
    ],
    "operationId":364,
    "operationType":"STOP_SERVICE",
    "serviceId":364,
    "serviceName":"Example1Instance",
    "serviceType":"jaas",
    "startDate":"2016-04-28T21:08:31.022+0000",
"status":"SUCCEED",
    "summaryMessage":"STOP_SERVICE"
}