Getting database backup history¶
You can get database backup history. This action is available only in the REST API.
Method and URI¶
To get database backup history, use a GET method and a URI:
GET https://{hostname|IP}/ngp/analytics/dbbackuphistory
Parameters¶
None.
Data¶
None.
Example: Get database backup history¶
A Python snippet that is similar to the following example can be used to request information about database backup history.
requests.get('https://' + spp_ipv4 + '/ngp/analytics/dbbackuphistory',
headers={...}, verify=...)
The request prompts a response that is structured as shown, with the HTTP status of 200 (OK).
{
"links": {...},
"instances": [
{
"pk": "7540bc5013b15e4940ebbb908c4aaf87",
"parentPk": "34ea1797e3fd1d00d33b349517057d1d",
"DB": "SALES-AMERICAS1",
"SLAPolicy": "Gold",
"ProtectionTime": 1570380381334,
"Status": "Failed",
"BackupStorage": "",
"BackupDetails": {
"FailureReason": "[Backup failed: Backup failed, Backup of all d
↪atabases failed :All databases failed]"
},
"TotalRuns": 392
},
{...}, ..., {...}
]
}