Getting database backup compliance¶
You can get information about database backup compliance. This action is available only in the REST API.
Method and URI¶
To get information about database backup compliance, use a GET method and a URI:
GET https://{hostname|IP}/ngp/analytics/dbbackupslacom
Parameters¶
None.
Data¶
None.
Example: Get database backup compliance¶
A Python snippet that is similar to the following example can be used to request information about database backup compliance.
requests.get('https://' + spp_ipv4 + '/ngp/analytics/dbbackupslacom',
headers={...}, verify=...)
The request prompts a response that is structured as shown, with the HTTP status of 200 (OK).
{
"backup2vsnap": {
"compliance": [],
"ucompliance": [
{
"DB": "Bluemachines-Oracle-SalesDB",
"SLAPolicy": "Gold",
"ProtectionTime": 1567168142000,
"Frequency": 4,
"Schedule": "HOURLY",
"FailureReason": "[Backup failed: Backup failed, Backup of all d
↪atabases failed :All databases failed]"
},
..., {...}
]
},
"replication": {
"compliance": [],
"ucompliance": []
},
"offload": {
"compliance": [],
"ucompliance": []
}
}