云服务器内容精选

  • 响应示例 返回状态码为200:查询成功。 HTTPS 200 OK Date: Thu,13 Sep 2022 10:00:00 GMT Server: example-server Content-Type: application/json { "errcode": "0", "errmsg": "", "data": [ { "id": "7c37d9e8-9df6-31e8-646c-283fd488d001", "taskId": "5c37d9e8-cdf6-11e8-a4fc-286ed488d001", "commands": "reboot", "response": "success", "responseTime": '2022-05-12 15:30:00' } ] } 返回状态码为400:查询失败。 HTTPS 400 Bad Requests Date: Thu,13 Sep 2022 10:00:00 GMT Server: example-server Content-Type: application/json { "errcode": "0x00c8000d", "errmsg": "The parameter taskId is null." } 返回状态码为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/campusoamservice/v1/cpe/cli/tasks/5c37d9e8-cdf6-11e8-a4fc-286ed488df6b 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
  • 响应参数 返回状态码为200:查询成功。 表2 CommandDetailOut对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~128个字符。 - 错误码。 - errmsg string 0~256个字符。 - 错误信息。 - data ARRAY_REFERENCE 1-1000个列表项,详细请参见表3。 CPE命令详情。 - 表3 CommandDetailDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 1~64个字符。 - 标识。 "5c37d9e8-cdf6-11e8-a4fc-286ed488df6b" taskId string 1~64个字符。 - 任务id。 "5c37d9e8-cdf6-11e8-a4fc-286ed488df6b" command string 0~512个字符。 - 下发命令 - response string 0~2048个字符。 - Cpe响应 "success" responseTime string 0~128个字符。 - 响应时间。 "2022-05-12 15:30:00" 返回状态码为400:查询失败。 CommonErrDto对象的参数列表,详细请参见表5。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 POST /controller/campus/api/campusoamservice/v1/cpe/cli HTTPS Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN:CA48D152F6B19D84:637C38259E6974E17788348128A430FEE150E874752CE754B6BF855281219925 { "ids": [ "5c37d9e8-cdf6-11e8-a4fc-286ed488d001","5c37d9e8-cdf6-11e8-a4fc-286ed488d002" ], "commands": [ "reboot" ], "cliAnonymous": true }
  • 响应示例 返回状态码为200:下发成功。 HTTPS 200 OK Date: Thu,13 Sep 2022 10:00:00 GMT Server: example-server Content-Type: application/json { "errcode": "0", "errmsg": "", "successList": [ "IC1-Huawei-AR502H-GW-0001" ], "failList": [ { "id": "5c37d9e8-cdf6-11e8-a4fc-286ed488d002", "serialNumber": "IC1-Huawei-AR502H-GW-0002", "errcode": "0x00c80049", "errmsg": "WAC is not online" } ] } 返回状态码为400:下发失败。 HTTPS 400 Bad Requests Date: Thu,13 Sep 2022 10:00:00 GMT Server: example-server Content-Type: application/json { "errcode": "0x00c8000d", "errmsg": "The parameter ids is null." } 返回状态码为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:下发成功。 HTTPS 200 OK Date: Thu,13 Sep 2022 10:00:00 GMT Server: example-server Content-Type: application/json { "errcode": "0", "errmsg": "", "successList": [ "IC1-Huawei-AR502H-GW-0001" ], "failList": [ { "id": "5c37d9e8-cdf6-11e8-a4fc-286ed488d002", "serialNumber": "IC1-Huawei-AR502H-GW-0002", "errcode": "0x00c80049", "errmsg": "WAC is not online" } ] } 返回状态码为400:重下发失败。 HTTPS 400 Bad Requests Date: Thu,13 Sep 2022 10:00:00 GMT Server: example-server Content-Type: application/json { "errcode": "0x00c8000d", "errmsg": "The parameter ids is null." } 返回状态码为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/campusoamservice/v1/cpe/cli/reconfig HTTPS Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN:CA48D152F6B19D84:637C38259E6974E17788348128A430FEE150E874752CE754B6BF855281219925 { "taskIds": [ "5c37d9e8-cdf6-11e8-a4fc-286ed488d001","5c37d9e8-cdf6-11e8-a4fc-286ed488d002" ] }