云服务器内容精选

  • 响应示例 返回状态码为200:修改成功。 { "errcode": "0", "errmsg": "", "data": { "deadInterval": 5, "deadCount": 2, "deadDetect": "by-server-ip" } } 返回状态码为400:操作失败信息。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "51384336", "errmsg" : "设备组Id格式错误或设备组不存在。", "errdesc" : "", "errreason" : "", "errdetail" : "", "erradvice" : "" } 返回状态码为500:内部服务错误。 HTTP/1.1 500 Internal Server Error Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 body 是 REFERENCE 详细请参见表3。 Radius探测配置参数体。 - 表3 RadiusDetectDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deadInterval 是 int32 [1-300] - RADIUS服务器的探测周期。 5 deadCount 是 int32 [1-65535] - 每个探测周期RADIUS服务器连续无响应的最大次数。 2 deadDetect 否 string 0~24个字符。满足正则表达by-server-ip|by-authentication-server。 - 配置进行存活检测的服务器,by-server-ip代表对RADIUS认证服务器和计费服务器同时进行存活检测,by-authentication-server代表仅对RADIUS认证服务器进行存活检测 "by-server-ip" detectCycle 否 int32 [1-5] 2 探测周期循环次数。 2
  • 响应示例 返回状态码为200:查询成功,返回结构体参见RadiusDetectResponseDto。 { "errcode": "0", "errmsg": "", "data": { "deadInterval": 5, "deadCount": 2, "deadDetect": "by-server-ip" } } 返回状态码为400:操作失败信息。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "51384336", "errmsg" : "设备组Id格式错误或设备组不存在。", "errdesc" : "", "errreason" : "", "errdetail" : "", "erradvice" : "" } 返回状态码为500:内部服务错误。 HTTP/1.1 500 Internal Server Error Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 GET /controller/campus/api/v1/networkconfig/radiusdetect/site-templates/fbb684c8-0d37-496f-bafa-4b06d5151e2e 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/api/v1/networkconfig/radiusdetect/site-templates/{siteTemplateId} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteTemplateId 是 string 36个字符。 - 站点模板ID, UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e"
  • 响应参数 返回状态码为200:查询成功,返回结构体参见RadiusDetectResponseDto。 表2 RadiusDetectResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~256个字符。 - 错误码:当没有错误时返回0。 "0" errmsg string 0~256个字符。 - 错误信息。 "" data REFERENCE 详细请参见表3。 Radius探测参数体 - 表3 RadiusDetectDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 deadInterval int32 [1-300] - RADIUS服务器的探测周期。 5 deadCount int32 [1-65535] - 每个探测周期RADIUS服务器连续无响应的最大次数。 2 deadDetect string 0~24个字符。满足正则表达by-server-ip|by-authentication-server。 - 配置进行存活检测的服务器,by-server-ip代表对RADIUS认证服务器和计费服务器同时进行存活检测,by-authentication-server代表仅对RADIUS认证服务器进行存活检测 "by-server-ip" detectCycle int32 [1-5] 2 探测周期循环次数。 2 返回状态码为400:操作失败信息。 表4 FailResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "51384336" errmsg string 0~1000个字符。 - 错误信息。 "设备组Id格式错误或设备组不存在。" errdesc string 0~1000个字符。 - 错误描述。 - errreason string 0~1000个字符。 - 错误理由。 - errdetail string 0~1000个字符。 - 错误详细信息。 - erradvice string 0~1000个字符。 - 更正建议。 - 返回状态码为500:内部服务错误。 详细信息请参见实际响应消息体。
  • 请求参数 表3 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 body 是 REFERENCE 详细请参见表4。 Radius探测配置参数体,结构体参见RadiusDetectDto。 - 表4 RadiusDetectDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deadInterval 是 int32 [1-300] - RADIUS服务器的探测周期。 5 deadCount 是 int32 [1-65535] - 每个探测周期RADIUS服务器连续无响应的最大次数。 2 deadDetect 否 string 0~24个字符。满足正则表达by-server-ip|by-authentication-server。 - 配置进行存活检测的服务器,by-server-ip代表对RADIUS认证服务器和计费服务器同时进行存活检测,by-authentication-server代表仅对RADIUS认证服务器进行存活检测 "by-server-ip" detectCycle 否 int32 [1-5] 2 探测周期循环次数。 2
  • 响应示例 返回状态码为200:修改成功,返回结构体参见RadiusDetectResponseDto。 { "errcode": "0", "errmsg": "", "data": { "deadInterval": 5, "deadCount": 2, "deadDetect": "by-server-ip" } } 返回状态码为400:操作失败信息。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "51384336", "errmsg" : "设备组Id格式错误或设备组不存在。", "errdesc" : "", "errreason" : "", "errdetail" : "", "erradvice" : "" } 返回状态码为500:内部服务错误。 HTTP/1.1 500 Internal Server Error Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • URI /controller/campus/api/v1/networkconfig/radiusdetect/site-templates/{siteTemplateId} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteTemplateId 是 string 36个字符。 - 站点模板ID, UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" 表2 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 isForceOverride 否 boolean true false - 是否强制覆盖。强制覆盖站点配置及子模板配置。 true
  • 响应参数 返回状态码为200:查询成功。 表2 RadiusDetectResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~256个字符。 - 错误码:当没有错误时返回0。 "0" errmsg string 0~256个字符。 - 错误信息。 "" data REFERENCE 详细请参见表3。 Radius探测参数体 - 表3 RadiusDetectDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 deadInterval int32 [1-300] - RADIUS服务器的探测周期。 5 deadCount int32 [1-65535] - 每个探测周期RADIUS服务器连续无响应的最大次数。 2 deadDetect string 0~24个字符。满足正则表达by-server-ip|by-authentication-server。 - 配置进行存活检测的服务器,by-server-ip代表对RADIUS认证服务器和计费服务器同时进行存活检测,by-authentication-server代表仅对RADIUS认证服务器进行存活检测 "by-server-ip" detectCycle int32 [1-5] 2 探测周期循环次数。 2 返回状态码为400:操作失败信息。 表4 FailResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "51384336" errmsg string 0~1000个字符。 - 错误信息。 "设备组Id格式错误或设备组不存在。" errdesc string 0~1000个字符。 - 错误描述。 - errreason string 0~1000个字符。 - 错误理由。 - errdetail string 0~1000个字符。 - 错误详细信息。 - erradvice string 0~1000个字符。 - 更正建议。 - 返回状态码为500:内部服务错误。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:查询成功。 { "errcode": "0", "errmsg": "", "data": { "deadInterval": 5, "deadCount": 2, "deadDetect": "by-server-ip" } } 返回状态码为400:操作失败信息。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "51384336", "errmsg" : "设备组Id格式错误或设备组不存在。", "errdesc" : "", "errreason" : "", "errdetail" : "", "erradvice" : "" } 返回状态码为500:内部服务错误。 HTTP/1.1 500 Internal Server Error Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 GET /controller/campus/api/v1/networkconfig/radiusdetect/site/fbb684c8-0d37-496f-bafa-4b06d5151e2e 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