psm dhcs view-restores

List all successful restores on the 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 view-restores -s|--service-name cluster-name
	[-of|--output-format short|json|html]

Parameters

Parameter Description

-s|--service-name cluster-name

Specifies the name of the Oracle Data Hub Cloud Service cluster.

-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 lists all successful restores applied to the cluster1 cluster.

$ psm dhcs view-restores --service-name cluster1
{
    "restoreHistory":[
        {
            "backupId":"90ef1906-c4f5-4a5c-8b86-af6dd4c3799e",
            "backupDate":"2017-10-26T06:06:51.664+0000",
            "jobId":"7123525",
            "recoveryStartDate":"2017-10-26T06:24:52.126+0000",
            "recoveryCompleteDate":"2017-10-26T06:31:11.861+0000",
            "status":"Completed",
            "statusDetails":"Submitted the restoration precheck for remote execution...restore precheck operation completed successfully...Submitted the restoration for remote execution...successful...Completed the restoration"
        }
    ]
}