华为云用户手册

  • 请求示例 HTTP的示例 PUT /controller/campus/api/v1/networkconfig/cloudapinterface/fbde1c5d-5b94-49e3-a912-48641015e45c 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 { "interfaceConfigs" : [ { "name" : "GigabitEthernet0/0/1", "interfaceStatus" : true, "description" : "描述信息", "lldpStatus" : true, "sence" : "endpoint", "defaultVlanId" : "1", "bindingCheck" : true, "macMaxNumber" : 1, "trunkVlan" : "1", "upLimit" : "1", "transmitMode" : "nat", "aclId" : "fbde1c5d-5b94-49e3-a912-48641015e45c", "macLimit" : true, "upLimitEnable" : true, "tcpAdjustMss" : 128, "userSeparation" : false, "separationOption" : "disable", "insertOption82Enable" : false, "option82" : { "circuitId" : { "connectorPattern" : "colon", "contentType" : "ap-mac", "format" : "ascii", "userDefinedText" : "xxx" }, "remoteId" : { "connectorPattern" : "colon", "contentType" : "ap-mac", "format" : "ascii", "userDefinedText" : "xxx" } }, "ndSnoopingTrustEnable" : false } ] }
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 interfaceConfigApiDto 是 REFERENCE 详细请参见表3。 Cloud AP接口配置入参,结构体参见CloudApInterfaceConfigDto。 - 表3 CloudApInterfaceConfigDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 interfaceConfigs 否 ARRAY_REFERENCE 1-200个列表项,详细请参见表4。 云AP接口配置配置列表,结构体参见CloudApInterfaceConfig。 - 表4 CloudApInterfaceConfig对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 name 否 string 0~256个字符。 - 接口名称。 "GigabitEthernet0/0/1" interfaceStatus 否 boolean true false - 接口管理状态。 true description 否 string 0~256个字符。 - 描述。 "描述信息" lldpStatus 否 boolean true false - LLDP开关。 true sence 否 string 0~256个字符。 - 场景。取值root(WAN)、uppoint(上行直连交换机)、endpoint(下行直连交换机)、accessStrict(下行直连PC) "endpoint" defaultVlanId 否 int32 [0-65535] - 缺省VLAN。 "1" bindingCheck 否 boolean true false - 是否启用该网口的动态ARP检测功能、IP报文检查功能和DHCP Snooping功能。 true macMaxNumber 否 int32 [0-65535] - 最大MAC数。 1 trunkVlan 否 string 0~256个字符。 - 允许通过的VLAN。范围:1~4094,如:1,1-5,最多支持10段,每个设备最多可配置64个VLAN。 "1" upLimit 否 string 0~256个字符。 - 终端上行限速(Mbit/s),取值范围 0.1~10000Mbps。 "1" transmitMode 否 string 0~256个字符。 - 转发模式,取值nat,bridge。 "nat" aclId 否 string 36个字符。 - acl Id。通过接口获取。在接口层面基于目的IP地址、协议和端口控制允许或禁止访问指定资源。 "fbde1c5d-5b94-49e3-a912-48641015e45c" macLimit 否 boolean true false - mac配置使能。 true upLimitEnable 否 boolean true false - 终端流量上行限速使能。 true tcpAdjustMss 否 int32 [128-2048] - TCP Adjust MSS。 128 userSeparation 否 boolean true false - 是否用户隔离。当userSeparation为true时,开启二三层用户隔离。 false separationOption 否 string 0~256个字符。 - 用户隔离状态。取值范围:all---开启二三层隔离,l2---开启二层隔离,disable---不隔离。当userSeparation为true时,separationOption只允许为all 或 l2,默认为all;当userSeparation为false时,separationOption只允许为disable。V200R022C10版本以及之后的设备版本,separationOption生效。 "disable" insertOption82Enable 否 boolean true false false 是否插入Option82选项。默认值为false。 false option82 否 REFERENCE 详细请参见表5。 当insertOption82Enable为true时,该字段必填;为false时,该字段不生效,结构体参见Option82Dto。 - ndSnoopingTrustEnable 否 boolean true false false 启用或禁用nd信任接口。 false 表5 Option82Dto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 circuitId 是 REFERENCE 详细请参见表6。 链路代理ID,结构体参见OptionParamDto。 - remoteId 是 REFERENCE 详细请参见表6。 远程代理ID,结构体参见OptionParamDto。 - 表6 OptionParamDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 connectorPattern 是 string colon semicolon colon 选项不同类型内容间的连接符。可取值为:colon、semicolon。默认值为colon。 "colon" contentType 是 string ap-mac ap-mac-ifname ap-location ap-location-ifname ap-name ap-name-ifname user-defined ap-mac 选项内容类型。可取值为:ap-mac、ap-mac-ifname、ap-location、ap-location-ifname、ap-name、ap-name-ifname、user-defined。默认值为ap-mac。 "ap-mac" format 否 string ascii normal compact hex colon ascii 选项内容格式。可取值为:ascii、normal、compact、hex、colon。当contentType为ap-mac时,所有选项均可选择;当contentType为ap-mac-ifname,hex不可选择。默认值为ascii。 "ascii" userDefinedText 否 string 0~255个字符。 - 自定义内容,当contentType为user-defined时,此字段为必填字段。 "xxx"
  • 请求示例 HTTP的示例 DELETE /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-l3-sub-interface:l3-sub-interface/Vbdif20.20 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 restconf-transaction-id: "00000000-0000-0000-0000-000000000000"
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-l3-sub-interface:l3-sub-interface/{if-name} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 id 是 string 36个字符。满足正则表达[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}。 - 设备ID。 "00000000-0000-0000-0000-000000000000" if-name 是 string 1~63个字符。 - Interface name "Vbdif20.20"
  • 响应示例 返回状态码为200:操作成功。 HTTP/1.1 200 OK Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为400:请求参数错误。 HTTP/1.1 400 Bad Request Date: Sun,11 May 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,11 May 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/v1/sdwan/application/custom-applications 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 { "customApplications" : [ { "id" : "00000000-0000-0000-0000-000000000000", "appName" : "app", "description" : "", "extendApp" : false, "appType" : "", "appGroups" : [ "00000000-0000-0000-0000-000000000000" ], "applicationGroups" : [ { "applicationGroupName" : "", "applicationGroupId" : "" } ], "applicationRules" : [ { "ruleName" : "rule", "ruleId" : "00000000-0000-0000-0000-000000000000", "description" : "tcpRule", "destinationIP" : "10.1.1.1/32", "port" : "1,2,3-20", "protocolType" : "tcp", "signatureEnable" : false, "context" : "flow", "direction" : "request", "plainString" : "abcde", "dscp" : 20, "domain" : "www.example.com", "sourceIp" : "192.168.10.5/32", "sourcePortRange" : "30-50" } ], "configId" : "00000000-0000-0000-0000-000000000000" } ] }
  • 响应示例 返回状态码为201:创建成功,响应体参考CustomApplicationResponse。 HTTP/1.1 201 Created Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "", "processInstanceId" : "", "success" : [ { "id" : "00000000-0000-0000-0000-000000000000", "appName" : "app", "description" : "", "extendApp" : false, "appType" : "", "appGroups" : [ "00000000-0000-0000-0000-000000000000" ], "applicationGroups" : [ { "applicationGroupName" : "", "applicationGroupId" : "" } ], "applicationRules" : [ { "ruleName" : "rule", "ruleId" : "00000000-0000-0000-0000-000000000000", "description" : "tcpRule", "destinationIP" : "10.1.1.1/32", "port" : "1,2,3-20", "protocolType" : "tcp", "signatureEnable" : false, "context" : "flow", "direction" : "request", "plainString" : "abcde", "dscp" : 20, "domain" : "www.example.com", "sourceIp" : "192.168.10.5/32", "sourcePortRange" : "30-50" } ], "configId" : "00000000-0000-0000-0000-000000000000" } ], "fail" : [ { "errcode" : "0x00c8000c", "errmsg" : "The parameter is invalid.", "data" : { "id" : "00000000-0000-0000-0000-000000000000", "appName" : "app", "description" : "", "extendApp" : false, "appType" : "", "appGroups" : [ "00000000-0000-0000-0000-000000000000" ], "applicationGroups" : [ { "applicationGroupName" : "", "applicationGroupId" : "" } ], "applicationRules" : [ { "ruleName" : "rule", "ruleId" : "00000000-0000-0000-0000-000000000000", "description" : "tcpRule", "destinationIP" : "10.1.1.1/32", "port" : "1,2,3-20", "protocolType" : "tcp", "signatureEnable" : false, "context" : "flow", "direction" : "request", "plainString" : "abcde", "dscp" : 20, "domain" : "www.example.com", "sourceIp" : "192.168.10.5/32", "sourcePortRange" : "30-50" } ], "configId" : "00000000-0000-0000-0000-000000000000" } } ] } 返回状态码为202:请求正在处理中,请求处理详情请通过“查询业务编排结果”接口,确认是否处理成功。响应体参考CustomApplicationResponse。 HTTP/1.1 202 Accepted Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为400:请求参数错误。 HTTP/1.1 400 Bad Request Date: Sun,11 May 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,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 响应示例 返回状态码为200:接口调用成功,响应体参考DeviceResourceStatisticsOutput。 HTTP/1.1 200 OK Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "error_code" : "0", "error_msg" : "", "resourceStatistics" : [ { "cpu_usage" : 88, "mem_size" : 256, "mem_usage" : 50, "contrack_count" : 1, "user_count" : 1, "report_time" : "2023-06-05 16:35:00.0" } ] } 返回状态码为400:输入参数错误。 HTTP/1.1 400 Bad Request Date: Sun,11 May 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,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 GET /v1/equipment/devices/resource-statistics?device_id=63291b9f-94ff-47c2-a501-0676bf81a009&start_time=1675872000716&end_time=1675872000716&dimension=0 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
  • 响应参数 返回状态码为200:接口调用成功,响应体参考DeviceResourceStatisticsOutput。 表2 DeviceResourceStatisticsOutput对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 error_code string 0~256个字符。 - 错误码 "0" error_msg string 0~256个字符。 - 错误描述 "" resourceStatistics ARRAY_REFERENCE 0-200个列表项,详细请参见表3。 设备状态统计 - 表3 DeviceResourceStatistics对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 cpu_usage int32 [0-100] - CPU 使用率,比如是80%,则此处数字为80 88 mem_size int32 [0-21474836473] - 内存总大小,单位是MB 256 mem_usage int32 [0-100] - 内存使用率,比如是30%,则此处数字为30 50 contrack_count int32 [0-100] - 当前会话数 1 user_count int32 [0-100] - 在线用户数 1 report_time string 0~64个字符。 - 统计时间 "2023-06-05 16:35:00.0" 返回状态码为400:输入参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:其余应用异常。 详细信息请参见实际响应消息体。
  • URI /v1/equipment/devices/resource-statistics 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 device_id 否 string 0~64个字符。 - 设备id,UUID "63291b9f-94ff-47c2-a501-0676bf81a009" start_time 否 string 13~15个字符。 - 统计起始时间 "1675872000716" end_time 否 string 13~15个字符。 - 统计结束时间 "1675872000716" dimension 否 int32 [0-2] - 时间维度,0-天,1-周,2-月 0
  • 请求示例 HTTP的示例 GET /controller/campus/v1/systemparameter/securityconfig/verify-device 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
  • 响应示例 返回状态码为200:查询校验设备证书ESN开关信息成功,响应体参考ControllerValidateQueryOutput。 HTTP/1.1 200 OK Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "OK", "controllerValidate" : "true" } 返回状态码为500:接口调用内部错误,无响应体。 HTTP/1.1 500 Internal Server Error Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/sdwan/overlay-network/inner-tunnel 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 { "innerTunnelInfos" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "mtu" : 9000, "mss" : 2048 } ] }
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 innerTunnels 是 REFERENCE 详细请参见表2。 IWG 内联隧道信息,限制一次最多设置2个IWG站点。 - 表2 InnerTunnels对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 innerTunnelInfos 是 ARRAY_REFERENCE 1-2个列表项,详细请参见表3。 IWG 内联隧道mtu、mss信息。 - 表3 InnerTunnelInfo对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 否 uuid - - 站点ID,UUID格式,创建时必填。 "00000000-0000-0000-0000-000000000000" mtu 否 int32 [256-9000] - mtu,取值范围256-9000,默认值9000。 9000 mss 否 int32 [128-2048] - mss,取值范围128-2048,默认值2048。 2048
  • 响应参数 返回状态码为200:接口调用成功,响应体参考InnerTunnelResponse。 表4 InnerTunnelResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" success ARRAY_REFERENCE 0-100个列表项,详细请参见表3。 成功的站点信息。 - fail ARRAY_REFERENCE 0-100个列表项,详细请参见表3。 失败的站点信息。 - 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:接口调用成功,响应体参考InnerTunnelResponse。 HTTP/1.1 200 OK Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "", "success" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "mtu" : 9000, "mss" : 2048 } ], "fail" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "mtu" : 9000, "mss" : 2048 } ] } 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request Date: Sun,11 May 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,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 响应示例 返回状态码为200:创建站点成功,响应体参考createSiteOut。 HTTP/1.1 200 OK Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "", "success" : [ { "id" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca", "name" : "site1", "description" : "site1", "type" : ["AP"], "pattern" : 1, "latitude" : "50", "longtitude" : "111", "longitude" : "111", "contact" : "David", "tag" : ["abcd"], "isolated" : false, "email" : "xxx@xxx.xxx", "phone" : "152XXXXXXXX", "postcode" : "215000", "address" : "66 JiangYun Road", "approvalSwitch" : false, "autoApprovalSwitch" : false, "autoTopoCheck" : false, "validityPeriod" : 1, "siteCode" : "", "siteCodeExpireTime" : 1686131018523, "siteTag" : "" } ], "fail" : [ { "errcode" : "-1", "errmsg" : "cfgOriginId 不存在", "data" : [ { "name" : "site1" } ] } ] } 返回状态码为400:参数校验异常,无响应体。 HTTP/1.1 400 Bad Request Date: Sun,11 May 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,11 May 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/v3/sites 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 { "sites" : [ { "name" : "site1", "description" : "site1", "southAccName" : "Public Default South Access", "type" : ["AP"], "pattern" : 1, "latitude" : "50", "longtitude" : "111", "longitude" : "111", "contact" : "David", "tag" : ["abcd"], "isolated" : false, "email" : "xxx@xxx.xxx", "phone" : "152XXXXXXXX", "postcode" : "215000", "address" : "66 JiangYun Road", "cfgOriginId" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca", "cfgOriginType" : "DEFAULT", "cloneDevices" : false, "approvalSwitch" : false, "autoApprovalSwitch" : false, "autoTopoCheck" : false, "validityPeriod" : 1, "siteTag" : "" } ] }
  • 请求参数 表2 header参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 restconf-transaction-id 是 string - - 事务ID。 "00000000-0000-0000-0000-000000000000" 表3 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-e-queue-template:flow-queue-template 是 REFERENCE 详细请参见表4。 流队列模板。 -
  • 请求示例 HTTP的示例 PATCH /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-queue-template:flow-queue-template/FlowQueueTemplate 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 restconf-transaction-id: "00000000-0000-0000-0000-000000000000" { "huawei-nce-e-queue-template:flow-queue-template" : { "name" : "FlowQueueTemplate", "traffic-behavior-queue" : [ { "name" : "TrafficBehavior", "scheduler-mode" : "pq", "weight" : 10, "shaping" : 64, "shaping-percent" : 10, "percent-reference" : "pir", "pbs" : 20, "packet-number" : 1, "queue-depth" : 10 } ] } }
  • 响应示例 返回状态码为200:操作成功。 HTTP/1.1 200 OK Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为400:请求参数错误。 HTTP/1.1 400 Bad Request Date: Sun,11 May 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,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-queue-template:flow-queue-template/{name} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 id 是 string 36个字符。满足正则表达[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}。 - 设备ID。 "00000000-0000-0000-0000-000000000000" name 是 string 1~31个字符。满足正则表达[a-zA-Z0-9]([^\s]*)。 - 流队列模板名称,单一主键字段。 "FlowQueueTemplate"
  • 请求示例 HTTP的示例 PATCH /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-queue-template:port-queue-template/Port+Queue+Template 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 restconf-transaction-id: "00000000-0000-0000-0000-000000000000" { "huawei-nce-e-queue-template:port-queue-template" : { "name" : "Port Queue Template", "queue" : [ { "service-class" : "be", "port-wred-name" : "Port wred name", "queue-schedule-mode" : "pq", "weight" : 10, "pbs" : 65534, "low-latency" : "enable", "shaping-value" : 64, "shaping-percentage" : 10, "cir-schedule-mode" : "pq", "pir-schedule-mode" : "pq", "pir-weight" : 10, "cbs" : 65534, "pir-pbs" : 65534, "cir-value" : 10, "pir-value" : 10, "cir-percentage" : 10, "pir-percentage" : 10 } ] } }
  • 响应示例 返回状态码为200:操作成功。 HTTP/1.1 200 OK Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为400:请求参数错误。 HTTP/1.1 400 Bad Request Date: Sun,11 May 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,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求参数 表2 header参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 restconf-transaction-id 是 string - - 事务ID。 "00000000-0000-0000-0000-000000000000" 表3 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-e-queue-template:port-queue-template 是 REFERENCE 详细请参见表4。 端口队列模板。 -
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-queue-template:port-queue-template/{name} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 id 是 string 36个字符。满足正则表达[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}。 - 设备ID。 "00000000-0000-0000-0000-000000000000" name 是 string 1~31个字符。满足正则表达[a-zA-Z0-9]([^\s]*)。 - 名称,单一主键字段。 "Port Queue Template"
  • 请求示例 HTTP的示例 GET /controller/campus/v1/sdwan/policy/traffic/interworking/00000000-0000-0000-0000-000000000000/centralized-access 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
  • 响应示例 返回状态码为200:查询成功,响应体参考CentralizedInterworkingResponse。 HTTP/1.1 200 OK Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "", "errmsg" : "", "data" : { "centralizedSiteInfos" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "site1", "igwEnable" : true, "enableUnderlayFirst" : false, "priority" : "active", "tnpConfigs" : [ { "transportNetworkPortId" : "00000000-0000-0000-0000-000000000000", "transportNetworkPortName" : "ApSite", "priority" : 1, "bandwidth" : 10, "mtu" : 1500 } ] } ] } } 返回状态码为400:请求参数错误。 HTTP/1.1 400 Bad Request Date: Sun,11 May 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,11 May 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/v1/sdwan/interface/access-controller 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 { "deviceId" : "00000000-0000-0000-0000-000000000000", "interfaceNames" : [ "GigabitEthernet0/0/1" ], "enableAccessControl" : "", "accessControlProtocols" : [ "HTTP" ] }
共100000条
提示

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