Getting backup history for a virtual machine

You can get virtual machine backup history. This action is available only in the REST API.

URI and Method

To get information about virtual machine backup history, use a GET method and a URI:

https://{hostname|IP}/ngp/analytics/vmbackuphistory

Parameters

None.

Data

None.

Example: Get virtual machine backup history

A Python snippet that is similar to the following example can be used to request information about virtual machine backup history.

requests.get('https://' + spp_ipv4 + '/ngp/analytics/vmbackuphistory',
    headers={...}, verify=spp_verify)

The request prompts a response that is structured as shown, with the HTTP status of 200 (OK).

{
    "links": {...},
    "instances": [
        {
            "pk": "8989CFF1-6F16-4E2B-9FCC-9F8C8CD719C9",
            "VM": "Sales-Win2016-001",
            "tags": [],
            "SLAPolicy": "Gold",
            "ProtectionTime": 1565873191165,
            "hypervisor": "dallas-hv1.bluemachines.com.invalid",
            "hypervisorType": "Hyper-V",
            "Status": "Success",
            "BackupStorage": "localhost",
            "BackupDetails": {
                "BackupData": 9256960,
                "BackupDuration": 66668
            },
            "TotalRuns": 2
        },
        {...}, ..., {...}
    ]
}