华为乾坤-查询站点下交换机有线认证模板配置:响应示例
时间:2025-05-12 15:31:20
响应示例
返回状态码为200:站点内认证模板信息,响应体参考LswAuthConfigResponse。
HTTPS 200 OK Date: Thu,13 Sep 2022 10:00:00 GMT Server: example-server Content-Type: application/json { "errcode":"0", "errmsg":"", "data":[ { "id":"18e4c8f942254308ac4b9733297d4083", "name":"test12132", "ssidName":null, "authMode":1, "escapeStrategy":0, "escapeStrategyId":null, "escapePolicyName":null, "apFreeAuthEnable":false, "forceDomainEnable": true, "preAuthPrivilege":null, "authFailPrivilege":null, "voiceDeviceNoAuth":null, "hasPermission":true, "portalConfigDto":{ "pagePushMode":0, "freeAuthEnable":false, "freeAuthExpired":0, "freeAuthExpiredUnit":"hour", "internalPortalConfigDto":{ "portalProtocol":1, "pushProtocol":0, "pushMethod":0, "pushPageId":"9012b661-1750-4338-b84d-8ecf672bb790", "pushPageName":"默认用户名密码认证定制页面", "ipv6Enable":false, "accountingEnable":false, "accountingPeriod":null, "anonymousAuthEnable":false, "normalAuthEnable":true, "normalAccessConfigDto":{ "registerEnable":false, "userExpiredTime":null, "userExpiredUnit":null, "passwdExpiredTime":null, "passwdExpiredUnit":null, "accessMaxNumber":null, "userGroupId":null, "userGroupName":null }, "smsAuthEnable":false, "smsAccessConfigDto":null, "weChatUrlAuthEnable":false, "weChatAuthEnable":false, "socialMediaAuthEnable":false, "twitterAuthEnable":false, "sinaWeiboAuthEnable":false, "qqAuthEnable":false, "googleAuthEnable":false, "weComAuthEnable":false, "dingTalkEnable":false, "passcodeAuthEnable":false, "oneKeyAuthEnable":false, "qrCodeAuthEnable":false, "masterPortalTemplateId":"1a638aed-d4b3-44ed-aaf1-f69dd9c4cfa8", "masterPortalTemplateName":"fff", "slavePortalServerEnable":false, "slavePortalTemplateId":null, "slavePortalTemplateName":null, "authorRedirectUrlParamEnable":false }, "relayPortalConfigDto":null, "thirdPortalConfigDto":null }, "radiusConfigDto":{ "radiusTemplateId":"ba07ac68-ba8e-4aa8-b0d6-041813827802", "radiusTemplateName":"iae", "terminalAccessMode":"multi-authen", "macBypassEnable":false, "macWhitelistEnable":false, "autoReAuthEnable":false, "autoReAuthTime":null, "coaAndDMForNATEnable":false, "protocolOfMacAuth":null, "triggerPackets":[ ], "iconnectAccessEnable":false } } ] }
返回状态码为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
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000002128520786.html