云服务器内容精选

  • 响应示例 返回状态码为200:成功查询PortalServer信息。 HTTP/1.1 200 OK 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 { "pageIndex" : 1, "pageSize" : 20, "totalRecords" : 1, "errcode" : "0", "errmsg" : "", "data" : [ { "id" : "39c9700f-b765-4bfd-956d-3331bccab1b2", "tenantId" : "39c9700f-b765-4bfd-956d-3331bccab1b2", "name" : "portal-server", "description" : "portal server描述。", "ip" : "192.168.1.1", "port" : 22, "url" : "https://www.example.com", "sharedKey" : "", "urlTemplateId" : "39c9700f-b765-4bfd-956d-3331bccab1b2", "builtInServerEnable" : true, "iaeId" : "39c9700f-b765-4bfd-956d-3331bccab1b2", "iaeName" : "iae名称", "iaeIp" : "192.168.1.1", "iaeAd" : "iae-ad", "iaeIpv6" : "fc00::/64", "iaeDomain" : "iae", "portalUserSyncEnable" : true, "portalUserSyncPeriod" : 100, "portalUserSyncMaxTimes" : 10, "pushProtocol" : "protocol", "authRedirectUrlCarryEnable" : true, "sourceIpEnable" : true, "protocol" : "portal", "getMethodEnable" : false, "passwordEncrypt" : "none", "redirectType" : "static", "initUrlKey" : "key", "redirectUrl" : "https://www.example.com", "certificate" : "cloudwifi" } ] } 返回状态码为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
  • 响应参数 返回状态码为200:成功查询PortalServer信息。 表2 QueryPortalServerResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 pageIndex int32 [0-100] - 页码。 1 pageSize int32 [1-100] - 每页大小。 20 totalRecords int32 [0-500] - 总数。 1 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" data ARRAY_REFERENCE 0-500个列表项,详细请参见表3。 portal服务器模板数据集合。 - 表3 PortalServerDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 32~36个字符。 - portal server唯一标识。 "39c9700f-b765-4bfd-956d-3331bccab1b2" tenantId string 32~36个字符。 - 租户ID。 "39c9700f-b765-4bfd-956d-3331bccab1b2" name string 1~32个字符。 - portal server名称。 "portal-server" description string 0~256个字符。 - 描述 "portal server描述。" ip string 0~256个字符。 - IP地址。 "192.168.1.1" port int32 [1-65535] - 端口。 22 url string 1~200个字符。 - 统一资源定位符。 "https://www.example.com" sharedKey password 8~16个字符。 - 该字段可能包含敏感信息和个人数据,请妥善做好保护。 共享秘钥。 "" urlTemplateId string 32~36个字符。 - URL模板ID。 "39c9700f-b765-4bfd-956d-3331bccab1b2" builtInServerEnable boolean true false false 使能内置服务器。 true iaeId string 32~36个字符。 - IAE唯一标识。 "39c9700f-b765-4bfd-956d-3331bccab1b2" iaeName string 0~256个字符。 - IAE名称。 "iae名称" iaeIp string 0~256个字符。 - IAE所属IP地址。 "192.168.1.1" iaeAd string 0~256个字符。 - IAE所属Ad服务器。 "iae-ad" iaeIpv6 string 0~256个字符。 - IAE所属IPV6地址。 "fc00::/64" iaeDomain string 0~256个字符。 - IAE域。 "iae" portalUserSyncEnable boolean true false false 使能Portal用户同步。 true portalUserSyncPeriod int32 [30-65535] - Portal用户同步周期(秒)。 100 portalUserSyncMaxTimes int32 [2-255] - Portal用户同步最大失败次数。 10 pushProtocol string 0~256个字符。 - 推送协议。 "protocol" authRedirectUrlCarryEnable boolean true false false 使能重定向。 true sourceIpEnable boolean true false false 源IP配置使能 true protocol string 0~256个字符。 - 认证协议,portal和http "portal" getMethodEnable boolean true false false 提交方式(true:get,false:post,当protocol为http时生效)。 false passwordEncrypt string 0~256个字符。 - 密码编码方式(none,uam,当protocol为http时生效)。 "none" redirectType string 0~16个字符。 - 重定向类型,分静态,动态或者为空值,保持兼容性。 "static" initUrlKey string 0~32个字符。 - 动态重定向初始url的key值。 "key" redirectUrl string 0~256个字符。 - 静态重定向url值。 "https://www.example.com" certificate string 0~64个字符。 - 证书域(cloudwifi,default) "cloudwifi" 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部服务错误。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 GET /controller/campus/v1/networkservice/networkconfig/profile/portal-server?pageSize=20&pageIndex=1&name=portal-server 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/portal-server 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 pageSize 否 int32 [1-100] - 每页大小。 20 pageIndex 否 int32 [1-100] - 页码。 1 name 否 string 1~32个字符。 - 服务器名称。 "portal-server"