华为云用户手册

  • 请求示例 HTTP的示例 GET /controller/campus/v1/sdwan/net/dhcpv6/bfd?pageIndex=1&pageSize=20&siteId=00000000-0000-0000-0000-000000000000&tnpId=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:查询BFD for DHCPv6返回体,参考QueryBfdResponse。 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" : 10, "pageSize" : 20, "pageIndex" : 1, "data" : [ { "id" : "00000000-0000-0000-0000-000000000000", "siteId" : "00000000-0000-0000-0000-000000000000", "deviceId" : "00000000-0000-0000-0000-000000000000", "tnpId" : "00000000-0000-0000-0000-000000000000", "minRxInterval" : 100, "detectMultiplier" : 3 } ] } 返回状态码为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:查询BFD for DHCPv6返回体,参考QueryBfdResponse。 表2 QueryBfdResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" totalRecords integer - - 总数据条数。 10 pageSize integer - 20 每页显示数量,默认20。 20 pageIndex integer - - 当前页,从1开始。 1 data ARRAY_REFERENCE 0-1000个列表项,详细请参见表5。 BFD信息。 - 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 POST /controller/campus/v1/sdwan/policy/security/zone 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 { "securityInfo" : [ { "id" : "000000-0000-0000-0000-000000000000", "name" : "test_1", "description" : "XXX", "priority" : 50, "attackDefenseEnable" : false, "isDefault" : false } ] }
  • 响应示例 返回状态码为201:创建成功,响应体参考AddressSetResponse。 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" : "000000-0000-0000-0000-000000000000", "name" : "test_1", "description" : "XXX", "priority" : 50, "attackDefenseEnable" : false, "isDefault" : false } ], "fail" : [ { "errcode" : "0x00c8000c", "errmsg" : "The parameter is invalid.", "data" : { "id" : "000000-0000-0000-0000-000000000000", "name" : "test_1", "description" : "XXX", "priority" : 50, "attackDefenseEnable" : false, "isDefault" : false } } ] } 返回状态码为202:请求正在处理中,请求处理详情请通过查询业务编排结果,确认是否处理成功。响应体参考SecurityZoneTimeOutResponse。 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 { "errcode" : "0", "errmsg" : "", "success" : [ { "id" : "000000-0000-0000-0000-000000000000", "name" : "test_1", "description" : "XXX", "priority" : 50, "attackDefenseEnable" : false, "isDefault" : false } ], "fail" : [ { "errcode" : "0x00c8000c", "errmsg" : "The parameter is invalid.", "data" : { "id" : "000000-0000-0000-0000-000000000000", "name" : "test_1", "description" : "XXX", "priority" : 50, "attackDefenseEnable" : false, "isDefault" : false } } ], "processInstanceId" : "" } 返回状态码为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-cli:command-aliases/command-alias 表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"
  • 请求示例 HTTP的示例 DELETE /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-cli:command-aliases/command-alias 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:操作成功。 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 /controller/campus/api/v1/networkconfig/lswospf/{deviceId}/{ospfId}/area 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string 36个字符。 - 设备ID,UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" ospfId 是 string 32个字符。 - OSPF ID。 "a63b91f86bbe415a92a4a5af437c858f"
  • 响应示例 返回状态码为200:lsw ospf区域信息返回结构体。 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 { "data" : { "processId" : "1", "area" : { "areaType" : "stub", "areaId" : "60e2e8a3cdf3470ea4d4f468c8b74095", "areaUUID" : "", "networkList" : ["192.168.0.1/24"], "abrSummaryList" : [ { "ipAddress" : "192.168.0.1/24" } ], "stubNoSummary" : false } }, "errcode" : "0", "errmsg" : "" }
  • 请求示例 HTTP的示例 POST /controller/campus/api/v1/networkconfig/lswospf/fbb684c8-0d37-496f-bafa-4b06d5151e2e/a63b91f86bbe415a92a4a5af437c858f/area 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 { "processId" : "1", "area" : { "areaType" : "stub", "areaId" : "60e2e8a3cdf3470ea4d4f468c8b74095", "areaUUID" : "", "networkList" : ["192.168.0.1/24"], "abrSummaryList" : [ { "ipAddress" : "192.168.0.1/24" } ], "stubNoSummary" : false } }
  • 响应示例 返回状态码为200:查询成功,响应体参考QueryTacacsServerTemplateResp。 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" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "deviceId" : "00000000-0000-0000-0000-000000000000", "templateName" : "server1", "descr" : "server1 is in SD", "primaryAuthenServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000" }, "enableSecondAuthen" : true, "secondAuthenServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000" }, "enableThirdAuthen" : true, "thirdAuthenServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000" }, "primaryAuthorServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000" }, "enableSecondAuthor" : true, "secondAuthorServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000" }, "enableThirdAuthor" : true, "thirdAuthorServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000" }, "enablePrimaryAccount" : true, "primaryAccountServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000" }, "enableSecondAccount" : true, "secondAccountServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000" }, "enableThirdAccount" : true, "thirdAccountServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000" }, "isContainDomainName" : true, "passwordKey" : "Example@123", "sourceIp" : "10.134.6.5", "tempalteId" : "00000000-0000-0000-0000-000000000000" } ], "pageIndex" : 1, "pageSize" : 10, "totalRecords" : 100 } 返回状态码为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:查询成功,响应体参考QueryTacacsServerTemplateResp。 表2 QueryTacacsServerTemplateResp对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~10个字符。 - 错误码。 "0" errmsg string 0~255个字符。 - 错误描述。 "" data ARRAY_REFERENCE 0-10个列表项,详细请参见表3。 HWTACA CS 服务模板信息列表 - pageIndex int32 [1-10000] - 当前页,从1开始。 1 pageSize int32 [1-10000] - 页大小。 10 totalRecords int32 [1-100000] - 总记录数。 100 表3 TacacsServerTemplate对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 siteId uuid - - 站点ID,UUID格式。 "00000000-0000-0000-0000-000000000000" deviceId uuid - - 设备ID,UUID格式。 "00000000-0000-0000-0000-000000000000" templateName string 1~32个字符。 - 模板名称,创建后不允许修改。 "server1" descr string 0~128个字符。 - 描述。 "server1 is in SD" primaryAuthenServerInfo REFERENCE 详细请参见表6。 主认证服务信息 - enableSecondAuthen boolean true false - 是否使能备认证服务器。 当为 false 时表示去使能备认证服务器,为 true 时表示使能备认证服务器,不填写时表示维持创建时的配置。 true secondAuthenServerInfo REFERENCE 详细请参见表6。 备认证服务信息 - enableThirdAuthen boolean true false - 是否使能第三认证服务器。 当为 false 时表示去使能备认证服务器,为 true 时表示使能备认证服务器,不填写时表示维持创建时的配置。 true thirdAuthenServerInfo REFERENCE 详细请参见表6。 备认证服务信息 - primaryAuthorServerInfo REFERENCE 详细请参见表6。 主授权服务信息 - enableSecondAuthor boolean true false - 是否使能备授权服务器。 当为 false 时表示去使能备授权服务器,为 true 时表示使能备授权服务器,不填写时表示维持创建时的配置。 true secondAuthorServerInfo REFERENCE 详细请参见表6。 备授权服务信息 - enableThirdAuthor boolean true false - 是否使能备授权服务器。 当为 false 时表示去使能备授权服务器,为 true 时表示使能备授权服务器,不填写时表示维持创建时的配置。 true thirdAuthorServerInfo REFERENCE 详细请参见表6。 备授权服务信息 - enablePrimaryAccount boolean true false - 是否使能主计费服务器。 当为 false 时表示去使能主计费服务器,为 true 时表示使能主计费服务器,不填写时表示维持创建时的配置。 true primaryAccountServerInfo REFERENCE 详细请参见表6。 主记账服务信息 - enableSecondAccount boolean true false - 是否使能备计费服务器。 当为 false 时表示去使能备计费服务器,为 true 时表示使能备计费服务器,不填写时表示维持创建时的配置。 true secondAccountServerInfo REFERENCE 详细请参见表6。 备记账服务信息 - enableThirdAccount boolean true false - 是否使能备计费服务器。 当为 false 时表示去使能备计费服务器,为 true 时表示使能备计费服务器,不填写时表示维持创建时的配置。 true thirdAccountServerInfo REFERENCE 详细请参见表6。 备记账服务信息 - isContainDomainName boolean true false - 是否包含 域名 ,默认false。 true passwordKey password 1~255个字符。 - 该字段可能包含敏感信息和个人数据,请妥善做好保护。 共享密钥,建议长度不小于8位。 "Example@123" sourceIp string 0~64个字符。 - 设备与HWTACACS服务器通信的源IPv4地址。 若上述6个服务器信息中填写有VPNID时必填。 "10.134.6.5" tempalteId uuid - - 模板ID,UUID格式。 "00000000-0000-0000-0000-000000000000" 返回状态码为400:请求参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:内部异常。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 GET /controller/campus/v1/sdwan/aaa/tacaservertemplate?pageIndex=1&pageSize=10&siteId=00000000-0000-0000-0000-000000000000&deviceId=00000000-0000-0000-0000-000000000000&templateName=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-yyyyyy
  • URI /controller/campus/v1/sdwan/aaa/tacaservertemplate 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 pageIndex 否 int32 [1-10000] - 起始页,默认值1。 1 pageSize 否 int32 [1-100] 10 页行记录数,默认值10。 10 siteId 否 uuid - - 站点ID,UUID格式。 "00000000-0000-0000-0000-000000000000" deviceId 否 uuid - - 设备ID,UUID格式。 "00000000-0000-0000-0000-000000000000" templateName 否 string 1~32个字符。 - HWTACACS服务器模板名称。 "name"
  • 响应示例 返回状态码为200:查询成功,响应体参考QueryRadiusServerTemplateRsp。 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" : "", "pageIndex" : 1, "pageSize" : 10, "totalRecords" : 100, "data" : [ { "id" : "c6c76e11-6f75-41fb-8d90-594323c9f811", "templateInfo" : { "name" : "RadiusServer1", "desc" : "RADIUS服务器", "isContainDomainName" : true, "sharedKey" : "Example@123", "primaryAuthenServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10 }, "secondAuthenServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10 }, "primaryAccountServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10 }, "secondAccountServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10 } }, "createTime" : "1604909066000" } ] } 返回状态码为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:查询成功,响应体参考QueryRadiusServerTemplateRsp。 表2 QueryRadiusServerTemplateRsp对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~10个字符。 - 错误码。 "0" errmsg string 0~255个字符。 - 错误描述。 "" pageIndex int32 [1-10000] - 当前页,从1开始。 1 pageSize int32 [1-10000] - 页大小。 10 totalRecords int32 [1-100000] - 总记录数。 100 data ARRAY_REFERENCE 0-10000个列表项,详细请参见表3。 RADIUS服务器模板信息 - 表3 DetailedRadiusServerTemplateInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 0~36个字符。 - RADIUS服务器模板ID "c6c76e11-6f75-41fb-8d90-594323c9f811" templateInfo REFERENCE 详细请参见表6。 - - createTime string 0~13个字符。 - 创建时间 "1604909066000" 返回状态码为400:请求参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:内部异常。 详细信息请参见实际响应消息体。
  • URI /controller/campus/rest/sdwan/v2/radius/template 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 pageIndex 是 int32 [0-10000] - 起始页。 pageIndex或pageSize为0时表示查询该租户下所有RADIUS服务器模板。 1 pageSize 是 int32 [0-100] 10 页行记录数。 pageIndex或pageSize为0时表示查询该租户下所有RADIUS服务器模板。默认值10。 10 name 否 string 0~32个字符。 - RADIUS服务器模板名称,模糊查询。 "radiusServer1"
  • 请求示例 HTTP的示例 GET /controller/campus/rest/sdwan/v2/radius/template?pageIndex=1&pageSize=10&name=radiusServer1 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
  • 响应示例 返回状态码为201:创建成功,响应体参考BroadCastResponse。 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" : "201", "errmsg" : "success", "data" : [ { "id" : "00000000-0000-0000-0000-000000000000", "policyName" : "policy1", "deviceId" : "00000000-0000-0000-0000-000000000000", "deviceName" : "hub", "interfaces" : [ { "interfaceId" : "00000000-0000-0000-0000-000000000000", "interfaceName" : "GE0/0/2" } ], "ruleCount" : 1, "aclRules" : [ { "ruleId" : "00000000-0000-0000-0000-000000000000", "priority" : 1, "action" : "permit", "protocol" : "TCP", "sourceIP" : "192.168.0.0/16", "destinationIP" : "192.168.0.0/16", "sourcePort" : 1, "destinationPort" : 1, "protocolNum" : 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/forward-broadcast/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 { "id" : "00000000-0000-0000-0000-000000000000", "policyName" : "policy1", "deviceId" : "00000000-0000-0000-0000-000000000000", "deviceName" : "hub", "interfaces" : [ { "interfaceId" : "00000000-0000-0000-0000-000000000000", "interfaceName" : "GE0/0/2" } ], "ruleCount" : 1, "aclRules" : [ { "ruleId" : "00000000-0000-0000-0000-000000000000", "priority" : 1, "action" : "permit", "protocol" : "TCP", "sourceIP" : "192.168.0.0/16", "destinationIP" : "192.168.0.0/16", "sourcePort" : 1, "destinationPort" : 1, "protocolNum" : 1 } ] }
  • 响应示例 返回状态码为200:请求成功,返回体参考QueryObservePortResponse。 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" : 100, "data" : [ { "siteId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "deviceName" : "AR101-S_3F386D", "portId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "portName" : "GE0/0/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的示例 GET /controller/campus/v1/lanwan/mirror/observeport?siteId=fbb684c8-0d37-496f-bafa-4b06d5151e2e&keyword=GE0/0/1&pageSize=10&pageIndex=10 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/lanwan/mirror/observeport 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 string 36个字符。 - 站点标识。uuid格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" keyword 否 string 0~128个字符。 - 筛选条件。 "GE0/0/1" pageSize 是 int32 [0-1000] - 一页数据数量。 10 pageIndex 是 int32 [0-1000] - 当前页数。 10
  • 响应参数 返回状态码为200:请求成功,返回体参考QueryObservePortResponse。 表2 QueryObservePortResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" totalRecords int32 [0-10000] - 总记录数。 100 data ARRAY_REFERENCE 0-1000个列表项,详细请参见表3。 查询到的观察口集合。 - 表3 ObservePortInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 siteId string 36个字符。 - 站点标识。uuid格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" deviceId string 36个字符。 - 设备标识。uuid格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" deviceName string 0~128个字符。 - 设备名称。 "AR101-S_3F386D" portId string 36个字符。 - 端口标识。uuid格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" portName string 0~128个字符。 - 观察口名称。 "GE0/0/1" 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-bgp:vpn-bgp/{vpn-instance} 表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" vpn-instance 是 string 1~31个字符。 - VPN,单一主键字段。 "_public_"
  • 请求示例 HTTP的示例 GET /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-bgp:vpn-bgp/_public_ 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:操作成功。 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-bgp:vpn-bgp" : [ { "config-status" : "configured-database-success", "last-committed-time" : "2022-01-01 00:00:00", "related-pkg-version" : "1.0.1", "edit-state" : "RUNNING", "vpn-instance" : "_public_", "router-id" : "10.1.0.0", "ipv4-unicast" : { "enable" : true, "default-route-import" : true, "route-select-delay" : 10, "reflector-cluster-id" : 10, "reflect-change-path" : true, "auto-frr" : true, "mode" : "be", "down-switch" : true, "route-relay-tunnel-v6-selector" : "policy1", "preference" : { "external" : 10, "internal" : 10, "local" : 10 }, "aggregate-route" : [ { "address" : "192.168.1.1", "mask" : 24 } ], "network-route" : [ { "address" : "192.168.1.2", "mask" : 24, "route-policy" : "policy1" } ], "import-routing" : [ { "protocol" : "static", "thead-id" : 10, "cost" : 10, "route-policy" : "policy1" } ], "evpn" : { "srv6" : { "mode" : "be", "down-switch" : true }, "locator" : [ { "name" : "name" } ] }, "advertise-l2-evpn" : { "advertise-route-to-evpn" : [ { "protocol" : "all", "advertise-route-mode" : "all" } ] }, "locator" : [ { "name" : "name" } ] }, "ipv6-unicast" : { "enable" : true, "default-route-import" : true, "route-select-delay" : 10, "reflector-cluster-id" : 10, "reflect-change-path" : true, "auto-frr" : true, "mode" : "be", "down-switch" : true, "route-relay-tunnel-v6-selector" : "policy1", "preference" : { "external" : 10, "internal" : 10, "local" : 10 }, "aggregate-route" : [ { "address" : "fc00::7", "mask" : 96 } ], "network-route" : [ { "address" : "fc00::7", "mask" : 96 } ], "import-routing" : [ { "protocol" : "static", "thead-id" : 10, "cost" : 10, "route-policy" : "policy1" } ], "evpn" : { "srv6" : { "mode" : "be", "down-switch" : true }, "locator" : [ { "name" : "name" } ] }, "advertise-l2-evpn" : { "advertise-route-to-evpn" : [ { "protocol" : "all", "advertise-route-mode" : "all" } ] }, "locator" : [ { "name" : "name" } ], "locator-routes" : [ { "locator-name" : "name" } ] }, "ipv4-vpn" : { "enable" : true, "policy-vpntarget" : true }, "l2vpn-evpn" : { "enable" : true, "policy-vpn-target" : true, "reflect-change-path" : true }, "link-state-unicast" : { "enable" : "True", "domain-identifier" : "192.168.1.1", "reflector-cluster-id" : 10 }, "ipv6-srpolicy" : { "enable" : "True", "nexthop-select-depend-type" : "default", "router-id-filter" : true }, "bgp-peer" : [ { "peer-ip" : "192.168.1.1", "peer-as" : "1", "local-as-number" : "1", "local-if-name" : "GE0/0/0", "local-if-address" : "192.168.1.1", "ebgp-max-hop" : 10, "auth-type" : "password", "password-type" : "cipher", "password-text" : "Example@123", "key-chain-name" : "aa", "timer" : { "keep-alive-time" : 10, "host-time" : 10, "connect-retry-time" : 10 }, "ipv4-unicast" : { "enable" : true, "allow-as-loop" : 1, "advertise-community" : true, "advertise-ext-community" : true, "nexthop-config" : "local", "prefix-sid" : "default", "reflect-client" : true, "export-route-policy" : "policy1", "import-route-policy" : "policy1", "route-update-interval" : 10 }, "ipv6-unicast" : { "enable" : true, "allow-as-loop" : 1, "advertise-community" : true, "advertise-ext-community" : true, "nexthop-config" : "local", "prefix-sid" : "default", "reflect-client" : true, "export-route-policy" : "policy1", "import-route-policy" : "policy1" }, "ipv4-vpn" : { "enable" : true, "export-route-policy" : "policy1", "import-route-policy" : "policy1" }, "l2vpn-evpn" : { "enable" : true, "reflect-client" : true, "export-route-policy" : "policy1", "import-route-policy" : "policy1" }, "link-state-unicast" : { "enable" : "True", "reflect-client" : true, "export-route-policy" : "policy1" }, "ipv6-srpolicy" : { "enable" : "True", "reflect-client" : true, "advertise-ext-community" : true, "graceful-restart-static-timer" : 3600 }, "bfd" : { "enable" : true, "multiplier" : 3, "min-rx-interval" : 10, "min-tx-interval" : 10 } } ] } ] } 返回状态码为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:设置随流检测配置成功后的状态返回码。 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" } 返回状态码为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 /v1/performanceservice/flow/modes 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 { "staticFlowMode" : [ { "vpnId" : "9a157da3-9e59-41c9-8312-254a38a3b275", "vpnName" : "vn1", "flowName" : "指定流", "flowId" : "512", "vpnMode" : 1 } ], "dynamicFlowMode" : [ { "vpnId" : "9a157da3-9e59-41c9-8312-254a38a3b275", "vpnName" : "vn1", "vpnMode" : 0 } ] }
共100000条
提示

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