华为云用户手册

  • 请求参数 表2 header参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 restconf-transaction-id 是 string - - 事务ID。 "00000000-0000-0000-0000-000000000000" 表3 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-e-nat-policy:nat-policy-rules 是 REFERENCE 详细请参见表4。 配置策略。 -
  • 请求示例 HTTP的示例 PATCH /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-AC CES S-TOKEN: x-yyyyyy restconf-transaction-id: "00000000-0000-0000-0000-000000000000" { "huawei-nce-e-nat-policy:nat-policy-rules" : { "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 ] } } } } }
  • 响应示例 返回状态码为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 { "errcode" : "0", "errmsg" : "Success", "vpnModes" : { "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 } ] } } 返回状态码为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:查询随流检测防仿冒报文配置成功后的状态返回码。 表1 VpnModeOutPut对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "Success" vpnModes REFERENCE 详细请参见表2。 分页数据 - 表2 VpnModeInput对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 staticFlowMode ARRAY_REFERENCE 0-256个列表项,详细请参见表3。 静态流设置 - dynamicFlowMode ARRAY_REFERENCE 0-256个列表项,详细请参见表4。 动态流设置 - 表3 StaticVpnMode对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 vpnId string 0~36个字符。 - vpn id "9a157da3-9e59-41c9-8312-254a38a3b275" vpnName string 0~256个字符。 - vpn名称 "vn1" flowName string 0~256个字符。 - 指定流名称 "指定流" flowId string 0~4个字符。 - 指定流ID "512" vpnMode int32 [0-1] - vpn检测模式, 0-端到端检测, 1-逐跳检测 1 表4 DynamicVpnMode对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 vpnId string 0~36个字符。 - vpn id "9a157da3-9e59-41c9-8312-254a38a3b275" vpnName string 0~256个字符。 - vpn 名称 "vn1" vpnMode int32 [0-1] - vpn检测模式, 0-端到端检测, 1-逐跳检测 0 返回状态码为400:入参校验失败后的状态返回码。 详细信息请参见实际响应消息体。 返回状态码为500:接口发生内部错误后的状态返回码。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/sdwan/application/application-groups 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 { "applicationGroups" : [ { "id" : "00000000-0000-0000-0000-000000000000", "groupName" : "officeApp", "description" : "", "predefinedApps" : [ { "applicationId" : "2601", "applicationType" : "DPI", "applicationName" : "", "categoryName" : "", "categoryId" : "" } ], "customApps" : [ "00000000-0000-0000-0000-000000000000" ], "customApplications" : [ { "applicationName" : "", "applicationId" : "" } ], "saType" : "SA_H30071002", "shortId" : "", "experienceLevel" : "", "configId" : "00000000-0000-0000-0000-000000000000" } ] }
  • 响应示例 返回状态码为200:修改成功,响应体参考ApplicationGroupResponse。 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" : "OK", "errmsg" : "", "success" : [ { "id" : "00000000-0000-0000-0000-000000000000", "groupName" : "officeApp", "description" : "", "predefinedApps" : [ { "applicationId" : "2601", "applicationType" : "DPI", "applicationName" : "", "categoryName" : "", "categoryId" : "" } ], "customApps" : [ "00000000-0000-0000-0000-000000000000" ], "customApplications" : [ { "applicationName" : "", "applicationId" : "" } ], "saType" : "SA_H30071002", "shortId" : "", "experienceLevel" : "", "configId" : "00000000-0000-0000-0000-000000000000" } ], "fail" : [ { "errcode" : "0x00c8000c", "errmsg" : "The parameter is invalid.", "data" : { "id" : "00000000-0000-0000-0000-000000000000", "groupName" : "officeApp", "description" : "", "predefinedApps" : [ { "applicationId" : "2601", "applicationType" : "DPI", "applicationName" : "", "categoryName" : "", "categoryId" : "" } ], "customApps" : [ "00000000-0000-0000-0000-000000000000" ], "customApplications" : [ { "applicationName" : "", "applicationId" : "" } ], "saType" : "SA_H30071002", "shortId" : "", "experienceLevel" : "", "configId" : "00000000-0000-0000-0000-000000000000" } } ] } 返回状态码为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:批量查询站点列表返回体,响应体参考querySitesOut。 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" : [ { "id" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca", "tenantId" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca", "name" : "site1", "organizationId" : "671cbc38-38eb-49a5-88c4-d7a35bf5bf11", "organizationName" : "南京研究所", "description" : "site1", "type" : ["AP"], "latitude" : "50", "longtitude" : "111", "longitude" : "111", "contact" : "David", "tag" : ["abcd"], "isolated" : false, "email" : "xxx@xxx.xxx", "phone" : "152XXXXXXXX", "postcode" : "215000", "address" : "66 JiangYun Road", "approvalSwitch" : false, "autoApprovalSwitch" : false, "autoTopoCheck" : false, "validityPeriod" : 1, "siteCode" : "", "siteCodeExpireTime" : 1686131018523, "isSiteCodeExpired" : false, "totalDeviceCount" : 100, "siteTag" : "" } ] } 返回状态码为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:批量查询站点列表返回体,响应体参考querySitesOut。 表3 BatchQuerySitesOut对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 data ARRAY_REFERENCE 0-100个列表项,详细请参见表3。 站点信息。 - 返回状态码为400:参数校验异常,无响应体。 详细信息请参见实际响应消息体。 返回状态码为500:服务内部错误,无响应体。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 POST /controller/campus/v3/sites/action/batch-query 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 { "siteIds" : ["ea25fdbf-8dee-4823-bac2-5bfe8e3359ca"] }
  • 响应示例 返回状态码为200:查询成功,响应体参考EthernetCardOutputDto。 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" : 20, "pageIndex" : 1, "pageSize" : 20, "data" : [ { "apName" : "ap-1", "apEsn" : "2102350KGF9WJ9000124", "interfaceName" : "GigabitEthernet1/0/1", "cardSlot" : 1, "cardStatus" : "absent", "cardConnectStatus" : "match", "interfaceIndex" : 1, "deviceId" : "00000000-0000-0000-0000-000000000000", "deviceStatus" : 1, "upwardSpeed" : 2500, "downwardSpeed" : 2500, "upwardTraffic" : 2500, "downwardTraffic" : 2500, "receivePackages" : 2500, "sendPackages" : 2500, "cardIp" : "10.1.1.1", "cardMac" : "xx-xx-xx-xx-xx-xx", "cardSn" : "111", "centerFrequency" : 2500, "bandWidth" : 2500, "serverConnectStatus" : 0, "firmwareVersion" : "1.1.4 (516)", "hardwareVersion" : "3.1.1 (932)", "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 返回状态码为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:查询成功,响应体参考EthernetCardOutputDto。 表3 EthernetCardOutputDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码,当没有错误时返回0。 "0" errmsg string 0~256个字符。 - 错误信息。 "查询失败" totalRecords integer [0-2147483647] - 总数量。 20 pageIndex integer [0-2147483647] - 页面索引。 1 pageSize integer [0-2147483647] - 每页展示数量。 20 data ARRAY_REFERENCE 0-1000个列表项,详细请参见表4。 网口插卡数据。 - 表4 EthernetCardDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 apName string 0~64个字符。 - AP名称。 "ap-1" apEsn string 0~64个字符。 - AP序列号。 "2102350KGF9WJ9000124" interfaceName string 0~64个字符。 - 接口名称。 "GigabitEthernet1/0/1" cardSlot integer [0-8] - 卡槽号。 1 cardStatus string 0~64个字符。 present absent - 卡状态。 "absent" cardConnectStatus string 0~64个字符。 match mismatch - 卡连接状态。 "match" interfaceIndex integer - - 接口索引。 1 deviceId string 0~64个字符。 - 设备ID,UUID格式。 "00000000-0000-0000-0000-000000000000" deviceStatus integer 0 1 3 4 - 设备状态。取值范围:0---正常,1---告警,3---离线,4---未注册。 1 upwardSpeed int64 - - 接口上行速率,单位是bps。 2500 downwardSpeed int64 - - 接口下行速率,单位是bps。 2500 upwardTraffic int64 - - 接口上行流量,单位是Bytes。 2500 downwardTraffic int64 - - 接口下行流量,单位是Bytes。 2500 receivePackages int64 - - 接口上报周期内接收报文数。 2500 sendPackages int64 - - 接口上报周期内发送报文数。 2500 cardIp string 0~256个字符。 - 插卡IP。 "10.1.1.1" cardMac string 0~256个字符。 - 插卡MAC。 "xx-xx-xx-xx-xx-xx" cardSn string 0~64个字符。 - 插卡SN编号。 "111" centerFrequency int64 - - 中心频率,单位是GHz。 2500 bandWidth int64 - - 带宽,单位是Bytes。 2500 serverConnectStatus integer 0 1 - 与服务器连接状态,取值范围:0---建联、1---不建联。 0 firmwareVersion string 0~64个字符。 - 固件版本。 "1.1.4 (516)" hardwareVersion string 0~64个字符。 - 硬件版本。 "3.1.1 (932)" subnetMask string 0~64个字符。 - 子网掩码。 "24" gatewayAddress string 0~64个字符。 - 网关地址。 "0.0.0.0" physicalConnectType string 0~64个字符。 - 物理连接类型。 "PCIE" 返回状态码为400:校验异常,无响应体。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误,无响应体。 详细信息请参见实际响应消息体。
  • URI /controller/campus/v1/oamservice/apiot/ethernetcardlist/sites/{siteId} 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 string - - 站点ID,UUID格式。 "00000000-0000-0000-0000-000000000000" 表2 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 keyword 否 string 0~64个字符。 - 搜索关键字。匹配字段:设备ESN,是否必填:否。 "123" pageSize 否 integer [0-100] - 每页展示数量。是否必填:否。 20 pageIndex 否 integer [0-2147483647] - 页面索引。是否必填:否。 1
  • 请求示例 HTTP的示例 GET /controller/campus/v1/oamservice/apiot/ethernetcardlist/sites/00000000-0000-0000-0000-000000000000?keyword=123&pageSize=20&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
  • 响应示例 返回状态码为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-address-group:snat-address-group/{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~34个字符。 - 源NAT地址池名称,单一主键字段。 "name"
  • 请求示例 HTTP的示例 DELETE /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-nat-address-group:snat-address-group/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 restconf-transaction-id: "00000000-0000-0000-0000-000000000000"
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-dhcpv4:global-ip-pool 表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-dhcpv4:global-ip-pool" : [ { "config-status" : "configured-database-success", "last-committed-time" : "2022-01-01 00:00:00", "related-pkg-version" : "1.0.1", "edit-state" : "RUNNING", "gateway-list" : [ { "gateway-ip" : "10.1.1.1", "mask" : 24 } ], "section" : [ { "section-index" : 1, "start-ip" : "10.1.1.1", "end-ip" : "10.1.1.100" } ], "dns-list" : [ { "dns-ip" : "10.1.1.1" } ], "excluded-ip-address" : [ { "start-ip-address" : "10.1.1.10", "end-ip-address" : "10.1.1.20" } ], "static-bind" : [ { "static-bind-ip" : "10.1.1.1", "static-bind-mac" : "xxxx-xxxx-xxxx" } ], "option" : [ { "option-code" : 7, "ip-addresses" : [ "10.1.1.1" ], "ascii-string" : "test", "hex-string" : "00", "cipher-string" : "test@test", "sub-options" : { "sub-option" : [ { "sub-option-code" : 1, "ip-addresses" : [ "10.1.1.2" ], "ascii-string" : "test" } ] } } ], "ip-pool-name" : "pool1", "vpn-instance" : "overlay_vpn", "network-ipv4-address" : "10.1.1.0", "network-mask" : 24, "lease-time" : { "day" : 10, "hour" : 10, "minute" : 10, "unlimited" : true }, "domain-name" : "test.com" } ] } 返回状态码为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-dhcpv4:global-ip-pool 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 /v1/perfservice/alarms/shield-alarms/site-black-list 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" : "6fbed5b9-bd3a-4191-87b1-1bd4a7ee5d12", "alarmDefKeyList" : [ { "alarmId" : "1345678", "alarmGroupId" : "1345678" } ] }
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteAlarmBlackListInput 否 REFERENCE 详细请参见表2。 告警站点级黑名单规则创建参数。 - 表2 SiteAlarmBlackListInput对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 string 1~64个字符。 - 站点id "6fbed5b9-bd3a-4191-87b1-1bd4a7ee5d12" alarmDefKeyList 否 ARRAY_REFERENCE 1-200个列表项,详细请参见表3。 告警定义信息关键字列表 - 表3 DefinitionKey对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 alarmId 是 string 1~64个字符。 - 告警id "1345678" alarmGroupId 是 string 0~1024个字符。 - 告警分组id "1345678"
  • 响应示例 返回状态码为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" : "" } 返回状态码为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
  • 硬件安装云化设备 根据部署规划时的网络设备安装点位设计、设备间互联等信息,完成网络设备的硬件安装、连线、上电等操作,参见表1。 表1 硬件安装与布线任务一览表 任务 任务说明 参考链接 安装硬件设备 硬件设备安装需要遵循施工规范,常见的硬件施工规范有: 物理设备必须可靠接地。 物理设备谨慎搬运,要连带外纸箱或泡沫垫,不要裸机搬运。 所有光纤、网线、高速电缆和电源线分开布线,规范折弯有序捆扎。 所有光纤、网线和电源线需要考虑长度和传输距离是否能够满足环境的需求。 请单击以下设备名称,进入“硬件安装与维护指南”手册,查看对应设备款型的安装指导。 若无法找到,请在搜索框中输入设备款型查找安装指导。 防火墙 随板AC AP 连接线缆 根据布线规划完成线缆连接,连接时注意按照规范在线缆两端打上标签。 设备配电、上电 请按照规划的配电参数和各个产品的产品文档来执行设备上电操作。
  • 响应示例 返回状态码为200:接口调用成功,响应体参考password-policy-info。 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-local-user-policy:password-policy" : { "expire-days" : "", "history-record-number" : "", "change-check" : true, "alert-original" : 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
  • 响应参数 返回状态码为200:接口调用成功,响应体参考password-policy-info。 表2 password-policy-info对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-e-local-user-policy:password-policy REFERENCE 详细请参见表3。 - - 表3 password-policy对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 expire-days int32 [0-999] 90 密码过期时间,0表示没有过期时间。 - history-record-number int32 [0-12] 5 每个用户记录的历史密码最大个数。 - change-check boolean true false false 首次登陆提示修改密码。 true alert-original boolean true false - 密码告警。 true 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • URI /restconf/v1/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-local-user-policy:local-user-policy/password-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。 -
  • 请求示例 HTTP的示例 GET /restconf/v1/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-local-user-policy:local-user-policy/password-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
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-bd:bd/{bd-id} 表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" bd-id 是 int64 [1-16777215] - Bridge Domain ID,单一主键字段。 "10"
  • 请求示例 HTTP的示例 GET /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-bd:bd/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 restconf-transaction-id: "00000000-0000-0000-0000-000000000000"
共100000条
提示

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