华为云用户手册

  • 响应示例 返回状态码为200:删除ACL模板成功。 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" : [ "4f350825-919c-47b7-b853-f51f15912396" ], "fail" : [ { "errcode" : "0302000020", "errmsg" : "The site ID format is incorrect or the site does not exist", "id" : "4f350825-919c-47b7-b853-f51f15912398" } ] } 返回状态码为207:删除ACL模板部分成功。 HTTP/1.1 207 Multi-Status 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" : [ "4f350825-919c-47b7-b853-f51f15912396" ], "fail" : [ { "errcode" : "0302000020", "errmsg" : "The site ID format is incorrect or the site does not exist", "id" : "4f350825-919c-47b7-b853-f51f15912398" } ] } 返回状态码为400:删除ACL模板全部失败。 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 { "errcode" : "0", "errmsg" : "", "success" : [ "4f350825-919c-47b7-b853-f51f15912396" ], "fail" : [ { "errcode" : "0302000020", "errmsg" : "The site ID format is incorrect or the site does not exist", "id" : "4f350825-919c-47b7-b853-f51f15912398" } ] } 返回状态码为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-cli:command-aliases/command-alias 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 command-alias-list对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-e-cli:command-alias ARRAY_REFERENCE 详细请参见表4。 别名实例。 - 表4 command-aliases-exactProperties-command-alias对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 alias string 1~63个字符。满足正则表达[a-zA-Z][a-zA-Z0-9-]*。 - 指定别名。必填,支持大、小写字母,数字及连字符"-",字母开头,不区分大小写,字符间不能有空格。别名定义出现循环嵌套或嵌套层次超过16层时,该别名节点无效,不会用于进行字符串替换。单一主键字段。 "test1" command string 1~511个字符。满足正则表达[^?]+。 - 指定别名命令行。必填,不支持英文问号,如果字符之间有空格,则字符串外必须使用双引号。指定别名参数配置后,必须在指定别名命令行里面包含进去。例如参数包含$a,则命令行格式应该为$a,"$a","xxx $a","xxx $a $xx"这样的形式。多个$参数必须连续保持在最后。 "test2" parameter string 2~511个字符。 - 指定别名参数。支持大、小写字母,数字及连字符"-",必须以"$"符号开头,不区分大小写,取值范围是2~63,最多支持32个参数,参数之间以空格进行分隔。指定别名命令行配置后,必须在指定别名参数里面定义。例如命令行格式为$a,"$a","xxx $a","xxx $a $xx"这样的形式,则指定别名参数必须包含$a。 "$test3" 返回状态码为400:请求参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-cli:command-aliases/command-alias 表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-cli:command-alias" : [ { "alias" : "test1", "command" : "test2", "parameter" : "$test3" } ] } 返回状态码为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/performanceservice/endpointbehavior/loyalty?tagId=9dffc44b-1824-42a4-ac48-616e3f0eaa2a&tagType=0&startTime=1567526400&endTime=1567527800&timeUnit=day 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:接口调用成功,响应体参考FlowDistrResp。 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" : [ { "targetName" : "humanflow", "counts" : [ { "count" : "123", "stamp" : 1565049600000 } ] } ] } 返回状态码为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
  • URI /controller/campus/v1/performanceservice/endpointbehavior/loyalty 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 tagId 否 string - - 查询维度具体id,UUID格式,根据tagType确定,当tagType为0或1时,tagId必填. "9dffc44b-1824-42a4-ac48-616e3f0eaa2a" tagType 是 string 0 1 2 - 查询类型: 0---站点维度查询,TagID为站点ID。 1---设备标签维度查询,TagID为设备标签ID。 2---租户维度查询,TagID不做校验,可为空。 "0" startTime 是 int32 - - 时间戳(秒),最大时间差不超过一年。 1567526400 endTime 是 int32 - - 时间戳(秒),最大时间差不超过一年。 1567527800 timeUnit 是 string day week month custom - 时间维度。 day---天维度 week---周维度 month---月维度 custom---自定义维度 "day"
  • 响应示例 返回状态码为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" : { "id" : "fbb684c8-0d37-496f-bafa-4b06db151e2e", "name" : "TEST", "ikeVersion" : "v1", "ikeEncryptAlgorithm" : "aes-256", "ikeNegotiationMode" : "main", "ikeAuthAlgorithm" : "sha2-256", "ikeIntegrityAlgorithm" : "sha2-256", "ikePrf" : "sha2-256", "ipsecTransformProtocol" : "ah", "ipsecEncapsulationMode" : "tunnel", "ipsecAhAuthAlgorithm" : "sha2-256", "ipsecAuthAlgorithm" : "sha2-256", "ipsecEncryptAlgorithm" : "aes-256", "ipsecPfs" : "group1", "ipsecLifetimeSeconds" : "30", "ipsecLifetimeKilobytes" : "256", "ipsecDpdType" : "periodic", "ipsecDpdMsg" : "seq-hash-notify", "ipsecDpdInterval" : "30", "ipsecDpdTimeout" : "15", "ikeDh" : "group1", "ikeLifeTime" : "60" } }
  • 响应参数 返回状态码为200:创建成功。 表3 EncryptitonPolicyResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息 "" data REFERENCE 详细请参见表4。 VPN配置数据 - 表4 EncryptitonPolicyConfigDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 36个字符。 - id "fbb684c8-0d37-496f-bafa-4b06db151e2e" name string 0~15个字符。 - 加密策略名称,请输入1-15位字符,由字母、数字、下划线、短线、点号、@符组成。 "TEST" ikeVersion string 0~3个字符。 - ike版本。取值【v1|v2|all】。只有当取值为v1时,需要配置协商模式,认证算法。 "v1" ikeEncryptAlgorithm string 0~7个字符。 - ike加密算法。取值【des|3des|aes-128|aes-192|aes-256】。 "aes-256" ikeNegotiationMode string 0~10个字符。 - (仅IKEv1)协商模式。取值【main|aggressive】。 "main" ikeAuthAlgorithm string 0~8个字符。 - (仅IKEv1)认证算法。取值【md5|sha1|sha2-256|sha2-384|sha2-512|sm3】。 "sha2-256" ikeIntegrityAlgorithm string 0~11个字符。 - (仅IKEv2)完整性算法。取值【aes-xcbc-96|md5|sha1|sha2-256|sha2-384|sha2-512】。 "sha2-256" ikePrf string 0~12个字符。 - (仅IKEv2)协商伪随机数产生函数(PRF)的算法。取值【aes-xcbc-128|md5|sha1|sha2-256|sha2-384|sha2-512】。 "sha2-256" ipsecTransformProtocol string 0~6个字符。 - ipsec 安全协议。取值【ah|esp|ah-esp】。当取值为ah、ah-esp时,需要配置认证算法。当取值为esp、ah-esp时,需要配置esp加密算法、esp认证算法。 "ah" ipsecEncapsulationMode string 0~8个字符。 - ipsec 封装模式。取值【tunnel|transport】。 "tunnel" ipsecAhAuthAlgorithm string 0~8个字符。 - ipsec 认证算法,ah、ah-esp安全协议下使用。取值【md5|sha1|sha2-256|sha2-384|sha2-512|sm3】。 "sha2-256" ipsecAuthAlgorithm string 0~8个字符。 - ipsec ESP认证算法,esp、ah-esp安全协议下使用。取值【md5|sha1|sha2-256|sha2-384|sha2-512】。 "sha2-256" ipsecEncryptAlgorithm string 0~15个字符。 - ipsec ESP加密算法。取值【3des|des|aes-128|aes-192|aes-256|none|aes-128-gcm-128|aes-192-gcm-128|aes-256-gcm-128】。 "aes-256" ipsecPfs string 0~7个字符。 - ipsec pfs。取值【group1|group2|group5|group14|group15|group16】。 "group1" ipsecLifetimeSeconds string 0~6个字符。 - ipsec sa 存活时间(基于时间)。取值30-604800。 "30" ipsecLifetimeKilobytes string 0~9个字符。 - ipsec sa 允许处理的最大流量(基于流量)。取值256-200000000。 "256" ipsecDpdType string 0~9个字符。 - ipsec dpd检测方式。取值【periodic|on-demand】。 "periodic" ipsecDpdMsg string 0~15个字符。 - ipsec dpd 载 荷顺序。取值【seq-hash-notify|seq-notify-hash】。 "seq-hash-notify" ipsecDpdInterval string 0~4个字符。 - ipsec dpd 检测时间间隔(秒)。取值10-3600。 "30" ipsecDpdTimeout string 0~2个字符。 - ipsec dpd 重传时间间隔(秒)。取值2-60。 "15" ikeDh string 0~7个字符。 - dh组。取值【group1|group2|group5|group14|group15|group16】。 "group1" ikeLifeTime string 0~6个字符。 - SA超时时间。取值30-604800。 "60"
  • 请求示例 HTTP的示例 POST /controller/campus/v1/networkservice/networkconfig/profile/apvpn/encryptionpolicy 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" : "fbb684c8-0d37-496f-bafa-4b06db151e2e", "name" : "TEST", "ikeVersion" : "v1", "ikeEncryptAlgorithm" : "aes-256", "ikeNegotiationMode" : "main", "ikeAuthAlgorithm" : "sha2-256", "ikeIntegrityAlgorithm" : "sha2-256", "ikePrf" : "sha2-256", "ipsecTransformProtocol" : "ah", "ipsecEncapsulationMode" : "tunnel", "ipsecAhAuthAlgorithm" : "sha2-256", "ipsecAuthAlgorithm" : "sha2-256", "ipsecEncryptAlgorithm" : "aes-256", "ipsecPfs" : "group1", "ipsecLifetimeSeconds" : "30", "ipsecLifetimeKilobytes" : "256", "ipsecDpdType" : "periodic", "ipsecDpdMsg" : "seq-hash-notify", "ipsecDpdInterval" : "30", "ipsecDpdTimeout" : "15", "ikeDh" : "group1", "ikeLifeTime" : "60" }
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 body 是 REFERENCE 详细请参见表2。 AP IPSEC 模板配置参数体。 - 表2 EncryptitonPolicyConfigDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 id 否 string 36个字符。 - id "fbb684c8-0d37-496f-bafa-4b06db151e2e" name 否 string 0~15个字符。 - 加密策略名称,请输入1-15位字符,由字母、数字、下划线、短线、点号、@符组成。 "TEST" ikeVersion 否 string 0~3个字符。 - ike版本。取值【v1|v2|all】。只有当取值为v1时,需要配置协商模式,认证算法。 "v1" ikeEncryptAlgorithm 否 string 0~7个字符。 - ike加密算法。取值【des|3des|aes-128|aes-192|aes-256】。 "aes-256" ikeNegotiationMode 否 string 0~10个字符。 - (仅IKEv1)协商模式。取值【main|aggressive】。 "main" ikeAuthAlgorithm 否 string 0~8个字符。 - (仅IKEv1)认证算法。取值【md5|sha1|sha2-256|sha2-384|sha2-512|sm3】。 "sha2-256" ikeIntegrityAlgorithm 否 string 0~11个字符。 - (仅IKEv2)完整性算法。取值【aes-xcbc-96|md5|sha1|sha2-256|sha2-384|sha2-512】。 "sha2-256" ikePrf 否 string 0~12个字符。 - (仅IKEv2)协商伪随机数产生函数(PRF)的算法。取值【aes-xcbc-128|md5|sha1|sha2-256|sha2-384|sha2-512】。 "sha2-256" ipsecTransformProtocol 否 string 0~6个字符。 - ipsec 安全协议。取值【ah|esp|ah-esp】。当取值为ah、ah-esp时,需要配置认证算法。当取值为esp、ah-esp时,需要配置esp加密算法、esp认证算法。 "ah" ipsecEncapsulationMode 否 string 0~8个字符。 - ipsec 封装模式。取值【tunnel|transport】。 "tunnel" ipsecAhAuthAlgorithm 否 string 0~8个字符。 - ipsec 认证算法,ah、ah-esp安全协议下使用。取值【md5|sha1|sha2-256|sha2-384|sha2-512|sm3】。 "sha2-256" ipsecAuthAlgorithm 否 string 0~8个字符。 - ipsec ESP认证算法,esp、ah-esp安全协议下使用。取值【md5|sha1|sha2-256|sha2-384|sha2-512】。 "sha2-256" ipsecEncryptAlgorithm 否 string 0~15个字符。 - ipsec ESP加密算法。取值【3des|des|aes-128|aes-192|aes-256|none|aes-128-gcm-128|aes-192-gcm-128|aes-256-gcm-128】。 "aes-256" ipsecPfs 否 string 0~7个字符。 - ipsec pfs。取值【group1|group2|group5|group14|group15|group16】。 "group1" ipsecLifetimeSeconds 否 string 0~6个字符。 - ipsec sa 存活时间(基于时间)。取值30-604800。 "30" ipsecLifetimeKilobytes 否 string 0~9个字符。 - ipsec sa 允许处理的最大流量(基于流量)。取值256-200000000。 "256" ipsecDpdType 否 string 0~9个字符。 - ipsec dpd检测方式。取值【periodic|on-demand】。 "periodic" ipsecDpdMsg 否 string 0~15个字符。 - ipsec dpd 载 荷顺序。取值【seq-hash-notify|seq-notify-hash】。 "seq-hash-notify" ipsecDpdInterval 否 string 0~4个字符。 - ipsec dpd 检测时间间隔(秒)。取值10-3600。 "30" ipsecDpdTimeout 否 string 0~2个字符。 - ipsec dpd 重传时间间隔(秒)。取值2-60。 "15" ikeDh 否 string 0~7个字符。 - dh组。取值【group1|group2|group5|group14|group15|group16】。 "group1" ikeLifeTime 否 string 0~6个字符。 - SA超时时间。取值30-604800。 "60"
  • URI /v1/networkservice/hierarchy-template/template-groups/{id}/members/batch-delete/details 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 id 是 string 36个字符。 - 模板组ID,UUID格式。 "00000000-0000-0000-0000-000000000000"
  • 请求示例 HTTP的示例 POST /v1/networkservice/hierarchy-template/template-groups/00000000-0000-0000-0000-000000000000/members/batch-delete/details 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 { "pageIndex" : 1, "pageSize" : 10, "templateName" : "template1", "bindingName" : "binding1", "deviceName" : "device1", "siteName" : "site1", "deleteTemplateGroupInput" : { "deleteIds" : ["00000000-0000-0000-0000-000000000000"] }, "id" : "00000000-0000-0000-0000-000000000000" }
  • 响应示例 返回状态码为200:Success。 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 { "totalRecords" : 100, "progress" : 0.9, "data" : [ { "id" : "00000000-0000-0000-0000-000000000000", "name" : "TemplateBinding1", "templateId" : "00000000-0000-0000-0000-000000000000", "createTime" : "1713880927744", "description" : "this is TemplateBinding1", "totalDeviceNum" : 100, "deployedLastestSuccessDeviceCount" : 100, "templateBindingStatus" : "last-template-partly-deployed", "deployLastVersion" : true, "templateName" : "this is template1", "devices" : { "totalRecords" : 100, "data" : [ { "id" : "00000000-0000-0000-0000-000000000000", "name" : "device1", "ip" : "127.0.0.1", "siteName" : "site1", "deployStatus" : "deployment-successed", "deployTime" : "1713880927744", "deployLastVersion" : true, "deployErrorMsg" : {"errorCode":"0x00c8000c","errorType":"APPLICATION","message":"The request failed because the mandatory node is empty"} } ] } } ] } 返回状态码为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 { "errcode" : "0", "errmsg" : "" } 返回状态码为500:内部服务错误。 HTTP/1.1 500 Internal Server Error Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 响应示例 返回状态码为200:操作成功。 HTTP/1.1 200 OK Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为400:请求参数错误。 HTTP/1.1 400 Bad Request Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为500:内部错误。 HTTP/1.1 500 Internal Server Error Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-bd:bd 表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-bd:bd 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 { "huawei-nce-e-cli:command-alias" : [ { "alias" : "test1", "command" : "test2", "parameter" : "$test3" } ] } 返回状态码为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-cli:command-aliases/command-alias/test1 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-cli:command-aliases/command-alias/{alias} 表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" alias 是 string 1~63个字符。满足正则表达[a-zA-Z][a-zA-Z0-9-]*。 - 指定别名。必填,支持大、小写字母,数字及连字符"-",字母开头,不区分大小写,字符间不能有空格。别名定义出现循环嵌套或嵌套层次超过16层时,该别名节点无效,不会用于进行字符串替换。单一主键字段。 "test1"
  • 请求参数 表2 header参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 restconf-transaction-id 是 string - - 事务ID。 "00000000-0000-0000-0000-000000000000" 表3 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-e-queue-template:port-queue-template 是 REFERENCE 详细请参见表4。 端口队列模板。 - 表4 nes-ne-port-queue-template-exclude-patch-false-augment对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 huawei-nce-e-queue-template:port-queue-template 否 REFERENCE 详细请参见表5。 端口队列模板。 - 表5 port-queue-template-patch-false对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 name 否 string 1~31个字符。满足正则表达[a-zA-Z0-9]([^\s]*)。 - 名称,单一主键字段。 "Port Queue Template" queue 否 ARRAY_REFERENCE 0-8个列表项,详细请参见表6。 端口队列。 - 表6 nes-ne-port-queue-template-queue-patch-false对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 service-class 否 string be af1 af2 af3 af4 ef cs6 cs7 - 服务等级,单一主键字段。 "be" port-wred-name 否 string 1~31个字符。满足正则表达[a-zA-Z0-9]([^\s]*)。 - WRED模板。 "Port wred name" queue-schedule-mode 否 string pq wfq lpq - 队列调度模式。 "pq" weight 否 int32 [1-100] - 权重。 10 pbs 否 int64 [1-65535] - 峰值突发尺寸(Byte)。 65534 low-latency 否 string enable - 低时延。 "enable" shaping-value 否 int64 [0-4294967294] - 整形值。 64 shaping-percentage 否 int32 [0-100] - 整形百分比。 10 cir-schedule-mode 否 string pq - 承诺调度模式。 "pq" pir-schedule-mode 否 string pq wfq lpq - 峰值调度模式。 "pq" pir-weight 否 int32 [1-100] - 峰值权重。 10 cbs 否 int64 [1-65535] - 承诺突发尺寸。 65534 pir-pbs 否 int64 [1-65535] - 峰值速率-峰值突发尺寸。 65534 cir-value 否 int64 [0-4294967294] - 承诺速率。 10 pir-value 否 int64 [0-4294967294] - 峰值速率。 10 cir-percentage 否 int32 [0-100] - 承诺百分比。 10 pir-percentage 否 int32 [0-100] - 峰值百分比。 10
  • 响应示例 返回状态码为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的示例 PATCH /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-queue-template:port-queue-template 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-queue-template:port-queue-template" : { "name" : "Port Queue Template", "queue" : [ { "service-class" : "be", "port-wred-name" : "Port wred name", "queue-schedule-mode" : "pq", "weight" : 10, "pbs" : 65534, "low-latency" : "enable", "shaping-value" : 64, "shaping-percentage" : 10, "cir-schedule-mode" : "pq", "pir-schedule-mode" : "pq", "pir-weight" : 10, "cbs" : 65534, "pir-pbs" : 65534, "cir-value" : 10, "pir-value" : 10, "cir-percentage" : 10, "pir-percentage" : 10 } ] } }
  • URI /restconf/v2/data/huawei-ac-nes-device:nes/ne/{id}/huawei-nce-e-queue-template:port-queue-template 表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:查询成功,响应体参考QueryDetectionUrlsResponse。 表2 QueryDetectionUrlsResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" totalRecords int32 - - 总的数据量。 1 pageSize int32 - - 每页显示数量。 10 pageIndex int32 - - 当前页数。 1 data ARRAY_REFERENCE 详细请参见表5。 应用探测URL信息。 - 返回状态码为400:请求参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:查询成功,响应体参考QueryDetectionUrlsResponse。 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" : 10, "pageIndex" : 1, "data" : [ { "id" : "000000-0000-0000-0000-000000000000", "appName" : "Google", "detectionUrl" : "https://huawei.com", "appType" : 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
  • URI /controller/campus/v1/sdwan/application/detection-url 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 pageIndex 是 int32 [1-1000] 1 当前页数,默认是1。 1 pageSize 是 int32 [1-100] 20 每页显示数量,默认是20。 20 appType 否 int32 [0-2] 0 应用类型,取值范围:0表示不按类型查询,1表示查询预定义应用,2表示查询自定义应用。默认为0。 0 id 否 string 0~64个字符。 - 应用探测URL ID。 "000000-0000-0000-0000-000000000000" appName 否 string 0~128个字符。 - 应用名称,支持模糊匹配。 "office"
  • 请求示例 HTTP的示例 GET /controller/campus/v1/sdwan/application/detection-url?pageIndex=1&pageSize=20&appType=0&id=000000-0000-0000-0000-000000000000&appName=office 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:接口调用成功,响应体参考InterfacePerformanceResp。 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" : [ { "mac" : "xx:xx:xx:xx:xx:xx", "interfacePackets" : [ { "interfaceName" : "interface1", "outBandwidth" : "10", "inputBandwidth" : "80", "upwardTraffic" : 100, "downwardTraffic" : 100 } ] } ] } 返回状态码为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
共100000条
提示

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