云服务器内容精选

  • 响应示例 返回状态码为200:绑定成功,响应体参考SitesInPrivacyOperOutput。 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 { "errcode" : "0", "errmsg" : "", "successSiteIds" : ["4b573916-11f3-4dd6-ba5b-ebf04c74dae8","cadc3289-184b-4ac9-9a8a-429bfe724011"], "failedSites" : [ { "siteId" : "cadc3289-184b-4ac9-9a8a-429bfe724011", "siteName" : "site1", "errcode" : "0", "errmsg" : "" } ] } 返回状态码为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/terminal-privacy/b9b34988-0dff-4def-9e55-7bc0b3dc21b4/site/bind 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 { "siteIds" : ["4b573916-11f3-4dd6-ba5b-ebf04c74dae8","cadc3289-184b-4ac9-9a8a-429bfe724011"] }
  • 请求示例 HTTP的示例 POST /controller/campus/api/v1/terminal-privacy/b9b34988-0dff-4def-9e55-7bc0b3dc21b4/site/unbind 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 { "siteIds" : ["4b573916-11f3-4dd6-ba5b-ebf04c74dae8","cadc3289-184b-4ac9-9a8a-429bfe724011"] }
  • 响应示例 返回状态码为200:解绑成功,响应体参考SitesInPrivacyOperOutput。 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 { "errcode" : "0", "errmsg" : "", "successSiteIds" : ["4b573916-11f3-4dd6-ba5b-ebf04c74dae8","cadc3289-184b-4ac9-9a8a-429bfe724011"], "failedSites" : [ { "siteId" : "cadc3289-184b-4ac9-9a8a-429bfe724011", "siteName" : "site1", "errcode" : "0", "errmsg" : "" } ] } 返回状态码为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/terminal-privacy/b9b34988-0dff-4def-9e55-7bc0b3dc21b4/site?pageIndex=1&pageSize=10 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:查询成功,响应体参考SitesInTerminalPrivacy。 表3 SitesInTerminalPrivacy对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。当没有错误时返回0。 "0" errmsg string - - 错误信息。当没有错误时返回""。 "" pageIndex int32 - - 页码。 1 pageSize int32 - - 页长。 20 total int32 - - 站点总数。 100 sites ARRAY_REFERENCE 0-100个列表项,详细请参见表4。 站点列表。 - 表4 SiteInTerminalPrivacy对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string - - 站点ID。 "4b573916-11f3-4dd6-ba5b-ebf04c74dae8" name string - - 站点名称。 "site1" siteType string - - 站点类型。 "AP" 返回状态码为400:查询失败,参数校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:查询失败,服务内部错误。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:查询成功,响应体参考SitesInTerminalPrivacy。 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 { "errcode" : "0", "errmsg" : "", "pageIndex" : 1, "pageSize" : 20, "total" : 100, "sites" : [ { "id" : "4b573916-11f3-4dd6-ba5b-ebf04c74dae8", "name" : "site1", "siteType" : "AP" } ] } 返回状态码为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
  • URI /controller/campus/api/v1/terminal-privacy/{privacyId}/site 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 privacyId 是 string - - 终端隐私设置策略ID,UUID格式。 "b9b34988-0dff-4def-9e55-7bc0b3dc21b4" 表2 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 pageIndex 否 int32 - 1 页码,该字段的取值范围是:1-2147483647。 1 pageSize 否 int32 [10-100] 10 页长,该字段的取值范围是:10-100。 10