Return TCP IPv4 sockets data

This function returns data about the system's transmission control protocol (TCP) IPv4 sockets.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/get_tcp4_sockets
Request samples
whmapi1 --output=jsonpretty \
  get_tcp4_sockets
Response samples
application/json
{
  • "data": {
    • "payload": [
      • {
        • "dport": 443,
        • "dst": "10.0.0.2",
        • "inode": 27171,
        • "rqueue": 0,
        • "sport": 2087,
        • "src": "10.0.0.1",
        • "state": 10,
        • "uid": 102,
        • "wqueue": 45
        }
      ]
    },
  • "metadata": {
    • "command": "get_tcp4_sockets",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}