-
响应参数 返回状态码为200:成功查询RADIUS服务器模板信息。 表2 GetRadiusTempResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 pageIndex int32 - - 页码。 1 pageSize int32 - - 每页大小。 20 totalRecords int32 - - 总数。 1 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" data ARRAY_REFERENCE 0-100个列表项,详细请参见表22。 数据 - 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部服务错误。 详细信息请参见实际响应消息体。
-
请求示例 HTTP的示例 GET /controller/campus/v1/networkservice/networkconfig/profile/radius?pageSize=20&pageIndex=1&type=thirdPartyServer,builtInServer,hybridServer HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-AC
CES S-TOKEN: x-yyyyyy
-
URI /controller/campus/v1/networkservice/networkconfig/profile/radius 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 pageSize 否 int32 - - 每页大小。 20 pageIndex 否 int32 - - 页码。 1 type 否 string 0~100个字符。 - 服务器类型,查询类型如果有多个以逗号分隔,如thirdPartyServer,builtInServer,hybridServer;当前服务器类型仅包括第三方、内置、混合。 "thirdPartyServer,builtInServer,hybridServer"
-
响应示例 返回状态码为200:成功查询RADIUS服务器模板信息。 HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"pageIndex" : 1,
"pageSize" : 20,
"totalRecords" : 1,
"errcode" : "0",
"errmsg" : "",
"data" : [
{
"name" : "radius1",
"description" : "radius1",
"multipleBackupServerConfig" : true,
"radiusServerType" : "thirdPartyServer",
"iaeDtoList" : [
{
"iaeId" : "ce67b74c-01ac-4e2a-81af-0908d98ea242",
"iaeName" : "iae12",
"iaeIp" : "192.168.1.1",
"iaeAd" : "example.com",
"iaeIpv6" : "FC00::0",
"weight" : 80,
"slaveIaeId" : "ce67b74c-01ac-4e2a-81af-0908d98ea242",
"slaveIaeName" : "iae12",
"slaveIaeIp" : "192.168.1.1",
"slaveIaeAd" : "example.com",
"slaveIaeIpv6" : "FC00::0"
}
],
"authServerList" : [
{
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10,
"weight" : 80
}
],
"accountServerList" : [
{
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10,
"weight" : 80
}
],
"masterAuthServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10
},
"slaveAuthServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.2",
"port" : 10
},
"masterAccountServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10
},
"slaveAccountServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.2",
"port" : 10
},
"realtimeAccounting" : {
"realtimeEnable" : true,
"realtimeInterval" : 10
},
"serverSelectionPolicy" : "master-backup",
"serverSelectionAlgorithm" : "packets",
"dpskConfig" : {
"supportDpsk" : true,
"dpskEncryptionMode" : "aes256gcm"
},
"prohibitAttribute" : {
"enable" : true,
"attributes" : [
{
"attributeName" : "HW-Input-Peak-Information-Rate",
"prohibitReceive" : true,
"prohibitSend" : true
}
]
},
"radiusAttributeConfig" : {
"enable" : true,
"attributes" : [
{
"attributeName" : "Service-Type",
"attributeValue" : "241",
"optionValue" : "auth-type-mac",
"macValue" : "10",
"dot1xValue" : "2",
"portalValue" : "4"
}
]
},
"calledStationId" : {
"enable" : true,
"attributeValue" : "ap-mac",
"includeSsid" : true,
"delimiter" : "+"
},
"macFormatSetting" : {
"macFormat" : true,
"letter" : "uppercase",
"connector" : "hyphen-split",
"mode" : "XX"
},
"enableAutomaticServerStatusDetection" : true,
"automaticServerStatusDetection" : {
"name" : "test",
"password" : "null",
"upServerInterval" : ""
},
"enableAuthRequestRetransmitConfig" : true,
"authRequestRetransmitConfig" : {
"timeoutRetransmissionTimes" : 3,
"timeoutInterval" : 5,
"serverDownDuration" : 5
},
"sourceIpEnable" : true,
"nassPortIdFormat" : "new",
"translateExtendList" : [
{
"accessAccept" : true,
"accountResponse" : false,
"srcVendorId" : 9,
"srcSubId" : 2,
"destAttributeName" : "HW-Input-Committed-Burst-Size"
}
],
"startAccountingFail" : true,
"configName" : "abc",
"id" : "fbb684c8-0d37-496f-bafa-4b06db151e2e"
}
]
} 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
返回状态码为500:内部服务错误。 HTTP/1.1 500 Internal Server Error
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
响应参数 返回状态码为200:成功修改RADIUS服务器模板信息。 表4 UpdateRadiusTempResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" data REFERENCE 详细请参见表22。 RADIUS模板返回结构体 - 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部服务错误。 详细信息请参见实际响应消息体。
-
响应示例 返回状态码为200:成功修改RADIUS服务器模板信息。 HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errcode" : "0",
"errmsg" : "",
"data" : {
"name" : "radius1",
"description" : "radius1",
"multipleBackupServerConfig" : true,
"radiusServerType" : "thirdPartyServer",
"iaeDtoList" : [
{
"iaeId" : "ce67b74c-01ac-4e2a-81af-0908d98ea242",
"iaeName" : "iae12",
"iaeIp" : "192.168.1.1",
"iaeAd" : "example.com",
"iaeIpv6" : "FC00::0",
"weight" : 80,
"slaveIaeId" : "ce67b74c-01ac-4e2a-81af-0908d98ea242",
"slaveIaeName" : "iae12",
"slaveIaeIp" : "192.168.1.1",
"slaveIaeAd" : "example.com",
"slaveIaeIpv6" : "FC00::0"
}
],
"authServerList" : [
{
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10,
"weight" : 80
}
],
"accountServerList" : [
{
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10,
"weight" : 80
}
],
"masterAuthServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10
},
"slaveAuthServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.2",
"port" : 10
},
"masterAccountServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10
},
"slaveAccountServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.2",
"port" : 10
},
"realtimeAccounting" : {
"realtimeEnable" : true,
"realtimeInterval" : 10
},
"serverSelectionPolicy" : "master-backup",
"serverSelectionAlgorithm" : "packets",
"dpskConfig" : {
"supportDpsk" : true,
"dpskEncryptionMode" : "aes256gcm"
},
"prohibitAttribute" : {
"enable" : true,
"attributes" : [
{
"attributeName" : "HW-Input-Peak-Information-Rate",
"prohibitReceive" : true,
"prohibitSend" : true
}
]
},
"radiusAttributeConfig" : {
"enable" : true,
"attributes" : [
{
"attributeName" : "Service-Type",
"attributeValue" : "241",
"optionValue" : "auth-type-mac",
"macValue" : "10",
"dot1xValue" : "2",
"portalValue" : "4"
}
]
},
"calledStationId" : {
"enable" : true,
"attributeValue" : "ap-mac",
"includeSsid" : true,
"delimiter" : "+"
},
"macFormatSetting" : {
"macFormat" : true,
"letter" : "uppercase",
"connector" : "hyphen-split",
"mode" : "XX"
},
"enableAutomaticServerStatusDetection" : true,
"automaticServerStatusDetection" : {
"name" : "test",
"password" : "null",
"upServerInterval" : ""
},
"enableAuthRequestRetransmitConfig" : true,
"authRequestRetransmitConfig" : {
"timeoutRetransmissionTimes" : 3,
"timeoutInterval" : 5,
"serverDownDuration" : 5
},
"sourceIpEnable" : true,
"nassPortIdFormat" : "new",
"translateExtendList" : [
{
"accessAccept" : true,
"accountResponse" : false,
"srcVendorId" : 9,
"srcSubId" : 2,
"destAttributeName" : "HW-Input-Committed-Burst-Size"
}
],
"startAccountingFail" : true,
"configName" : "abc",
"id" : "fbb684c8-0d37-496f-bafa-4b06db151e2e"
}
} 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
返回状态码为500:内部服务错误。 HTTP/1.1 500 Internal Server Error
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
请求示例 HTTP的示例 PUT /controller/campus/v1/networkservice/networkconfig/profile/radius/fbb684c8-0d37-496f-bafa-4b06db151e2e HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-yyyyyy
{
"name" : "radius1",
"description" : "radius1",
"multipleBackupServerConfig" : true,
"radiusServerType" : "thirdPartyServer",
"iaeDtoList" : [
{
"iaeId" : "ce67b74c-01ac-4e2a-81af-0908d98ea242",
"iaeName" : "iae12",
"iaeIp" : "192.168.1.1",
"iaeAd" : "example.com",
"iaeIpv6" : "FC00::0",
"weight" : 80,
"slaveIaeId" : "ce67b74c-01ac-4e2a-81af-0908d98ea242",
"slaveIaeName" : "iae12",
"slaveIaeIp" : "192.168.1.1",
"slaveIaeAd" : "example.com",
"slaveIaeIpv6" : "FC00::0"
}
],
"authServerList" : [
{
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10,
"weight" : 80
}
],
"accountServerList" : [
{
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10,
"weight" : 80
}
],
"masterAuthServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10
},
"slaveAuthServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.2",
"port" : 10
},
"masterAccountServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10
},
"slaveAccountServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.2",
"port" : 10
},
"realtimeAccounting" : {
"realtimeEnable" : true,
"realtimeInterval" : 10
},
"serverSelectionPolicy" : "master-backup",
"serverSelectionAlgorithm" : "packets",
"dpskConfig" : {
"supportDpsk" : true,
"dpskEncryptionMode" : "aes256gcm"
},
"prohibitAttribute" : {
"enable" : true,
"attributes" : [
{
"attributeName" : "HW-Input-Peak-Information-Rate",
"prohibitReceive" : true,
"prohibitSend" : true
}
]
},
"radiusAttributeConfig" : {
"enable" : true,
"attributes" : [
{
"attributeName" : "Service-Type",
"attributeValue" : "241",
"optionValue" : "auth-type-mac",
"macValue" : "10",
"dot1xValue" : "2",
"portalValue" : "4"
}
]
},
"calledStationId" : {
"enable" : true,
"attributeValue" : "ap-mac",
"includeSsid" : true,
"delimiter" : "+"
},
"macFormatSetting" : {
"macFormat" : true,
"letter" : "uppercase",
"connector" : "hyphen-split",
"mode" : "XX"
},
"enableAutomaticServerStatusDetection" : true,
"automaticServerStatusDetection" : {
"name" : "test",
"password" : "null",
"upServerInterval" : ""
},
"enableAuthRequestRetransmitConfig" : true,
"authRequestRetransmitConfig" : {
"timeoutRetransmissionTimes" : 3,
"timeoutInterval" : 5,
"serverDownDuration" : 5
},
"sourceIpEnable" : true,
"nassPortIdFormat" : "new",
"translateExtendList" : [
{
"accessAccept" : true,
"accountResponse" : false,
"srcVendorId" : 9,
"srcSubId" : 2,
"destAttributeName" : "HW-Input-Committed-Burst-Size"
}
],
"startAccountingFail" : true,
"configName" : "abc",
"shareKey" : "null"
}
-
请求示例 HTTP的示例 POST /controller/campus/v1/networkservice/networkconfig/profile/radius HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-yyyyyy
{
"name" : "radius1",
"description" : "radius1",
"multipleBackupServerConfig" : true,
"radiusServerType" : "thirdPartyServer",
"iaeDtoList" : [
{
"iaeId" : "ce67b74c-01ac-4e2a-81af-0908d98ea242",
"iaeName" : "iae12",
"iaeIp" : "192.168.1.1",
"iaeAd" : "example.com",
"iaeIpv6" : "FC00::0",
"weight" : 80,
"slaveIaeId" : "ce67b74c-01ac-4e2a-81af-0908d98ea242",
"slaveIaeName" : "iae12",
"slaveIaeIp" : "192.168.1.1",
"slaveIaeAd" : "example.com",
"slaveIaeIpv6" : "FC00::0"
}
],
"authServerList" : [
{
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10,
"weight" : 80
}
],
"accountServerList" : [
{
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10,
"weight" : 80
}
],
"masterAuthServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10
},
"slaveAuthServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.2",
"port" : 10
},
"masterAccountServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10
},
"slaveAccountServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.2",
"port" : 10
},
"realtimeAccounting" : {
"realtimeEnable" : true,
"realtimeInterval" : 10
},
"serverSelectionPolicy" : "master-backup",
"serverSelectionAlgorithm" : "packets",
"dpskConfig" : {
"supportDpsk" : true,
"dpskEncryptionMode" : "aes256gcm"
},
"prohibitAttribute" : {
"enable" : true,
"attributes" : [
{
"attributeName" : "HW-Input-Peak-Information-Rate",
"prohibitReceive" : true,
"prohibitSend" : true
}
]
},
"radiusAttributeConfig" : {
"enable" : true,
"attributes" : [
{
"attributeName" : "Service-Type",
"attributeValue" : "241",
"optionValue" : "auth-type-mac",
"macValue" : "10",
"dot1xValue" : "2",
"portalValue" : "4"
}
]
},
"calledStationId" : {
"enable" : true,
"attributeValue" : "ap-mac",
"includeSsid" : true,
"delimiter" : "+"
},
"macFormatSetting" : {
"macFormat" : true,
"letter" : "uppercase",
"connector" : "hyphen-split",
"mode" : "XX"
},
"enableAutomaticServerStatusDetection" : true,
"automaticServerStatusDetection" : {
"name" : "test",
"password" : "null",
"upServerInterval" : ""
},
"enableAuthRequestRetransmitConfig" : true,
"authRequestRetransmitConfig" : {
"timeoutRetransmissionTimes" : 3,
"timeoutInterval" : 5,
"serverDownDuration" : 5
},
"sourceIpEnable" : true,
"nassPortIdFormat" : "new",
"translateExtendList" : [
{
"accessAccept" : true,
"accountResponse" : false,
"srcVendorId" : 9,
"srcSubId" : 2,
"destAttributeName" : "HW-Input-Committed-Burst-Size"
}
],
"startAccountingFail" : true,
"configName" : "abc",
"shareKey" : "null"
}
-
响应示例 返回状态码为201:成功创建的RADIUS模板信息。 HTTP/1.1 201 Created
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errcode" : "0",
"errmsg" : "",
"data" : {
"name" : "radius1",
"description" : "radius1",
"multipleBackupServerConfig" : true,
"radiusServerType" : "thirdPartyServer",
"iaeDtoList" : [
{
"iaeId" : "ce67b74c-01ac-4e2a-81af-0908d98ea242",
"iaeName" : "iae12",
"iaeIp" : "192.168.1.1",
"iaeAd" : "example.com",
"iaeIpv6" : "FC00::0",
"weight" : 80,
"slaveIaeId" : "ce67b74c-01ac-4e2a-81af-0908d98ea242",
"slaveIaeName" : "iae12",
"slaveIaeIp" : "192.168.1.1",
"slaveIaeAd" : "example.com",
"slaveIaeIpv6" : "FC00::0"
}
],
"authServerList" : [
{
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10,
"weight" : 80
}
],
"accountServerList" : [
{
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10,
"weight" : 80
}
],
"masterAuthServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10
},
"slaveAuthServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.2",
"port" : 10
},
"masterAccountServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.1",
"port" : 10
},
"slaveAccountServer" : {
"serverAddressType" : "ip",
"serverAddress" : "192.168.1.2",
"port" : 10
},
"realtimeAccounting" : {
"realtimeEnable" : true,
"realtimeInterval" : 10
},
"serverSelectionPolicy" : "master-backup",
"serverSelectionAlgorithm" : "packets",
"dpskConfig" : {
"supportDpsk" : true,
"dpskEncryptionMode" : "aes256gcm"
},
"prohibitAttribute" : {
"enable" : true,
"attributes" : [
{
"attributeName" : "HW-Input-Peak-Information-Rate",
"prohibitReceive" : true,
"prohibitSend" : true
}
]
},
"radiusAttributeConfig" : {
"enable" : true,
"attributes" : [
{
"attributeName" : "Service-Type",
"attributeValue" : "241",
"optionValue" : "auth-type-mac",
"macValue" : "10",
"dot1xValue" : "2",
"portalValue" : "4"
}
]
},
"calledStationId" : {
"enable" : true,
"attributeValue" : "ap-mac",
"includeSsid" : true,
"delimiter" : "+"
},
"macFormatSetting" : {
"macFormat" : true,
"letter" : "uppercase",
"connector" : "hyphen-split",
"mode" : "XX"
},
"enableAutomaticServerStatusDetection" : true,
"automaticServerStatusDetection" : {
"name" : "test",
"password" : "null",
"upServerInterval" : ""
},
"enableAuthRequestRetransmitConfig" : true,
"authRequestRetransmitConfig" : {
"timeoutRetransmissionTimes" : 3,
"timeoutInterval" : 5,
"serverDownDuration" : 5
},
"sourceIpEnable" : true,
"nassPortIdFormat" : "new",
"translateExtendList" : [
{
"accessAccept" : true,
"accountResponse" : false,
"srcVendorId" : 9,
"srcSubId" : 2,
"destAttributeName" : "HW-Input-Committed-Burst-Size"
}
],
"startAccountingFail" : true,
"configName" : "abc",
"id" : "fbb684c8-0d37-496f-bafa-4b06db151e2e"
}
} 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
返回状态码为500:内部服务错误。 HTTP/1.1 500 Internal Server Error
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive