华为云用户手册

  • 响应示例 返回状态码为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-queue-template:user-queue-profile" : [ { "config-status" : "reserved", "last-committed-time" : "last-committed-time", "related-pkg-version" : "related-pkg-version", "edit-state" : "RUNNING", "name" : "UserQueueProfile", "mode" : "normal", "description" : "test", "traffic-behavior-user-queue" : [ { "name" : "name", "scheduler-mode" : "pq", "weight" : 10, "cir" : 64, "pir" : 10, "cir-percent" : 20, "pir-percent" : 30, "cbs" : 10, "pbs" : 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
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-queue-template:user-queue-profile 表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-queue-template:user-queue-profile 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"
  • 响应参数 返回状态码为200:操作成功。 表3 user-queue-profile-list对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-e-queue-template:user-queue-profile ARRAY_REFERENCE 详细请参见表4。 QoS模板。 - 表4 nes-ne-user-queue-profile对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 config-status string reserved initial configuring-database configured-database-success configured-database-failed configuring-device configured-device-success configured-device-failed reserved 配置状态,对应保留未用状态、初始状态、数据库存储中状态、预配置状态、数据库存储失败状态、部署中状态、成功状态、失败状态;不支持编辑,仅查询返回。 "reserved" last-committed-time string 0~255个字符。 - 最后提交时间,该特性最后提交时间;不支持编辑,仅查询返回。 "last-committed-time" related-pkg-version string 0~255个字符。 - 包版本,插件包版本;不支持编辑,仅查询返回。 "related-pkg-version" edit-state string RUNNING CANDIDATE UNDEPLOYING UNDEPLOYED - 编辑状态,对应运行状态、候选状态、取消部署状态、未部署状态;不支持编辑,仅查询返回。 "RUNNING" name string 1~63个字符。满足正则表达[a-zA-Z0-9]([^\s]*)。 - 模板名称,单一主键字段。 "UserQueueProfile" mode string normal time-range 8cos-enhance - 模板模式。AR6700V主设备,AR6700V子设备和AR6700V-L款型不支持。 "normal" description string 1~63个字符。 - 描述。AR6700V主设备,AR6700V子设备和AR6700V-L款型不支持。 "test" traffic-behavior-user-queue ARRAY_REFERENCE 0-256个列表项,详细请参见表5。 流行为用户队列。 - 表5 nes-ne-user-queue-profile-traffic-behavior-user-queue对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 name string 1~31个字符。 - 流行为用户队列名称,单一主键字段。 "name" scheduler-mode string pq drr not-config - 调度模式。 "pq" weight int32 [1-100] - 权重。 10 cir int64 [64-100000000] - 承诺速率。 64 pir int64 [8-100000000] - 峰值速率。 10 cir-percent int32 [1-100] - 承诺百分比。 20 pir-percent int32 [1-100] - 峰值百分比。 30 cbs int64 [0-4194304] - 承诺突发尺寸。 10 pbs int64 [0-4194304] - 峰值突发尺寸。 10 返回状态码为400:请求参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 POST /controller/campus/v1/sdwan/policy/traffic/traffic-filter-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 { "effectImmediate" : true, "trafficFilterPolicies" : [ { "id" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000", "vpnName" : "vpnName", "name" : "app", "classificationProfileId" : "00000000-0000-0000-0000-000000000000", "classificationProfileName" : "classificationProfileName", "effectiveTimeId" : "00000000-0000-0000-0000-000000000000", "effectiveTimeName" : "effectiveTimeName", "priority" : 1, "direction" : "inbound", "action" : "permit", "status" : 1, "isActive" : true, "bindMode" : "siteMode", "templateMode" : "classifier" } ] }
  • 响应示例 返回状态码为201:创建成功,响应体参考TrafficFilterPolicyResponse。 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" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000", "vpnName" : "vpnName", "name" : "app", "classificationProfileId" : "00000000-0000-0000-0000-000000000000", "classificationProfileName" : "classificationProfileName", "effectiveTimeId" : "00000000-0000-0000-0000-000000000000", "effectiveTimeName" : "effectiveTimeName", "priority" : 1, "direction" : "inbound", "action" : "permit", "status" : 1, "isActive" : true, "bindMode" : "siteMode", "templateMode" : "classifier" } ], "fail" : [ { "errcode" : "0x00c8000c", "errmsg" : "The parameter is invalid.", "data" : { "id" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000", "vpnName" : "vpnName", "name" : "app", "classificationProfileId" : "00000000-0000-0000-0000-000000000000", "classificationProfileName" : "classificationProfileName", "effectiveTimeId" : "00000000-0000-0000-0000-000000000000", "effectiveTimeName" : "effectiveTimeName", "priority" : 1, "direction" : "inbound", "action" : "permit", "status" : 1, "isActive" : true, "bindMode" : "siteMode", "templateMode" : "classifier" } } ] } 返回状态码为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:查询成功返回。 表2 QueryLinkResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" pageIndex int32 [0-100] - 页码。 1 pageSize int32 [1-100] - 单页大小。 20 totalRecords int32 [0-10000] - 总条数。 1 data ARRAY_REFERENCE 0-512个列表项,详细请参见表29。 互联信息。 - 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • URI /controller/campus/v1/lanwan/interconnection/link 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 vnId 否 string 0~36个字符。 - VN ID。uuid格式。linkId为空时,必填。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" siteId 否 string 0~36个字符。 - 站点ID。uuid格式。linkId为空时,必填。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" linkId 否 string 0~36个字符。 - 单条互联标识。uuid格式。 存在时,优先以此为查询条件。 "a99f794e-b510-438c-a75d-de59f02347eb" pageIndex 否 int32 [0-100] - 页码。 1 pageSize 否 int32 [1-100] - 单页大小。 20
  • 请求示例 HTTP的示例 GET /controller/campus/v1/lanwan/interconnection/link?vnId=fbb684c8-0d37-496f-bafa-4b06d5151e2e&siteId=fbb684c8-0d37-496f-bafa-4b06d5151e2e&linkId=a99f794e-b510-438c-a75d-de59f02347eb&pageIndex=1&pageSize=20 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 { "errcode" : "0", "errmsg" : "", "pageIndex" : 1, "pageSize" : 20, "totalRecords" : 1, "data" : [ { "vnId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "siteId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "vnName" : "abc", "siteName" : "test", "linkName" : "test", "linkStatus" : "test", "corePhysicInfo" : { "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "deviceName" : "LSW", "deviceRole" : "core", "linkType" : "VLANIF", "l2Ports" : [ { "portIdentifier" : "Eth-Trunk1", "tagType" : "TAG" } ], "l3Port" : { "portIdentifier" : "Eth-Trunk1" } }, "gatewayPhysicInfo" : { "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "deviceName" : "LSW", "deviceRole" : "core", "linkType" : "VLANIF", "l2Ports" : [ { "portIdentifier" : "Eth-Trunk1", "tagType" : "TAG" } ], "l3Port" : { "portIdentifier" : "Eth-Trunk1" } }, "connectIpInfo" : { "coreSubnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "gatewaySubnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "coreIpAddress" : "192.168.10.10", "gatewayIpAddress" : "192.168.10.20", "gatewaySecondaryIp" : ["10.10.10.2/24","10.10.11.2/24"], "maskLength" : 24, "gatewayIpv6Address" : "FC00::1", "ipv6PrefixLength" : 64, "id" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "connectVlan" : 10, "trustEnable" : false, "trust" : "dscp", "ipAddress" : "192.168.10.1", "ipv6Address" : "FC00::1/120" }, "gateWayAdvancedInfo" : { "secondaryIp" : ["10.10.10.2/24","10.10.11.2/24"], "securityZone" : "TRUST", "proxyArp" : false, "innerProxyArp" : false, "toVasEnable" : false, "attributes" : { "mtu" : 1500, "mss" : 1200 }, "vrrp" : { "enable" : false, "vrrpId" : 1, "virtualIpAddress" : "192.168.0.1;192.168.0.2", "vrrpRole" : "MASTER", "priority" : 1, "preemptDelay" : 0, "authMode" : 1, "authKey" : "1", "track" : [ { "sourceIpAddress" : "192.168.1.0", "peerIpAddress" : "192.168.1.0", "localDiscriminator" : 10, "remoteDiscriminator" : 10, "interval" : 20, "interfaceName" : "GE0/0/1", "priorityMode" : "REDUCE", "value" : 10, "type" : "ipv4" } ], "vrrpList" : [ { "vrrpId" : 1, "virtualIpAddress" : "10.1.1.1;10.1.2.1", "vrrpRole" : "master", "preemptDelay" : 0, "priority" : 1, "authMode" : 1, "authKey" : "1", "track" : [ { "sourceIpAddress" : "192.168.1.0", "peerIpAddress" : "192.168.1.0", "localDiscriminator" : 10, "remoteDiscriminator" : 10, "interval" : 20, "interfaceName" : "GE0/0/1", "priorityMode" : "REDUCE", "value" : 10, "type" : "ipv4" } ] } ] }, "dhcp" : { "enable" : false, "dhcpServiceType" : "SERVER", "dhcpServer" : { "useSecondaryIP" : false, "leaseTime" : { "day" : 0, "hour" : 0, "minute" : 0 }, "excludeIpGroups" : [ { "startAddress" : "192.168.1.2", "endAddress" : "192.168.1.3" } ], "dhcpStatic" : [ { "ipAddress" : "192.168.1.10", "macAddress" : "00e0-fc12-3456" } ], "dhcpOption" : [ { "code" : 43, "type" : 1, "value" : "192.168.1.0", "description" : "Wins/Netbios server" } ], "dnsServerIp" : ["192.168.0.1"], "domainName" : "abc.com" }, "dhcpRelay" : { "serverIps" : ["192.168.0.1"], "sourceAddress" : "10.10.10.2", "gatewayAddress" : "10.10.10.3", "dhcpRelayOption82" : { "function" : 0, "vlanId" : 1, "subOption" : [ { "subOptionCode" : 0, "isUserDefined" : true, "value" : "ZID023301" } ] }, "linkSelectionInsertEnable" : true, "linkSelectionInsertIp" : "10.10.10.1" } }, "vrrp6" : { "vrrp6Enable" : true, "vrrp6List" : [ { "vrrp6Id" : 1, "virtualIpv6AddressLinkLocal" : "FC00::1", "virtualIpv6Address" : "FC00::1;FC00::2", "preemptDelay" : 0, "priority" : 1, "track" : [ { "sourceIpAddress" : "192.168.1.0", "peerIpAddress" : "192.168.1.0", "localDiscriminator" : 10, "remoteDiscriminator" : 10, "interval" : 20, "interfaceName" : "GE0/0/1", "priorityMode" : "REDUCE", "value" : 10, "type" : "ipv4" } ], "vrrp6Role" : "" } ] }, "dhcpV6" : { "dhcpV6Enable" : true, "dhcpv6ServiceType" : "SERVER", "dhcpv6Server" : { "addressPrefix" : "FC00::1/120", "addressPrefixLeaseTime" : { "day" : 0, "hour" : 0, "minute" : 0 }, "delegationPrefix" : "FC00::1/120", "delegationPrefixAssignLength" : "", "delegationPrefixLeaseTime" : { "day" : 0, "hour" : 0, "minute" : 0 }, "excludeIpGroups" : [ { "startAddress" : "FC00::1", "endAddress" : "FC00::1" } ], "firstDnsServer" : "FC00::1", "secondDnsServer" : "FC00::1", "domainName" : "0" }, "dhcpv6Relay" : { "serverIps" : ["FC00::1"] } }, "unrHostRouteAdvertiseEnable" : false, "dhcpTriggerEnable" : false, "unrRoutesLimitEnable" : "", "unrRoutesLimit" : 24, "ntpDisable" : "", "ntpIpv6Disable" : "", "raHaltEnable" : "", "managedAddressFlagEnable" : "" }, "coreSubnets" : [ { "operType" : "", "status" : "", "description" : "abc", "errmsg" : "", "physicInfo" : { "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "deviceName" : "LSW", "deviceRole" : "core", "linkType" : "VLANIF", "l2Ports" : [ { "portIdentifier" : "Eth-Trunk1", "tagType" : "TAG" } ], "l3Port" : { "portIdentifier" : "Eth-Trunk1" } }, "ipInfo" : { "coreSubnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "gatewaySubnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "coreIpAddress" : "192.168.10.10", "gatewayIpAddress" : "192.168.10.20", "gatewaySecondaryIp" : ["10.10.10.2/24","10.10.11.2/24"], "maskLength" : 24, "gatewayIpv6Address" : "FC00::1", "ipv6PrefixLength" : 64, "id" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "connectVlan" : 10, "trustEnable" : false, "trust" : "dscp", "ipAddress" : "192.168.10.1", "ipv6Address" : "FC00::1/120" }, "advancedInfo" : { "secondaryIp" : ["10.10.10.2/24","10.10.11.2/24"], "securityZone" : "TRUST", "proxyArp" : false, "innerProxyArp" : false, "toVasEnable" : false, "attributes" : { "mtu" : 1500, "mss" : 1200 }, "vrrp" : { "enable" : false, "vrrpId" : 1, "virtualIpAddress" : "192.168.0.1;192.168.0.2", "vrrpRole" : "MASTER", "priority" : 1, "preemptDelay" : 0, "authMode" : 1, "authKey" : "1", "track" : [ { "sourceIpAddress" : "192.168.1.0", "peerIpAddress" : "192.168.1.0", "localDiscriminator" : 10, "remoteDiscriminator" : 10, "interval" : 20, "interfaceName" : "GE0/0/1", "priorityMode" : "REDUCE", "value" : 10, "type" : "ipv4" } ], "vrrpList" : [ { "vrrpId" : 1, "virtualIpAddress" : "10.1.1.1;10.1.2.1", "vrrpRole" : "master", "preemptDelay" : 0, "priority" : 1, "authMode" : 1, "authKey" : "1", "track" : [ { "sourceIpAddress" : "192.168.1.0", "peerIpAddress" : "192.168.1.0", "localDiscriminator" : 10, "remoteDiscriminator" : 10, "interval" : 20, "interfaceName" : "GE0/0/1", "priorityMode" : "REDUCE", "value" : 10, "type" : "ipv4" } ] } ] }, "dhcp" : { "enable" : false, "dhcpServiceType" : "SERVER", "dhcpServer" : { "useSecondaryIP" : false, "leaseTime" : { "day" : 0, "hour" : 0, "minute" : 0 }, "excludeIpGroups" : [ { "startAddress" : "192.168.1.2", "endAddress" : "192.168.1.3" } ], "dhcpStatic" : [ { "ipAddress" : "192.168.1.10", "macAddress" : "00e0-fc12-3456" } ], "dhcpOption" : [ { "code" : 43, "type" : 1, "value" : "192.168.1.0", "description" : "Wins/Netbios server" } ], "dnsServerIp" : ["192.168.0.1"], "domainName" : "abc.com" }, "dhcpRelay" : { "serverIps" : ["192.168.0.1"], "sourceAddress" : "10.10.10.2", "gatewayAddress" : "10.10.10.3", "dhcpRelayOption82" : { "function" : 0, "vlanId" : 1, "subOption" : [ { "subOptionCode" : 0, "isUserDefined" : true, "value" : "ZID023301" } ] }, "linkSelectionInsertEnable" : true, "linkSelectionInsertIp" : "10.10.10.1" } }, "vrrp6" : { "vrrp6Enable" : true, "vrrp6List" : [ { "vrrp6Id" : 1, "virtualIpv6AddressLinkLocal" : "FC00::1", "virtualIpv6Address" : "FC00::1;FC00::2", "preemptDelay" : 0, "priority" : 1, "track" : [ { "sourceIpAddress" : "192.168.1.0", "peerIpAddress" : "192.168.1.0", "localDiscriminator" : 10, "remoteDiscriminator" : 10, "interval" : 20, "interfaceName" : "GE0/0/1", "priorityMode" : "REDUCE", "value" : 10, "type" : "ipv4" } ], "vrrp6Role" : "" } ] }, "dhcpV6" : { "dhcpV6Enable" : true, "dhcpv6ServiceType" : "SERVER", "dhcpv6Server" : { "addressPrefix" : "FC00::1/120", "addressPrefixLeaseTime" : { "day" : 0, "hour" : 0, "minute" : 0 }, "delegationPrefix" : "FC00::1/120", "delegationPrefixAssignLength" : "", "delegationPrefixLeaseTime" : { "day" : 0, "hour" : 0, "minute" : 0 }, "excludeIpGroups" : [ { "startAddress" : "FC00::1", "endAddress" : "FC00::1" } ], "firstDnsServer" : "FC00::1", "secondDnsServer" : "FC00::1", "domainName" : "0" }, "dhcpv6Relay" : { "serverIps" : ["FC00::1"] } }, "unrHostRouteAdvertiseEnable" : false, "dhcpTriggerEnable" : false, "unrRoutesLimitEnable" : "", "unrRoutesLimit" : 24, "ntpDisable" : "", "ntpIpv6Disable" : "", "raHaltEnable" : "", "managedAddressFlagEnable" : "" } } ], "gatewaySubnets" : [ { "operType" : "", "status" : "", "description" : "abc", "errmsg" : "", "physicInfo" : { "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "deviceName" : "LSW", "deviceRole" : "core", "linkType" : "VLANIF", "l2Ports" : [ { "portIdentifier" : "Eth-Trunk1", "tagType" : "TAG" } ], "l3Port" : { "portIdentifier" : "Eth-Trunk1" } }, "ipInfo" : { "coreSubnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "gatewaySubnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "coreIpAddress" : "192.168.10.10", "gatewayIpAddress" : "192.168.10.20", "gatewaySecondaryIp" : ["10.10.10.2/24","10.10.11.2/24"], "maskLength" : 24, "gatewayIpv6Address" : "FC00::1", "ipv6PrefixLength" : 64, "id" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "connectVlan" : 10, "trustEnable" : false, "trust" : "dscp", "ipAddress" : "192.168.10.1", "ipv6Address" : "FC00::1/120" }, "advancedInfo" : { "secondaryIp" : ["10.10.10.2/24","10.10.11.2/24"], "securityZone" : "TRUST", "proxyArp" : false, "innerProxyArp" : false, "toVasEnable" : false, "attributes" : { "mtu" : 1500, "mss" : 1200 }, "vrrp" : { "enable" : false, "vrrpId" : 1, "virtualIpAddress" : "192.168.0.1;192.168.0.2", "vrrpRole" : "MASTER", "priority" : 1, "preemptDelay" : 0, "authMode" : 1, "authKey" : "1", "track" : [ { "sourceIpAddress" : "192.168.1.0", "peerIpAddress" : "192.168.1.0", "localDiscriminator" : 10, "remoteDiscriminator" : 10, "interval" : 20, "interfaceName" : "GE0/0/1", "priorityMode" : "REDUCE", "value" : 10, "type" : "ipv4" } ], "vrrpList" : [ { "vrrpId" : 1, "virtualIpAddress" : "10.1.1.1;10.1.2.1", "vrrpRole" : "master", "preemptDelay" : 0, "priority" : 1, "authMode" : 1, "authKey" : "1", "track" : [ { "sourceIpAddress" : "192.168.1.0", "peerIpAddress" : "192.168.1.0", "localDiscriminator" : 10, "remoteDiscriminator" : 10, "interval" : 20, "interfaceName" : "GE0/0/1", "priorityMode" : "REDUCE", "value" : 10, "type" : "ipv4" } ] } ] }, "dhcp" : { "enable" : false, "dhcpServiceType" : "SERVER", "dhcpServer" : { "useSecondaryIP" : false, "leaseTime" : { "day" : 0, "hour" : 0, "minute" : 0 }, "excludeIpGroups" : [ { "startAddress" : "192.168.1.2", "endAddress" : "192.168.1.3" } ], "dhcpStatic" : [ { "ipAddress" : "192.168.1.10", "macAddress" : "00e0-fc12-3456" } ], "dhcpOption" : [ { "code" : 43, "type" : 1, "value" : "192.168.1.0", "description" : "Wins/Netbios server" } ], "dnsServerIp" : ["192.168.0.1"], "domainName" : "abc.com" }, "dhcpRelay" : { "serverIps" : ["192.168.0.1"], "sourceAddress" : "10.10.10.2", "gatewayAddress" : "10.10.10.3", "dhcpRelayOption82" : { "function" : 0, "vlanId" : 1, "subOption" : [ { "subOptionCode" : 0, "isUserDefined" : true, "value" : "ZID023301" } ] }, "linkSelectionInsertEnable" : true, "linkSelectionInsertIp" : "10.10.10.1" } }, "vrrp6" : { "vrrp6Enable" : true, "vrrp6List" : [ { "vrrp6Id" : 1, "virtualIpv6AddressLinkLocal" : "FC00::1", "virtualIpv6Address" : "FC00::1;FC00::2", "preemptDelay" : 0, "priority" : 1, "track" : [ { "sourceIpAddress" : "192.168.1.0", "peerIpAddress" : "192.168.1.0", "localDiscriminator" : 10, "remoteDiscriminator" : 10, "interval" : 20, "interfaceName" : "GE0/0/1", "priorityMode" : "REDUCE", "value" : 10, "type" : "ipv4" } ], "vrrp6Role" : "" } ] }, "dhcpV6" : { "dhcpV6Enable" : true, "dhcpv6ServiceType" : "SERVER", "dhcpv6Server" : { "addressPrefix" : "FC00::1/120", "addressPrefixLeaseTime" : { "day" : 0, "hour" : 0, "minute" : 0 }, "delegationPrefix" : "FC00::1/120", "delegationPrefixAssignLength" : "", "delegationPrefixLeaseTime" : { "day" : 0, "hour" : 0, "minute" : 0 }, "excludeIpGroups" : [ { "startAddress" : "FC00::1", "endAddress" : "FC00::1" } ], "firstDnsServer" : "FC00::1", "secondDnsServer" : "FC00::1", "domainName" : "0" }, "dhcpv6Relay" : { "serverIps" : ["FC00::1"] } }, "unrHostRouteAdvertiseEnable" : false, "dhcpTriggerEnable" : false, "unrRoutesLimitEnable" : "", "unrRoutesLimit" : 24, "ntpDisable" : "", "ntpIpv6Disable" : "", "raHaltEnable" : "", "managedAddressFlagEnable" : "" } } ], "linkId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e" } ] } 返回状态码为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
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 configFlowDtoList 否 ARRAY_REFERENCE 详细请参见表2。 流批量配置 - 表2 ConfigFlowDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 id 否 string 0~5个字符。 - 流id "512" enable 否 boolean true false true 使能开关 true
  • 请求示例 HTTP的示例 POST /v1/performanceservice/flow/action/batch-config 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" : "512", "enable" : true } ]
  • 响应示例 返回状态码为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" : { "ids" : [ { "id" : "de5813f8ff1e41f5ba9c324da70b49ed" } ] } } 返回状态码为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:删除成功。 表5 DeleteStaticMacResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" data REFERENCE 详细请参见表6。 - - 表6 DeleteStaticMacInfoList对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 ids ARRAY_REFERENCE 0-1024个列表项,详细请参见表7。 MAC静态绑定配置ID列表。 - 表7 DeleteStaticMacInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 32个字符。 - 删除MAC静态绑定配置的ID。 "de5813f8ff1e41f5ba9c324da70b49ed" 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。
  • URI /controller/campus/v1/networkservice/networkconfig/net/lswstaticmac/devices/{deviceId}/staticmac/batch-delete 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string - - 设备ID,UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e"
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deletebody 是 REFERENCE 详细请参见表3。 MAC静态绑定配置的参数体。 - 表3 DeleteStaticMacInfoList对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 ids 否 ARRAY_REFERENCE 0-1024个列表项,详细请参见表4。 MAC静态绑定配置ID列表。 - 表4 DeleteStaticMacInfo对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 id 是 string 32个字符。 - 删除MAC静态绑定配置的ID。 "de5813f8ff1e41f5ba9c324da70b49ed"
  • 请求示例 HTTP的示例 POST /controller/campus/v1/networkservice/networkconfig/net/lswstaticmac/devices/fbb684c8-0d37-496f-bafa-4b06d5151e2e/staticmac/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" : [ { "id" : "de5813f8ff1e41f5ba9c324da70b49ed" } ] }
  • 响应示例 返回状态码为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" : { "linkId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "neighborInfo" : { "areaId" : 10, "areaType" : "normal", "helloTimer" : 1, "timerPoll" : 1, "timerDead" : 1, "timerRetransmit" : 1, "authenticationInfo" : { "authMode" : "cryptographic", "algorithm" : "hmac-sha256", "key" : 1, "pwd" : "abc" }, "coreInterfaceInfo" : { "interfaceName" : "vlanif20", "subnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "cost" : 1, "drPriority" : 1, "mtuEnable" : false, "networkType" : "broadcast" }, "gatewayInterfaceInfo" : { "interfaceName" : "vlanif20", "subnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "cost" : 1, "drPriority" : 1, "mtuEnable" : false, "networkType" : "broadcast" } }, "coreProcessId" : 10, "gatewayProcessId" : 10, "gatewayRouterId" : "192.168.1.1", "coreOspfIntfs" : [ { "processId" : 10, "routerId" : "192.168.1.1", "configSource" : "LANWAN", "OspfIntfInfo" : { "interfaceName" : "vlanif20", "subnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "cost" : 1, "drPriority" : 1, "mtuEnable" : false, "networkType" : "broadcast", "authMode" : "cryptographic", "algorithm" : "hmac-sha256", "key" : 1, "pwd" : "abc", "linkId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "linkName" : "ConnectLink", "areaId" : 10, "helloTimer" : 1, "areaType" : "normal", "timerPoll" : 1, "timerRetransmit" : 1, "timerDead" : 1 } } ], "gatewayOspfIntfs" : [ { "processId" : 10, "routerId" : "192.168.1.1", "configSource" : "LANWAN", "OspfIntfInfo" : { "interfaceName" : "vlanif20", "subnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "cost" : 1, "drPriority" : 1, "mtuEnable" : false, "networkType" : "broadcast", "authMode" : "cryptographic", "algorithm" : "hmac-sha256", "key" : 1, "pwd" : "abc", "linkId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "linkName" : "ConnectLink", "areaId" : 10, "helloTimer" : 1, "areaType" : "normal", "timerPoll" : 1, "timerRetransmit" : 1, "timerDead" : 1 } } ] }, "OspfInterfaceList" : [ { "deviceId" : "6ef14414-99d7-4062-9de5-1183dbd87f27", "deviceName" : "Device", "deviceType" : "Core", "processId" : 10, "routerId" : "192.168.1.1", "configSource" : "LANWAN", "OspfIntfInfo" : { "interfaceName" : "vlanif20", "subnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "cost" : 1, "drPriority" : 1, "mtuEnable" : false, "networkType" : "broadcast", "authMode" : "cryptographic", "algorithm" : "hmac-sha256", "key" : 1, "pwd" : "abc", "linkId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "linkName" : "ConnectLink", "areaId" : 10, "helloTimer" : 1, "areaType" : "normal", "timerPoll" : 1, "timerRetransmit" : 1, "timerDead" : 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/interconnection/route/ospf?linkId=fbb684c8-0d37-496f-bafa-4b06d5151e2e 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 QueryLinkOspfResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" data REFERENCE 详细请参见表9。 查询返回的OSPF邻居信息。兼容升级,后续废弃。 - OspfInterfaceList ARRAY_REFERENCE 0-8个列表项,详细请参见表3。 OSPF邻居信息列表。 - 表3 LinkOspfInterface对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 deviceId string 36个字符。 - 设备ID。 "6ef14414-99d7-4062-9de5-1183dbd87f27" deviceName string 0~128个字符。 - 设备名称。 "Device" deviceType string 0~10个字符。 - 设备类型。 "Core" processId int32 [1-20000] - 网关侧OSPF进程号,必填。取值范围:1-20000。 10 routerId string 0~64个字符。 - 用于用户自定义配置RouterId,创建时选填,不可修改,不能配置127.0网段。兼容升级场景,废弃字段。 "192.168.1.1" configSource string 0~32个字符。 - 配置源 "LANWAN" OspfIntfInfo REFERENCE 详细请参见表14。 OSPF路由信息。 - 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为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 { "huawei-nce-e-route-policy:community-filter" : [ { "config-status" : "configured-database-success", "last-committed-time" : "2022-01-01 00:00:00", "related-pkg-version" : "1.0.1", "edit-state" : "RUNNING", "name" : "filter1", "filter-type" : "basic", "basic-node" : [ { "sequence" : 1, "match-mode" : "permit", "community-member" : [ { "value" : "1: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 /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-route-policy:community-filter 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:操作成功。 表3 community-filter-list对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-e-route-policy:community-filter ARRAY_REFERENCE 详细请参见表4。 团体属性过滤器配置参数。 - 表4 nes-ne-community-filter对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 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个字符。 - 最后提交时间,该特性最后提交时间;不支持编辑,仅查询返回。 "2022-01-01 00:00:00" related-pkg-version string 0~255个字符。 - 包版本,插件包版本;不支持编辑,仅查询返回。 "1.0.1" edit-state string RUNNING CANDIDATE UNDEPLOYING UNDEPLOYED - 编辑状态,对应运行状态、候选状态、取消部署状态、未部署状态;不支持编辑,仅查询返回。 "RUNNING" name string - - 名称,整数形式时范围1-99,字符串形式时1-51个字符且不能都是数字,单一主键字段。 "filter1" filter-type string basic advanced - 过滤类型。 "basic" basic-node ARRAY_REFERENCE 1-65535个列表项,详细请参见表5。 节点。 - 表5 nes-ne-community-filter-basic-node对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 sequence int64 [1-4294967295] - 序号,单一主键字段。 1 match-mode string permit deny - 匹配类型。 "permit" community-member ARRAY_REFERENCE 0-20个列表项,详细请参见表6。 团体属性。 - 表6 nes-ne-community-filter-basic-node-community-member对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 value string - - 团体值,取值范围为0-65535:0-65535 或 1-4294967040 或 4294967044-4294967295,单一主键字段。 "1:1" 返回状态码为400:请求参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-route-policy:community-filter 表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-route-policy:route-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 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 /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-route-policy:route-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。 "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 { "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
  • 请求示例 HTTP的示例 POST /controller/campus/v3/config/configsave 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" : "e33db980-848a-4b1d-a347-425580f0b7f3", "saveAll" : true, "deviceIds" : [ "d623ead6-a2cc-4c3c-9039-dcc8fa898a60" ] }
共100000条
提示

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