Radius

API for Radius configuration support.

Endpoints for viewing, creating and manipulating Tacacs+ servers that the authenticated user has permissions to access.

Json structure

[
    {
        "id": 3,
        "secret": "testing123",
        "priority": 2,
        "hostname": "172.17.0.2",
        "port": 1812,
        "timeout": 10,
        "fallback_role": "user",
        "priv_lvl_ref_table": [
            {
                "attribute_name": "Callback-Number",
                "attribute_data_type": "int",
                "comparison_value": "56",
                "comparison_operator": "<=",
                "role": "admin"
            },
            {
                "attribute_name": "Callback-Number",
                "attribute_data_type": "str",
                "comparison_value": "^qwerty56$",
                "comparison_operator": "=~",
                "role": "viewer"
            }
        ]
    }
]

Possible fallback_role data types:

Value Description
"none" no fallback role
"admin" fallback role is admin
"user" fallback role is user
"viewer" fallback role is viewer

Possible attribute data types:

Value Description
"str" Attribute data is a string
"int" Attribute data is an integer

Possible comparison operator values:

Value Description
"<" less, is being used for integers only
"<=" less or equal, is being used for integers only
">" bigger, is being used for integers only
">=" bigger or equal, is being used for integers only
"==" equal
"!=" not equal
"=~" regex comparison, is being used for strings only

Back to X2-SERIES API Home