华为云用户手册

  • 响应示例 返回状态码为200:查询成功,查询指设备的RU-201信息。 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" : { "ruInfos" : [ { "deviceId" : "00000000-0000-0000-0000-000000000000", "deviceName" : "device1", "interfaceName" : "GigabitEthernet/0/0/1", "status" : "1", "deviceType" : "RU-201", "esn" : "UTJ7500A13000350", "version" : "3.0.0.1", "ip" : "3.0.0.1" } ] } } 返回状态码为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的示例 GET /controller/campus/v1/sdwan/net/queryru?deviceId=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-AC CES S-TOKEN: x-yyyyyy
  • 响应参数 返回状态码为200:查询成功,查询指设备的RU-201信息。 表2 QueryRuResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" data REFERENCE 详细请参见表3。 - - 表3 RuInfos对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 ruInfos ARRAY_REFERENCE 0-10000个列表项,详细请参见表4。 - - 表4 RuInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 deviceId uuid 0~36个字符。 - 设备ID。 "00000000-0000-0000-0000-000000000000" deviceName string 0~256个字符。 - 设备名称。 "device1" interfaceName string 1~64个字符。 - 接入接口名称。 "GigabitEthernet/0/0/1" status string 1~32个字符。 - 状态,取值范围:0:离线,1:在线,2:已连接,3:下载。 "1" deviceType string - - RU类型。 "RU-201" esn string 0~64个字符。 - RU设备ESN。 "UTJ7500A13000350" version string - - RU设备版本号 "3.0.0.1" ip string - - RU设备版本号 "3.0.0.1" 返回状态码为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 返回状态码为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 /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-arp:arp-if/GE0%2F0%2F3 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-arp:arp-if" : [ { "config-status" : "configured-database-success", "last-committed-time" : "2022-01-01 00:00:00", "related-pkg-version" : "1.0.1", "edit-state" : "RUNNING", "if-name" : "GE0/0/3", "arp-proxy" : false, "route-proxy-enable" : true, "miss-anti-limit" : 333, "arp-limit" : [ { "vlan-id" : 444, "limit-num" : 555 } ], "ipv4" : { "static-arp" : [ { "ip-addr" : "10.1.1.4", "mac-addr" : "xxxx-xxxx-xxxx" } ] } } ] }
  • 请求参数 表2 header参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 restconf-transaction-id 是 string - - 事务ID。 "00000000-0000-0000-0000-000000000000" 表3 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-e-arp:arp-if 是 REFERENCE 详细请参见表4。 接口ARP配置。 -
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-arp:arp-if/{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个字符。 - 接口名称,单一主键字段。 "GE0/0/3"
  • 响应示例 返回状态码为200:查询成功。 HTTPS 200 OK Date: Thu,13 Sep 2022 10:00:00 GMT Server: example-server Content-Type: application/json { "errcode": "0", "errmsg": "", "data": [ { "id": "7c37d9e8-9df6-31e8-646c-283fd488d001", "taskId": "5c37d9e8-cdf6-11e8-a4fc-286ed488d001", "commands": "reboot", "response": "success", "responseTime": '2022-05-12 15:30:00' } ] } 返回状态码为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 taskId is null." } 返回状态码为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的示例 GET /controller/campus/api/campusoamservice/v1/cpe/cli/tasks/5c37d9e8-cdf6-11e8-a4fc-286ed488df6b 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:查询成功。 表2 CommandDetailOut对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~128个字符。 - 错误码。 - errmsg string 0~256个字符。 - 错误信息。 - data ARRAY_REFERENCE 1-1000个列表项,详细请参见表3。 CPE命令详情。 - 表3 CommandDetailDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 1~64个字符。 - 标识。 "5c37d9e8-cdf6-11e8-a4fc-286ed488df6b" taskId string 1~64个字符。 - 任务id。 "5c37d9e8-cdf6-11e8-a4fc-286ed488df6b" command string 0~512个字符。 - 下发命令 - response string 0~2048个字符。 - Cpe响应 "success" responseTime string 0~128个字符。 - 响应时间。 "2022-05-12 15:30:00" 返回状态码为400:查询失败。 CommonErrDto对象的参数列表,详细请参见表5。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 GET /controller/campus/v1/sdwan/policy/traffic/qos/wred-profile?policyName=qos wred 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:查询成功,响应体参考QueryQosWredProfilesResponse。 表2 QueryQosWredProfilesResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" totalRecords int32 - - 总的数据条数。 1 pageSize int32 - - 分页大小。 10 pageIndex int32 - - 当前页数。 1 data ARRAY_REFERENCE 0-500个列表项,详细请参见表5。 Wred模板信息。 - 返回状态码为400:请求参数错误,无响应体。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误,无响应体。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:查询成功,响应体参考QueryQosWredProfilesResponse。 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" : "", "totalRecords" : 1, "pageSize" : 10, "pageIndex" : 1, "data" : [ { "name" : "wred1", "fullReplace" : false, "dscpInfos" : [ { "wredMode" : 1, "value" : 10, "lowLimit" : 10, "highLimit" : 10, "percentage" : 10 } ], "id" : "00000000-0000-0000-0000-000000000000" } ] } 返回状态码为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
  • 响应示例 返回状态码为200:删除FW站点静态路由配置成功。 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" : [ { "id" : "de5813f8ff1e41f5ba9c324da70b49ed" } ], "fail" : { "errcode" : "0x00c80014", "errmsg" : "The id does not exist.", "data" : [ { "id" : "de5813f8ff1e41f5ba9c324da70b49ed" } ] } } 返回状态码为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/v1/networkservice/networkconfig/net/fwstaticroute/devices/fbb684c8-0d37-496f-bafa-4b06d5151e2e/staticroute/action/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" : [ "de5813f8ff1e41f5ba9c324da70b49ed" ] }
  • URI /controller/campus/v1/networkservice/networkconfig/net/fwstaticroute/devices/{deviceId}/staticroute/action/batch-delete 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string 36个字符。 - 设备标识,UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e"
  • 响应参数 返回状态码为200:删除FW站点静态路由配置成功。 表4 FwStaticRouteDeleteResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" success ARRAY_REFERENCE 0-64个列表项,详细请参见表5。 删除成功的防火墙站点静态路由配置。 - fail REFERENCE 详细请参见表6。 - - 表5 DeleteFwStaticRouteInfoDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 0~32个字符。 - 静态路由ID。 "de5813f8ff1e41f5ba9c324da70b49ed" 表6 FwStaticRouteDeleteResponseFailDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0x00c80014" errmsg string 0~256个字符。 - 错误信息。 "The id does not exist." data REFERENCE - - - - 表7 DeleteFwStaticRouteInfoDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 0~32个字符。 - 静态路由ID。 "de5813f8ff1e41f5ba9c324da70b49ed" 返回状态码为400:校验失败信息。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:接口调用成功,响应体参考CurrentAlarmOutput。 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" : "null", "errmsg" : "null", "iterator" : "1&-1283131115#ccf99fa3-5c2d-48a7-a7c4-94116a0f1270", "data" : [ { "csn" : "28100132", "alarmName" : "设备离线", "alarmLevel" : 3, "alarmId" : "279998", "alarmResId" : "OSS", "alarmResName" : "OSS", "latestOccurUtc" : "1711029340291", "alarmCategory" : "1", "additionalInformation" : "additional=the device actively disconnects", "cleared" : 0, "probableCause" : "设备主动离线或网络异常", "repairAction" : "", "alarmGroupId" : "100000" } ] } 返回状态码为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 /v1/perfservice/alarms/current-alarms/action/scroll 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 { "filter" : { "deviceGroupIds" : ["ea25fdbf-8dee-4823-bac2-5bfe8e3359ca","ea25fdbf-8dee-4823-bac2-5bfb8e3358ca"], "csn" : "28100132", "alarmLevels" : ["3","4"], "keyword" : "设备离线" }, "iterator" : "1&-1283131115#ccf99fa3-5c2d-48a7-a7c4-94116a0f1270", "size" : 100 }
  • 响应参数 返回状态码为200:接口调用成功,响应体参考CurrentAlarmOutput。 表4 CurrentAlarmOutput对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "null" errmsg string 0~256个字符。 - 错误信息。 "null" iterator string 0~256个字符。 - 查询迭代算子,起始查询可以不传 "1&-1283131115#ccf99fa3-5c2d-48a7-a7c4-94116a0f1270" data ARRAY_REFERENCE 0-100个列表项,详细请参见表5。 告警数据 - 表5 AlarmRecordData对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 csn string 1~256个字符。 - 告警流水号 "28100132" alarmName string 1~1024个字符。 - 告警名称 "设备离线" alarmLevel int32 [1-4] - 告警级别,1-紧急,2-重要,3-次要,4-提示 3 alarmId string 1~64个字符。 - 告警id "279998" alarmResId string 0~64个字符。 - 告警源id "OSS" alarmResName string 0~512个字符。 - 告警源名称 "OSS" latestOccurUtc string 0~64个字符。 - 最近发生时间 "1711029340291" alarmCategory string 0~128个字符。 - 告警类型 "1" additionalInformation string 0~2048个字符。 - 附加信息 "additional=the device actively disconnects" cleared int32 [0-1] - 清除状态,0-未清除,1-已清除 0 probableCause string 0~4096个字符。 - 可能原因 "设备主动离线或网络异常" repairAction string 0~1024个字符。 - 修复建议 "" alarmGroupId string 0~1024个字符。 - 告警分组id "100000" 返回状态码为400:接口入参非法的状态返回码。 详细信息请参见实际响应消息体。 返回状态码为500:接口发生内部错误后的状态返回码。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:查询成功,返回CLI信息,返回结构体参见GetPersonalizedCliConfigResponse。 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 { "pageIndex" : 1, "pageSize" : 100, "totalRecords" : 1, "errcode" : "0", "errmsg" : "", "data" : [ { "id" : "04f680e9ac0f4e298f27e4742f069af3", "name" : "test", "description" : "test", "cli" : "system-view\r\nstelnet server enable", "deviceType" : "AP", "validatedByWhitelist" : true, "createTime" : "1576637976872", "isV600Device" : false, "variableParams" : [ { "key" : "vlanId", "value" : "10", "cipher" : false } ], "deviceId" : "026af5f1-e57c-4cc8-99f7-3d52faf4dd7a", "deviceName" : "AP4050DN-E", "deviceEsn" : "AA500829442SH5901454" } ] }
  • 请求示例 HTTP的示例 GET /controller/campus/v1/networkservice/networkconfig/net/cli/sites/fbb684c8-0d37-496f-bafa-4b06d5151e2e/type/AP/cliproxy?queryValue=test&deviceId=026af5f1-e57c-4cc8-99f7-3d52faf4dd7a&pageSize=100&pageIndex=1 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
  • URI /controller/campus/v1/networkservice/networkconfig/net/cli/sites/{siteId}/type/{deviceType}/cliproxy 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 string - - 站点ID, UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" deviceType 是 string - - 设备类型,取值范围:AP、LSW、FW、AR。 "AP" 表2 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 queryValue 否 string - - 根据CLI名称模糊查询。 "test" deviceId 否 string - - 设备id,UUID格式。为空时表示查询站点中单设备类型所有设备的设备级配置。 "026af5f1-e57c-4cc8-99f7-3d52faf4dd7a" pageSize 否 int32 [10-100] 100 每页大小。取值范围:10、20、40、60、80、100。 100 pageIndex 否 int32 - 1 页码,页码从1开始。 1
  • 响应参数 返回状态码为200:接口调用成功,响应体参考QueryOspfRouteGlobalInfoResponse。 表2 QueryOspfRouteGlobalInfoResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" data ARRAY_REFERENCE 0-8个列表项,详细请参见表5。 OSPF路由信息。 - 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:接口调用成功,响应体参考QueryOspfRouteGlobalInfoResponse。 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" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "vpnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "tnpId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "routerId" : "192.168.1.1", "processId" : 501, "defaultRouteAdvertisement" : false, "defaultRouteCost" : 1, "defaultRouteType" : 1, "internalPreference" : 10, "asePreference" : 150, "routeRedistribute" : [ { "type" : "BGP", "processId" : 501, "cost" : 1, "externalRouteType" : 1 } ], "asbrSummarys" : [ { "ipAddress" : "10.1.0.0/16", "cost" : 0, "tag" : 1, "distributeDelay" : 1, "advertise" : true, "generateNull0Route" : false } ], "exportRoutePolicy" : { "nodes" : [ { "mode" : "permit", "matchCondition" : { "ipPrefix" : { "prefixFilters" : [ { "ipv4Address" : "10.1.0.0", "maskLength" : 24, "greaterEqual" : 24, "lessEqual" : 24 } ] }, "tag" : 100 }, "applyAction" : { "applyMetric" : { "cost" : "24", "sign" : "add" }, "localPreference" : 100, "preferredValue" : 100, "applyTag" : 100 } } ] }, "importRoutePolicy" : { "nodes" : [ { "mode" : "permit", "matchCondition" : { "ipPrefix" : { "prefixFilters" : [ { "ipv4Address" : "10.1.0.0", "maskLength" : 24, "greaterEqual" : 24, "lessEqual" : 24 } ] }, "tag" : 100 }, "applyAction" : { "applyMetric" : { "cost" : "24", "sign" : "add" }, "localPreference" : 100, "preferredValue" : 100, "applyTag" : 100 } } ] }, "configSource" : "Wan" } ] } 返回状态码为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/ospf/global 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 vpnId 否 uuid - - VPN ID。格式是uuid,vpnId与tnpId只能填一个,两者都不填表示查询站点下所有underlay数据。 "a99f794e-b510-438c-a75d-de59f02347eb" tnpId 否 uuid - - TNP ID。格式是uuid,vpnId与tnpId只能填一个,两者都不填表示查询站点下所有underlay数据。 "a99f794e-b510-438c-a75d-de59f02347eb" siteId 是 uuid - - 站点ID。格式是uuid。 "a99f794e-b510-438c-a75d-de59f02347eb"
  • 请求示例 HTTP的示例 GET /controller/campus/v1/sdwan/routing-protocol/ospf/global?vpnId=a99f794e-b510-438c-a75d-de59f02347eb&tnpId=a99f794e-b510-438c-a75d-de59f02347eb&siteId=a99f794e-b510-438c-a75d-de59f02347eb 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
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/sdwan/policy/traffic/escape/qos-policies 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 { "qosPolicies" : [ { "id" : "00000000-0000-0000-0000-000000000000", "siteId" : "271ccbca-138c-4dee-aae5-c98e9296074c", "siteName" : "hub", "policyName" : "qos1", "priority" : 1, "trafficTemplateId" : "00000000-0000-0000-0000-000000000000", "trafficTemplateName" : "qosClassificationName", "wanQosProfileId" : "00000000-0000-0000-0000-000000000000", "wanQosProfileName" : "templateName" } ] }
  • 响应示例 返回状态码为200:修改成功,响应体参考EscapeQosPolicyResponse。 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" : [ { "id" : "00000000-0000-0000-0000-000000000000", "siteId" : "271ccbca-138c-4dee-aae5-c98e9296074c", "siteName" : "hub", "policyName" : "qos1", "priority" : 1, "trafficTemplateId" : "00000000-0000-0000-0000-000000000000", "trafficTemplateName" : "qosClassificationName", "wanQosProfileId" : "00000000-0000-0000-0000-000000000000", "wanQosProfileName" : "templateName" } ], "fail" : [ { "errcode" : "0x00c8000c", "errmsg" : "The parameter is invalid.", "data" : { "id" : "00000000-0000-0000-0000-000000000000", "siteId" : "271ccbca-138c-4dee-aae5-c98e9296074c", "siteName" : "hub", "policyName" : "qos1", "priority" : 1, "trafficTemplateId" : "00000000-0000-0000-0000-000000000000", "trafficTemplateName" : "qosClassificationName", "wanQosProfileId" : "00000000-0000-0000-0000-000000000000", "wanQosProfileName" : "templateName" } } ], "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的示例 GET /controller/campus/v1/sdwan/netstream/00000000-0000-0000-0000-000000000000/interface 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
共100000条