Attributes

Attribute

type

values

default

mandate

comment

name

string

 

 

true

 

description

string

 

 

false

 

ipaddress

string

 

 

true

 

authPort

integer

 

 

true

 

acctPort

integer

 

 

true

 

managePort

integer

 

 

true

port number of RADIUS management API

enabled

boolean

 

true

 

 

clients

coll

 

 

 

 

authServiceAddr

string

 

 

true

address of DUAL authentication service. For example:

http://ip:port/auth/rest

Proxies

coll

 

 

 

 

applications

Coll

 

 

 

 

agent

object

 

 

 

The associated agent


/ radiusServer / create

Method:/radiusServer/create
Parameters:
{
"attrs":
{
"name":"Radius1",
"description":"description",
"ipaddress":"192.168.222.181",
"authPort":1812,
"acctPort":1813,
"
"authServiceAddr":"http://ip:port/auth/rest"
}
}
Response:
{
"error":0
}

/ radiusServer / get

Method:/radiusServer /get
Parameters:
{
"match":
[
["ipaddress", "=", "192.168.222.181"],
["name", "=", "Radius1"]
}
"return":["*"]
}
Response:
{
"error":0,
"result":
{
"name":"Radius1",
"description":"description",
"ipaddress":"192.168.222.181",
"authPort":1812,
"acctPort":1813
}
}

/ radiusServer / search

Method:/radiusServer /search
Parameters:
{
"match":
[
["ipaddress", "=", "192.168.222.181"],
["name", "=", "Radius1"]
}
"return":["*"]
}
Response:
{
"error":0,
"result":
{
"total":1,
"rows":
[
{
"name":"Radius1",
"description":"description",
"ipaddress":"192.168.222.181",
"authPort":1812,
"acctPort":1813
}
]
}

/ radiusServer / delete

Method:/radiusServer /delete
Parameters:
{
"id":id
}
Response:
{
"error":0
}

/ radiusServer / set

Method:/radiusServer /set
Parameters:
{
"id":id,
"attrs":
{
Description:"dddd",
"clients":[
{id:id1},
{id:id2},
{id:id3}
]
}
}
Response:
{
"error":0
}

  • No labels