华为云用户手册

  • 响应示例 返回状态码为200:查询AP站点模板IPV6开关配置的消息体。 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" : { "ipv6Enable" : 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
  • 请求示例 HTTP的示例 GET /controller/campus/v3/networkconfig/site-templates/fbb684c8-0d37-496f-bafa-4b06d5151e2e/ipv6 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
  • 请求示例 HTTP的示例 GET /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-nat-policy:nat-policy-rules/rules%40name 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-nat-policy:nat-policy-rules/{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~63个字符。 - 策略的名称,单一主键字段。 "rules@name"
  • 响应示例 返回状态码为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-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 ] } } } } ] } 返回状态码为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/vpn/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 { "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:正常响应返回体。返回的VPN信息中仅包含对应的ID。 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" : [ { "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,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:查询LACP LAG信息成功,响应体参考LacpLagInfoResultDto。 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" : { "ethtrunk" : [ { "lagId" : 1, "mode" : "lacp", "hash" : "diffluence", "leastActive" : 20, "maxActive" : 64, "opStatus" : "up", "portCount" : 10, "sysPrio" : 10, "sysId" : "xx:xx:xx:xx:xx:xx", "interfaces" : [ { "ifId" : 1, "ifName" : "interface 0/0/1", "remPrio" : 10, "remId" : "xx:xx:xx:xx:xx:xx", "ifOpStatus" : "up", "ifWeight" : 30 } ] } ] } }
  • 请求示例 HTTP的示例 GET /controller/campus/v1/networkresource/topomanager/device/d4e8513d-69f7-41bb-a3f5-b3a0fcc7b6e0/ethtrunk 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:查询LACP LAG信息成功,响应体参考LacpLagInfoResultDto。 表2 LacpLagInfoResultDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误描述。 "" data REFERENCE 详细请参见表3。 - - 表3 data对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 ethtrunk ARRAY_REFERENCE 0-1000个列表项,详细请参见表4。 Eth-trunk数据。 - 表4 EthTrunkDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 lagId integer - - LAG ID。 1 mode string - - trunk模式:lacp、manual。 "lacp" hash string - - 端口负载均衡的hash算法:dst-ip、dst-mac、src-ip、src-mac、src-dst-ip、src-dst-mac、enhanced、diffluence。 "diffluence" leastActive integer - - Eth-trunk中活动链路数量的下限。 20 maxActive integer - - 最大激活链路数。 64 opStatus string - - 操作状态:up、down。 "up" portCount integer - - Eth-trunk上行端口数量。 10 sysPrio integer - - 本地系统优先级。 10 sysId string - - 本地系统ID。 "xx:xx:xx:xx:xx:xx" interfaces ARRAY_REFERENCE 0-1000个列表项,详细请参见表5。 接口列表。 - 表5 EthTrunkInterfacesDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 ifId integer - - 接口ID。 1 ifName string - - 接口名称。 "interface 0/0/1" remPrio integer - - 远端系统优先级。 10 remId string - - 远端系统ID。 "xx:xx:xx:xx:xx:xx" ifOpStatus string - - 接口操作状态:up、down。 "up" ifWeight integer - - 接口负载的权重。 30
  • URI /controller/campus/v1/networkresource/topomanager/device/{deviceId}/ethtrunk 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string 36个字符。 - 设备ID,UUID格式。 "d4e8513d-69f7-41bb-a3f5-b3a0fcc7b6e0"
  • 响应示例 返回状态码为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-ipv4-urpf:ipv4-urpf 表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-ipv4-urpf:ipv4-urpf 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:查询子组织成功,响应体参考GetSubOrgOut。 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" : "", "subOrgs" : [ { "orgId" : "b473118d-17ff-4f4f-9fa9-a4c0e1e87e42", "path" : "/org1/org2", "level" : "2" } ] }
  • 请求示例 HTTP的示例 GET /controller/campus/api/v1/organization/id/sub-org?id=b473118d-17ff-4f4f-9fa9-a4c0e1e87e42 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
  • 注册华为坤灵帐号 华为坤灵帐号用来登录华为坤灵APP。华为坤灵APP是一款专门为工程商伙伴打造的一站式平台,在办公或家庭等小型网络场景下使用,该APP聚合了工程商所需的设备开局、远程维护、产品资讯、报价工具、场景化方案、营销物料等功能和内容。 下载坤灵APP。主要通过如下方式下载: 方式一:在华为应用市场搜索“华为坤灵”(iOS系统用户在APP Store搜索),按提示进行下载。 方式二:可通过网页浏览器的扫码功能,扫描图5所示的二维码进行下载。 图5 华为坤灵APP下载二维码 当前,iOS系统不支持华为坤灵APP的开局运维功能。 注册帐号。在华为坤灵APP界面点击“注册”,可以选择使用手机号注册或者使用邮箱注册。默认使用手机号注册。 使用手机号注册。按页面提示输入相关信息,并勾选我已阅读并同意《华为公司用户注册协议》和《隐私声明》,点击“注册”完成帐号注册。 使用邮箱注册。在注册页面选择“使用邮箱注册”,按页面提示输入相关信息,并勾选我已阅读并同意《华为公司用户注册协议》和《隐私声明》,点击“注册”完成帐号注册。
  • 注册华为乾坤帐号并登录控制台 访问华为乾坤控制台。 注册华为乾坤帐号。 如果MSP(渠道服务商)已帮您代建华为乾坤租户帐号,请跳转到步骤3。登录控制台后,建议您立即修改密码并签署隐私政策和华为乾坤云服务协议。 在登录页面单击“立即注册”。 图1 控制台登录页 默认进入“快速注册”页面,可单击“快速注册”页面上“常规注册”跳转常规注册。 快速注册。 输入手机号和验证码,勾选“我已阅读并同意隐私政策声明和华为乾坤云服务用户协议和最终用户许可协议”,单击“注册并登录”。 图2 快速注册页面 如果该号码已经注册华为乾坤帐号,将提示注册失败,点击弹窗中“返回登录”,使用该手机号或者绑定该手机号的用户名直接登录控制台。 设置密码,单击“确定”后登录到华为乾坤控制台。 图3 设置密码 常规注册。 设置租户名、用户名、手机号和验证码,勾选“我已阅读并同意隐私政策声明和华为乾坤云服务用户协议和最终用户许可协议”,单击“注册并登录”。 图4 注册页面 为提高安全性,密码设置要求如下,如果设置的密码不符合要求,请按照界面提示修改: 字符串形式,长度不小于8个字符,不超过32个字符。 至少包含1个字母和1个数字。 不能含用户名、用户手机号码和电子邮箱等敏感信息。 不建议使用密码强度低或常见的密码。 “用户名”和“密码”是用于登录控制台的帐号信息。此帐号相当于一级租户管理员,登录后还可以继续创建下级租户,进行分权分域管理。“租户名”相当于一个企业或客户名称,非必填。 注册成功后您将自动登录到华为乾坤控制台,同时您的注册手机号码将收到注册帐号信息。 登录华为乾坤控制台。 在图1输入“用户名/手机号”和“密码”,单击“登录”。或者选择“验证码登录”,输入“手机号”和“验证码”。若该手机号未注册过华为乾坤,则会跳转设置密码页面。 请牢记注册的华为乾坤帐号和密码,避免无法登录。 如果连续5次登录失败,界面会自动锁定(禁止登录)10分钟。 登录后不进行任何操作,30分钟后该帐号将自动登出。
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/sdwan/net/dhcpv6/bfd 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 { "ports" : [ { "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 } ] }
  • 响应示例 返回状态码为200:修改BFD for DHCPv6返回体,参考BfdResponse。 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" : "00000000-0000-0000-0000-000000000000", "deviceId" : "00000000-0000-0000-0000-000000000000", "tnpId" : "00000000-0000-0000-0000-000000000000", "minRxInterval" : 100, "detectMultiplier" : 3 } ], "fail" : [ { "errcode" : "0", "errmsg" : "", "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,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
  • 响应示例 返回状态码为201:设置站点时区成功,响应体参考SiteApiResponse。 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" : "", "success" : [ "a99f794e-b510-438c-a75d-de59f02347eb" ], "fail" : [ { "errcode" : "0", "errmsg" : "", "data" : "a99f794e-b510-438c-a75d-de59f02347eb" } ], "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/sdwan/net/site/timezone 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 { "siteTimeZones" : [ { "id" : "a99f794e-b510-438c-a75d-de59f02347eb", "timeZone" : "(UTC+08:00)Beijing,Chongqing,Hong Kong,Urumqi", "enableSummerConfig" : false, "enableAutoConfig" : true, "daylightSavingTime" : { "name" : "Atlantic/Canary", "offset" : "01:00", "enableWeekDay" : false, "startTime" : { "month" : "Jan", "time" : "23:59", "week" : "first", "weekday" : "Mon", "day" : 21 }, "stopTime" : { "month" : "Jan", "time" : "23:59", "week" : "first", "weekday" : "Mon", "day" : 21 } } } ] }
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteTimeZones 是 REFERENCE 详细请参见表2。 修改时区信息列表。 - 表2 SiteTimeZones对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteTimeZones 否 ARRAY_REFERENCE 1-100个列表项,详细请参见表3。 - - 表3 SiteTimeZone对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 id 否 uuid - - 站点ID,格式为uuid。修改时必填。 "a99f794e-b510-438c-a75d-de59f02347eb" timeZone 否 string 0~255个字符。 - 时区信息。 "(UTC+08:00)Beijing,Chongqing,Hong Kong,Urumqi" enableSummerConfig 否 boolean true false - 是否开启夏令时。默认值为false。 false enableAutoConfig 否 boolean true false - 是否自动给设备下发夏令时时间,当enableAutoConfig为true时,daylightSavingTime必须为空,控制器会根据时区自动获取夏令时时间并下发给站点内的设备,否则daylightSavingTime必填。默认值为true。 true daylightSavingTime 否 REFERENCE 详细请参见表4。 - - 表4 DaylightSavingTime对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 name 是 string 1~32个字符。 - 时区名称。可配置为英文,数字,特殊字符,其中特殊字符包含:_-/。 "Atlantic/Canary" offset 是 string 1~5个字符。 - 相对零时区间隔,格式为HH:MM,取值范围00:01-02:00。 "01:00" enableWeekDay 是 boolean true false - 夏令时使能周期。当enableWeekDay为true时,startTime和stopTime中week和weekday必填;当enableWeekDay为false时,startTime和stopTime中day必填。默认值为false。 false startTime 是 REFERENCE 详细请参见表5。 夏令时开始时间。 {"month":"Jan","time":"05:00"} stopTime 是 REFERENCE 详细请参见表5。 夏令时结束时间。 {"month":"Jan","time":"05:00"} 表5 DaylightTime对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 month 是 string Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec - 指定月份,取值范围为Jan(一月),Feb(二月),Mar(三月),Apr(四月),May(五月),Jun(六月),Jul(七月),Aug(八月),Sep(九月),Oct(十月),Nov(十一月),Dec(十二月)。 "Jan" time 是 string 5个字符。 - 指定时间,24小时制时间,格式为HH:MM。 "23:59" week 否 string 0~64个字符。 - 指定周,取值范围为first(月份起始的第一周),second(月份起始的第二周),third(月份起始的第三周),fourth(月份起始的第四周),fifth(月份起始的第五周),last(月份起始的最后一周)。 "first" weekday 否 string Mon Tue Wed Thu Fri Sat Sun - 指定工作日,取值范围为Mon(周一),Tue(周二),Wed(周三),Thu(周四),Fri(周五),Sat(周六),Sun(周日)。 "Mon" day 否 int16 [1-31] - 指定天,取值范围是1-31,2月只到28号。 21
  • 响应示例 返回状态码为200:删除成功,响应体参考CommonAaaResponse。 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" : "" } 返回状态码为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的示例 DELETE /controller/campus/v1/sdwan/aaa/authorization/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:操作成功。 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-dhcpv4:dhcpv4-global" : { "config-status" : "configured-database-success", "last-committed-time" : "2023-05-11 00:00:00", "related-pkg-version" : "1.0.1", "edit-state" : "RUNNING", "enable" : false, "option82" : { "global-formats" : { "global-format" : [ { "sub-option-type" : "remote-id", "option82-format" : "user-defined", "user-defind-text" : "77" } ] }, "encapsulation" : { "suboption" : "circuit-id remote-id subscriber-id vendor-specific-id" } } } } 返回状态码为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:操作成功。 表3 dhcpv4-global-info对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-e-dhcpv4:dhcpv4-global REFERENCE 详细请参见表4。 全局DHCP配置。 - 表4 dhcpv4-global对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 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个字符。 - 最后提交时间,该特性最后提交时间;不支持编辑,仅查询返回。 "2023-05-11 00:00:00" related-pkg-version string 0~255个字符。 - 包版本,插件包版本;不支持编辑,仅查询返回。 "1.0.1" edit-state string RUNNING CANDIDATE UNDEPLOYING UNDEPLOYED - 编辑状态,对应运行状态、候选状态、取消部署状态、未部署状态;不支持编辑,仅查询返回。 "RUNNING" enable boolean true false false 使能全局DHCP。 false option82 REFERENCE 详细请参见表5。 配置DHCP option82特性。AR6700V主设备和AR6700V子设备不支持。 - 表5 option82对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 global-formats REFERENCE 详细请参见表6。 Option82全局格式列表。 - encapsulation REFERENCE 详细请参见表8。 配置DHCP Option82域子选项。 - 表6 global-formats对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 global-format ARRAY_REFERENCE 详细请参见表7。 配置DHCP Option82全局模式。 - 表7 global-formats-global-format对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 sub-option-type string circuit-id remote-id circuit-remote - DHCP option82全局子选项类型,单一主键字段。 "remote-id" option82-format string common extend user-defined default type1 type2 self-define default-extra cn-telecom self-define-extra intracom-vxlan cn-telecom-inherit - DHCP option82子选项格式类型。 "user-defined" user-defind-text string 0~255个字符。满足正则表达([^ ]{0,})。 - 用户定义DHCP Option82格式。关键词包含: sysname, portname, porttype, iftype, mac, slot, subslot, port, sVLAN, cVLAN,和length.可进行如下配置: '%portname:%sVLAN.%cVLAN %sysname/0/0/0/0/0' 或 0 %length %sVLAN %5slot %3subslot %8port 等等。请参考用户操作手册获取更多信息。 "77" 表8 encapsulation对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 suboption string - circuit-id remote-id subscriber-id vendor-specific-id 配置DHCP Option82域子选项。 "circuit-id remote-id subscriber-id vendor-specific-id" 返回状态码为400:请求参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-dhcpv4:dhcpv4-global 表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的示例 GET /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-dhcpv4:dhcpv4-global 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"
  • 请求示例 HTTP的示例 POST /controller/campus/v1/sdwan/policy/traffic/woc/policies/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 { "effectImmediate" : true, "wocPolicies" : [ { "id" : "00000000-0000-0000-0000-000000000000", "name" : "WocPolicy" } ] }
共100000条