云服务器内容精选

  • 请求示例 HTTP的示例 PUT /controller/campus/api/v1/lswauth/wired/20ab206c-5f5f-4cb6-9090-05cda5e9727b HTTPS Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-AC CES S-TOKEN:CA48D152F6B19D84:637C38259E6974E17788348128A430FEE150E874752CE754B6BF855281219925 { "id":"18e4c8f942254308ac4b9733297d4083", "name":"test12132", "authMode":1, "escapeStrategy":0, "apFreeAuthEnable":false, "forceDomainEnable": true, "preAuthPrivilege":{ "preAuthPrivilegeEnable":false, "vlan":"" }, "authFailPrivilege":{ "authFailPrivilegeEnable":false, "vlan":"" }, "voiceDeviceNoAuth":{ "voiceDeviceNoAuthEnable":false }, "portalConfigDto":{ "pagePushMode":0, "freeAuthEnable":false, "internalPortalConfigDto":{ "portalProtocol":1, "pushMethod":0, "ipv6Enable":false, "accountingPeriod":null, "masterPortalTemplateId":"1a638aed-d4b3-44ed-aaf1-f69dd9c4cfa8", "masterPortalTemplateName":"fff", "slavePortalServerEnable":false, "authorRedirectUrlParamEnable":false, "pushPageId":"9012b661-1750-4338-b84d-8ecf672bb790", "pushPageName":"默认用户名密码认证定制页面", "normalAccessConfigDto":{ "registerEnable":false, "userExpiredTime":null } } }, "radiusConfigDto":{ "radiusTemplateId":"ba07ac68-ba8e-4aa8-b0d6-041813827802", "radiusTemplateName":"iae" } }
  • 响应示例 返回状态码为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":{ "preAuthPrivilegeEnable":false, "vlan":null }, "authFailPrivilege":{ "authFailPrivilegeEnable":false, "vlan":null }, "voiceDeviceNoAuth":{ "voiceDeviceNoAuthEnable":false, "vlan":null }, "hasPermission":null, "portalConfigDto":{ "pagePushMode":0, "freeAuthEnable":false, "freeAuthExpired":null, "freeAuthExpiredUnit":null, "internalPortalConfigDto":{ "portalProtocol":1, "pushProtocol":null, "pushMethod":0, "pushPageId":"9012b661-1750-4338-b84d-8ecf672bb790", "pushPageName":"默认用户名密码认证定制页面", "ipv6Enable":false, "accountingEnable":null, "accountingPeriod":null, "anonymousAuthEnable":null, "normalAuthEnable":null, "normalAccessConfigDto":{ "registerEnable":false, "userExpiredTime":null, "userExpiredUnit":null, "passwdExpiredTime":null, "passwdExpiredUnit":null, "accessMaxNumber":null, "userGroupId":null, "userGroupName":null }, "smsAuthEnable":null, "smsAccessConfigDto":null, "weChatUrlAuthEnable":null, "weChatAuthEnable":null, "socialMediaAuthEnable":null, "twitterAuthEnable":null, "sinaWeiboAuthEnable":null, "qqAuthEnable":null, "googleAuthEnable":null, "weComAuthEnable":null, "dingTalkEnable":null, "passcodeAuthEnable":null, "oneKeyAuthEnable":null, "qrCodeAuthEnable":null, "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":null, "macWhitelistEnable":null, "autoReAuthEnable":null, "autoReAuthTime":null, "coaAndDMForNATEnable":null, "protocolOfMacAuth":null, "triggerPackets":null, "iconnectAccessEnable":null } } ] } 返回状态码为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 返回状态码为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
  • 响应示例 返回状态码为201:创建认证模板成功,响应体参考LswAuthConfigResponse。 HTTPS 201 OK Date: Thu,13 Sep 2022 10:00:00 GMT Server: example-server Content-Type: application/json { "errcode":"0", "errmsg":"", "data":[ { "id":"64b15bd66c8f44c086994e35b32aac1c", "name":null, "ssidName":null, "authMode":null, "escapeStrategy":null, "escapeStrategyId":null, "escapePolicyName":null, "apFreeAuthEnable":null, "forceDomainEnable": true, "preAuthPrivilege":null, "authFailPrivilege":null, "voiceDeviceNoAuth":null, "hasPermission":null, "portalConfigDto":null, "radiusConfigDto":null } ] } 返回状态码为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 返回状态码为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的示例 POST /controller/campus/api/v1/lswauth/wireless/20ab206c-5f5f-4cb6-9090-05cda5e9727b HTTPS Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN:CA48D152F6B19D84:637C38259E6974E17788348128A430FEE150E874752CE754B6BF855281219925 { "name":"test6666", "ssidName":"test6666", "authMode":1, "escapeStrategy":0, "preAuthPrivilege":{ "preAuthPrivilegeEnable":false, "vlan":"" }, "authFailPrivilege":{ "authFailPrivilegeEnable":false, "vlan":"" }, "voiceDeviceNoAuth":{ }, "portalConfigDto":{ "pagePushMode":0, "freeAuthEnable":false, "internalPortalConfigDto":{ "portalProtocol":0, "pushProtocol":0, "pushMethod":0, "ipv6Enable":false, "accountingEnable":false, "accountingPeriod":null, "pushPageId":"9012b661-1750-4338-b84d-8ecf672bb790", "pushPageName":"默认用户名密码认证定制页面", "normalAccessConfigDto":{ "registerEnable":false, "userExpiredTime":null } } } }
  • 响应示例 返回状态码为200:删除认证模板成功,响应体参考LswAuthConfigDeleteResponse。 HTTPS 200 OK Date: Thu,13 Sep 2022 10:00:00 GMT Server: example-server Content-Type: application/json { "errcode":"0", "errmsg":"", "fail": [], "success":["test12132"] } 返回状态码为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 返回状态码为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的示例 POST /controller/campus/api/v1/lswauth/wired/20ab206c-5f5f-4cb6-9090-05cda5e9727b/batch-delete HTTPS Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN:CA48D152F6B19D84:637C38259E6974E17788348128A430FEE150E874752CE754B6BF855281219925 { "ids":["18e4c8f942254308ac4b9733297d4083"] }
  • URI /controller/campus/api/v1/lswauth/wireless/{siteId} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 string 36个字符。 - 站点标识,UUID格式。 "fbde1c5d-5b94-49e3-a912-48641015e45c" 表2 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 templateName 否 string 0~128个字符。 - 认证模板名称,支持模糊查询。 "policy" templateId 否 string 32~36个字符。 - 认证模板ID,UUID格式。 "fbde1c5d-5b94-49e3-a912-48641015e45c"
  • 响应示例 返回状态码为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,16 Feb 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,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/lswauth/wireless/fbde1c5d-5b94-49e3-a912-48641015e45c?templateName=policy&templateId=fbde1c5d-5b94-49e3-a912-48641015e45c 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
  • 响应示例 返回状态码为200:删除认证模板成功,响应体参考LswAuthConfigDeleteResponse。 HTTPS 200 OK Date: Thu,13 Sep 2022 10:00:00 GMT Server: example-server Content-Type: application/json { "errcode":"0", "errmsg":"", "fail": [], "success":["test6666"] } 返回状态码为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 返回状态码为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的示例 POST /controller/campus/api/v1/lswauth/wired/20ab206c-5f5f-4cb6-9090-05cda5e9727b/batch-delete HTTPS Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN:CA48D152F6B19D84:637C38259E6974E17788348128A430FEE150E874752CE754B6BF855281219925 { "ids":["64b15bd66c8f44c086994e35b32aac1c"] }
  • 请求示例 HTTP的示例 POST /controller/campus/api/v1/lswauth/wired/20ab206c-5f5f-4cb6-9090-05cda5e9727b HTTPS Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN:CA48D152F6B19D84:637C38259E6974E17788348128A430FEE150E874752CE754B6BF855281219925 { "name":"test12132", "authMode":1, "escapeStrategy":0, "apFreeAuthEnable":false, "forceDomainEnable": true, "preAuthPrivilege":{ "preAuthPrivilegeEnable":false, "vlan":"" }, "authFailPrivilege":{ "authFailPrivilegeEnable":false, "vlan":"" }, "voiceDeviceNoAuth":{ "voiceDeviceNoAuthEnable":false }, "portalConfigDto":{ "pagePushMode":0, "freeAuthEnable":false, "internalPortalConfigDto":{ "portalProtocol":1, "pushMethod":0, "ipv6Enable":false, "accountingPeriod":null, "masterPortalTemplateId":"1a638aed-d4b3-44ed-aaf1-f69dd9c4cfa8", "masterPortalTemplateName":"fff", "slavePortalServerEnable":false, "authorRedirectUrlParamEnable":false, "pushPageId":"9012b661-1750-4338-b84d-8ecf672bb790", "normalAccessConfigDto":{ "registerEnable":false, "userExpiredTime":null } } }, "radiusConfigDto":{ "radiusTemplateId":"ba07ac68-ba8e-4aa8-b0d6-041813827802", "radiusTemplateName":"iae" } }
  • 响应示例 返回状态码为201:创建认证模板成功,响应体参考LswAuthConfigResponse。 HTTPS 201 OK Date: Thu,13 Sep 2022 10:00:00 GMT Server: example-server Content-Type: application/json { "errcode":"0", "errmsg":"", "data":[ { "id":"18e4c8f942254308ac4b9733297d4083", "name":null, "ssidName":null, "authMode":null, "escapeStrategy":null, "escapeStrategyId":null, "escapePolicyName":null, "apFreeAuthEnable":null, "forceDomainEnable": true, "preAuthPrivilege":null, "authFailPrivilege":null, "voiceDeviceNoAuth":null, "hasPermission":null, "portalConfigDto":null, "radiusConfigDto":null } ] } 返回状态码为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 返回状态码为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