Attributes

Attribute

type

values

default

mandate

comment

vendor

string

 

 

true

 

vendorId

int

 

 

false

 

name

string

 

 

true

 

attributeId

int

 

 

false

 

value

string

 

""

false

 

description

string

 

 

false

 

checkRequest

boolean

 

false

 

 

returnResponse

boolean

 

false

 

 

echo

boolean

 

false

 

 

isDefault

boolean

 

false

 

 

mapsTo

string

 

 

false

 


/ radiusAttribute / create

Method:/radiusAttribute/create
Parameters:
{
"attrs":
{
"vendor":"Standard RADIUS",
"name":"Group-Name",
"mapsTo":"group.name",
"checkRequest":false
}
}
Response:
{
"error":0
}

/ radiusAttribute / get

Method:/radiusAttribute/get
Parameters:
{
"match":
[
["attribute", "=", "Group-Name"]
}
"return":["*"]
}
Response:
{
"error":0,
"result":
{
"vendor":"Standard RADIUS",
"name":"Group-Name",
"mapsTo":"group.name",
"value":"",
"description":"",
"checkRequest":false
}
}

/ radiusAttribute / search

Method:/radiusAttribute /search
Parameters:
{
"match":
[
["attribute", "=", "Group-Name"]
}
"return":["*"]
}
Response:
{
"error":0,
"result":
{
"total":1,
"rows":
[
{
"vendor":"Standard RADIUS",
"name":"Group-Name",
"mapsTo":"group.name",
"value":"",
"description":"",
"checkRequest":false
}
]
}

/ radiusAttribute / delete

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

/ radiusAttribute / set

Method:/radiusAttribute /set
Parameters:
{
"id":id,
"attrs":
{
"description":"description"
}
}
Response:
{
"error":0
}

/ radiusAttribute / listVendors

Method:/radiusAttribute /listVendors
Parameters:
{
}
Response:
{
"error":0,
"result":
{
"total":68,
"rows":
[
{"name":"IETF","id":0},
{"name":"BinTec","id":272},
{"name":"Extreme","id":1916},
...
]
}
}

/ radiusAttribute / listAttributes

Method:/radiusAttribute /listVendors
Parameters:
{
"vendor":"Extreme"
// or "vendorId":1916
}
Response:
{
"error":0,
"result":
{
"total":8,
"rows":
[
{"name":"Extreme-Netlogin-Url-Desc",id":205,"type":"string"},
{"name":"Extreme-Netlogin-Url","id":204,"type":"string"},
{"name":"Extreme-Netlogin-Only", "id":206,"type":"integer"},
{"name":"Extreme-CLI-Authorization","id":201,"type":"integer"},
{"name":"Extreme-Netlogin-Vlan","id":203,"type":"string"},
{"name":"Extreme-Shell-Command","id":202,"type":"string"},
{"name":"Extreme-User-Location","id":208,"type":"string"},
{"name":"Extreme-Netlogin-Vlan-Tag","id":209,"type":"integer"}
]
}
}

/ radiusAttribute / listTypes

Method:/radiusAttribute /listTypes
Parameters:
{
}
Response:
{
"error":0,
"result":
{
"total":9,
"rows":
[
"string","octets","ipaddr",
"integer","ipv6addr","date",
"ifid","ipv6prefix","abinary"
]
}
}


  • No labels