华为云用户手册

  • 响应参数 返回状态码为200:删除成功,响应体参考CommonResponse。 表3 CommonResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~10个字符。 - 错误码。 "0" errmsg string 0~255个字符。 - 错误描述。 "" 返回状态码为400:请求参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:内部异常。 详细信息请参见实际响应消息体。
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 controllerValidateModifyInput 是 REFERENCE 详细请参见表2。 修改CPE接入非法控制器防范功能开关请求体。 - 表2 ControllerValidateModifyInput对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 controllerValidate 否 string 4~5个字符。 - 校验开关状态,该字段为“true”时,开关已开启,该字段为“false”时,开关未开启。 "true"
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/systemparameter/securityconfig/verify-controller 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 { "controllerValidate" : "true" }
  • 响应参数 返回状态码为200:修改CPE接入非法控制器防范功能开关成功,响应体参考ControllerValidateModifyOutput。 表3 ControllerValidateModifyOutput对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~2048个字符。 - 错误信息。 "OK" controllerValidate string 4~5个字符。 - 校验开关状态,该字段为“true”时,开关已开启,该字段为“false”时,开关未开启。 "true" 返回状态码为500:接口调用内部错误,无响应体。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:修改CPE接入非法控制器防范功能开关成功,响应体参考ControllerValidateModifyOutput。 HTTP/1.1 200 OK Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "OK", "controllerValidate" : "true" } 返回状态码为500:接口调用内部错误,无响应体。 HTTP/1.1 500 Internal Server Error Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 POST /controller/campus/v4/devices/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 { "discoverProtocol" : ["NETCONF","SNMP","COAP"], "deviceGroupId" : "c43fd065268d31b8bdfcc7faaec15726", "status" : ["NORMAL","ALARM"], "roles" : ["Gateway","CORE"], "types" : ["WAC","AP"], "keyWord" : "127.0.0.1", "name" : "AA02350", "esn" : "DLR00000", "model" : "P6050", "softwareVersion" : "R020C00", "patchVersion" : "patch001", "manageStatus" : ["NORMAL","DEVICE_ISOLATE"], "sortField" : "name", "pageIndex" : "4", "pageSize" : "20", "createTimeBegin" : 1616554000, "createTimeEnd" : 1616554000, "registerTimeBegin" : 1616554000, "registerTimeEnd" : 1616554000 }
  • 响应示例 返回状态码为200:调用查询设备成功,响应体参考QueryDeviceResult。 HTTP/1.1 200 OK Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "success", "pageIndex" : 1, "pageSize" : 20, "totalRecords" : 2, "data" : [ { "id" : "b473118d-17ff-4f4f-9fa9-a4c0e1e87e42", "name" : "AR1", "esn" : "2102351BTJ0000000666", "deviceModel" : "AR161EW", "deviceType" : "AR", "status" : "0", "siteId" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca", "mac" : "", "ip" : "192.168.0.10", "manageIp" : "192.168.0.10", "neType" : "AR161EW", "version" : "V300R003C00", "vendor" : "HUAWEI", "description" : "HUAWEI", "resourceId" : "HUAWEI", "tenantId" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca", "tenantName" : "XXX@XXX.com", "siteName" : "test1", "createTime" : "2017-12-13 01:37:28", "registerTime" : "2017-12-13 01:37:28", "modifyTime" : "2017-12-13 01:37:28", "startupTime" : "2017-12-13 01:37:28", "tags" : [ "" ], "systemIp" : "192.168.1.1", "patchVersion" : "V200R019SPH", "ztpConfirm" : false, "manageStatus" : "ABNORMAL", "manageStatusDownReason" : ["NEED_ZTP_CONFIRM","DEVICE_HAS_BEEN_ISOLATED"], "role" : ["Gateway"], "performance" : "", "uptime" : "0 天 1 时 10 分" } ] } 返回状态码为400:参数错误。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为500:服务内部错误。 HTTP/1.1 500 Internal Server Error Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 响应示例 返回状态码为201:创建成功返回。 HTTP/1.1 201 Created Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "", "naasNetworkId" : "" } 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为500:内部错误。 HTTP/1.1 500 Internal Server Error Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 响应参数 返回状态码为201:创建成功返回。 表10 NaasNetworkUpdateResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" naasNetworkId string - - 创建的ID。 "" 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 POST /controller/sdwan/v1/naas/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 { "naasNetworkId" : "00000000-0000-0000-0000-000000000000", "naasNetworkName" : "Template1", "naasNetworkPlatformType" : "", "networkInfrastructure" : { "subnet" : [ { "subnetName" : "subnet", "subnetId" : "00000000-0000-0000-0000-000000000000", "networkId" : "00000000-0000-0000-0000-000000000000", "portGroup" : "PortGroup-vmware", "segment" : "127.1.0.0/16", "reservedIps" : "127.1.1.1;127.1.1.2", "portGroupFc" : "PortGroup-fc" } ] }, "networkResources" : { "resources" : [ { "hostUnitType" : "director", "number" : 24 } ] }, "networkFunctions" : { "networkFunction" : [ { "interfaces" : [ { "nfiName" : "GE0/0/1", "subnetName" : "subnet" } ] } ] }, "initialLoadBalanceNumber" : "", "bandwidthRedundancy" : "", "nodeMaxDeviceNumber" : "" }
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 naasNetwork 是 REFERENCE 详细请参见表2。 NaasNetwork信息。 - 表2 NaasNetworkInfo对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 naasNetworkId 否 string 0~64个字符。 - 模板ID, 创建时不使用。 "00000000-0000-0000-0000-000000000000" naasNetworkName 是 string 1~32个字符。 - 服务链名称。 "Template1" naasNetworkPlatformType 否 int32 [1-3] 1 虚机平台类型,1:openstack, 2:vmware,3:FusionCompute。 - networkInfrastructure 否 REFERENCE 详细请参见表3。 服务功能。 - networkResources 否 REFERENCE 详细请参见表5。 资源。 - networkFunctions 否 REFERENCE 详细请参见表7。 服务功能。 - initialLoadBalanceNumber 否 int32 [1-8] 3 部署1个子设备的forwarder个数。 - bandwidthRedundancy 否 int32 [0-300] 50 带宽冗余度。 - nodeMaxDeviceNumber 否 int32 [1-1000] 512 每个forwarder部署的子设备最大数量。 - 表3 NetworkInfrastructure对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 subnet 否 ARRAY_REFERENCE 1-16个列表项,详细请参见表4。 地址池。 - 表4 NetworkInfrastructureSubnet对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 subnetName 是 string 1~127个字符。 - 子网名称。 "subnet" subnetId 否 string 1~127个字符。 - 子网UUID。 "00000000-0000-0000-0000-000000000000" networkId 否 string 1~127个字符。 - 网络UUID。 "00000000-0000-0000-0000-000000000000" portGroup 否 string 1~127个字符。 - 端口组名字,针对VMWare平台。 "PortGroup-vmware" segment 否 string 1~128个字符。 - 子网CIDR。 "127.1.0.0/16" reservedIps 否 string 0~1024个字符。 - 子网。 "127.1.1.1;127.1.1.2" portGroupFc 否 string 1~127个字符。 - 端口组名字,针对FusionCompute平台。 "PortGroup-fc" 表5 NetworkResources对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 resources 否 ARRAY_REFERENCE 2个列表项,详细请参见表6。 服务链资源组。 - 表6 NetworkResource对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 hostUnitType 是 string 1~32个字符。 - 取值为director或者forwarder,且director与forwarder必须同时填写。 "director" number 是 int32 [1-150] - 资源数量。 24 表7 NetworkFunctions对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 networkFunction 否 ARRAY_REFERENCE 1个列表项,详细请参见表8。 服务组。 - 表8 NetworkFunction对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 interfaces 是 ARRAY_REFERENCE 1-16个列表项,详细请参见表9。 服务接口组。 - 表9 NetworkFunctionInterface对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 nfiName 是 string 1~64个字符。 - 服务名称。 "GE0/0/1" subnetName 是 string 1~127个字符。 - 子网名称 "subnet"
  • 请求示例 HTTP的示例 PUT /controller/campus/v3/devices/00000000-0000-0000-0000-000000000000 HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN: x-yyyyyy { "name" : "AR1", "description" : "AR", "resourceId" : "HUAWEI", "siteId" : "00000000-0000-0000-0000-000000000001", "esn" : "2102351BTJ0000000666", "tags" : ["AP01"], "systemIp" : "192.168.1.1", "ztpConfirm" : true, "role" : ["Gateway"], "performance" : 0 }
  • 响应示例 返回状态码为200:修改设备基本信息成功,响应体参考ModifyDeviceBean。 HTTP/1.1 200 OK Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "", "data" : { "id" : "00000000-0000-0000-0000-000000000001", "name" : "AR1", "description" : "AR", "resourceId" : "HUAWEI", "siteId" : "00000000-0000-0000-0000-000000000001", "esn" : "2102351BTJ0000000666", "tags" : ["AP01"], "systemIp" : "192.168.1.1", "ztpConfirm" : true, "role" : ["Gateway"] } } 返回状态码为400:创建失败,错误请求。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为500:创建失败,内部服务器错误。 HTTP/1.1 500 Internal Server Error Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 响应示例 返回状态码为201:创建成功。 HTTP/1.1 201 Created Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "", "data" : { "zoneId" : "00000000-0000-0000-0000-00000000000f", "name" : "dmzzz", "priority" : "88", "description" : "finance dmz", "predefined" : true } } 返回状态码为400:校验失败。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为500:内部服务错误。 HTTP/1.1 500 Internal Server Error Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 POST /controller/campus/v1/networkconfig/profile/securityzones 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 { "name" : "dmzzz", "description" : "finance dmz", "priority" : "75" }
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 securityZoneInfo 是 REFERENCE 详细请参见表2。 待创建的安全域。 - 表2 CreateZoneInput对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 name 是 string 1~32个字符。 - 安全 域名 称,不能为name或vpn-instance,支持的字符包括a~zA~Z_.@数字。 "dmzzz" description 否 string 0~64个字符。 - 安全域描述,支持的字符包括a~zA~Z_.-@数字空格。 "finance dmz" priority 是 integer [1-100] - 安全域优先级。数值越大,优先级更高。 "75"
  • 响应示例 返回状态码为200:创建成功,返回结构体参见APTunelServiceResponseDto。 HTTP/1.1 200 OK Date: Thu,13 Sep 2018 10:00:00 GMT Server: example-server Content-Type: application/json { "errcode" : "0", "errmsg" : "", "data" : [ { "id" : "00000000000000000000000000000000", "name" : "tunnel1", "master-ip" : "192.168.0.1", "backup-ip" : "192.168.0.2", "auto-restore-enable" : true, "auto-restore-delay" : "100", "vlan" : "20,30-200,500", "dtls" : "disable", "backupDtls" : "disable" } ] }
  • 请求示例 HTTP的示例 POST /controller/campus/v1/networkservice/networkconfig/net/aptunnel/sites/fbb684c8-0d37-496f-bafa-4b06d5151e2e/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" : "00000000000000000000000000000000", "name" : "tunnel1", "master-ip" : "192.168.0.1", "backup-ip" : "192.168.0.2", "auto-restore-enable" : true, "auto-restore-delay" : 100, "vlan" : "20,30-200,500", "dtls" : "disable", "dtlsKey" : "tunnelkey", "backupDtls" : "disable", "backupDtlsKey" : "tunnelkey" }
  • 响应参数 返回状态码为200:创建成功,返回结构体参见APTunelServiceResponseDto。 表4 APTunelServiceResponseDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~64个字符。 - 错误码。 "0" errmsg string 0~256个字符。 - 错误信息。 "" data ARRAY_REFERENCE 0-8个列表项,详细请参见表5。 隧道配置列表,结构体参见ApTunnelDto。 - 表5 ApTunnelDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 32个字符。 - 隧道ID。创建时不要填写,修改时必填。 "00000000000000000000000000000000" name string 1~35个字符。 - 隧道名称。取值范围:1~35个半角字符,不能以双引号开头或结尾且不能包含空格和问号。不支持修改。 "tunnel1" master-ip string 7~15个字符。 - 主隧道IP。 "192.168.0.1" backup-ip string 7~15个字符。 - 备隧道IP。 "192.168.0.2" auto-restore-enable boolean true false false 自动恢复。默认值为false。 true auto-restore-delay int32 [60-600] - 自动恢复延时(单位秒)。 100 vlan string 1~30000个字符。 - 2-4094范围内的整数或段,多个整数或段间用“,”分割,最多可输入10组。且配置的隧道VLAN不能与管理VLAN相同,否则隧道VLAN不生效。 "20,30-200,500" dtls string 1~20个字符。 - 主隧道传输层数据包安全协议。取值范围:disable---不配置、psk---秘钥、mandatory-cert---证书。 "disable" dtlsKey password 1~64个字符。 - 该字段可能包含敏感信息和个人数据,请妥善做好保护。 主隧道认证秘钥,当传输层数据包安全协议选择psk时生效。取值范围:8~32个字符,至少包含大写字母、小写字母、数字或特殊字符中的两种,不能包含问号和空格。 "tunnelkey" backupDtls string 1~20个字符。 - 备隧道传输层数据包安全协议。取值范围:disable---不配置、psk---秘钥、mandatory-cert---证书。 "disable" backupDtlsKey password 1~64个字符。 - 该字段可能包含敏感信息和个人数据,请妥善做好保护。 备隧道认证秘钥,当传输层数据包安全协议选择psk时生效。取值范围:8~32个字符,至少包含大写字母、小写字母、数字或特殊字符中的两种,不能包含问号和空格。 "tunnelkey"
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 body 是 REFERENCE 详细请参见表3。 站点内AP隧道配置参数体,结构体参见ApTunnelDto。 - 表3 ApTunnelDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 id 否 string 32个字符。 - 隧道ID。创建时不要填写,修改时必填。 "00000000000000000000000000000000" name 是 string 1~35个字符。 - 隧道名称。取值范围:1~35个半角字符,不能以双引号开头或结尾且不能包含空格和问号。不支持修改。 "tunnel1" master-ip 是 string 7~15个字符。 - 主隧道IP。 "192.168.0.1" backup-ip 否 string 7~15个字符。 - 备隧道IP。 "192.168.0.2" auto-restore-enable 否 boolean true false false 自动恢复。默认值为false。 true auto-restore-delay 否 int32 [60-600] - 自动恢复延时(单位秒)。 100 vlan 是 string 1~30000个字符。 - 2-4094范围内的整数或段,多个整数或段间用“,”分割,最多可输入10组。且配置的隧道VLAN不能与管理VLAN相同,否则隧道VLAN不生效。 "20,30-200,500" dtls 否 string 1~20个字符。 - 主隧道传输层数据包安全协议。取值范围:disable---不配置、psk---秘钥、mandatory-cert---证书。 "disable" dtlsKey 否 password 1~64个字符。 - 该字段可能包含敏感信息和个人数据,请妥善做好保护。 主隧道认证秘钥,当传输层数据包安全协议选择psk时生效。取值范围:8~32个字符,至少包含大写字母、小写字母、数字或特殊字符中的两种,不能包含问号和空格。 "tunnelkey" backupDtls 否 string 1~20个字符。 - 备隧道传输层数据包安全协议。取值范围:disable---不配置、psk---秘钥、mandatory-cert---证书。 "disable" backupDtlsKey 否 password 1~64个字符。 - 该字段可能包含敏感信息和个人数据,请妥善做好保护。 备隧道认证秘钥,当传输层数据包安全协议选择psk时生效。取值范围:8~32个字符,至少包含大写字母、小写字母、数字或特殊字符中的两种,不能包含问号和空格。 "tunnelkey"
  • URI /controller/campus/v1/networkservice/networkconfig/net/aptunnel/sites/{siteId}/config 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 string 36个字符。 - 站点ID。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e"
  • 请求示例 HTTP的示例 POST /v1/networkservice/hierarchy-template/template-groups/00000000-0000-0000-0000-000000000000/tasks/00000000-0000-0000-0000-000000000000/action/deploy-binding HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN: x-yyyyyy
  • 响应示例 返回状态码为200:操作成功。 HTTP/1.1 200 OK Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "" } 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "" } 返回状态码为500:内部错误。 HTTP/1.1 500 Internal Server Error Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • URI /v1/networkservice/hierarchy-template/template-groups/{id}/tasks/{taskId}/action/deploy-binding 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 id 是 string 36个字符。 - 模板组ID,UUID格式。 "00000000-0000-0000-0000-000000000000" taskId 是 string 36个字符。 - 绑定部署任务ID,UUID格式。 "00000000-0000-0000-0000-000000000000"
  • 响应示例 返回状态码为200:更新成功返回。 HTTP/1.1 200 OK Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "", "totalRecords" : 100, "data" : [ { "parentId" : "00000000-0000-0000-0000-000000000000", "deviceId" : "00000000-0000-0000-0000-000000000000", "deviceName" : "tenant1", "isExclusiveResource" : false, "vpnNumber" : 100, "bandWidth" : 100, "siteNumber" : 100, "sdwanBandwidth" : 100, "encryptedSdwanBandwidth" : 100, "vxlanBandwidth" : 100, "status" : 0, "role" : "Interworking Gateway", "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "site1" } ] } 返回状态码为400:校验异常。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为500:内部错误。 HTTP/1.1 500 Internal Server Error Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 PUT /controller/sdwan/v1/naas/virtual/device 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 { "deviceInfos" : [ { "parentId" : "00000000-0000-0000-0000-000000000000", "deviceId" : "00000000-0000-0000-0000-000000000000", "deviceName" : "tenant1", "isExclusiveResource" : false, "vpnNumber" : 100, "bandWidth" : 100, "siteNumber" : 100, "sdwanBandwidth" : 100, "encryptedSdwanBandwidth" : 100, "vxlanBandwidth" : 100, "status" : 0, "role" : "Interworking Gateway", "siteId" : "00000000-0000-0000-0000-000000000000", "siteName" : "site1" } ] }
  • 请求示例 HTTP的示例 POST /controller/campus/v3/profile/acl/action/batch-delete HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN: x-yyyyyy { "ids" : [ "4f350825-919c-47b7-b853-f51f15912396" ] }
  • 响应示例 返回状态码为200:删除ACL模板成功。 HTTP/1.1 200 OK Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "", "success" : [ "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,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "", "success" : [ "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,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "errcode" : "0", "errmsg" : "", "success" : [ "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,16 Feb 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,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "huawei-nce-e-cli:command-alias" : [ { "alias" : "test1", "command" : "test2", "parameter" : "$test3" } ] } 返回状态码为400:请求参数错误。 HTTP/1.1 400 Bad Request Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive 返回状态码为500:内部错误。 HTTP/1.1 500 Internal Server Error Date: Sun,16 Feb 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive
  • 请求示例 HTTP的示例 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-ACCESS-TOKEN: x-yyyyyy restconf-transaction-id: "00000000-0000-0000-0000-000000000000"
共99354条