云服务器内容精选
-
响应示例 返回状态码为200:链路列表 HTTP/1.1 200 OK Content-Type: application/json;charset=UTF-8 { "code": 0, "data":[ { "linkdn": "2--1530531702323771078-3468902791267101303", "linkname": "CE6850_113_0497_10GE1/0/4_CE6850_113_0498_10GE1/0/28", "anedn": "NE=40000015", "anename": "CE6850_113_0497", "aneip": "10.10.12.11", "anestate": 1, "aportdn": "3e9d74bc-0fdc-32a9-8140-8a646e651f54", "aportifresid": "3e9d74bc-0fdc-32a9-8140-8a646e651f54", "aportname": "10GE1/0/4", "aportip": "10.10.13.11", "aportadminstatus": 1, "aportoperstatus": 1, "znedn": "NE=40000016", "znename": "CE6850_113_0498", "zneip": "10.10.13.12", "znestate": 1, "zportdn": "e082c05b-99f6-3f25-8dd7-2bcd90a1703d", "zportifresid": "e082c05b-99f6-3f25-8dd7-2bcd90a1703d", "zportname": "10GE1/0/28", "zportip": "10.10.13.13", "zportadminstatus": 1, "zportoperstatus": 1, "linkstatus": 0, "linktype": 1, "speed": "10000", "aportindex": "8", "zportindex": "32" } ], "description": "Operation success", "size": 1, "totalPage": 1 } 返回状态码为400:Bad request,非法请求 application/json 返回状态码为500:Internal Error,系统内部错误 application/json
-
响应参数 返回状态码为200:链路列表 表2 NorthResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 code integer 0 1 - 操作返回码。可以是如下值之一: •0:成功 •非0:失败 0 data ARRAY_REFERENCE 详细请参见表3。 - - description string - - 接口调用结果的描述信息。 - size integer - 0 链路总数 - totalPage integer - 0 分页查询的总页数 - 表3 LinkDataModel对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 linkdn string - - 链路DN - linkname string - - 链路名称 - anedn string - - 源网元DN - anename string - - 源网元名称 - aneip string - - 源网元IP - anestate integer 0 1 2 3 - 源网元状态: 0 --- 未管理 1 --- 在线 2 --- 离线 3 --- 未知 - aportdn string - - 源端口DN - aportifresid string - - 推荐使用,源端口DN - aportname string - - 源端口名称 - aportip string - - 源端口IP - aportadminstatus integer 1 2 3 - 源端口管理状态: 1 --- up 2 --- down 3 --- testing - aportoperstatus integer 1 2 3 4 5 6 7 - 源端口运行状态: 1 --- up 2 --- down 3 --- testing 4 --- unknown 5 --- dormant 6 --- notPresent 7 --- lowerLayerDown - znedn string - - 宿网元DN - znename string - - 宿网元名称 - zneip string - - 宿网元IP - znestate integer 0 1 2 3 - 宿网元状态: 0 --- 未管理 1 --- 在线 2 --- 离线 3 --- 未知 - zportdn string - - 宿端口DN - zportifresid string - - 推荐使用,宿端口DN - zportname string - - 宿端口名称 - zportip string - - 宿端口IP - zportadminstatus integer 1 2 3 - 宿端口管理状态: 1 --- up 2 --- down 3 --- testing - zportoperstatus integer 1 2 3 4 5 6 7 - 宿端口运行状态: 1 --- up 2 --- down 3 --- testing 4 --- unknown 5 --- dormant 6 --- notPresent 7 --- lowerLayerDown - linkstatus integer 0 1 2 3 4 5 - 链路状态: 0 --- 正常 1 --- 未知 2 --- 重要故障 3 --- 紧急故障 4 --- 离线 5 --- 不管理 - linktype integer 1 2 3 4 5 6 99 - 链路类型: 1 --- LLDP 2 --- Side-By-Side链路 3 --- MACARP 4 --- CDP 5 --- IP 6 --- 由物理链路生成Eth-Trunk链路 99 --- 手工 - speed string - - 单位:Mbit/s - aportindex string - - 源端口索引 - zportindex string - - 宿端口索引 - 返回状态码为400:Bad request,非法请求 详细信息请参见实际响应消息体。 返回状态码为500:Internal Error,系统内部错误 详细信息请参见实际响应消息体。
-
请求示例 cURL的示例 curl -k -s -L -i -X GET -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Accept-Language: en-US' -H 'X-AUTH-TOKEN: x-yyyyyy' 'https://192.168.1.125:18002/rest/openapi/network/link?anedn=NE=40000015&anename=CE6850_113_0497&aneip=10.10.12.11&anestate=1&aportdn=3e9d74bc-0fdc-32a9-8140-8a646e651f54&aportname=10GE1/0/4&aportip=10.10.13.11&aportadminstatus=1&aportoperstatus=1&znedn=NE=40000016&znename=CE6850_113_0498&zneip=10.10.13.12&znestate=1&zportdn=e082c05b-99f6-3f25-8dd7-2bcd90a1703d&zportname=10GE1/0/28&zportip=10.10.13.13&zportadminstatus=1&zportoperstatus=1&linkdn=2--1530531702323771078-3468902791267101303&linkname=CE6850_113_0497_10GE1/0/4_CE6850_113_0498_10GE1/0/28&linkstatus=1&linktype=1&speed=10000&start=0&size=20&orderby=linkdn&desc=false' HTTP的示例 GET /rest/openapi/network/link?anedn=NE=40000015&anename=CE6850_113_0497&aneip=10.10.12.11&anestate=1&aportdn=3e9d74bc-0fdc-32a9-8140-8a646e651f54&aportname=10GE1/0/4&aportip=10.10.13.11&aportadminstatus=1&aportoperstatus=1&znedn=NE=40000016&znename=CE6850_113_0498&zneip=10.10.13.12&znestate=1&zportdn=e082c05b-99f6-3f25-8dd7-2bcd90a1703d&zportname=10GE1/0/28&zportip=10.10.13.13&zportadminstatus=1&zportoperstatus=1&linkdn=2--1530531702323771078-3468902791267101303&linkname=CE6850_113_0497_10GE1/0/4_CE6850_113_0498_10GE1/0/28&linkstatus=1&linktype=1&speed=10000&start=0&size=20&orderby=linkdn&desc=false HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-AUTH-TOKEN: x-yyyyyy
-
URI /rest/openapi/network/link 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 anedn 否 string 0~100个字符。 - 源网元DN "NE=40000015" anename 否 string 0~255个字符。 - 源网元名称 "CE6850_113_0497" aneip 否 string 0~255个字符。 - 源网元IP "10.10.12.11" anestate 否 integer 0 1 2 3 - 源网元状态取值 0 --- 未管理 1 --- 在线 2 --- 离线 3 --- 未知 1 aportdn 否 string 0~100个字符。 - 源端口DN "3e9d74bc-0fdc-32a9-8140-8a646e651f54" aportname 否 string 0~255个字符。 - 源端口名称 "10GE1/0/4" aportip 否 string 0~64个字符。 - 源端口IP "10.10.13.11" aportadminstatus 否 integer 1 2 3 - 源端口管理状态: 1 --- up 正常状态 2 --- down 故障状态 3 --- testing 测试状态 1 aportoperstatus 否 integer 1 2 3 4 5 6 7 - 源端口运行状态: 1 --- up 正常状态 2 --- down 故障状态 3 --- testing 测试状态 4 --- unknown 未知状态 5 --- dormant 休眠状态 6 --- notPresent 不存在状态 7 --- lowerLayerDown 下层状态down状态 1 znedn 否 string 0~100个字符。 - 宿网元DN "NE=40000016" znename 否 string 0~255个字符。 - 宿网元名称 "CE6850_113_0498" zneip 否 string 0~255个字符。 - 宿网元IP "10.10.13.12" znestate 否 integer 0 1 2 3 - 宿网元状态: 0 --- 未管理 1 --- 在线 2 --- 离线 3 --- 未知 1 zportdn 否 string 0~100个字符。 - 宿端口DN "e082c05b-99f6-3f25-8dd7-2bcd90a1703d" zportname 否 string 0~255个字符。 - 宿端口名称 "10GE1/0/28" zportip 否 string 0~64个字符。 - 宿端口IP "10.10.13.13" zportadminstatus 否 integer 1 2 3 - 宿端口管理状态: 1 --- up 正常状态 2 --- down 故障状态 3 --- testing 测试状态 1 zportoperstatus 否 integer 1 2 3 4 5 6 7 - 宿端口运行状态: 1 --- up 正常状态 2 --- down 故障状态 3 --- testing 测试状态 4 --- unknown 未知状态 5 --- dormant 休眠状态 6 --- notPresent 不存在状态 7 --- lowerLayerDown 下层状态down状态 1 linkdn 否 string 0~255个字符。 - 链路DN "2--1530531702323771078-3468902791267101303" linkname 否 string 0~1130个字符。 - 链路名称 "CE6850_113_0497_10GE1/0/4_CE6850_113_0498_10GE1/0/28" linkstatus 否 integer 0 1 2 3 4 5 6 - 链路状态: 0 --- 正常 1 --- 未知 2 --- 重要故障 3 --- 紧急故障 4 --- 离线 5 --- 不管理 6 --- 故障(包含重要故障、紧急故障两种) 1 linktype 否 integer 1 2 3 4 5 6 99 - 链路类型: 1 --- LLDP 2 --- Side-By-Side链路 3 --- MACARP 4 --- CDP 5 --- IP 6 --- 由物理链路生成Eth-Trunk链路 99 --- 手工 1 speed 否 string 0~32个字符。 - 单位:Mbit/s "10000" start 否 integer - 0 指定从哪个起始记录位置开始返回查询结果集。缺省值是0。小于0使用缺省值。 0 size 否 integer - 20 指定返回查询结果集总数,支持1~1000条,缺省值是20。说明:(如果值小于0,将使用缺省值。) 20 orderby 否 string 0~10个字符。 linkdn 指定查询结果集采用的排序字段。缺省排序字段是linkdn。可指定的排序字段包括:linkdn,linkname,anedn,anename,aportdn,aportname,znedn,znename,zportdn,zportname,linktype,speed。指定多个排序字段时字段间用英文半角逗号“,”分隔。 "linkdn" desc 否 boolean true false false 指定查询结果是否按照降序排序.只有指定orderby请求参数才生效 false
更多精彩内容
CDN加速
GaussDB
文字转换成语音
免费的服务器
如何创建网站
域名网站购买
私有云桌面
云主机哪个好
域名怎么备案
手机云电脑
SSL证书申请
云点播服务器
免费OCR是什么
电脑云桌面
域名备案怎么弄
语音转文字
文字图片识别
云桌面是什么
网址安全检测
网站建设搭建
国外CDN加速
SSL免费证书申请
短信批量发送
图片OCR识别
云数据库MySQL
个人域名购买
录音转文字
扫描图片识别文字
OCR图片识别
行驶证识别
虚拟电话号码
电话呼叫中心软件
怎么制作一个网站
Email注册网站
华为VNC
图像文字识别
企业网站制作
个人网站搭建
华为云计算
免费租用云托管
云桌面云服务器
ocr文字识别免费版
HTTPS证书申请
图片文字识别转换
国外域名注册商
使用免费虚拟主机
云电脑主机多少钱
鲲鹏云手机
短信验证码平台
OCR图片文字识别
SSL证书是什么
申请企业邮箱步骤
免费的企业用邮箱
云免流搭建教程
域名价格