psm analytics delete-backup
Use this command to delete a backup of a service created with Oracle Analytics Cloud - Classic.
Syntax
In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.
psm analytics delete-backup -s|--service-name serviceName
[-b|--backup-id backupId]
[-l|--backup-id-list backupId_1 {backupId_2 ...}]
[-of|--output-format json|html|short]
Parameters
All parameters are required unless otherwise noted.
Parameter | Description |
---|---|
-s|--service-name |
Name of the service. |
-b|--backup-id |
(Optional) ID of the backup that you want to delete. To retrieve the backup ID, use the analytics view-backups command. |
-l|--backup-id-list |
(Optional) List of backup IDs that you want to delete. To retrieve the backup IDs, see analytics view-backups . If the list contains the ID for a full backup, all of its related (non-deleted) incremental backups must be included in the list. Use the includeLinkedDetails argument to retrieve related backups for a backup as described in analytics view-backups command.
|
-of|--output-format |
(Optional) Desired output format.
Accepted values: |
Example
$ psm analytics delete-backup -s Example1Service -b 1461867758288
{
"job_id":"34325",
"operationName":"delete-backup",
"target_uri":"http://myserver.us.mycorp.com:7103/paas/service/analytics/api/v1.1/instances/myteamabca/Example1Service/deletedbackups/34325"
}
Job ID : 34325
Note that this command returned a job ID. To see the status of your delete-backup
operation, use this ID with the analytics operation-status command:
$ psm analytics operation-status -j 34325
When you see the message:
"operationId":364,
"operationType":"DELETE_BACKUP",
"serviceId":364,
"serviceName":"Example1Service",
"serviceType":"analytics",
"startDate":"2016-04-28T20:01:58.024+0000",
"status":"SUCCEED",
"summaryMessage":"DELETE_BACKUP"
the backup was successfully deleted.