华为乾坤-查询站点下交换机无线认证模板配置:响应示例

时间:2025-05-12 15:32:03

响应示例

返回状态码为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":"64b15bd66c8f44c086994e35b32aac1c",
            "name":"test6666",
            "ssidName":"test6666",
            "authMode":1,
            "escapeStrategy":0,
            "escapeStrategyId":null,
            "escapePolicyName":null,
            "apFreeAuthEnable":null,
            "forceDomainEnable": true,
            "preAuthPrivilege":null,
            "authFailPrivilege":null,
            "voiceDeviceNoAuth":null,
            "hasPermission":true,
            "portalConfigDto":{
                "pagePushMode":0,
                "freeAuthEnable":false,
                "freeAuthExpired":0,
                "freeAuthExpiredUnit":"hour",
                "internalPortalConfigDto":{
                    "portalProtocol":0,
                    "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":null,
                    "masterPortalTemplateName":null,
                    "slavePortalServerEnable":false,
                    "slavePortalTemplateId":null,
                    "slavePortalTemplateName":null,
                    "authorRedirectUrlParamEnable":false
                },
                "relayPortalConfigDto":null,
                "thirdPortalConfigDto":null
            },
            "radiusConfigDto":null
        }
    ]
}

返回状态码为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_0000002128520790.html