华为云用户手册

  • 响应示例 返回状态码为201:操作成功。 { "errcode": "0", "errmsg": "", "data": { "id": "48f1f2c7-f01c-4fc6-87fd-47607897b50e", "siteId": "e42ee2d7-d083-4faa-bff0-1970b3c4eb08", "tenantId": "df8efdaebc9f4b019667b62775dd2c3b" } } 返回状态码为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 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 input 是 REFERENCE 详细请参见表3。 网络规划创建接口入参 - 表3 CreateTopoPlanDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceList 否 ARRAY_REFERENCE 1-500个列表项,详细请参见表4。 网络规划设备信息 - slotList 否 ARRAY_REFERENCE 0-500个列表项,详细请参见表5。 网络规划单板信息 - linkList 否 ARRAY_REFERENCE 0-2000个列表项,详细请参见表6。 网络规划链路信息 - 表4 TopoPlanDeviceDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 order 否 int32 [0-500] - 设备序号 0 id 否 uuid 36个字符。 - 设备id,UUID格式。 "813a76d4-6eec-4264-ae45-a6f261482b60" name 是 string 1~64个字符。 - 设备名称。最多允许输入64个字符。设备名称不能重复。 "device1" esn 否 string 0~40个字符。 - 设备ESN。10~40个字符,由英文字母和数字组成。如果“ESN”为空,则“设备名称”和“设备型号”为必填字段。如果“ESN”不为空,也推荐填写“设备型号”,否则可能添加失败。 "AA980106121234567893" type 否 string 0~32个字符。 - 设备型号。 "S12704" deviceRole 否 string 0~32个字符。满足正则表达^(CORE|Gateway|Gateway\+CORE|Gateway\+vRR|Firewall|ACC|AGG|WAC|AP|)$。 ACC 设备角色,取值:CORE|Gateway|Gateway+CORE|Gateway+vRR|Firewall|ACC|AGG|WAC|AP "ACC" description 否 string 0~255个字符。 - 描述 "ACC1" stackName 否 string 0~64个字符。 - 堆叠名称。(堆叠设备必填,非堆叠设备无需填写),不能包含“?”'、"?"或制表符TAB "ACC1" stackSlotId 否 int32 [0-9] - (堆叠设备必填,非堆叠设备无需填写)盒式设备范围为0~9,框式设备范围为1~2,并且同一堆叠内的堆叠编号不重复。 1 stackPriority 否 int32 [1-255] 100 堆叠优先级。(非必填)请输入数字,范围为1~255。如果堆叠设备此字段不填写,默认为100 2 wacEsn 否 string 0~40个字符。 - WAC设备ESN。(非必填)由英文字母和数字组成。将Fit Ap设备与所填写的WAC ESN关联。 "AA980106121234567893" wacName 否 string 0~64个字符。 - WAC设备名称。 "device1" mlagName 否 string 0~64个字符。 - M-LAG组名称。(非必填) 1、相同MLAG组名称的设备,自动组成M-LAG设备组 2、DFS Group ID默认为1, 随机生成认证密码, 优先级随机取一台为150 3、成员口为双活模式。最多允许输入64个字符。 "mlag1" mlagMode 否 string 0~20个字符。满足正则表达^(active-active|active-standby|)$。 - M-LAG模式,active-active / active-standby。 "active-active" mlagPriority 否 int32 [1-255] - M-LAG优先级。 2 表5 TopoPlanBoardDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 devId 否 string 36个字符。 - 设备id,UUID格式。 "813a76d4-6eec-4264-ae45-a6f261482b60" deviceName 是 string 1~64个字符。 - 设备名称。(必填)堆叠设备支持填写设备名称或堆叠名称。 "21500829352SH1904172" slotId 是 string 0~8个字符。 - 堆叠编号,v5盒式设备为0-8,pnf盒式设备为1-9,框式设备为1-2。 "slot1/4" slotType 是 string 1~12个字符。 - 单板型号。 "LSG7SRUEX500" 表6 TopoPlanLinkDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 order 否 int32 [0-2000] - 设备链路序号 0 srcPortName 是 string 1~30个字符。 - 上游设备物理端口号。设备真实存在的物理端口 "GigabitEthernet0/0/1" srcDevName 是 string 1~64个字符。 - 上游设备名称。堆叠设备支持填写设备名称或堆叠名称。 "device1" srcEthTrunk 否 string 0~14个字符。 - 上游设备端Eth-Trunk名称。(Eth-Trunk链路必填)Eth-Trunk1~1023之间的整数。当前接口是下行接口,除M-LAG Peer-Link与双主检测链路外,均默认开启Eth-Trunk自协商(单设备的Eth-Trunk不可重复使用) "Eth-Trunk1" srcEthPnpStartSwitchEnable 否 boolean true false false 源EthTrunk PNP启动开关使能。 false dstPortName 是 string 1~30个字符。 - 下游设备物理端口号。设备真实存在的物理端口 "GigabitEthernet1/0/1" dstDevName 是 string 1~64个字符。 - 下游设备名称。(必填)最多允许输入64个字符。堆叠设备支持填写设备名称或堆叠名称。 "device2" dstEthTrunk 否 string 0~14个字符。 - 下游设备端Eth-Trunk名称。(Eth-Trunk链路必填)Eth-Trunk1~1023之间的整数(单设备的Eth-Trunk不可重复使用) "Eth-Trunk2" dstEthPnpStartSwitchEnable 否 boolean true false false 目的EthTrunk PNP启动开关使能。 false mlagLinkType 否 string 0~24个字符。满足正则表达^(peer-link|member-link|dual-active-detect-link|)$。 - M-LAG链路类型。peer-link|member-link|dual-active-detect-link "peer-link" mlagIpPoolName 否 string 0~32个字符。 - 双主检测链路IP资源池。(M-LAG链路类型为双主检测链路时必填)允许输入1~32位英文字母、数字或特殊符号(问号和空格除外) "pool1" mlagId 否 string 0~12个字符。 - 上、下游端口M-LAG ID。(非必填)双归接入端口跨设备定义为相同的ID,M-LAG ID取值范围1-2048。上、下游值需用","分隔,同时指定。上下游端口M-LAG ID输入示例 "1,2", 指定上游端口M-LAG ID示例 "1" "1,2"
  • 响应示例 返回状态码为200:查询成功。 HTTPS 200 OK Date: Thu,13 Sep 2022 10:00:00 GMT Server: example-server Content-Type: application/json { "pageIndex": 1, "pageSize": 100, "totalRecord": 1, "errcode": "0", "errmsg": "", "data": [ { "id": "5c37d9e8-cdf6-11e8-a4fc-286ed488d001", "serialNumber": "IC1-Huawei-AR502H-GW-0001", "aliasName": "CPE101", "mac": "xx-xx-xx-xx-xx-xx", "configTime": '2022-05-12 15:30:00', "status": 0, "failReason": "" } ] } 返回状态码为400:查询失败。 HTTPS 400 Bad Requests Date: Thu,13 Sep 2022 10:00:00 GMT Server: example-server Content-Type: application/json { "errcode": "0x00c8000d", "errmsg": "The parameter pageIndex is null." } 返回状态码为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 /controller/campus/api/campusoamservice/v1/cpe/cli/tasks?queryParam=pageSize::10|pageIndex::1|sort::configTime|keyword::test|status::0 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
  • 响应参数 返回状态码为200:查询成功。 表2 ConfigResultOut对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 pageIndex int32 [1-100000] - 页面索引 "1" pageSize int32 [1-100] - 页面大小。 "10" totalRecord int32 [0-10000000] - 总数 "10" errcode string 0~128个字符。 - 错误码。 - errmsg string 0~256个字符。 - 错误信息。 - data ARRAY_REFERENCE 0-1000个列表项,详细请参见表3。 CPE命令下发返回结果。 - 表3 ConfigResultDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 1~64个字符。 - 标识。 "5c37d9e8-cdf6-11e8-a4fc-286ed488df6b" serialNumber string 0~128个字符。 - 身份标识 - aliasName string 0~128个字符。 - 别名 "CPE101" mac string 0~64个字符。 - cpe mac地址 "xx-xx-xx-xx-xx-xx" configTime string 0~128个字符。 - 下发时间。 "2022-05-12 15:30:00" status int32 [0-8] - 状态 - failReason string 0~2048个字符。 - 失败原因 - 返回状态码为400:查询失败。 CommonErrDto对象的参数列表,详细请参见表5。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • URI /controller/campus/api/campusoamservice/v1/cpe/cli/tasks 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 queryParam 是 string 0~1024个字符。 - 查询任务状态请求体。 "pageSize::10|pageIndex::1|sort::configTime|keyword::test|status::0"
  • 响应示例 返回状态码为200:清楚成功,响应体参考ResetResponse。 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" : "" } 返回状态码为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:清楚成功,响应体参考ResetResponse。 表4 ResetResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" 返回状态码为400:校验异常,无响应体。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误,无响应体。 详细信息请参见实际响应消息体。
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 additionalInfo 是 REFERENCE 详细请参见表3。 请求参数 - 表3 MacDeleteInput对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 searchType 是 string - - 删除类型。该字段可以设置为以下几种: a) all:全部删除 b) interface:按端口删除 c) vlan:按转发域删除 d) mac:按mac地址删除 "all" macAddr 否 string - - mac地址,格式仅支持XX-XX-XX-XX-XX-XX。 当searchType字段是mac时,必须设置该字段,否则该字段必须为空。 "xx-xx-xx-xx-xx-xx" idType 否 string - - 转发域类型。 当searchType字段是vlan时,必须设置该字段,该字段可以设置为以下几种: a) bd:删除bd类型转发域的mac b) vlan:删除bd类型转发域的mac c) vsi:删除vsi类型转发域的mac 否则必须为空。 "vlan" id 否 string - - 转发域的vlan值。 当searchType字段是vlan时,必须设置该字段,否则必须为空。 "1" interfaceId 否 string - - 端口号。 当searchType字段是interface时,必须设置该字段,否则必须为空。 "XGigabitEthernet0/0/1" macType 是 string all sticky - mac类型。 "all"
  • 请求示例 HTTP的示例 POST /controller/campus/v1/oamservice/mactable/00000000-0000-0000-0000-000000000000/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 { "searchType" : "all", "macAddr" : "xx-xx-xx-xx-xx-xx", "idType" : "vlan", "id" : "1", "interfaceId" : "XGigabitEthernet0/0/1", "macType" : "all" }
  • 响应示例 返回状态码为200:修改成功,返回结构体参见DomainNameResponseDto。 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" : "", "data" : { "domainName" : "www.example.com" } }
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/networkservice/networkconfig/net/domainname/sites/fbb684c8-0d37-496f-bafa-4b06d5151e2e/domainnames 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 { "domainName" : "www.example.com" }
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 body 是 REFERENCE 详细请参见表3。 站点内设备 域名 配置参数体,结构体参见DomainNameDto。 - 表3 DomainNameDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 domainName 是 string 1~255个字符。满足正则表达[a-zA-Z0-9_\-\.]*$。 - 设备域名。 "www.example.com"
  • URI /controller/campus/v1/networkservice/networkconfig/net/domainname/sites/{siteId}/domainnames 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 string - - 站点ID, UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e"
  • 请求示例 HTTP的示例 POST /controller/campus/v1/sdwan/policy/security/attackdefense/switch/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 { "enable" : true, "attackTypes" : ["fraggle","icmp-flood"] }
  • 响应示例 返回状态码为201:更改成功,响应体参考防范攻击AttackDefenseInfoResponse。 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" : "OK", "errmsg" : "参数缺失", "data" : { "enable" : true, "attackTypes" : ["fraggle","icmp-flood"] } } 返回状态码为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 /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-route-policy:route-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 restconf-transaction-id: "00000000-0000-0000-0000-000000000000"
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-route-policy:route-policy 表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"
  • 响应示例 返回状态码为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 { "huawei-nce-e-route-policy:route-policy" : [ { "config-status" : "configured-database-success", "last-committed-time" : "2022-01-01 00:00:00", "related-pkg-version" : "1.0.1", "edit-state" : "RUNNING", "name" : "policy1", "nodes" : [ { "sequence" : 1, "match-mode" : "permit", "condition" : { "match-tag" : 1, "match-ipv4-type" : "ipv4-prefix", "match-ipv4-prefix" : "prefix1", "match-ipv6-type" : "ipv6-prefix", "match-ipv6-prefix" : "prefix1", "community-filter" : [ { "community-filter-name" : "communityFilterName1" } ], "ext-community-filter" : [ { "ext-community-filter-name" : "extCommunityFilterName1" } ] }, "action" : { "apply-tag" : 10, "apply-cost" : 10, "apply-local-preference" : 10, "apply-ext-community-color" : "100", "apply-community" : { "operation" : "replace", "set-community-type" : "inline", "communities" : [ "1:1" ] }, "apply-ext-community" : { "operation" : "replace", "ext-community-member" : [ { "value" : "1:1" } ] } } } ] } ] } 返回状态码为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:查询返回的动态ACL模板信息。 表1 QueryDynamicAclRet对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" totalRecords int32 - - 查询匹配到的动态ACL模板总数。 1 data ARRAY_REFERENCE 0-1000个列表项,详细请参见表5。 返回的动态ACL模板记录信息。 -
  • 响应示例 返回状态码为200:查询返回的动态ACL模板信息。 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" : "", "totalRecords" : 1, "data" : [ { "id" : "fbde1c5d-5b94-49e3-a912-48641015e45c", "name" : "ACLTemplate1", "description" : "ACLTemplate1", "dynamicRuleList" : [ { "ruleId" : "10000", "policy" : "permit", "protocol" : "tcp", "dstIp" : "192.168.2.0/24", "dstPort" : "24" } ] } ] }
  • URI /controller/campus/v1/networkservice/networkconfig/net/localuser/sites/{siteId}/users/{username} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 string - - 站点ID, UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" username 是 string 0~64个字符。 - 本地用户名,在URL中拼接用户名时,要对特殊字符转义。 "test"
  • 响应示例 返回状态码为200:修改成功,返回信息,结构体参见updateLocalUserInfoResponse。 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" : "", "data" : { "password" : "********", "role" : 1, "serviceType" : [ "ssh" ], "configRu" : false } }
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/networkservice/networkconfig/net/localuser/sites/fbb684c8-0d37-496f-bafa-4b06d5151e2e/users/test 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 { "password" : "Iam@example", "role" : 1, "serviceType" : ["http","ssh","terminal"], "configRu" : false }
  • 请求示例 HTTP的示例 POST /v1/performanceservice/flow/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 { "name" : "指定流名称", "profileId" : "9a157da3-9e59-41c9-8312-254a38a3b275", "profileName" : "识别流模板名称", "enable" : true, "dscp" : 63, "vpnPorts" : [ { "operate" : 0, "interfaceName" : "GigabiEthernet0/0/1", "deviceName" : "设备001", "deviceId" : "9a157da3-9e59-41c9-8312-254a38a3b275", "vpnId" : "9a157da3-9e59-41c9-8312-254a38a3b276", "vpnName" : "vpn1" } ] }
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 flowInput 否 REFERENCE 详细请参见表2。 随流检测配置 - 表2 FlowInput对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 name 否 string 1~256个字符。 - 指定流名称 "指定流名称" profileId 否 string 1~36个字符。 - 识别流模板id "9a157da3-9e59-41c9-8312-254a38a3b275" profileName 否 string 0~256个字符。 - 识别流模板名称 "识别流模板名称" enable 否 boolean true false true 启用状态 true-打开 false-关闭 true dscp 否 int32 [0-63] - 静态流排序号 63 vpnPorts 否 ARRAY_REFERENCE 0-200个列表项,详细请参见表3。 设备接口接口信息 - 表3 VpnPort对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 operate 否 int32 [0-2] 0 增量接口操作增删 0-增加 1-删除 2-修改 0 interfaceName 否 string 1~36个字符。 - 接口名称 "GigabiEthernet0/0/1" deviceName 否 string 0~256个字符。 - 设备名称 "设备001" deviceId 否 string 1~36个字符。 - 设备id "9a157da3-9e59-41c9-8312-254a38a3b275" vpnId 否 string 0~36个字符。 - vpn id "9a157da3-9e59-41c9-8312-254a38a3b276" vpnName 否 string 0~256个字符。 - vpn名称 "vpn1"
  • 响应参数 返回状态码为201:设置随流检测配置成功后的状态返回码。 表4 FlowConfigOutput对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "Success" id string 0~5个字符。 - 流id "512" 返回状态码为400:接口更新失败后的状态返回码。 详细信息请参见实际响应消息体。 返回状态码为500:接口发生内部错误后的状态返回码。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为201:设置随流检测配置成功后的状态返回码。 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" : "Success", "id" : "512" } 返回状态码为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:查询成功,响应体参考QueryDynamicQosDetailResponse。 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" : "", "data" : { "id" : "00000000-0000-0000-0000-000000000000", "name" : "qos1", "adaptiveQosEnable" : false, "adaptiveQosInfo" : { "period" : 10, "linkBandwidthLowerThreshold" : 1, "appBandwidthLowerThreshold" : 1, "packetLossThreshold" : 1 }, "queryPeerSites" : { "totalRecords" : 1, "pageIndex" : 1, "pageSize" : 10, "peerSites" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "templateName", "bandwidth" : 10 } ] }, "queryDynamicQosRules" : { "totalRecords" : 1, "pageIndex" : 1, "pageSize" : 10, "dynamicQosRules" : [ { "qosRuleId" : "00000000-0000-0000-0000-000000000000", "qosClassificationId" : "00000000-0000-0000-0000-000000000000", "qosClassificationName" : "qosClassificationName", "qosProfileId" : "00000000-0000-0000-0000-000000000000", "qosProfileName" : "templateName", "qosPriority" : 1 } ] } } } 返回状态码为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/policy/traffic/dynamic/qos/00000000-0000-0000-0000-000000000000/detail 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 { "peerSitePageInfo" : { "pageIndex" : 1, "pageSize" : 20 }, "qosRulePageInfo" : { "pageIndex" : 1, "pageSize" : 20 } }
共100000条
提示

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