Getting virtual machine backup compliance

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

URI and Method

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

GET     https://{hostname|IP}/ngp/analytics/vmbackupslacom

Parameters

None.

Data

None.

Example: Get information about virtual machine backup compliance

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

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

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

{
    "backup2vsnap": {
        "compliance": [],
        "ucompliance": [
            {
                "VM": "Sales-Windows2016-005",
                "SLAPolicy": "Gold",
                "Hypervisor": "win2016enghv.bluemachines.com.invalid",
                "HypervisorType": "hyperv",
                "ProtectionTime": 1565873191165,
                "Location": "/win2016enghv",
                "Frequency": 4,
                "Schedule": "HOURLY",
                "FailureReason": "Defined RPO for SLA Policy Gold to run Every 4
 hour(s) not meet."
            },
            {
                "VM": "Sales-RedHatLinux-004",
                "SLAPolicy": "Gold",
                "Hypervisor": "10.0.0.10",
                "HypervisorType": "vmware",
                "ProtectionTime": 1573345610009,
                "Location": "/vmware-dallas1.bluemachines.com.invalid/Dallas -
DataCenter1/Lab folder",
                "Frequency": 4,
                "Schedule": "HOURLY",
                "FailureReason": "Defined RPO for SLA Policy Gold to run Every 4
 hour(s) not meet."
            }
        ]
    },
    "replication": {
        "compliance": [],
        "ucompliance": []
    },
    "offload": {
        "compliance": [],
        "ucompliance": []
    }
}