华为云用户手册

  • 响应示例 返回状态码为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 返回状态码为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
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-ssl-policy:ssl-policies 表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"
  • 请求参数 表2 header参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 restconf-transaction-id 是 string - - 事务ID。 "00000000-0000-0000-0000-000000000000" 表3 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-e-ssl-policy:ssl-policies 是 REFERENCE 详细请参见表4。 Secure Socket Layer (SSL) - 表4 nes-ne-ssl-policies-augment对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-e-ssl-policy:ssl-policies 否 ARRAY_REFERENCE 详细请参见表5。 Secure Socket Layer (SSL) - 表5 nes-ne-ssl-policies对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 config-status 否 string reserved initial configuring-database configured-database-success configured-database-failed configuring-device configured-device-success configured-device-failed reserved 配置状态,对应保留未用状态、初始状态、数据库存储中状态、预配置状态、数据库存储失败状态、部署中状态、成功状态、失败状态;不支持编辑,仅查询返回。 "configured-database-success" last-committed-time 否 string 0~255个字符。 - 最后提交时间,该特性最后提交时间;不支持编辑,仅查询返回。 "2022-01-01 00:00:00" related-pkg-version 否 string 0~255个字符。 - 包版本,插件包版本;不支持编辑,仅查询返回。 "1.0.1" edit-state 否 string RUNNING CANDIDATE UNDEPLOYING UNDEPLOYED - 编辑状态,对应运行状态、候选状态、取消部署状态、未部署状态;不支持编辑,仅查询返回。 "RUNNING" policy-name 否 string 1~23个字符。满足正则表达[a-z0-9_]*。 - ssl-policies名称配置,范围为1-23位小写字符,数字,下划线 "test1" pki-realm 否 string 1~64个字符。 - PKI配置,默认PKI填写default,或设备自定义的pki-domain域,证书导入模式此项不填 "default" cert-file 否 string 1~64个字符。 - 证书文件名称配置,证书导入ssl-policy必填,请确保输入设备本身带有的证书文件名称 "Device-cert.pem" key-file 否 string 1~64个字符。 - 证书key文件名称配置,证书导入ssl-policy必填,请确保输入设备本身带有的证书key文件名称 "Device-key.pem" auth-code-cert 否 string 1~432个字符。 - 证书Key文件密码配置,证书导入ssl-policy必填 "Huawei@123" ca-file-one 否 string 1~64个字符。 - 一级信任证书文件名称配置,证书导入ssl-policy必填,请确保输入设备本身带有的一级信任证书文件名称 "SRV6_CA.cer" auth-code-ca-one 否 string 1~432个字符。 - 一级信任证书文件密码配置,可选填:1-168位字符或数字 "ddddd" ca-file-two 否 string 1~64个字符。 - 二级信任证书文件名称配置,可选填,1-64位字符或数字 "ddddd" auth-code-ca-two 否 string 1~432个字符。 - 二级信任证书文件密码配置,可选填:1-168位字符或数字 "ddddd"
  • 请求示例 HTTP的示例 PUT /controller/campus/ui/v1/sdwan/lan/wlans 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 { "vpnId" : "00000000-0000-0000-0000-000000000000", "siteId" : "00000000-0000-0000-0000-000000000000", "subnets" : [ { "vpnId" : "00000000-0000-0000-0000-000000000000", "siteId" : "00000000-0000-0000-0000-000000000000", "deviceId" : "00000000-0000-0000-0000-000000000000", "deviceName" : "device1", "id" : "00000000-0000-0000-0000-000000000000", "ssid" : "接入描述。", "effectiveRadio" : "RADIO_2.4GHZ", "vlanId" : "100", "encryptionMethod" : "WPA1", "sharedKey" : "Example@123", "hideSsid" : false, "maxAccessNum" : "30", "downLinkTraffic" : "1200", "upLinkTraffic" : "1400", "enableRadioConfig" : false, "transmitPower" : "1", "countryCode" : "CN", "channelBandwidth" : "20mhz", "channel" : "1", "enableWlan" : true } ] }
  • 响应示例 返回状态码为200:修改SD-WAN Wlan子网参数体。 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 { "errparams" : [ "siteId" ], "errcode" : "0", "errmsg" : "" }
  • 响应示例 返回状态码为200:接口调用成功,响应体参考QueryStaticRouteOutInterfaceResponse。 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" : [ { "deviceId" : "00000000-0000-0000-0000-000000000000", "name" : "Tunnel0/0/40", "type" : "IPSec" } ] } 返回状态码为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
  • URI /controller/campus/v1/sdwan/routing-protocol/static-outinterface 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 vpnId 是 uuid 0~36个字符。 - VPN ID,UUID格式。查询LAN静态路由出接口时使用。 "00000000-0000-0000-0000-000000000000" siteId 是 uuid 0~36个字符。 - 站点ID,UUID格式。 "00000000-0000-0000-0000-000000000000"
  • 请求示例 HTTP的示例 GET /controller/campus/v1/sdwan/routing-protocol/static-outinterface?vpnId=00000000-0000-0000-0000-000000000000&siteId=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-ACCESS-TOKEN: x-yyyyyy
  • 响应参数 返回状态码为200:接口调用成功,响应体参考QueryStaticRouteOutInterfaceResponse。 表2 QueryStaticRouteOutInterfaceResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" data ARRAY_REFERENCE 0-2000个列表项,详细请参见表3。 静态路由出接口信息。 - 表3 StaticRouteOutInterface对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 deviceId uuid 0~36个字符。 - 静态路由所在设备ID,UUID格式。 "00000000-0000-0000-0000-000000000000" name string 0~64个字符。 - 静态路由可选的出接口。 "Tunnel0/0/40" type string 0~64个字符。 - 出接口类型,取值范围:IPSec、Interworking Link。 "IPSec" 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为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" : "", "data" : { "stpMode" : 1, "mstpRegions" : [ { "regionId" : "fbb684c8-0d37-496f-bafa-4b06e5151e2e", "regionName" : "stp_region", "revisionLevel" : 0, "mstpRegionInstances" : [ { "instanceId" : 0, "mapVlan" : "1,3-10", "regionInstanceDevices" : [ { "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "priority" : 15 } ] } ], "regionDeviceList" : [ { "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "deviceName" : "LSW" } ] } ], "rstpConfig" : [ { "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "priority" : 15 } ] } }
  • 响应参数 返回状态码为200:查询成功。 表2 StpResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" data REFERENCE 详细请参见表3。 - - 表3 StpDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 stpMode integer [1-2] - STP模式。1表示MSTP,2表示RSTP。 1 mstpRegions ARRAY_REFERENCE 1-8个列表项,详细请参见表4。 MST域集合。MSTP模式下需要配置。 - rstpConfig ARRAY_REFERENCE 1-8个列表项,详细请参见表7。 RSTP优先级。RSTP模式下需要配置。 - 表4 MstpRegion对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 regionId string - - 域ID,UUID格式。创建时自动生成。 "fbb684c8-0d37-496f-bafa-4b06e5151e2e" regionName string 1~32个字符。 - 域名 。 "stp_region" revisionLevel int64 [0-65535] - 修订级别。 0 mstpRegionInstances ARRAY_REFERENCE 1-16个列表项,详细请参见表5。 生成树实例集合。 - regionDeviceList ARRAY_REFERENCE 1-16个列表项,详细请参见表6。 设备ID实例集合。 - 表5 MstpRegionInstance对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 instanceId integer [0-4094] - 生成树实例ID。 0 mapVlan string 1~100个字符。 - 映射VLAN,instancdId不为0的生成树才生效。 "1,3-10" regionInstanceDevices ARRAY_REFERENCE 1-100个列表项,详细请参见表7。 生成树实例下设备集合。 - 表6 RegionDeviceList对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 deviceId string - - 设备ID,字符串格式为UUID。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" deviceName string - - 设备Name。 "LSW" 表7 RegionInstanceDevice对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 deviceId string - - 设备ID,字符串格式为UUID。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" priority integer [0-15] - 设备优先级。 15
  • 请求示例 HTTP的示例 GET /controller/campus/v1/networkservice/networkconfig/net/lswstp/sites/fbb684c8-0d37-496f-bafa-4b06db151e2e/stp 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:修改交换机EthTrunk端口成功,返回EthTrunk端口信息,结构体参见EthTrunkResponseDto。 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" : { "status" : true, "description" : "LSW interface", "linkType" : "trunk", "defaultVlan" : 1, "allowPassVlan" : "1,3-10", "untaggedVlan" : "11,12-16", "taggedVlan" : "1,3-10", "arpSnoopingEnable" : false, "dhcpSnooping" : false, "dhcpSnoopingTrusted" : false, "ndSnooping" : false, "ndSnoopingTrusted" : false, "portIsolation" : false, "stp" : true, "stpEdgedport" : "normal", "bpduFilter" : "normal", "enableRelay" : false, "enableMadDetection" : false, "domainId" : 16, "naMsgCheck" : false, "nsMsgCheck" : false, "rsMsgCheck" : false, "ipsgCheck" : false, "daiCheck" : false, "collectDynamicMac" : false, "restoreIpSubnetVlanDefault" : false, "ipSubnetVlanEnable" : false, "linkUpDownTrapEnable" : true, "mdnsSnoopingEnable" : false, "dnsSnoopingEnable" : false, "loopbackDetectEnabled" : false, "loopbackDetectAction" : "shutdown", "loopbackDetectVlans" : "1,3-8", "loopbackDetectRecoveryTime" : 16, "trust" : "dscp", "loadBalance" : "src-dst-ip", "lacpPriorityValue" : 32768, "portSecurityEnable" : false, "portSecurityMaxinum" : 1, "stickyEnable" : false, "manualUpStream" : true, "outboundTrafficPolicy" : "aaa", "inboundTrafficPolicy" : "bbb", "voiceVlanEnable" : false, "voiceVlanId" : 2, "voiceVlanMode" : "tag", "isolate" : false, "arpExpireTime" : 1200, "portSecurityAction" : "protect", "portSecurityAgingTime" : 1440, "portSecurityAgingType" : "absolute", "ethTrunkMode" : "manual", "ethPnpStartSwitchEnable" : false, "LswEthTrunkLacpConfigDto" : { "lacpMode" : "customize", "lacpForceForward" : false, "leastActivenum" : 1, "maxActivenum" : 8, "lacpPreempt" : false, "preemptDelayTime" : 30, "lacpTimeoutType" : "fast", "lacpTimeoutNum" : 3 }, "portMemberList" : ["GigabitEthernet0/0/1","GigabitEthernet0/0/2"], "name" : "Eth-Trunk1" } }
  • 响应参数 返回状态码为200:删除成功返回。 VnSiteResponse对象的参数列表,详细请参见表4。 返回状态码为202:请求正在处理中,请求处理详情请通过查询业务编排结果,确认是否处理成功。响应体参考VnSiteAsyncResponse。 VnSiteAsyncResponse对象的参数列表,详细请参见表6。 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/lanwan/vn/site-detachment 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 { "vnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "vnName" : "vn1", "asyncEnable" : true, "siteInfos" : [ { "siteId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "siteName" : "site", "isWanServiceNeeded" : true, "routeDistinguisher" : "101:3", "status" : "SUCCESS", "errMsg" : "" } ] }
  • URI /controller/campus/v1/networkservice/networkconfig/net/lswport/devices/{deviceId}/ethtrunk-ports/{name} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 uuid - - 设备ID。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" name 是 string 10~12个字符。 - EthTrunk端口名称,必须是Eth-Trunk[数字]的格式,数字最大511。 "Eth-Trunk1"
  • 响应示例 返回状态码为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" : "", "data" : { "vnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "vnName" : "vn1", "asyncEnable" : true, "siteInfos" : [ { "siteId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "siteName" : "site", "isWanServiceNeeded" : true, "routeDistinguisher" : "101:3", "status" : "SUCCESS", "errMsg" : "" } ] } } 返回状态码为202:请求正在处理中,请求处理详情请通过查询业务编排结果,确认是否处理成功。响应体参考VnSiteAsyncResponse。 HTTP/1.1 202 Accepted 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" : { "vnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "vnName" : "vn1", "asyncEnable" : true, "siteInfos" : [ { "siteId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "siteName" : "site", "isWanServiceNeeded" : true, "routeDistinguisher" : "101:3", "status" : "SUCCESS", "errMsg" : "" } ] }, "processInstanceId" : "" } 返回状态码为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
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/networkservice/networkconfig/net/lswport/devices/fbb684c8-0d37-496f-bafa-4b06d5151e2e/ethtrunk-ports/Eth-Trunk1 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 { "status" : true, "description" : "LSW interface", "linkType" : "trunk", "defaultVlan" : 1, "allowPassVlan" : "1,3-10", "untaggedVlan" : "11,12-16", "taggedVlan" : "1,3-10", "arpSnoopingEnable" : false, "dhcpSnooping" : false, "dhcpSnoopingTrusted" : false, "ndSnooping" : false, "ndSnoopingTrusted" : false, "portIsolation" : false, "stp" : true, "stpEdgedport" : "normal", "bpduFilter" : "normal", "enableRelay" : false, "enableMadDetection" : false, "domainId" : 16, "naMsgCheck" : false, "nsMsgCheck" : false, "rsMsgCheck" : false, "ipsgCheck" : false, "daiCheck" : false, "collectDynamicMac" : false, "restoreIpSubnetVlanDefault" : false, "ipSubnetVlanEnable" : false, "linkUpDownTrapEnable" : true, "mdnsSnoopingEnable" : false, "dnsSnoopingEnable" : false, "loopbackDetectEnabled" : false, "loopbackDetectAction" : "shutdown", "loopbackDetectVlans" : "1,3-8", "loopbackDetectRecoveryTime" : 16, "trust" : "dscp", "loadBalance" : "src-dst-ip", "lacpPriorityValue" : 32768, "portSecurityEnable" : false, "portSecurityMaxinum" : 1, "stickyEnable" : false, "manualUpStream" : true, "outboundTrafficPolicy" : "aaa", "inboundTrafficPolicy" : "bbb", "voiceVlanEnable" : false, "voiceVlanId" : 2, "voiceVlanMode" : "tag", "isolate" : false, "arpExpireTime" : 1200, "portSecurityAction" : "protect", "portSecurityAgingTime" : 1440, "portSecurityAgingType" : "absolute", "ethTrunkMode" : "manual", "ethPnpStartSwitchEnable" : false, "LswEthTrunkLacpConfigDto" : { "lacpMode" : "customize", "lacpForceForward" : false, "leastActivenum" : 1, "maxActivenum" : 8, "lacpPreempt" : false, "preemptDelayTime" : 30, "lacpTimeoutType" : "fast", "lacpTimeoutNum" : 3 }, "portMemberList" : ["GigabitEthernet0/0/1","GigabitEthernet0/0/2"] }
  • 响应示例 返回状态码为201:创建拓扑自定义策略成功。 HTTP/1.1 201 Created 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" : "", "customPolicys" : [ { "id" : "00000000-0000-0000-0000-000000000000", "policyName" : "partialMeshPolicy", "priority" : 1, "rules" : [ { "id" : "00000000-0000-0000-0000-000000000000", "matchCondition" : { "ipAddressPrefix" : { "prefixFilters" : [ { "id" : "00000000-0000-0000-0000-000000000000", "ipv4Address" : "10.1.0.0", "maskLength" : 24, "greaterEqual" : 24, "lessEqual" : 24 } ], "ipv6PrefixFilters" : [ { "id" : "00000000-0000-0000-0000-000000000000", "ipv6Address" : "fc00::", "maskLength" : 96, "greaterEqual" : 96, "lessEqual" : 96 } ] }, "siteIds" : ["00000000-0000-0000-0000-000000000000","00000000-0000-0000-0000-000000000001"], "siteNames" : ["siteName1","siteName2"] }, "applyAction" : { "siteSource" : "tenant", "nextHops" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "Site Name", "preference" : 2 } ], "applyMode" : "additive", "mode" : "permit" } } ], "applyToSites" : ["00000000-0000-0000-0000-000000000000","00000000-0000-0000-0000-000000000001"], "applyToSiteNames" : ["siteName1","siteName2"] } ] } 返回状态码为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
  • 请求示例 HTTP的示例 POST /controller/campus/v1/sdwan/overlay-network/00000000-0000-0000-0000-000000000000/topology/policy 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 { "customPolicys" : [ { "id" : "00000000-0000-0000-0000-000000000000", "policyName" : "partialMeshPolicy", "priority" : 1, "rules" : [ { "id" : "00000000-0000-0000-0000-000000000000", "matchCondition" : { "ipAddressPrefix" : { "prefixFilters" : [ { "id" : "00000000-0000-0000-0000-000000000000", "ipv4Address" : "10.1.0.0", "maskLength" : 24, "greaterEqual" : 24, "lessEqual" : 24 } ], "ipv6PrefixFilters" : [ { "id" : "00000000-0000-0000-0000-000000000000", "ipv6Address" : "fc00::", "maskLength" : 96, "greaterEqual" : 96, "lessEqual" : 96 } ] }, "siteIds" : ["00000000-0000-0000-0000-000000000000","00000000-0000-0000-0000-000000000001"], "siteNames" : ["siteName1","siteName2"] }, "applyAction" : { "siteSource" : "tenant", "nextHops" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "Site Name", "preference" : 2 } ], "applyMode" : "additive", "mode" : "permit" } } ], "applyToSites" : ["00000000-0000-0000-0000-000000000000","00000000-0000-0000-0000-000000000001"], "applyToSiteNames" : ["siteName1","siteName2"] } ] }
  • 响应示例 返回状态码为200:删除动态ACL模板的返回信息。 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" : "", "success" : [ "4f350825-919c-47b7-b853-f51f15912396" ], "fail" : [ { "errcode" : "0302000020", "errmsg" : "The site ID format is incorrect or the site does not exist", "data" : "4f350825-919c-47b7-b853-f51f15912398" } ] } 返回状态码为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
  • 请求示例 HTTP的示例 POST /controller/campus/v3/profile/acl/dynamic/batch-delete 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 { "ids" : [ "4f350825-919c-47b7-b853-f51f15912396" ] }
  • 响应示例 返回状态码为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 { "huawei-nce-e-queue-template:port-queue-template" : [ { "config-status" : "reserved", "last-committed-time" : "last-committed-time", "related-pkg-version" : "related-pkg-version", "edit-state" : "RUNNING", "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 } ] } ] } 返回状态码为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
  • 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 /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"
  • 响应参数 返回状态码为200:查询成功,响应体参考QueryQosInterworkTunnelResponse。 表3 QueryQosInterworkTunnelResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" data ARRAY_REFERENCE 0-1000个列表项,详细请参见表5。 站点内联隧道QoS带宽统计开销配置信息。 - 返回状态码为400:请求参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:查询成功,响应体参考QueryQosInterworkTunnelResponse。 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" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "qosOverHead" : false } ] } 返回状态码为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
  • 请求示例 HTTP的示例 POST /controller/campus/v1/sdwan/policy/traffic/interworktunnel/qos/query-by-siteids 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 { "siteIds" : [ "00000000-0000-0000-0000-000000000000" ] }
  • 请求示例 HTTP的示例 PATCH /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-dhcpv4:global-ip-pool/pool1 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-dhcpv4:global-ip-pool" : { "gateway-list" : [ { "gateway-ip" : "10.1.1.1", "mask" : 24 } ], "section" : [ { "section-index" : 1, "start-ip" : "10.1.1.1", "end-ip" : "10.1.1.100" } ], "dns-list" : [ { "dns-ip" : "10.1.1.1" } ], "excluded-ip-address" : [ { "start-ip-address" : "10.1.1.10", "end-ip-address" : "10.1.1.20" } ], "static-bind" : [ { "static-bind-ip" : "10.1.1.1", "static-bind-mac" : "xxxx-xxxx-xxxx" } ], "option" : [ { "option-code" : 7, "ip-addresses" : [ "10.1.1.1" ], "ascii-string" : "test", "hex-string" : "00", "cipher-string" : "test@test", "sub-options" : { "sub-option" : [ { "sub-option-code" : 1, "ip-addresses" : [ "10.1.1.2" ], "ascii-string" : "test" } ] } } ], "ip-pool-name" : "pool1", "vpn-instance" : "overlay_vpn", "network-ipv4-address" : "10.1.1.0", "network-mask" : 24, "lease-time" : { "day" : 10, "hour" : 10, "minute" : 10, "unlimited" : true }, "domain-name" : "test.com" } }
  • 响应示例 返回状态码为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 返回状态码为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
共99354条