Index

This method allows you to retrieve a list of node scan item diffs for your organization.

Method URL
GET /api/v2/diffs.json
GET /api/v2/diffs.csv

Parameters

Param Type Required Notes
environment_id integer No The ID of the environment to retrieve diffs for
node_group_id integer No The ID of the node group to retrieve diffs for
node_id integer No The ID of the node to receive diffs for
date_from string No The start date for diffs
date_to string No The end date for diffs
include_ignored boolean No Whether or not to include ignored items (default: false)
page integer No The page to retrieve (default: 1)
per_page integer No The number of items per page (default: 500)

Example Response

Code Status
200 OK

Example Response JSON

{
    "diff_items_count": 2,
    "ignored_items_count": 1,
    "total_items_count": 3,
    "diff_items": [
        {
            "old_scan_id": 2,
            "new_scan_id": 3,
            "node_name": "Node",
            "node_id": 1,
            "environment_id": 1,
            "name": "zlib",
            "type": "packages",
            "path": "{packages,yum}",
            "created_at": "2016-06-28 22:30:40.263302",
            "old_attrs": null,
            "new_attrs": {
                "version": "1.2.7-15.el7",
                "status": "installed"
            }
        },
        {
            "old_scan_id": 2,
            "new_scan_id": 3,
            "node_name": "Node",
            "node_id": 1,
            "environment_id": 1,
            "name": "/sys/kernel/security",
            "type": "mounts",
            "path": "{mounts,linux}",
            "created_at": "2016-06-28 22:30:40.263302",
            "old_attrs": {
                "options": "rw,relatime",
                "root": "none",
                "mount_point": "/sys/kernel/security",
                "fstype": "securityfs"
            },
            "new_attrs": {
                "options": "rw,nosuid,nodev,noexec,relatime",
                "root": "securityfs",
                "mount_point": "/sys/kernel/security",
                "fstype": "securityfs"
            }
        },
    ],
    "ignored_items": [
        {
            "old_scan_id": 2,
            "new_scan_id": 3,
            "node_name": "Node",
            "node_id": 1,
            "environment_id": 1,
            "name": "libpciaccess",
            "type": "packages",
            "path": "{packages,yum}",
            "created_at": "2016-06-28 22:30:40.263302",
            "old_attrs": null,
            "new_attrs": {
                "version": "0.13.4-2.el7",
                "status": "installed"
            }
        }
    ]
}
Tags: diffs