华为云用户手册

  • URI /controller/campus/v1/networkservice/networkconfig/net/lldp/sites/{siteId}/lldp 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 string 36个字符。 - 站点ID, UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e"
  • 硬件安装云化设备 根据部署规划时的网络设备安装点位设计、设备间互联等信息,完成网络设备的硬件安装、连线、上电等操作,参见表1。 表1 硬件安装与布线任务一览表 任务 任务说明 参考链接 安装硬件设备 硬件设备安装需要遵循施工规范,常见的硬件施工规范有: 物理设备必须可靠接地。 物理设备谨慎搬运,要连带外纸箱或泡沫垫,不要裸机搬运。 所有光纤、网线、高速电缆和电源线分开布线,规范折弯有序捆扎。 所有光纤、网线和电源线需要考虑长度和传输距离是否能够满足环境的需求。 请单击以下设备名称,进入“硬件安装与维护指南”手册,查看对应设备款型的安装指导。 若无法找到,请在搜索框中输入设备款型查找安装指导。 AR 交换机 AP 连接线缆 根据布线规划完成线缆连接,连接时注意按照规范在线缆两端打上标签。 设备配电、上电 请按照规划的配电参数和各个产品的产品文档来执行设备上电操作。
  • 响应示例 返回状态码为200:更新成功,响应体参考NatResponse。 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" : [ { "vpnId" : "00000000-0000-0000-0000-000000000000", "siteId" : "00000000-0000-0000-0000-000000000000", "deviceId" : "00000000-0000-0000-0000-000000000000", "policyId" : "00000000-0000-0000-0000-000000000000", "policyName" : "test name", "globalStartAddress" : "192.168.1.1", "globalEndAddress" : "192.168.1.2", "insideStartAddress" : "192.168.1.1", "insideEndAddress" : "192.168.1.2", "globalSourcePort" : "1", "globalEndPort" : "2", "insideSourcePort" : "1", "insideEndPort" : "2", "protocol" : "6", "reverse" : true, "interfaceId" : "00000000-0000-0000-0000-000000000000", "interfaceName" : "GE0/0/0" } ], "fail" : [ { "errcode" : "0x00c8000c", "errmsg" : "The parameter is invalid.", "errparam" : "["policyName"]", "data" : { "vpnId" : "00000000-0000-0000-0000-000000000000", "siteId" : "00000000-0000-0000-0000-000000000000", "deviceId" : "00000000-0000-0000-0000-000000000000", "policyId" : "00000000-0000-0000-0000-000000000000", "policyName" : "test name", "globalStartAddress" : "192.168.1.1", "globalEndAddress" : "192.168.1.2", "insideStartAddress" : "192.168.1.1", "insideEndAddress" : "192.168.1.2", "globalSourcePort" : "1", "globalEndPort" : "2", "insideSourcePort" : "1", "insideEndPort" : "2", "protocol" : "6", "reverse" : true, "interfaceId" : "00000000-0000-0000-0000-000000000000", "interfaceName" : "GE0/0/0" } } ] }
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/sdwan/policy/traffic/nat/natserver 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 { "natServerInfos" : [ { "vpnId" : "00000000-0000-0000-0000-000000000000", "siteId" : "00000000-0000-0000-0000-000000000000", "deviceId" : "00000000-0000-0000-0000-000000000000", "policyId" : "00000000-0000-0000-0000-000000000000", "policyName" : "test name", "globalStartAddress" : "192.168.1.1", "globalEndAddress" : "192.168.1.2", "insideStartAddress" : "192.168.1.1", "insideEndAddress" : "192.168.1.2", "globalSourcePort" : "1", "globalEndPort" : "2", "insideSourcePort" : "1", "insideEndPort" : "2", "protocol" : "6", "reverse" : true, "interfaceId" : "00000000-0000-0000-0000-000000000000", "interfaceName" : "GE0/0/0" } ] }
  • 响应示例 返回状态码为200:接口调用成功,响应体参考ApplicationInfoResp。 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" : [ { "name" : "Finance", "percent" : 20.5, "traffic" : 10.0, "unit" : "MB" } ] } 返回状态码为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:接口调用成功,响应体参考ApplicationInfoResp。 表2 ApplicationInfoResp对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~10个字符。 - 错误码信息。 "0" errmsg string 0~256个字符。 - 结果信息。 "" data ARRAY_REFERENCE 0-2147483647个列表项,详细请参见表3。 查询到的TopN应用列表信息。 - 表3 ApplicationInfoDetail对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 name string 0~256个字符。 - 应用或应用分类名称。 "Finance" percent float [0-100] - 流量占总流量的比值。 20.5 traffic float [0-340282350000000000000000000000000000000] - 应用或者应用类型上行流量与下行流量总和大小。 10.0 unit string 0~256个字符。 - 流量单位。 "MB" 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 GET /controller/campus/v1/performanceservice/application/apptraffic/topapp?siteId=ea25fdbf-8dee-4823-bac2-5bfe8e3359ca&appDimension=apptype&timeDimension=day&top=5 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/performanceservice/application/apptraffic/topapp 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 否 string - - 站点ID,如果为空,代表租户维度。 "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca" appDimension 是 string app apptype apptype 查询维度,app---按应用名称统计topn流量、apptype---按应用类型统计topn流量。 "apptype" timeDimension 是 string day week month day 统计周期,day---统计前一天的数据、week---统计前一周的数据、month---统计前一个月的数据。 "day" top 是 int32 5 5 top流量数据个数,当前目前只支持范围5。 5
  • 响应示例 返回状态码为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" : "", "pageIndex" : 1, "pageSize" : 20, "totalRecords" : 20, "data" : [ { "id" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca", "deviceName" : "ap-1", "deviceEsn" : "2102350KGF9WJ9000124", "deviceId" : "00000000-0000-0000-0000-000000000000", "deviceStatus" : 0, "slot" : 0, "ifType" : "ethernet", "cardSn" : "42005", "cardStatus" : "present", "cardConnectStatus" : "match", "centeralFrequency" : "2450", "firmwareVersion" : "1.1.7 (700)", "syncStatus" : "SUCCESS", "syncFailureReason" : "", "syncOperateTime" : "", "vendorName" : "ENJOYOR", "cardType" : "TOEAPV1.2", "protocolVersion" : "1", "hardwareVersion" : "VA", "serverConnectStatus" : 1, "serverName" : "-", "cardIp" : "0.0.0.0", "cardMac" : "xxxx-xxxx-xxxx", "interfaceName" : "Ethernet0/0/0", "bandWidth" : 0, "receivePackages" : 0, "sendPackages" : 0, "upwardSpeed" : 0, "downwardSpeed" : 0, "upwardTraffic" : 0, "downwardTraffic" : 0, "subnetMask" : "24", "gatewayAddress" : "0.0.0.0", "physicalConnectType" : "PCIE" } ] } 返回状态码为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
  • 响应参数 返回状态码为200:响应对象 表3 QueryCardInfoOutPut对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" pageIndex int32 [1-500] - 分页的序号 1 pageSize int32 [10-100] - 页大小 20 totalRecords int32 [0-5000] - 总数量。 20 data ARRAY_REFERENCE 0-5000个列表项,详细请参见表4。 AP IOT卡信息。 - 表4 IotCardInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 0~64个字符。 - 该条记录的唯一标识ID。 "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca" deviceName string 0~256个字符。 - 设备名称。 "ap-1" deviceEsn string 0~64个字符。 - 设备ESN。 "2102350KGF9WJ9000124" deviceId string 0~64个字符。 - 设备Id。 "00000000-0000-0000-0000-000000000000" deviceStatus int32 [0-64] - 设备状态。 0 slot int32 [0-64] - 卡槽号。 0 ifType string 0~64个字符。 - 接口类型。 "ethernet" cardSn string 0~256个字符。 - IOT插卡SN号。 "42005" cardStatus string 0~30个字符。 - 卡状态。 "present" cardConnectStatus string 0~30个字符。 - 卡连接状态。 "match" centeralFrequency string 0~64个字符。 - 中心频率。 "2450" firmwareVersion string 0~512个字符。 - 固件版本。 "1.1.7 (700)" syncStatus string 0~64个字符。 - 同步状态。 "SUCCESS" syncFailureReason string 0~64个字符。 - 同步失败原因。 "" syncOperateTime string 0~64个字符。 - 同步完成时间。 - vendorName string 0~512个字符。 - 开发商。 "ENJOYOR" cardType string 0~512个字符。 - iot卡类型。 "TOEAPV1.2" protocolVersion string 0~512个字符。 - 协议版本。 "1" hardwareVersion string 0~512个字符。 - 硬件版本。 "VA" serverConnectStatus int32 [0-1] - 服务器连接状态。 1 serverName string 0~64个字符。 - 服务器名称。 "-" cardIp string 0~64个字符。 - IoT卡IP。 "0.0.0.0" cardMac string 0~32个字符。 - IoT卡MAC。 "xxxx-xxxx-xxxx" interfaceName string 0~64个字符。 - 接口名称。 "Ethernet0/0/0" bandWidth int64 [0-1000000000000] - 带宽。 0 receivePackages int64 [0-9223372036854775807] - 接收包 0 sendPackages int64 [0-9223372036854775807] - 发送包。 0 upwardSpeed int64 [0-1000000000000] - 上行速率。 0 downwardSpeed int64 [0-1000000000000] - 下行速率。 0 upwardTraffic int64 [0-9223372036854775807] - 上行流量。 0 downwardTraffic int64 [0-9223372036854775807] - 下行流量。 0 subnetMask string 0~64个字符。 - 子网掩码。 "24" gatewayAddress string 0~64个字符。 - 网关地址。 "0.0.0.0" physicalConnectType string 0~64个字符。 - 物理连接类型。 "PCIE" 返回状态码为400:非法参数 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 POST /controller/campus/v3/devoam/apiot/querycardinfo 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 { "siteId" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca", "pageIndex" : 1, "pageSize" : 10, "keyword" : "123", "syncStatus" : [ "" ] }
  • 响应示例 返回状态码为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-nat-policy:nat-policy-rules 表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的示例 PUT /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-nat-policy:nat-policy-rules 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-nat-policy:nat-policy-rules" : [ { "config-status" : "configured-database-success", "last-committed-time" : "2022-01-01 00:00:00", "related-pkg-version" : "1.0.1", "edit-state" : "RUNNING", "name" : "rules@name", "action" : { "source-nat" : { "address-group-name" : "addressgroupname" } }, "source-zone" : [ "sourcezone" ], "destination-zone" : [ "destinationzonename" ], "egress-interface" : [ "egressinterfacename" ], "source-nat" : { "address-group-name" : "addressgroupname", "easy-ip" : "True" }, "source-address" : { "address-ipv4s" : { "address-ipv4" : [ { "ipv4" : "10.1.1.1", "mask" : "255.255.0.0" } ] }, "address-ipv4-ranges" : { "address-ipv4-range" : [ { "start-ipv4" : "10.1.1.1", "end-ipv4" : "10.1.1.1" } ] } }, "destination-address" : { "address-ipv4s" : { "address-ipv4" : [ { "ipv4" : "10.1.1.1", "mask" : "255.255.0.0" } ] }, "address-ipv4-ranges" : { "address-ipv4-range" : [ { "start-ipv4" : "10.1.1.1", "end-ipv4" : "10.1.1.1" } ] } }, "service" : { "service-items" : { "protocol-and-ports" : { "protocol-and-port" : [ { "protocol" : "tcp", "source-port" : "65501", "dest-port" : "65502" } ] }, "protocol" : { "protocol-id" : [ 199 ] } } } } ] }
  • 响应示例 返回状态码为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" : [ { "name" : "vpn_1", "description" : "Default", "vpnNameInDevice" : "vpn_1", "id" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "siteRouteDistinguishers" : [ { "siteId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "routeDistinguisher" : "101:3" } ], "overlayHeadLength" : 36, "siteIds" : ["fbb684c8-0d37-496f-bafa-4b06d5151e2e"], "ipsecEncryption" : true, "enableIPv6" : true, "defaultVpn" : true, "vpnIndex" : 0, "deleteStatus" : true } ], "fail" : [ { "errcode" : "0", "errmsg" : "", "data" : { "name" : "vpn_1", "description" : "Default", "vpnNameInDevice" : "vpn_1", "id" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "siteRouteDistinguishers" : [ { "siteId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "routeDistinguisher" : "101:3" } ], "overlayHeadLength" : 36, "siteIds" : ["fbb684c8-0d37-496f-bafa-4b06d5151e2e"], "ipsecEncryption" : true, "enableIPv6" : true, "defaultVpn" : true, "vpnIndex" : 0, "deleteStatus" : true } } ] } 返回状态码为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/overlay-network/vpn 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 { "vpns" : [ { "name" : "vpn_1", "description" : "Default", "vpnNameInDevice" : "vpn_1", "id" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "siteRouteDistinguishers" : [ { "siteId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "routeDistinguisher" : "101:3" } ], "overlayHeadLength" : 36, "siteIds" : ["fbb684c8-0d37-496f-bafa-4b06d5151e2e"], "ipsecEncryption" : true, "enableIPv6" : true } ] }
  • 响应参数 返回状态码为200:查询成功。 表2 GetStpProtectionResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" data REFERENCE 详细请参见表3。 - - 表3 StpProtectionViewDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 stpProtectionConfigs ARRAY_REFERENCE 0-1000个列表项,详细请参见表4。 查询交换机STP保护配置数据列表。 - 表4 LSWStpProtectionGetDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 deviceId uuid - - 设备ID。 "fbb684c8-0d37-406f-bafa-4b06d6151e2e" edgedPortEnable boolean true false false 全局边缘端口使能。默认值为false。 false bpduProtection boolean true false true BPDU保护开关状态。默认值为true。 true autoRecoveryInterval int64 30~86400个字符。 - 自动恢复周期(秒)。 3000 upstreamEnable boolean true false false 上行口自动修正。默认值为false。 false deviceEsn string - - 设备ESN。 "2102350DLWDMG4000025" deviceName string - - 设备Name。 "LSW" 返回状态码为500:内部服务错误 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为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" : "", "data" : { "stpProtectionConfigs" : [ { "deviceId" : "fbb684c8-0d37-406f-bafa-4b06d6151e2e", "edgedPortEnable" : false, "bpduProtection" : true, "autoRecoveryInterval" : 3000, "upstreamEnable" : false, "deviceEsn" : "2102350DLWDMG4000025", "deviceName" : "LSW" } ] } } 返回状态码为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/v1/networkservice/networkconfig/net/lswstpprotection/sites/{siteId}/stpprotection 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 uuid - - 站点ID。 "fbb684c8-0d37-496f-bafa-4b06d6151e2e"
  • 请求示例 HTTP的示例 GET /controller/campus/v1/networkservice/networkconfig/net/lswstpprotection/sites/fbb684c8-0d37-496f-bafa-4b06d6151e2e/stpprotection 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 /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-syslog:syslog-config/info-center-source 表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-syslog:syslog-config/info-center-source 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
  • 响应示例 返回状态码为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-vpn:vpn 是 REFERENCE 详细请参见表4。 VPN配置参数。 -
  • 请求示例 HTTP的示例 PUT /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-vpn:vpn/vpn1 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-vpn:vpn" : [ { "config-status" : "configured-database-success", "last-committed-time" : "2022-01-01 00:00:00", "related-pkg-version" : "1.0.1", "edit-state" : "RUNNING", "instance-name" : "vpn1", "af" : [ { "type" : "ipv4-unicast", "route-distinguisher" : "1:1", "vpn-target" : [ { "value" : "1:1", "vpn-target-type" : "export-extcommunity" } ], "import-policy" : "policy1", "export-policy" : "policy2" } ] } ] }
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-vpn:vpn/{instance-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" instance-name 是 string 1~31个字符。 - VPN实例名,单一主键字段。 "vpn1"
  • 响应示例 返回状态码为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" : "" }
  • 请求示例 HTTP的示例 POST /controller/campus/v1/networkconfigservice/deploy/devices/fbde1c5d-5b94-49e3-a912-18641015e23c/alldeploy 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:操作成功。 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
共100000条