| Tip of the day: Don't like snomasks / server notices? Then configure logging to a channel. |
JSON-RPC:Security group
Jump to navigation
Jump to search
JSON Methods
- rpc:
set_issuer,info,add_timer,del_timer - stats:
get - log:
send,list,subscribe,unsubscribe - user:
list,get,set_nick,set_username,set_realname,set_vhost,set_mode,set_snomask,set_oper - whowas:
get - server:
list,get,rehash,connect,disconnect - channel:
list,get,set_mode,set_topic,kick - server_ban:
list,get,add,del - server_ban_exception:
list,get,add,del - spamfilter:
list,get,add,del - name_ban:
list,get,add,del - message:
send_privmsg,send_notice,send_numeric,send_standard_reply - connthrottle:
status,set,reset, - security_group:
list,get
JSON Basics
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
}
}