psm dbcs operation-status

View the status of an operation on an Oracle Database Classic Cloud Service instance.

Syntax

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

Parameters

Parameter Description

-j|--job-id job-id

Specifies the ID number of the job about which you want information.

-of|--output-format json|html|short

(Optional) Specifies the output format of the command’s response:

  • json—output is formatted as a JSON array.

  • html—output is formatted as HTML

  • short—output is formatted as a brief summary.

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

Examples

The following example shows the current status of job 553943, which is an in-progress operation to stop the db12c-eeep Database Classic Cloud Service instance.

$ psm dbcs operation-status --job-id 553943
{
    "activityLogId":241345,
    "authDomain":"usexample",
    "authUser":"dbaasadmin",
    "identityDomain":"usexample",
    "initiatedBy":"USER",
    "jobId":553943,
    "messages":[
        {
            "activityDate":"2016-05-03T03:11:20.152+0000",
            "message":"Activity Submitted"
        },
        {
            "activityDate":"2016-05-03T03:11:25.137+0000",
            "message":"Activity Started"
        },
        {
            "activityDate":"2016-05-03T03:11:25.184+0000",
            "message":"The Service [db12c-eeep] is being stopped..."
        }
    ],
    "operationId":22847,
    "operationType":"STOP_SERVICE",
    "serviceId":22847,
    "serviceName":"db12c-eeep",
    "serviceType":"dbaas",
    "startDate":"2016-05-03T03:11:20.152+0000",
    "status":"RUNNING",
    "summaryMessage":"STOP_SERVICE"
}