Applications

Get the applications of the agent

Description

Get the applications of the agent

URI

GET /api/agents/[agent_id]/applications

URI parameter

  • _page

    type: integer

    required: no

  • _pagesize

    type: integer

    required: no

    description: number of data points.

  • online

    type: integer

    required: no

    description: whether to return to the online application

Example Request

Shell

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

Example Response

Status: 200 OK
{
    "data": [
        {
            "processes": [
                {
                    "kind": "master process",
                    "id": 42845738,
                    "pid": 76798
                }
            ],
            "ports": [
                "localhost:5432"
            ],
            "version": {
                "libc": "GNU libc 2.31"
            },
            "created": 1616487635.3832,
            "cmd_line": "/usr/local/postgresql12//bin/postmaster -D /var/postgres12/data",
            "exe": "/usr/local/postgresql12/bin/postgres",
            "cwd": "/var/postgres12/data",
            "modified": 1623252651.2152,
            "name": "postgres",
            "id": 200, // application_id
            "online": true,
            "pgid": 76779
        }
    ],
    "status": 0
}