/* * Wazuh app - Module for get the list of routes in API in JSON format * Copyright (C) 2018 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Find more information about this on the LICENSE file. */ export const apiRequestList = [ { "method": "PUT", "endpoints": [ { "name": "/active-response/:agent_id", "args": [ { "name": ":agent_id" } ] }, { "name": "/agents/:agent_id/group/:group_id", "args": [ { "name": ":agent_id" }, { "name": ":group_id" } ] }, { "name": "/agents/:agent_id/restart", "args": [ { "name": ":agent_id" } ] }, { "name": "/agents/:agent_id/upgrade", "args": [ { "name": ":agent_id" } ] }, { "name": "/agents/:agent_id/upgrade_custom", "args": [ { "name": ":agent_id" } ] }, { "name": "/agents/:agent_name", "args": [ { "name": ":agent_name" } ] }, { "name": "/agents/groups/:group_id", "args": [ { "name": ":group_id" } ] }, { "name": "/agents/restart", "args": [] }, { "name": "/rootcheck", "args": [] }, { "name": "/rootcheck/:agent_id", "args": [ { "name": ":agent_id" } ] }, { "name": "/syscheck", "args": [] }, { "name": "/syscheck/:agent_id", "args": [ { "name": ":agent_id" } ] } ] }, { "method": "DELETE", "endpoints": [ { "name": "/agents", "args": [] }, { "name": "/agents/:agent_id", "args": [ { "name": ":agent_id" } ] }, { "name": "/agents/:agent_id/group", "args": [ { "name": ":agent_id" } ] }, { "name": "/agents/:agent_id/group/:group_id", "args": [ { "name": ":agent_id" }, { "name": ":group_id" } ] }, { "name": "/agents/groups", "args": [] }, { "name": "/agents/groups/:group_id", "args": [ { "name": ":group_id" } ] }, { "name": "/cache", "args": [] }, { "name": "/cache", "args": [] }, { "name": "/experimental/syscheck", "args": [] }, { "name": "/rootcheck", "args": [] }, { "name": "/rootcheck/:agent_id", "args": [ { "name": ":agent_id" } ] }, { "name": "/syscheck/:agent_id", "args": [ { "name": ":agent_id" } ] } ] }, { "method": "GET", "endpoints": [ { "name": "/agents", "args": [] }, { "name": "/agents/:agent_id", "args": [ { "name": ":agent_id" } ] }, { "name": "/agents/:agent_id/config/:component/:configuration", "args": [ { "name": ":agent_id" }, { "name": ":component" }, { "name": ":configuration" } ] }, { "name": "/agents/:agent_id/group/is_sync", "args": [ { "name": ":agent_id" } ] }, { "name": "/agents/:agent_id/key", "args": [ { "name": ":agent_id" } ] }, { "name": "/agents/:agent_id/upgrade_result", "args": [ { "name": ":agent_id" } ] }, { "name": "/agents/groups", "args": [] }, { "name": "/agents/groups/:group_id", "args": [ { "name": ":group_id" } ] }, { "name": "/agents/groups/:group_id/configuration", "args": [ { "name": ":group_id" } ] }, { "name": "/agents/groups/:group_id/files", "args": [ { "name": ":group_id" } ] }, { "name": "/agents/groups/:group_id/files/:filename", "args": [ { "name": ":group_id" }, { "name": ":filename" } ] }, { "name": "/agents/name/:agent_name", "args": [ { "name": ":agent_name" } ] }, { "name": "/agents/no_group", "args": [] }, { "name": "/agents/outdated", "args": [] }, { "name": "/agents/stats/distinct", "args": [] }, { "name": "/agents/summary", "args": [] }, { "name": "/agents/summary/os", "args": [] }, { "name": "/cache", "args": [] }, { "name": "/cache/config", "args": [] }, { "name": "/ciscat/:agent_id/results", "args": [ { "name": ":agent_id" } ] }, { "name": "/cluster/:node_id/configuration", "args": [ { "name": ":node_id" } ] }, { "name": "/cluster/:node_id/info", "args": [ { "name": ":node_id" } ] }, { "name": "/cluster/:node_id/logs", "args": [ { "name": ":node_id" } ] }, { "name": "/cluster/:node_id/logs/summary", "args": [ { "name": ":node_id" } ] }, { "name": "/cluster/:node_id/stats", "args": [ { "name": ":node_id" } ] }, { "name": "/cluster/:node_id/stats/hourly", "args": [ { "name": ":node_id" } ] }, { "name": "/cluster/:node_id/stats/weekly", "args": [ { "name": ":node_id" } ] }, { "name": "/cluster/:node_id/status", "args": [ { "name": ":node_id" } ] }, { "name": "/cluster/config", "args": [] }, { "name": "/cluster/healthcheck", "args": [] }, { "name": "/cluster/node", "args": [] }, { "name": "/cluster/nodes", "args": [] }, { "name": "/cluster/nodes/:node_name", "args": [ { "name": ":node_name" } ] }, { "name": "/cluster/status", "args": [] }, { "name": "/decoders", "args": [] }, { "name": "/decoders/:decoder_name", "args": [ { "name": ":decoder_name" } ] }, { "name": "/decoders/files", "args": [] }, { "name": "/decoders/parents", "args": [] }, { "name": "/experimental/ciscat/results", "args": [] }, { "name": "/experimental/syscollector/hardware", "args": [] }, { "name": "/experimental/syscollector/netaddr", "args": [] }, { "name": "/experimental/syscollector/netiface", "args": [] }, { "name": "/experimental/syscollector/netproto", "args": [] }, { "name": "/experimental/syscollector/os", "args": [] }, { "name": "/experimental/syscollector/packages", "args": [] }, { "name": "/experimental/syscollector/ports", "args": [] }, { "name": "/experimental/syscollector/processes", "args": [] }, { "name": "/manager/configuration", "args": [] }, { "name": "/manager/info", "args": [] }, { "name": "/manager/logs", "args": [] }, { "name": "/manager/logs/summary", "args": [] }, { "name": "/manager/stats", "args": [] }, { "name": "/manager/stats/analysisd", "args": [] }, { "name": "/manager/stats/hourly", "args": [] }, { "name": "/manager/stats/remoted", "args": [] }, { "name": "/manager/stats/weekly", "args": [] }, { "name": "/manager/status", "args": [] }, { "name": "/rootcheck/:agent_id", "args": [ { "name": ":agent_id" } ] }, { "name": "/rootcheck/:agent_id/cis", "args": [ { "name": ":agent_id" } ] }, { "name": "/rootcheck/:agent_id/last_scan", "args": [ { "name": ":agent_id" } ] }, { "name": "/rootcheck/:agent_id/pci", "args": [ { "name": ":agent_id" } ] }, { "name": "/rules", "args": [] }, { "name": "/rules/:rule_id", "args": [ { "name": ":rule_id" } ] }, { "name": "/rules/files", "args": [] }, { "name": "/rules/gdpr", "args": [] }, { "name": "/rules/groups", "args": [] }, { "name": "/rules/pci", "args": [] }, { "name": "/syscheck/:agent_id", "args": [ { "name": ":agent_id" } ] }, { "name": "/syscheck/:agent_id/last_scan", "args": [ { "name": ":agent_id" } ] }, { "name": "/syscollector/:agent_id/hardware", "args": [ { "name": ":agent_id" } ] }, { "name": "/syscollector/:agent_id/netaddr", "args": [ { "name": ":agent_id" } ] }, { "name": "/syscollector/:agent_id/netiface", "args": [ { "name": ":agent_id" } ] }, { "name": "/syscollector/:agent_id/netproto", "args": [ { "name": ":agent_id" } ] }, { "name": "/syscollector/:agent_id/os", "args": [ { "name": ":agent_id" } ] }, { "name": "/syscollector/:agent_id/packages", "args": [ { "name": ":agent_id" } ] }, { "name": "/syscollector/:agent_id/ports", "args": [ { "name": ":agent_id" } ] }, { "name": "/syscollector/:agent_id/processes", "args": [ { "name": ":agent_id" } ] } ] }, { "method": "POST", "endpoints": [ { "name": "/agents", "args": [] }, { "name": "/agents/insert", "args": [] }, { "name": "/agents/restart", "args": [] } ] } ];