华为云用户手册

  • 响应示例 返回状态码为200:查询成功,返回设备所有MAC静态绑定信息。 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 { "interfaceNameList" : ["GigabitEthernet0/0/1","GigabitEthernet0/0/2"], "staticMacList" : [ { "macAddress" : "XX:XX:XX:XX:XX:XX", "vlanId" : 1, "interfaceName" : "GigabitEthernet0/0/1", "id" : "de5813f8ff1e41f5ba9c324da70b49ed" } ], "pageIndex" : 1, "pageSize" : 20, "totalRecords" : 10, "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的示例 GET /controller/campus/v1/networkservice/networkconfig/net/lswstaticmac/devices/fbb684c8-0d37-496f-bafa-4b06d5151e2e/staticmac?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-AC CES S-TOKEN: x-yyyyyy
  • 响应示例 返回状态码为200:强制下线返回结果,响应体参考MobileTerminalOfflineResponse。 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" : "", "successList" : ["460030912121001"], "failList" : [ { "errcode" : "0x022b0006", "errmsg" : "no rights", "imei" : "990000862471854", "imsi" : "990000862471854" } ] } 返回状态码为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/v1/accountservice/terminalmgr/mobile/offline 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 { "imeis" : ["460030912121001"] }
  • 响应示例 返回状态码为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" : { "defendPolicies" : [ { "whitelist" : [ { "aclConfigType" : "Custom", "aclProfileId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "customAclRuleList" : [ { "ruleId" : 1, "policy" : "permit", "protocol" : "tcp", "srcIp" : "192.168.1.0/24", "srcPort" : "23", "dstIp" : "192.168.2.0/24", "dstPort" : "24", "description" : "Rule1" } ] } ], "id" : "fbb684c80d37406fbafa4b06d6151e2e" } ] } } 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为500:内部服务错误 HTTP/1.1 500 Internal Server Error Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • URI /controller/campus/api/v1/networkconfig/lswdefendpolicy/devices/{deviceId}/defendpolicy 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string 36个字符。 - 设备ID。 "fbb684c8-0d37-496f-bafa-4b06d6151e2e"
  • 响应参数 返回状态码为200:查询成功。 表2 GetDefendPolicyResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" data REFERENCE 详细请参见表3。 防攻击策略列表 - 表3 DefendPolicyListDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 defendPolicies ARRAY_REFERENCE 0-1个列表项,详细请参见表7。 查询交换机防攻击策略配置数据列表。 - 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部服务错误 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 GET /controller/campus/api/v1/networkconfig/lswdefendpolicy/devices/fbb684c8-0d37-496f-bafa-4b06d6151e2e/defendpolicy 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:删除BGP对等体出参。 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" : { "linkId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "coreDeleteLinkBgpInfo" : { "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "bgpAs" : 100, "peerIp" : "192.168.10.1" }, "gatewayDeleteLinkBgpInfo" : { "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "bgpAs" : 100, "peerIp" : "192.168.10.1" }, "coreBgpBaseInfos" : [ { "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "bgpAs" : 100, "peerIp" : "192.168.10.1" } ], "gatewayBgpBaseInfos" : [ { "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "bgpAs" : 100, "peerIp" : "192.168.10.1" } ] }, "fail" : { "linkId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "coreBgpFailInfo" : { "errcode" : "0", "errmsg" : "", "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "bgpAs" : 100, "peerIp" : "192.168.10.1" }, "gatewayBgpFailInfo" : { "errcode" : "0", "errmsg" : "", "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "bgpAs" : 100, "peerIp" : "192.168.10.1" }, "coreBgpBaseInfos" : [ { "errcode" : "0", "errmsg" : "", "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "bgpAs" : 100, "peerIp" : "192.168.10.1" } ], "gatewayBgpBaseInfos" : [ { "errcode" : "0", "errmsg" : "", "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "bgpAs" : 100, "peerIp" : "192.168.10.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
  • 响应参数 返回状态码为200:删除BGP对等体出参。 表5 DeleteRouteBgpResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" success REFERENCE 详细请参见表6。 删除成功BGP对等体出参。 - fail REFERENCE 详细请参见表33。 删除失败BGP对等体出参。 - 表6 DeleteLinkBgpInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 linkId string 36个字符。 - 互联接口标识。uuid格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" coreDeleteLinkBgpInfo REFERENCE 详细请参见表7。 核心设备删除成功BGP对等体出参。升级兼容,不推荐使用。 - gatewayDeleteLinkBgpInfo REFERENCE 详细请参见表7。 网关设备删除成功BGP对等体出参。升级兼容,不推荐使用。 - coreBgpBaseInfos ARRAY_REFERENCE 0-32个列表项,详细请参见表7。 核心设备删除成功BGP邻居。 - gatewayBgpBaseInfos ARRAY_REFERENCE 0-32个列表项,详细请参见表7。 网关设备删除成功BGP邻居。 - 表7 BgpPeerBaseInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 deviceId string 36个字符。 - 设备标识,UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" bgpAs int64 [1-4294967295] - BGP的AS号。 100 peerIp string 0~64个字符。 - BGP对等体的IP地址。 "192.168.10.1" 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 delBgpPeer 否 REFERENCE 详细请参见表3。 删除BGP对等体入参,不传值则按linkId全量删除。 - 表3 DeleteBgpPeer对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 delCoreBgpPeers 否 ARRAY_REFERENCE 0-32个列表项,详细请参见表4。 待删除的核心侧BGP信息。 - delGatewayBgpPeers 否 ARRAY_REFERENCE 0-32个列表项,详细请参见表4。 待删除的网关设备BGP信息。 - 表4 BgpPeerToDel对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 string 36个字符。 - 设备标识,UUID格式。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e" peerIp 是 string 0~64个字符。 - BGP对等体的IP地址。 "192.168.10.1"
  • 请求示例 HTTP的示例 DELETE /controller/campus/v1/lanwan/interconnection/route/bgp/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 { "delCoreBgpPeers" : [ { "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "peerIp" : "192.168.10.1" } ], "delGatewayBgpPeers" : [ { "deviceId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e", "peerIp" : "192.168.10.1" } ] }
  • 响应示例 返回状态码为200:修改成功,响应体参考TrafficSteeringPolicyResponse。 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" : [ { "id" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000", "name" : "TrafficSteeringPolicy", "policyPriority" : 50, "switchoverCondition" : "custom", "delay" : 50, "jitter" : 50, "packetLossRate" : 50, "preferredTransportNetworks" : [ { "transportNetworks" : [ "00000000-0000-0000-0000-000000000000" ], "priority" : 1 } ], "secondaryTransportNetworks" : [ "00000000-0000-0000-0000-000000000000" ], "enableFixed" : true, "classificationId" : "00000000-0000-0000-0000-000000000000", "classificationName" : "classificationName", "effectiveTimeId" : "00000000-0000-0000-0000-000000000000", "effectiveTimeName" : "effectiveTimeName", "advancedSetting" : { "enableSwitchThresholdUp" : true, "switchThresholdUp" : 90, "enableSwitchThresholdLow" : true, "switchThresholdLow" : 20, "actionNotSatisfied" : 1, "enableAdvancePriority" : true, "advancePriority" : 1, "switchMode" : 1, "policyBtwTN" : 1, "bwConditionList" : [ { "transportNetwork" : "Internet", "bwUpType" : "0", "bwUpLimitValPer" : "50", "bwLowType" : "0", "bwLowLimitValPer" : "20", "bwAppUpType" : "1", "bwMaxApp" : "20", "bwAppLowType" : "1", "bwMinApp" : "10" } ], "isGwFirst" : false, "enablePacketReplication" : false, "loadBalanceMode" : "Flow" }, "status" : 1, "isActive" : true } ], "fail" : [ { "errcode" : "0x00c8000c", "errmsg" : "The parameter is invalid.", "data" : { "id" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000", "name" : "TrafficSteeringPolicy", "policyPriority" : 50, "switchoverCondition" : "custom", "delay" : 50, "jitter" : 50, "packetLossRate" : 50, "preferredTransportNetworks" : [ { "transportNetworks" : [ "00000000-0000-0000-0000-000000000000" ], "priority" : 1 } ], "secondaryTransportNetworks" : [ "00000000-0000-0000-0000-000000000000" ], "enableFixed" : true, "classificationId" : "00000000-0000-0000-0000-000000000000", "classificationName" : "classificationName", "effectiveTimeId" : "00000000-0000-0000-0000-000000000000", "effectiveTimeName" : "effectiveTimeName", "advancedSetting" : { "enableSwitchThresholdUp" : true, "switchThresholdUp" : 90, "enableSwitchThresholdLow" : true, "switchThresholdLow" : 20, "actionNotSatisfied" : 1, "enableAdvancePriority" : true, "advancePriority" : 1, "switchMode" : 1, "policyBtwTN" : 1, "bwConditionList" : [ { "transportNetwork" : "Internet", "bwUpType" : "0", "bwUpLimitValPer" : "50", "bwLowType" : "0", "bwLowLimitValPer" : "20", "bwAppUpType" : "1", "bwMaxApp" : "20", "bwAppLowType" : "1", "bwMinApp" : "10" } ], "isGwFirst" : false, "enablePacketReplication" : false, "loadBalanceMode" : "Flow" }, "status" : 1, "isActive" : 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的示例 PUT /controller/campus/v1/sdwan/policy/traffic/traffic-steering-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, "trafficSteeringPolicies" : [ { "id" : "00000000-0000-0000-0000-000000000000", "vpnId" : "00000000-0000-0000-0000-000000000000", "name" : "TrafficSteeringPolicy", "policyPriority" : 50, "switchoverCondition" : "custom", "delay" : 50, "jitter" : 50, "packetLossRate" : 50, "preferredTransportNetworks" : [ { "transportNetworks" : [ "00000000-0000-0000-0000-000000000000" ], "priority" : 1 } ], "secondaryTransportNetworks" : [ "00000000-0000-0000-0000-000000000000" ], "enableFixed" : true, "classificationId" : "00000000-0000-0000-0000-000000000000", "classificationName" : "classificationName", "effectiveTimeId" : "00000000-0000-0000-0000-000000000000", "effectiveTimeName" : "effectiveTimeName", "advancedSetting" : { "enableSwitchThresholdUp" : true, "switchThresholdUp" : 90, "enableSwitchThresholdLow" : true, "switchThresholdLow" : 20, "actionNotSatisfied" : 1, "enableAdvancePriority" : true, "advancePriority" : 1, "switchMode" : 1, "policyBtwTN" : 1, "bwConditionList" : [ { "transportNetwork" : "Internet", "bwUpType" : "0", "bwUpLimitValPer" : "50", "bwLowType" : "0", "bwLowLimitValPer" : "20", "bwAppUpType" : "1", "bwMaxApp" : "20", "bwAppLowType" : "1", "bwMinApp" : "10" } ], "isGwFirst" : false, "enablePacketReplication" : false, "loadBalanceMode" : "Flow" }, "status" : 1, "isActive" : true } ] }
  • 响应示例 返回状态码为200:成功响应,响应体参考BusinessSuccessRsp。 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" : { "businessBase" : { "name" : "business-exp", "id" : "00000000-0000-0000-0000-000000000000", "label" : "label-exp", "description" : "description-exp", "startTime" : 4102415940000, "endTime" : 4102415940000, "extBusinessId" : "00000000-0000-0000-0000-000000000000" }, "terminalList" : [ { "srcIpOrMac" : "192.168.1.1", "srcPort" : 1, "name" : "terminal-exp" } ], "appList" : [ { "dstIp" : "192.168.1.1", "dstPort" : 1, "protocol" : "ANY" } ], "smartAppInfo" : { "appType" : "Custom", "appId" : "12305", "appName" : "腾讯会议" } } } 返回状态码为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/assurance/business 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 { "businessBase" : { "name" : "business-exp", "id" : "00000000-0000-0000-0000-000000000000", "label" : "label-exp", "description" : "description-exp", "startTime" : 4102415940000, "endTime" : 4102415940000, "extBusinessId" : "00000000-0000-0000-0000-000000000000" }, "terminalList" : [ { "srcIpOrMac" : "192.168.1.1", "srcPort" : 1, "name" : "terminal-exp" } ], "appList" : [ { "dstIp" : "192.168.1.1", "dstPort" : 1, "protocol" : "ANY" } ], "smartAppInfo" : { "appType" : "Custom", "appId" : "12305", "appName" : "腾讯会议" } }
  • 响应参数 返回状态码为200:成功响应,响应体参考BusinessSuccessRsp。 表7 BusinessSuccessRsp对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 状态码,0:请求成功。 "0" errmsg string 0~256个字符。 - 接口调用结果的描述信息。 "" data REFERENCE 详细请参见表8。 会议信息。 - 表8 BusinessInfoRsp对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 businessBase REFERENCE 详细请参见表9。 业务保障基本信息。 - terminalList ARRAY_REFERENCE 1-2000个列表项,详细请参见表10。 终端列表。 - appList ARRAY_REFERENCE 0-128个列表项,详细请参见表11。 服务组列表。 - smartAppInfo REFERENCE 详细请参见表12。 智能应用信息。 - 表9 BusinessBase对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 name string 0~64个字符。 - 业务保障名字。 "business-exp" id string 0~36个字符。 - 业务保障Id。 "00000000-0000-0000-0000-000000000000" label string 0~64个字符。 - 业务保障标签,用户可以为业务保障打任何标签。 "label-exp" description string 0~256个字符。 - 业务保障描述信息。 "description-exp" startTime int64 [0-4102415940000] - 业务保障开始时间,格式为UNIX时间戳,即从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数,不考虑闰秒。 startTime必须大于当前时间且小于endTime,startTime与endTime之间的间隔要小于等于24小时。 不支持在业务保障进行中或结束后进行修改。 4102415940000 endTime int64 [0-4102415940000] - 业务保障结束时间,格式为UNIX时间戳,即从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数,不考虑闰秒。 endTime必须大于startTime,startTime与endTime之间的间隔要小于等于24小时。 进行中状态的业务保障可以增加endTime,已结束状态的业务保障无法修改endTime。 4102415940000 extBusinessId string 0~64个字符。 - 对接外部系统业务Id,可以是会议名或者会议ID等信息,只要能够唯一确定外部会议的标识就可以。 "00000000-0000-0000-0000-000000000000" 表10 TerminalInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 srcIpOrMac string 0~64个字符。 - 源IP或MAC。 "192.168.1.1" srcPort int32 [0-65535] - 源端口。 1 name string 0~64个字符。 - 终端名称。 "terminal-exp" 表11 AppInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 dstIp string 0~64个字符。 - 目的IP。 "192.168.1.1" dstPort int32 [0-65535] - 目的端口。 1 protocol string 0~3个字符。 ANY 协议类型,取值为ANY,UDP,TCP。 "ANY" 表12 SmartAppInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 appType string 1~16个字符。 - 应用类型。Predefine表示预定义应用,Custom表示自定义应用。 "Custom" appId string 0~64个字符。 - 应用ID。当appType是Predefine必填。 "12305" appName string 0~128个字符。 - 应用名称。当appType是Custom必填。 "腾讯会议" 返回状态码为400:异常响应。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 createBusinessBody 是 REFERENCE 详细请参见表2。 业务保障信息。 - 表2 BusinessInfo对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 businessBase 是 REFERENCE 详细请参见表3。 业务保障基本信息。 - terminalList 是 ARRAY_REFERENCE 1-2000个列表项,详细请参见表4。 终端列表,不支持在业务保障进行中或结束后进行修改。 - appList 否 ARRAY_REFERENCE 0-128个列表项,详细请参见表5。 服务组列表,不支持在业务保障进行中或结束后进行修改。 - smartAppInfo 否 REFERENCE 详细请参见表6。 智能应用信息,不支持在业务保障进行中或结束后进行修改。 - 表3 BusinessBase对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 name 是 string 0~64个字符。 - 业务保障名字。 "business-exp" id 否 string 0~36个字符。 - 业务保障Id。 "00000000-0000-0000-0000-000000000000" label 否 string 0~64个字符。 - 业务保障标签,用户可以为业务保障打任何标签。 "label-exp" description 否 string 0~256个字符。 - 业务保障描述信息。 "description-exp" startTime 是 int64 [0-4102415940000] - 业务保障开始时间,格式为UNIX时间戳,即从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数,不考虑闰秒。 startTime必须大于当前时间且小于endTime,startTime与endTime之间的间隔要小于等于24小时。 不支持在业务保障进行中或结束后进行修改。 4102415940000 endTime 是 int64 [0-4102415940000] - 业务保障结束时间,格式为UNIX时间戳,即从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数,不考虑闰秒。 endTime必须大于startTime,startTime与endTime之间的间隔要小于等于24小时。 进行中状态的业务保障可以增加endTime,已结束状态的业务保障无法修改endTime。 4102415940000 extBusinessId 否 string 0~64个字符。 - 对接外部系统业务Id,可以是会议名或者会议ID等信息,只要能够唯一确定外部会议的标识就可以。 "00000000-0000-0000-0000-000000000000" 表4 TerminalInfoReq对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 srcIpOrMac 是 string 0~64个字符。 - 源IP或MAC。 "192.168.1.1" srcPort 否 int32 [0-65535] - 源端口。 1 name 否 string 0~64个字符。 - 终端名称。 "terminal-exp" 表5 AppInfoReq对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 dstIp 否 string 0~64个字符。 - 目的IP。 "192.168.1.1" dstPort 否 int32 [0-65535] - 目的端口。 1 protocol 否 string 0~3个字符。 ANY 协议类型,取值为ANY,UDP,TCP。 "ANY" 表6 SmartAppInfo对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 appType 是 string 1~16个字符。 - 应用类型。Predefine表示预定义应用,Custom表示自定义应用。 "Custom" appId 否 string 0~64个字符。 - 应用ID。当appType是Predefine必填。 "12305" appName 否 string 0~128个字符。 - 应用名称。当appType是Custom必填。 "腾讯会议"
  • 响应示例 返回状态码为200:接口调用成功,响应体参考QueryCommunityFilterResponse。 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" : 1, "pageSize" : 20, "pageIndex" : 1, "data" : [ { "id" : "a99f794e-b510-438c-a75d-de59f02347eb", "siteId" : "a99f794e-b510-438c-a75d-de59f02347eb", "deviceId" : "a99f794e-b510-438c-a75d-de59f02347eb", "mode" : "basic", "name" : "communityTest", "nodes" : [ { "index" : 1, "matchMode" : "permit", "communityMembers" : ["10"], "regular" : "^65537$" } ] } ] } 返回状态码为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:接口调用成功,响应体参考QueryCommunityFilterResponse。 表2 QueryCommunityFilterResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" totalRecords integer - - 总数据条数。 1 pageSize integer - 20 每页显示数量,默认20。 20 pageIndex integer - - 当前页,从1开始。 1 data ARRAY_REFERENCE 0-100个列表项,详细请参见表6。 团体属性过滤器信息。 - 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 GET /controller/campus/v1/sdwan/routing-protocol/community-filter?pageIndex=1&pageSize=20&siteId=a99f794e-b510-438c-a75d-de59f02347eb&deviceId=a99f794e-b510-438c-a75d-de59f02347eb HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN: x-yyyyyy
  • URI /controller/campus/v1/sdwan/routing-protocol/community-filter 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 pageIndex 否 int32 [1-65535] 1 当前页,默认值为1。 1 pageSize 否 int32 [1-100] 20 每页显示数量,默认值为20。 20 siteId 是 string - - 站点ID,UUID格式。 "a99f794e-b510-438c-a75d-de59f02347eb" deviceId 是 string - - 设备ID,UUID格式。 "a99f794e-b510-438c-a75d-de59f02347eb"
  • 响应参数 返回状态码为200:查询返回的Soft-GRE模板信息。 表2 QuerySoftGreResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" totalRecords int32 [0-100] - 查询匹配到的SoftGre模板总数。 1 data ARRAY_REFERENCE 0-100个列表项,详细请参见表4。 返回的SoftGre模板记录信息。 - 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:查询返回的Soft-GRE模板信息。 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" : 1, "data" : [ { "id" : "fbde1c5d-5b94-49e3-a912-48641015e45c", "name" : "Soft-GREProfile1", "destinationIp" : "10.10.1.1", "keepAliveEnable" : true, "period" : 5, "retryTimes" : 3, "untaggedVlan" : 3 } ] } 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为500:内部错误。 HTTP/1.1 500 Internal Server Error Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 GET /controller/campus/api/v1/southboundservice/profile/softgre?pageIndex=1&pageSize=5&queryValue=dev1 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/api/v1/southboundservice/profile/softgre 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 pageIndex 否 int32 [1-20] - 页码。 1 pageSize 否 int32 [5-100] - 分页大小。 5 queryValue 否 string 0~64个字符。 - 过滤关键字。 "dev1"
  • 响应示例 返回状态码为200:配置成功,响应体参考ApplyPolicyResponse。 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" : "", "errparam" : "["policyName"]", "processInstanceId" : "" } 返回状态码为400:请求参数错误,无响应体。 HTTP/1.1 400 Bad Request Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为500:内部错误,无响应体。 HTTP/1.1 500 Internal Server Error Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 POST /controller/campus/v1/sdwan/policy/revoke 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 { "policyType" : "qos", "time" : "1676008846", "policyIds" : ["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
  • 请求示例 HTTP的示例 PUT /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-ssl-policy:ssl-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 restconf-transaction-id: "00000000-0000-0000-0000-000000000000" { "huawei-nce-e-ssl-policy:ssl-policies" : [ { "config-status" : "configured-database-success", "last-committed-time" : "2022-01-01 00:00:00", "related-pkg-version" : "1.0.1", "edit-state" : "RUNNING", "policy-name" : "test1", "pki-realm" : "default", "cert-file" : "Device-cert.pem", "key-file" : "Device-key.pem", "auth-code-cert" : "Huawei@123", "ca-file-one" : "SRV6_CA.cer", "auth-code-ca-one" : "ddddd", "ca-file-two" : "ddddd", "auth-code-ca-two" : "ddddd" } ] }
共100000条
提示

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