psm dhcs operation-status

View the status of an operation on an Oracle Data Hub Cloud Service cluster.

Syntax

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

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

Parameters

Parameter Description

-j|--job-id job-id

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

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

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

  • short— output is formatted as a brief summary.

  • json— output is formatted as a JSON array.

  • html— output is formatted as HTML

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 7126046, which is a failed delete backup operation for the cluster1 cluster.

$ psm dhcs operation-status --job-id 7126046
{
    "activityLogId":4690397,
    "serviceName":"cluster1",
    "serviceType":"dhcs",
    "identityDomain":"beta",
    "serviceId":117426,
    "jobId":7126046,
    "startDate":"2017-10-26T06:42:05.869+0000",
    "status":"RUNNING",
    "operationId":117426,
    "operationType":"DELETE_BACKUP",
    "summaryMessage":"DELETE_BACKUP",
    "authDomain":"beta",
    "authUser":"abc.xyz@example.com",
    "initiatedBy":"USER",
    "messages":[
        {
            "activityDate":"2017-10-26T06:42:05.869+0000",
            "message":"Activity Submitted"
        },
        {
            "activityDate":"2017-10-26T06:42:05.908+0000",
            "message":"Activity Started"
        },
        {
            "activityDate":"2017-10-26T06:42:12.084+0000",
            "message":"delete backup operation failed - 'backupIdList'\nMore Details:\n\n'backupIdList'"
        }
    ]
}