华为云用户手册

  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 unbound-devices-from-application 是 REFERENCE 详细请参见表2。 unbound devices from application - 表2 unbound-devices-from-application-input对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-aoc-config-template-application:input REFERENCE 详细请参见表3。 - - 表3 unbound-devices-from-application-input-body对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 device 是 ARRAY_REFERENCE 详细请参见表5。 list device - template-application-id 是 string 0~128个字节。 - the identifier of the template application. "a945675d-ccff-4ea3-afb4-8d04ac3100c2"
  • 响应示例 返回状态码为200:Successful operation HTTP/1.1 200 OK Date: Fri,30 Dec 2022 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为400:Internal Error HTTP/1.1 400 Bad Request Date: Fri,30 Dec 2022 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 响应示例 返回状态码为200:Successful operation HTTP/1.1 204 No Content Date: Thu,05 Jan 2023 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为400:Internal Error HTTP/1.1 400 Bad Request Date: Thu,05 Jan 2023 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 POST /restconf/operations/huawei-nce-aoc-config-template:delete-template HTTP/1.1 Host: 192.168.1.125:26335 Content-Type: application/json Accept: application/json Accept-Language: en-US X-AUTH-TOKEN: x-yyyyyy { "huawei-nce-aoc-config-template:input" : { "template-ids" : [ "26559bd3-a00e-4c6d-a573-e6b711a897b3" ], "force-delete" : true } }
  • 配置接口状态缺省模板(仅V600版本AR设备) 表1 ConfigInterfaceStatus模板参数解释 参数名称 类型 取值范围 参数解释 name String 1~63 接口名称。例如“Tunnel600”。不建议使用空格或特殊字符,大小写敏感。 admin_status enum up down 接口管理状态。 下发到设备的命令: interface name shutdown //将接口管理状态变为down 父主题: iMaster NCE-Campus内置缺省模板参数介绍
  • 响应示例 返回状态码为200:光口资源查询成功。 HTTP/1.1 200 OK Date: Tue,30 Oct 2018 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "code" : 0, "data" : [ { "name" : "XGigabitEthernet0/0/1", "adminstatus" : "1", "operstatus" : "1", "ipaddress" : "10.x.x.x", "ipnetmask" : "0.0.0.0", "portindex" : "70664270" } ], "pageSize" : 1, "totalSize" : 100, "description" : "查询成功。" } 返回状态码为400:参数错误。 HTTP/1.1 400 Bad Request Date: Tue,30 Oct 2018 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为404:rest接口没找到。 HTTP/1.1 404 Not Found Date: Tue,30 Oct 2018 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为500:默认ServiceException异常码,应用内部错误。 HTTP/1.1 500 Internal Server Error Date: Tue,30 Oct 2018 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • URI /rest/openapi/network/otpoint 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 nedn 否 string 1~100个字符。 - 设备DN。 "047f72d1-7ad3-11e9-b906-000c29b01448" start 否 integer - 0 指定从哪个起始记录位置开始返回查询结果集。缺省值是0。说明:如果值小于0,将使用缺省值。 0 size 否 integer - 20 指定返回查询结果集总数,支持1~100条,缺省值是20。说明:如果值小于1或大于100时,将使用缺省值。 20 fields 否 string - - 指定查询结果所包含的列。需要查询的列名为fields参数的值,多个列名时可用英文逗号隔开。 说明: 此请求参数只有指定了fields请求参数后才有效,不指定默认返回所有字段。包含字段name, adminstatus, operstatus, ipaddress, ipnetmask, portindex "name"
  • 请求示例 cURL的示例 curl -k -s -L -i -X GET -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Accept-Language: en-US' -H 'X-AC CES S-TOKEN: x-rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88bybuqp7xmlup9htd5gpg4bmmrufvnt4aan' 'https://192.168.1.125:18002/rest/openapi/network/otpoint?nedn=047f72d1-7ad3-11e9-b906-000c29b01448&start=0&size=20&fields=name' HTTP的示例 GET /rest/openapi/network/otpoint?nedn=047f72d1-7ad3-11e9-b906-000c29b01448&start=0&size=20&fields=name HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN: x-rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
  • 响应参数 返回状态码为200:光口资源查询成功。 表2 OTPointResResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 code int32 - 0 操作返回码。可以是如下值之一: 0:成功 非0:失败 0 data ARRAY_REFERENCE 详细请参见表3。 - - pageSize integer - - 记录总页数。 1 totalSize integer - - 记录总数。 100 description string - - 描述信息。 "查询成功。" 表3 OTPointResData对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 name string - - 光口名称。 "XGigabitEthernet0/0/1" adminstatus string - - 光口管理状态,可以是如下值之一: 1:up 2:down 3:planning "1" operstatus string - - 光口操作状态,可以是如下值之一: 1:up 2:down 3:testing 4:unknown 5:dormant 6:notPresent 7:lowerLayerDown "1" ipaddress string - - 光口IP地址。 "10.x.x.x" ipnetmask string - - 光口子网掩码。 "0.0.0.0" portindex string - - 光口索引。 "70664270" 返回状态码为400:参数错误。 详细信息请参见实际响应消息体。 返回状态码为404:rest接口没找到。 详细信息请参见实际响应消息体。 返回状态码为500:默认ServiceException异常码,应用内部错误。 详细信息请参见实际响应消息体。
  • 配置VTY优先级缺省模板(仅V600版本AR设备) 表1 ConfigVtyPrivilegeLevel模板参数解释 参数名称 类型 取值范围 参数解释 index Integer 34~54 终端索引。指定用户终端接口的TTY索引。 对应设备命令行的vty index为0~20 privilege_level Integer 0~3 用户的优先级。 下发到设备的命令: user-interface vty 0 user privilege level level 父主题: iMaster NCE-Campus内置缺省模板参数介绍
  • 功能说明 NetStream是一种基于网络流信息的统计技术,可以对网络中的业务流量情况进行统计和分析。通过网络流量的精细化分析,识别企业中异常流量,并上报到NCE-CampusInsight,进行选路和QoS优化,提升业务体验。 通过以下模板完成NetStream功能的配置,配置流程如下: 步骤 功能配置 使用模板 Step1 配置灵活流统计模板 ConfigNetFlowTemplate模板。 Step2 配置NetStream基本功能 ConfigNetstream模板或ConfigAdvanceNetstream模板。 Step3 基于接口的NetStream流量统计 ConfigInterfaceNetstream模板或ConfigAdvanceInterfaceNetstream模板。
  • 参数说明 表1 ConfigNetFlowTemplate模板参数解释 参数名称 类型 取值范围 参数解释 operation String merge、remove 操作类型。 merge:表示增加。 remove:表示删除。 recordName String 1~20 配置灵活流统计模板名称,不支持空格,区分大小写,记录的名称不能含有“@”、“%”、“*”等特殊字符。 matchFieldBits String protocol、tos、source-address、destination-address、source-port、destination-port,其中的一个或者多个,以空格隔开填入 配置记录的IPv4聚合关键字。 collectFieldBits String bytes、packets、input、output、app-name,其中的一个或者多个,以空格隔开填入 配置流统计信息。 下发到设备的命令行: ip netstream record recordName match ipv4 { protocol | tos | source-address | destination-address | source-port | destination-port } collect application name collect counter { bytes | packets } collect interface { input | output } 表2 ConfigNetstream模板参数解释 参数名称 类型 取值范围 参数解释 OperationOfTimeout String merge、remove 操作类型,增加或者删除。 merge:表示增加。 remove:表示删除。 inactiveTimeout Int 10~600 非活跃流的老化时间,单位为秒。 activeTimeout Int 1~60 活跃流的老化时间,单位为分钟。 tmafter boolean false、true 使能在队列调度后进行NetStream采样功能。 OperationOfHost String merge、remove 操作类型,增加或者删除。 merge:表示增加。 remove:表示删除。 exportHostIp String - 指定IPv4流统计输出报文的目的IPv4地址。 exportHostPort Int 0~65535 指定IPv4流统计输出报文的目的UDP端口号。 exportVpnInstance String 设备上已经创建的VPN实例 指定统计输出报文目的IP所属的VPN实例名。 OperationOfSource String merge、remove 操作类型,增加或者删除。 merge:表示增加。 remove:表示删除。 exportSourceIp String - 指定IPv4流统计信息输出报文的源IPv4地址。 exportVersion Int 5、9、10 指定IPv4流统计信息输出报文的版本号。 exportIndex Int 16、32 指定接口索引的位数。 表3 ConfigAdvanceNetstream模板参数解释 参数名称 类型 取值范围 参数解释 OperationOfTimeout String merge、remove 操作类型,增加或者删除。 merge:表示增加。 remove:表示删除。 inactiveTimeout Int 10~600 非活跃流的老化时间,单位为秒。 activeTimeout Int 1~60 活跃流的老化时间,单位为分钟。 tmafter boolean false、true 使能在队列调度后进行NetStream采样功能。 OperationOfHost String merge、remove 操作类型,增加或者删除。 merge:表示增加。 remove:表示删除。 exportHostIp1 String - 该参数为必填项,指定IPv4流统计输出报文的目的IPv4地址。 exportHostIp2 String - 该参数为可选项,指定IPv4流统计输出报文的目的IPv4地址。 exportHostPort1 Int 0~65535 该参数为必填项,指定IPv4流统计输出报文的目的UDP端口号。 exportHostPort2 Int 0~65535 该参数为可选项,指定IPv4流统计输出报文的目的UDP端口号。 exportVpnInstance1 String 设备上已经创建的VPN实例 指定统计输出报文目的IP所属的VPN实例名。 exportVpnInstance2 String 设备上已经创建的VPN实例 指定统计输出报文目的IP所属的VPN实例名。 OperationOfSource String merge、remove 操作类型,增加或者删除。 merge:表示增加。 remove:表示删除。 exportSourceIp String - 指定IPv4流统计信息输出报文的源IPv4地址。 exportVersion Int 5、9、10 指定IPv4流统计信息输出报文的版本号。 exportIndex Int 16、32 指定接口索引的位数。 选择ConfigNetstream模板下发到设备的命令行: ip netstream timeout inactive inactiveTimeout ip netstream timeout active activeTimeout ip netstream tm-after enable ip netstream export host exportHostIp exportHostPort vpn-instance exportVpnInstance ip netstream export source exportSourceIp ip netstream export version exportVersion ip netstream export index-switch exportIndex 选择ConfigAdvanceNetstream模板下发到设备的命令行: ip netstream timeout inactive inactiveTimeout ip netstream timeout active activeTimeout ip netstream tm-after enable ip netstream export host exportHostIp1 exportHostPort1 vpn-instance exportVpnInstance1 ip netstream export host exportHostIp2 exportHostPort2 vpn-instance exportVpnInstance2 //可选 ip netstream export source exportSourceIp ip netstream export version exportVersion ip netstream export index-switch exportIndex 表4 ConfigInterfaceNetstream模板参数解释 参数名称 类型 取值范围 参数解释 interfaceName String - Lan侧接口名称,支持如下接口类型: Ethernet:例如:Ethernet0/0/1。 GigabitEthernet,例如:GigabitEthernet0/0/1。 XGigabitEthernet,例如:XGigabitEthernet0/0/1。 Eth-Trunk,例如Eth-Trunk10。 Ethernet子接口:例如:Ethernet0/0/1.10。 GigabitEthernet子接口,例如:GigabitEthernet0/0/1.10。 XGigabitEthernet子接口,例如:XGigabitEthernet0/0/1.10。 Eth-Trunk子接口,例如Eth-Trunk10.10。 VLANIF接口:例如Vlanif10。 operation String merge、remove 对IPv4流量统计功能的操作类型: merge:表示增加IPv4流量统计方向。 remove:表示删除IPv4流量统计方向。 direction String inbound、outbound 配置IPv4流量统计功能的方向。 fixPackets Int 1~65535 固定报文间隔采样的间隔报文的数量。 OperationOfRule String merge、remove 在接口下配置NetStream流量策略的操作类型: merge:表示在接口下增加NetStream策略。 remove:表示删除接口下的NetStream流量策略。 recordName String 1~20 设备上已经创建的灵活流统计模板名称。 表5 ConfigAdvanceInterfaceNetstream模板参数解释 参数名称 类型 取值范围 参数解释 interfaceName String - Lan侧接口名称, 支持如下接口类型: Ethernet:例如:Ethernet0/0/1。 GigabitEthernet,例如:GigabitEthernet0/0/1。 XGigabitEthernet,例如:XGigabitEthernet0/0/1。 Eth-Trunk,例如Eth-Trunk10。 Ethernet子接口:例如:Ethernet0/0/1.10。 GigabitEthernet子接口,例如:GigabitEthernet0/0/1.10。 XGigabitEthernet子接口,例如:XGigabitEthernet0/0/1.10。 Eth-Trunk子接口,例如Eth-Trunk10.10。 VLANIF接口:例如Vlanif10。 operation String merge、remove 对IPv4流量统计功能的操作类型: merge:表示增加IPv4流量统计方向。 remove:表示删除IPv4流量统计方向。 direction1 String inbound、outbound 该参数为必填项,配置IPv4流量统计功能的方向。 direction2 String inbound、outbound 该参数为可选项,配置IPv4流量统计功能的方向。 fixPackets1 Int 1~65535 该参数为必填项,固定报文间隔采样的间隔报文的数量。 fixPackets2 Int 1~65535 该参数为可选项,固定报文间隔采样的间隔报文的数量。 OperationOfRule String merge、remove 在接口下配置NetStream流量策略的操作类型: merge:表示在接口下增加NetStream策略。 remove:表示删除接口下的NetStream流量策略。 recordName String 1~20 该参数为可选项,设备上已经创建的灵活流统计模板名称。 选择ConfigInterfaceNetstream模板下发到设备的命令行: interface interface-type interface-number ip netstream sampler fix-packets fixPackets direction ip netstream direction port ip netstream record recordName 选择ConfigAdvanceInterfaceNetstream模板下发到设备的命令行: interface interface-type interface-number ip netstream sampler fix-packets fixPackets1 direction1 ip netstream sampler fix-packets fixPackets2 direction2 //可选 ip netstream direction1 ip netstream direction2 //可选 port ip netstream record recordName
  • 配置NAT功能缺省模板(仅V600版本AR设备) 表1 ConfigInterfaceNatEnable模板参数解释 参数名称 类型 取值范围 参数解释 name String 接口名称。仅GE口、10GE口和Cellular口支持该配置且必须为L3层口。 在接口上配置NAT功能。 此字段创建后不可修改,修改此参数将导致配置下发失败。 nat_enable Boolean 布尔型,具体取值如下: true。 false。 使能/去使能NAT功能。 下发到设备的命令: interface name nat enable 父主题: iMaster NCE-Campus内置缺省模板参数介绍
  • 请求示例 HTTP的示例 POST /restconf/operations/huawei-nce-aoc-config-template:copy-template HTTP/1.1 Host: 192.168.1.125:26335 Content-Type: application/json Accept: application/json Accept-Language: en-US X-AUTH-TOKEN: x-yyyyyy { "huawei-nce-aoc-config-template:input" : { "template-name" : "test", "template-description" : "test", "source-template-id" : "26559bd3-a00e-4c6d-a573-e6b711a897b3" } }
  • 响应参数 返回状态码为200:Successful operation 表4 copy-template-output对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-aoc-config-template:output REFERENCE 详细请参见表5。 - - 表5 copy-template-output-body对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 template-id string 1~128个字节。 - 模板ID "26559bd3-a00e-4c6d-a573-e6b711a897b3" 返回状态码为400:Bad Request 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:Successful operation HTTP/1.1 200 OK Date: Fri,03 Dec 2021 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "huawei-nce-aoc-config-template:output": { "template-id": "0a498390-b8c8-4141-9e94-f3de9553ebe2" } } 返回状态码为400:Bad Request HTTP/1.1 400 Bad Request Date: Thu,05 Jan 2023 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 copy-template 是 REFERENCE 详细请参见表2。 复制模板 - 表2 copy-template-input对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-aoc-config-template:input REFERENCE 详细请参见表3。 - - 表3 copy-template-input-body对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 template-name 是 string 0~128个字节。 - 模板名称 "test" template-description 否 string 0~1024个字节。 - 模板描述 "test" source-template-id 否 string 1~128个字节。 - 源模板 "26559bd3-a00e-4c6d-a573-e6b711a897b3"
  • 响应示例 返回状态码为200:Successful operation HTTP/1.1 200 OK Date: Fri,03 Dec 2021 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "huawei-nce-aoc-config-template-application:template-application": [ { "template-application-id": "77b3324a-626c-4b2f-be3d-0d6214eee358", "template": [ { "template-id": "f243948c-b822-4ee5-b9c5-84f63a024f0d" } ], "device": [ { "device-id": "8d394835-cb84-38f3-a4d5-36a7f2074b48", "device-name": "route2" } ] } ] } 返回状态码为400:Bad Request HTTP/1.1 400 Bad Request Date: Fri,30 Dec 2022 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 GET /restconf/data/huawei-nce-aoc-config-template-application:template-application/a945675d-ccff-4ea3-afb4-8d04ac3100c2 HTTP/1.1 Host: 192.168.1.125:26335 Content-Type: application/json Accept: application/json Accept-Language: en-US X-AUTH-TOKEN: x-yyyyyy
  • URI /restconf/data/huawei-nce-aoc-config-template-application:template-application/{template-application-id} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 template-application-id 是 string 0~128个字节。 - the identifier of the template application. "a945675d-ccff-4ea3-afb4-8d04ac3100c2"
  • 响应示例 返回状态码为200:成功 HTTP/1.1 200 OK Content-Type: application/json { "huawei-nce-aoc-gnd-config-state:output": { "feature": [ { "feature-path": "/huawei-ac-nes-device:nes/ne/aaaminignd:aaaminignd", "config-state": "success", "feature-name": "aaaminignd" } ], "count": 1 } }
  • 响应参数 返回状态码为200:成功 表4 query-gnd-config-state-by-features-output对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-aoc-gnd-config-state:output REFERENCE 详细请参见表5。 - - 表5 query-gnd-config-state-by-features-output-body对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 feature ARRAY_REFERENCE 详细请参见表6。 The output of feature after query. - count int32 [-2147483648-2147483647] - 特性数量 1 表6 query-gnd-config-state-by-features-output-body-feature对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 feature-path string 0~2048个字节。 - 特性路径 "featurepath" config-state string success alarm pre-config fail sending - 0=成功; 1=告警 ; 2=预配置; 3=失败; 4=发送中 "success" feature-name string 0~255个字节。 - 特性名称 "featurename"
  • 请求示例 HTTP的示例 POST /restconf/operations/huawei-nce-aoc-gnd-config-state:query-gnd-config-state-by-features HTTP/1.1 Host: 192.168.1.125:26335 Content-Type: application/json X-ACCESS-TOKEN: x-yyyyyy { "input": { "offset": 1, "limit": 10, "device-id": "8d394835-cb84-38f3-a4d5-36a7f2075084", "sort-field": "-config-state" } }
  • 请求示例 HTTP的示例 POST /restconf/operations/huawei-nce-aoc-config-template-binding:query-binding-devices Host: 192.168.1.125:26335 Content-Type: application/json Accept: application/json Accept-Language: en-US X-AUTH-TOKEN: x-yyyyyy { "input": { "template-binding-id": {{binding-id}}, "offset": 0, "limit": 2000, "query-field": "and(ilike(ne-name,_), eq(deploystatus, 0))" } }
  • 响应示例 返回状态码为200:Successful operation HTTP/1.1 200 OK Date: Fri,03 Dec 2021 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "huawei-nce-aoc-config-template-binding:output": { "device": [{ "device-id": "8d394835-cb84-38f3-a4d5-36a7f2074b78", "device-name": "NCE_apaas_cx2", "device-ip": "10.137.105.166", "device-type": "ROUTER", "device-model": "NE40E-X3A(V8)", "deploy-status": "un-deploy", "unbound-status": false, "deploy-last-version": true }], "total-count": 1 } } 返回状态码为400:Bad Request HTTP/1.1 400 Bad Request Date: Fri,30 Dec 2022 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 响应参数 返回状态码为200:Successful operation 表4 query-binding-devices-output对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-aoc-config-template-binding:output REFERENCE 详细请参见表5。 - - 表5 query-binding-devices-output-body对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 device ARRAY_REFERENCE 详细请参见表9。 list device - total-count int32 [-2147483648-2147483647] - the count of device. 12 返回状态码为400:Bad Request 详细信息请参见实际响应消息体。
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 query-binding-devices 是 REFERENCE 详细请参见表2。 query binding devices. - 表2 query-binding-devices-input对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-aoc-config-template-binding:input REFERENCE 详细请参见表3。 - - 表3 query-binding-devices-input-body对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 offset 否 int32 [1-2147483647] 1 query page offset, from 1 1 limit 否 int32 [1-2000] 10 query page size 100 query-field 否 string 0~128个字节。 - 查询过滤内容, 支持如下内容: like(ne-name,route), ilike(ne-name, route), or like(ne-name,route) and like(deploy-status, failure)。 其内容与Restful API的get方法支持的内容保持一致。当我们使用模板绑定时,支持 like(binding-name, custom)。 deploy-status取值范围如下: UN_DEPLOY 未部署: 0 DEPLOYING 部署中:1 DEPLOYMENT_SUCCESSED 部署成功:2 DEPLOYMENT_FAILED 部署失败:3 IN_QUEUE 队列中:4 DEPLOY_PARTLY_SUCCESS 未全部部署:5 "and(eq(templateid,0a80900d-1e8c-4191-969e-8619d0624edd),ilike(name,vlan), eq(bindingstatus, 1))" template-binding-id 否 string 0~128个字节。 - the identifier of the template application. "f3685151-6e70-46a8-934f-4004c532dcc4"
  • 修复提交 配置结果失败后,需重新创建事务,更新业务之后再修复提交,新业务配置下发成功后,配置结果恢复成功。 请求示例 HTTP的示例 POST /restconf/operations/huawei-aoc-restconf-service-config:generic-ne-service-sync-to 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 { "input": { "user-transaction-id":"549e33c8-4829-4eda-9c66-0b406ab5ee37" } }
  • 查询指定特性状态 请求示例 HTTP的示例 POST /restconf/operations/huawei-nce-aoc-gnd-config-state:query-gnd-config-state-by-feature-instances 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 { "input": { "offset": 1, "limit": 10, "device-id": "8d394835-cb84-38f3-a4d5-36a7f2075081", "sort-field": "-last-oper-time", "feature-path": "/huawei-ac-nes-device:nes/ne/huawei-nce-e-bd:bd" } }
  • 实例级重下发 请求示例 HTTP的示例 POST /restconf/operations/huawei-aoc-restconf-service-config:generic-ne-service-sync-to 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 { "input": { "ne-ids": { "ne-id": "8d394835-cb84-38f3-a4d5-36a7f2075081", "service-type": [{ "service-type-path": "/huawei-ac-nes-device:nes/ne/huawei-nce-e-bd:bd/10" }] } } }
共100000条
提示

您即将访问非华为云网站,请注意账号财产安全