Tip of the day: Don't like snomasks / server notices? Then configure logging to a channel.

JSON-RPC:Security group

From UnrealIRCd documentation wiki
Jump to navigation Jump to search

The security_group.* JSON RPC calls allow you to list security groups and see details about them.

API Calls

security_group.list

Get the list of available security groups.

Request arguments

None

Response

{
  "jsonrpc": "2.0",
  "method": "security_group.list",
  "id": 1,
  "result": {
    "list": [
      {
        "name": "unknown-users",
        "priority": 0,
        "builtin": true
      },
      {
        "name": "tls-or-local",
        "priority": 1
      },
      {
        "name": "untrusted-user",
        "priority": 1
      },
      {
        "name": "trusted-user",
        "priority": 1
      },
      {
        "name": "webirc-users",
        "priority": 50
      },
      {
        "name": "websocket-users",
        "priority": 51
      },
      {
        "name": "known-users",
        "priority": 100,
        "builtin": true
      },
      {
        "name": "tls-users",
        "priority": 300
      }
    ]
  }
}

security_group.get

Get details of a particular security groups.

Request arguments

Mandatory:

  • name: The name of the security-group

Response

{
  "jsonrpc": "2.0",
  "method": "security_group.get",
  "id": 1,
  "result": {
    "name": "known-users",
    "priority": 100,
    "identified": true,
    "reputation_score": 25,
    "builtin": true
  }
}