云服务器内容精选

  • 响应示例 返回状态码为200:查询成功,查询指设备的RU-201信息。 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" : "", "data" : { "ruInfos" : [ { "deviceId" : "00000000-0000-0000-0000-000000000000", "deviceName" : "device1", "interfaceName" : "GigabitEthernet/0/0/1", "status" : "1", "deviceType" : "RU-201", "esn" : "UTJ7500A13000350", "version" : "3.0.0.1", "ip" : "3.0.0.1" } ] } } 返回状态码为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:查询成功,查询指设备的RU-201信息。 表2 QueryRuResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" data REFERENCE 详细请参见表3。 - - 表3 RuInfos对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 ruInfos ARRAY_REFERENCE 0-10000个列表项,详细请参见表4。 - - 表4 RuInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 deviceId uuid 0~36个字符。 - 设备ID。 "00000000-0000-0000-0000-000000000000" deviceName string 0~256个字符。 - 设备名称。 "device1" interfaceName string 1~64个字符。 - 接入接口名称。 "GigabitEthernet/0/0/1" status string 1~32个字符。 - 状态,取值范围:0:离线,1:在线,2:已连接,3:下载。 "1" deviceType string - - RU类型。 "RU-201" esn string 0~64个字符。 - RU设备ESN。 "UTJ7500A13000350" version string - - RU设备版本号 "3.0.0.1" ip string - - RU设备版本号 "3.0.0.1" 返回状态码为400:参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:系统内部错误。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 GET /controller/campus/v1/sdwan/net/queryru?deviceId=00000000-0000-0000-0000-000000000000 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