云服务器内容精选

  • 响应示例 返回状态码为200:通知成功,响应体参考NotifyMdmInfoOutputDto。 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" : "", "success" : [ "xx-xx-xx-xx-xx-xx" ], "failure" : [ { "errcode" : "101", "errmsg" : "Fail to find the mdm info that need updated", "data" : "xx-xx-xx-xx-xx-xx" } ] } 返回状态码为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/v1/accountservice/securityapi/notifycompliancestatues/00000000-0000-0000-0000-000000000001 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 { "deviceinfos" : [ { "mac" : "xx-xx-xx-xx-xx-xx", "ip" : "192.168.1.2", "tid" : "6c3540374a6837b20212efe25ac75123", "mdmAttributeValue" : "92", "complianceStatus" : "NOT_COMPLY", "timeStamp" : "1508923416" } ] }
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 NotifyMdmInfoInputDto 是 REFERENCE 详细请参见表3。 通知mdm信息入参 - 表3 NotifyMdmInfoInputDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceinfos 否 ARRAY_REFERENCE 1-1000个列表项,详细请参见表4。 待更新的mdm终端信息集合。 - 表4 UpdateMdmInfoDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 mac 是 string 17个字符。 - 该字段可能包含敏感信息和个人数据,请妥善做好保护。 绑定设备的MAC,MAC的格式支持xx-xx-xx-xx-xx-xx。 "xx-xx-xx-xx-xx-xx" ip 否 string - - 该字段可能包含敏感信息和个人数据,请妥善做好保护。 终端ip地址,ipv4。 "192.168.1.2" tid 否 string 0~36个字符。 - 第三方系统中终端设备的唯一标识, 可为空。 "6c3540374a6837b20212efe25ac75123" mdmAttributeValue 否 string 0~64个字符。 - mdm属性值 "92" complianceStatus 是 string NOT_COMPLY COMPLIANT NA - 合规状态, 判断终端是否违规,1)NOT_COMPLY:不合规,2)COMPLIANT:合规, 3)NA: 不涉及(设备不存在、还未注册等情况) "NOT_COMPLY" timeStamp 否 string 10~13个字符。 - 当前时间戳 "1508923416"