Attributes

Attribute

type

values

default

mandate

comment

name

string

 

 

true

 

description

string

 

 

false

 

ipaddress

string

 

 

true

 

vendor

string

 

 

true

 

sharedSecret

string

 

 

true

 

authenticationProtocols

enum

PAP
CHAP
MSCHAP2

 

true

 

dataEncryption

enum

NOENCRYPTION
OPTIONAL,
REQUIRE

 

true

 

servers

coll

 

 

 

 

application

Object

 

 

true

 


/ radiusClient / create

Method:/radiusClient /create
Parameters:
{
"attrs":
{
"name":"RadiusClient1",
"description":"description",
"ipaddress":"192.168.222.1",
"vendor":"Standard RADIUS",
"sharedSecret":"testing123",
"authenticationProtocols":"PAP,MSCHAP2",
"dataEncryption":"OPTIONAL"
}
}
Response:
{
"error":0
}

/ radiusClient/ get

Method:/radiusClient/get
Parameters:
{
"match":
[
["ipaddress", "=", "192.168.222.1"]
}
"return":["*"]
}
Response:
{
"error":0,
"result":
{
"name":"RadiusClient1",
"description":"description",
"ipaddress":"192.168.222.1",
"vendor":"Standard RADIUS",
"sharedSecret":"testing123",
"authenticationProtocols":"PAP,MSCHAP2",
"dataEncryption":"OPTIONAL"
}
}

/ radiusClient/ search

Method:/radiusClient/search
Parameters:
{
"match":
[
["ipaddress", "=", "192.168.222.1"]
}
"return":["*"]
}
Response:
{
"error":0,
"result":
{
"total":1,
"rows":
[
{
"name":"RadiusClient1",
"description":"description",
"ipaddress":"192.168.222.1",
"vendor":"Standard RADIUS",
"sharedSecret":"testing123",
"authenticationProtocols":"PAP,MSCHAP2",
"dataEncryption":"OPTIONAL"
}
]
}

/ radiusClient/ delete

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

/ radiusClient/ set

Method:/radiusClient/set
Parameters:
{
"id":id,
"attrs":
{
"description":"description",
"servers":
[
{id:id1},
{id:id2},
{id:id3}
]
}
}
Response:
{
"error":0
}

  • No labels