psm jcs view-backups

This command lists all backups of an Oracle Java Cloud Service instance.

Syntax

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

psm jcs view-backups -s|--service-name serviceName 
   [-of|-–output-format json|html|short]

Parameters

All parameters are required unless otherwise noted.

Parameters Description
-s|--service-name serviceName Name of the Oracle Java Cloud Service instance.
-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 view-backups -s ExampleInstance -of json 
{
    "backups":[
        {
            "backupCompleteDate":"Thu Apr 28 17:45:33 GMT 2016",
            "backupId":"1461865468064",
            "backupStartDate":"Thu Apr 28 17:44:28 GMT 2016",
            "databaseIncluded":false,
            "expirationDate":"Sat May 28 17:44:28 GMT 2016",
            "full":true,
            "href":"http://myserver.us.mycorp.com:7103/paas/service/jcs/api/v1.1/instances/myteamabca/Example1Instance/backups/1461865468064",
            "initiatedBy":"weblogic",
            "jobId":"34188",
            "local":false,
            "localCopy":true,
            "notes":"Backup for applying patch...",
            "serviceComponents":[
                {
                    "type":"JDK",
                    "version":"1.8.0_71"
                },
                {
                    "type":"OTD",
                    "version":"12.2.1.0.0"
                },
                {
                    "type":"OTD_JDK",
                    "version":"1.8.0_71"
                },
                {
                    "type":"WLS",
                    "version":"12.2.1.0.160119"
                }
.
.
.
            "size":"3.3MB",
            "sizeInBytes":3462606,
            "status":"Completed"
        }
    ]
}