云服务器内容精选

  • 请求示例 HTTP的示例 POST /controller/campus/v2/certification/tasks 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 { "deviceList" : ["936815c9-f7b3-48ab-bd1a-475cb8b1f092"], "certId" : "ThirdPartyPortalServer_31fb59ef-5b64-43b2-9491-81c90dc818ff" }
  • 响应参数 返回状态码为200:操作成功 表3 CommonErrDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errCode string 0~16个字符。 - 错误码。 "0x00000003" errMsg string 0~256个字符。 - 错误信息。 "No Rights" 返回状态码为400:校验异常 CommonErrDto对象的参数列表,详细请参见表3。
  • 响应示例 返回状态码为200:操作成功 HTTPS 200 OK Date: Thu,13 Sep 2023 10:00:00 GMT Server: example-server Content-Type: application/json { "errCode":"0", "errMsg":"" } 返回状态码为400:校验异常 HTTPS 400 Bad Requests Date: Thu,13 Sep 2023 10:00:00 GMT Server: example-server Content-Type: application/json { "errCode": "0x00c80035", "errMsg": "Invalid parameter deviceList." }
  • 响应参数 返回状态码为200:操作成功 表3 QueryImportTaskOutput对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errCode string 0~64个字符。 - 错误码。 "0" errMsg string 0~256个字符。 - 错误信息。 "No Rights" totalRecords int32 [0-200000] - 任务总数 10 data ARRAY_REFERENCE 0-100个列表项,详细请参见表4。 证书导入任务信息 - 表4 DeviceCertImportTaskDetail对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 deviceId string 36个字符。 - 设备ID "936815c9-f7b3-48ab-bd1a-475cb8b1f092" deviceName string 0~64个字符。 - 设备名称 "Device_AP" esn string 0~64个字符。 - 设备ESN "2102353GSG10LA002185" certFileName string 0~64个字符。 - 证书文件名称 "ca.pem" deviceModel string 0~64个字符。 - 设备型号 "AP4050DN" dueDate string 0~36个字符。 - 过期时间(示例为UTC时间,格式YYYY-MM-DD HH:MM:SS) "2035-04-17 14:47:30" status int32 [-1-2] - 证书更新任务状态(-1:失败,0:成功,1:初始化,2:执行中) 0 failureCause string 0~256个字符。 - 失败原因 "No Rights" 返回状态码为400:查询异常 CommonErrDto对象的参数列表,详细请参见表3。
  • 响应示例 返回状态码为200:操作成功 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" : "No Rights", "totalRecords" : 10, "data" : [ { "deviceId" : "936815c9-f7b3-48ab-bd1a-475cb8b1f092", "deviceName" : "Device_AP", "esn" : "2102353GSG10LA002185", "certFileName" : "ca.pem", "deviceModel" : "AP4050DN", "dueDate" : "2035-04-17 14:47:30", "status" : 0, "failureCause" : "No Rights" } ] } 返回状态码为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 { "errCode" : "0x00000003", "errMsg" : "No Rights" }
  • 请求示例 HTTP的示例 POST /controller/campus/v2/certification/tasks/action/status-query 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 { "pageIndex" : 1, "pageSize" : 10, "siteId" : "595ffa80-3f6a-42b2-a79f-3e54dd8d121a", "keyword" : "DeviceName", "importTaskStatus" : [-1,0,1,2], "dueTimeBegin" : 1697457554059, "dueTimeEnd" : 1697457554059, "sortField" : "esn" }