云服务器内容精选

  • 响应示例 返回状态码为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" : "", "totalRecords" : 1, "pageIndex" : 1, "pageSize" : 20, "data" : { "lldp" : [ { "localIfName" : "interface 0/0/0", "remoteIfName" : "interface 0/0/1", "sysName" : "10", "sysDescription" : "xx:xx:xx:xx:xx:xx", "remoteMac" : "xx:xx:xx:xx:xx:xx", "sysCapEnabled" : "cap-bridge cap-router", "sysCapSupported" : "cap-router" } ] } }
  • 响应参数 返回状态码为200:查询成功。 表3 NeighborsInfoResultDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误描述。 "" totalRecords integer - - 当前查询LLDP连接的总数。 1 pageIndex integer - - 分页的序号。 1 pageSize integer - - 分页的大小。 20 data REFERENCE 详细请参见表4。 - - 表4 data对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 lldp ARRAY_REFERENCE 0-65535个列表项,详细请参见表5。 LLDP数据。 - 表5 NeighborsInfoDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 localIfName string - - 本端接口名称。 "interface 0/0/0" remoteIfName string - - 远端接口名称。 "interface 0/0/1" sysName string - - 远端系统名称。 "10" sysDescription string - - 远端系统描述。 "xx:xx:xx:xx:xx:xx" remoteMac string - - 远端系统MAC。 "xx:xx:xx:xx:xx:xx" sysCapEnabled string - - 对端设备支持的能力:cap-other、cap-repeater、cap-bridge、cap-wlan-access-point、cap-router、cap-telephone、cap-docsis-cable-device、cap-station-only;多个能力时以空格间隔。 "cap-bridge cap-router" sysCapSupported string - - 对端设备使能的能力:cap-other、cap-repeater、cap-bridge、cap-wlan-access-point、cap-router、cap-telephone、cap-docsis-cable-device、cap-station-only;多个能力时以空格间隔。 "cap-router"
  • 请求示例 HTTP的示例 GET /controller/campus/v1/networkresource/topomanager/device/d4e8513d-69f7-41bb-a3f5-b3a0fcc7b6e0/neighbors?localIfName=GigabitEthernet0/0/0&pageIndex=0&pageSize=20 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