Agents

Get the agents in console

Description

Get the agents in console

URI

GET /api/agents

URI parameter

  • _page

    type: integer

    required: no

  • _pagesize

    type: integer

    required: no

    description: number of data points.

Example Request

Shell

curl \
 -H "API-Token: efa45ec2de7dfc34271aabbbbdd7266b"
 "https://{console-host}/api/agents?_pagesize=10000"

Example Response

Status: 200 OK
{
    "data": [
        {
            "system_version": {
                "kernel_package": "kernel-3.10.0-1127.19.1.el7.x86_64",
                "kernel_bid": "f48533f2136080323692a06249319b499b9716f5",
                "kernel_distro": "centos-7",
                "libc": "GNU libc 2.17",
                "kernel": "Linux version 3.10.0-1127.19.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ) #1 SMP Tue Aug 25 17:23:54 UTC 2020"
            },
            "progress": {
                "current": 5,
                "detail": "all done"
            },
            "created": 1614347471.3655,
            "modified": 1623252179.2064,
            "package": {
                "version": 816,
                "timestamp": 1622433849
            },
            "node_id": "3c7af0a303b65c70a8fbf38329f57321",
            "hostname": "centos7",
            "catch_transient_event": false,
            "autorun_tools": false,
            "dependency": {
                "stap_version": "4.5.0.16",
                "odb_version": "0.25"
            },
            "system_name": "centos-7",
            "note": "",
            "last_reported": 1623252179,
            "bad_kernel": false,
            "ip": "127.0.0.1",
            "env": "host",
            "id": 1, // agent_id
            "online": true,
            "is_deleted": false
        }
    ],
    "status": 0
}