华为云用户手册

  • URI /controller/campus/v1/sdwan/net/site-manage-link 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 否 UUID - - 站点ID,格式为uuid,站点ID和设备ID至少有一个。 "a99f794e-b510-438c-a75d-de59f02347eb" deviceId 否 UUID - - 设备ID,格式为uuid,站点ID和设备ID至少有一个。 "a99f794e-b510-438c-a75d-de59f02347cd"
  • 响应示例 返回状态码为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的示例 GET /controller/campus/v1/sdwan/net/site-manage-link?siteId=a99f794e-b510-438c-a75d-de59f02347eb&deviceId=a99f794e-b510-438c-a75d-de59f02347cd 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
  • 请求示例 HTTP的示例 DELETE /controller/campus/v1/networkservice/networkconfig/net/lswglobalvlan/devices/ffce359c-cf08-4717-bc26-c6e6af8f0ec3/globalvlan/813a76d4-6eec-4264-ae45-a6f261482b60 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:查看当前站点纳管的WAN链路成功,响应体参考QuerySiteManagerLinkResponse。 表2 QuerySiteManagerLinkResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" data ARRAY_REFERENCE 0-1000个列表项,详细请参见表3。 当前站点纳管的WAN链路。 - 表3 SiteManagerLinkInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 siteId UUID - - 站点ID,格式为uuid。 "a99f794e-b510-438c-a75d-de59f02347eb" deviceId UUID - - 设备ID,格式为uuid。 "a99f794e-b510-438c-a75d-de59f02347cd" deviceName string - - 设备名称。 "Device1" wanLinkId string - - 链路ID,格式为uuid。 "a99f794e-b510-438c-a75d-de59f02347dd" wanName string - - WAN链路名称。 "link1" protocol string - - 注册AC链路的协议:IPv4、IPv6。 "IPv4" interfaceName string - - 物理接口名称。 "GigabitEthernet0/0/4" switchState string - - 切换状态。 "failed" reasons string - - 失败原因。 "连接失败" linkUpdateState string - - 链路更新状态。该字段已废弃。 "success" 返回状态码为400:校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:内部错误。 详细信息请参见实际响应消息体。
  • URI /controller/campus/v1/networkservice/networkconfig/site-template-binding-relationship/{siteTemplateId}/batch-delete 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteTemplateId 是 string 36个字符。 - 站点模板ID,UUID格式。 "fbde1c5d-5b94-49e3-a912-48641015e451"
  • 请求示例 HTTP的示例 POST /controller/campus/v1/networkservice/networkconfig/site-template-binding-relationship/fbde1c5d-5b94-49e3-a912-48641015e451/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 { "siteIds" : [ "4f350825-919c-47b7-b853-f51f15912396" ] }
  • 响应示例 返回状态码为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" : [ "4f350825-919c-47b7-b853-f51f15912396" ], "fail" : [ { "errcode" : "0x00c80035", "errmsg" : "Invalid parameter.", "data" : "4f350825-919c-47b7-b853-f51f15912396" } ] } 返回状态码为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:查询成功,响应体参考TerminalPrivacyList。 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, "total" : 100, "terminalPrivacy" : [ { "id" : "b9b34988-0dff-4def-9e55-7bc0b3dc21b4", "policyName" : "TenantPolicy", "storageTime" : "30", "dataMasking" : "false", "isEnable" : "false" } ] } 返回状态码为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/terminal-privacy?policyType=TENANT&pageIndex=1&pageSize=10 HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN: x-yyyyyy
  • 响应参数 返回状态码为200:查询成功,响应体参考TerminalPrivacyList。 表2 TerminalPrivacyList对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。当没有错误时返回0。 "0" errmsg string - - 错误信息。当没有错误时返回""。 "" pageIndex int32 - - 页码。 1 pageSize int32 - - 页长。 20 total int32 - - 策略总数。 100 terminalPrivacy ARRAY_REFERENCE 0-100个列表项,详细请参见表3。 终端隐私策略。 - 表3 TerminalPrivacy对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string - - 策略ID。 "b9b34988-0dff-4def-9e55-7bc0b3dc21b4" policyName string - - 策略名称。该字段对应UI界面上是:UI【策略名称】 "TenantPolicy" storageTime int32 - - 终端接入记录存储时间,单位:天。 "30" dataMasking boolean true false - 终端信息匿名化。该字段对应UI界面上是:UI【终点信息匿名化】 "false" isEnable boolean true false - 策略是否启用。该字段对应UI界面上是:UI【策略是否启用】 "false" 返回状态码为400:查询失败,参数校验异常。 详细信息请参见实际响应消息体。 返回状态码为500:查询失败,服务内部错误。 详细信息请参见实际响应消息体。
  • URI /controller/campus/api/v1/terminal-privacy 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 policyType 是 string - - 终端隐私设置策略类型, 该字段可以设置为以下几种: a) TENANT:租户级 b) SITE:站点级 "TENANT" pageIndex 否 int32 - 1 页码,该字段的取值范围是:1-2147483647。 1 pageSize 否 int32 [10-100] 10 页长,该字段的取值范围是:10-100。 10
  • 请求示例 HTTP的示例 PUT /controller/campus/v1/networkservice/networkconfig/net/apextraservice/sites/fbb684c8-0d37-496f-bafa-4b06d5151e2e/apextraservices 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 { "mu" : true, "serverIp" : "www.example.com", "serverPort" : 10020, "interver" : 10000, "rssi" : -80, "apLocationEnable" : true, "apLocation" : "B2-5F-01", "enablePsk" : false }
  • 响应示例 返回状态码为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" : { "mu" : true, "serverIp" : "www.example.com", "serverPort" : 10020, "interver" : 10000, "rssi" : -80, "enablePsk" : false, "lastUpdateTime" : "2019-05-15 15:06", "apLocationEnable" : true, "apLocation" : "B2-5F-01" } }
  • URI /controller/campus/v1/networkservice/networkconfig/net/apextraservice/sites/{siteId}/apextraservices 表1 path参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 string - - 站点ID。 "fbb684c8-0d37-496f-bafa-4b06d5151e2e"
  • 请求参数 表2 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 body 是 REFERENCE 详细请参见表3。 站点内AP增值服务配置参数体。 - 表3 ApExtraServiceInputDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 mu 否 boolean true false false 是否开启上传功能,将终端位置信息上报到指定服务器。默认值为false。 true serverIp 否 string - - 服务器IP/ 域名 。当mu为true时,参数serverIp和serverPort必填。 "www.example.com" serverPort 否 integer [1-65535] 10031 端口号,必须为1-65535范围内的整数,不填默认为10031。端口号跟服务器IP/域名要么都填,要么都不填。 10020 interver 否 integer [500-60000] 20000 上报周期,单位为ms,必须是500-60000范围内的整数,不填默认为20000。 10000 rssi 否 integer [-95-0] -75 阈值,必须为-95-0范围内的整数,不填默认为-75。 -80 apLocationEnable 是 boolean true false false 用于标识AP安装位置信息开关是否打开。默认值为false。 true apLocation 否 string 1~63个字符。满足正则表达[a-zA-Z0-9\x5f\x2d\x40\x2e]{1,}。 - AP安装位置信息。当apLocationEnable为true时,apLocation必填。 "B2-5F-01" enablePsk 否 boolean true false false PSK使能。 默认值为false。 false
  • 响应示例 返回状态码为200:查询成功,响应体参考QueryDeviceAuthenResponse。 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" : [ { "siteId" : "00000000-0000-0000-0000-000000000000", "deviceId" : "00000000-0000-0000-0000-000000000000", "authenticationSchema" : "name", "authenticationModel" : { "primaryModel" : "hwtacacs", "backupModel" : "local" }, "deviceAuthenId" : "00000000-0000-0000-0000-000000000000" } ], "pageIndex" : 1, "pageSize" : 10, "totalRecords" : 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 返回状态码为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/aaa/authentication 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 pageIndex 否 int32 [1-1000] - 起始页。 1 pageSize 否 int32 [0-100] - 页行记录数。 10 siteId 否 uuid - - 站点ID。 "00000000-0000-0000-0000-000000000000" deviceId 否 uuid - - 设备ID。 "00000000-0000-0000-0000-000000000000" authenticationSchema 否 string - - 设备认证方案名称。 "name"
  • 请求示例 HTTP的示例 GET /controller/campus/v1/sdwan/aaa/authentication?pageIndex=1&pageSize=10&siteId=00000000-0000-0000-0000-000000000000&deviceId=00000000-0000-0000-0000-000000000000&authenticationSchema=name HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-ACCESS-TOKEN: x-yyyyyy
  • 响应参数 返回状态码为200:查询成功,响应体参考QueryDeviceAuthenResponse。 表2 QueryDeviceAuthenResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~10个字符。 - 错误码。 "0" errmsg string 0~255个字符。 - 错误描述。 "" data ARRAY_REFERENCE 0-100个列表项,详细请参见表5。 - - pageIndex int32 [1-10000] - 当前页,从1开始。 1 pageSize int32 [1-100] - 页大小。 10 totalRecords int32 [1-100000] - 总记录数。 100 返回状态码为400:请求参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:内部异常。 详细信息请参见实际响应消息体。
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 RequestBody 是 REFERENCE 详细请参见表2。 设备RADIUS服务器模板信息。 - 表2 DeviceRadiusServerTemplateInfoWithId对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 id 是 string 0~36个字符。 - 设备RADIUS服务器模板ID "00000000-0000-0000-0000-000000000000" templateInfo 是 REFERENCE 详细请参见表2。 - -
  • 响应示例 返回状态码为200:修改成功,响应体参考DeviceRadiusCreateOrUpdateResponse。 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" : "00000000-0000-0000-0000-000000000000", "templateInfo" : { "siteId" : "00000000-0000-0000-0000-000000000000", "deviceId" : "00000000-0000-0000-0000-000000000000", "name" : "RadiusServer1", "desc" : "RADIUS服务器", "isContainDomainName" : true, "sharedKey" : "Example@123", "primaryAuthenServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "ipAddress" : "10.134.6.5", "loopbackInterface" : "601" }, "secondAuthenServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "ipAddress" : "10.134.6.5", "loopbackInterface" : "601" }, "primaryAccountServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "ipAddress" : "10.134.6.5", "loopbackInterface" : "601" }, "secondAccountServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "ipAddress" : "10.134.6.5", "loopbackInterface" : "601" } } } } 返回状态码为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/rest/sdwan/v1/device/radius/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 { "id" : "00000000-0000-0000-0000-000000000000", "templateInfo" : { "siteId" : "00000000-0000-0000-0000-000000000000", "deviceId" : "00000000-0000-0000-0000-000000000000", "name" : "RadiusServer1", "desc" : "RADIUS服务器", "isContainDomainName" : true, "sharedKey" : "Example@123", "primaryAuthenServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "ipAddress" : "10.134.6.5", "loopbackInterface" : "601" }, "secondAuthenServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "ipAddress" : "10.134.6.5", "loopbackInterface" : "601" }, "primaryAccountServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "ipAddress" : "10.134.6.5", "loopbackInterface" : "601" }, "secondAccountServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "ipAddress" : "10.134.6.5", "loopbackInterface" : "601" } } }
  • 请求示例 HTTP的示例 GET /controller/campus/rest/sdwan/v1/device/radius/template?pageIndex=1&pageSize=10&siteId=00000000-0000-0000-0000-000000000000&deviceId=00000000-0000-0000-0000-000000000000&name=radiusServer1 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:查询成功,响应体参考QueryDeviceRadiusServerTemplateRsp。 表2 QueryDeviceRadiusServerTemplateRsp对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~10个字符。 - 错误码。 "0" errmsg string 0~255个字符。 - 错误描述。 "" pageIndex int32 [1-10000] - 当前页,从1开始。 1 pageSize int32 [1-10000] - 页大小。 10 totalRecords int32 [1-100000] - 总记录数。 100 data ARRAY_REFERENCE 0-10000个列表项,详细请参见表3。 设备RADIUS服务器模板信息 - 表3 DetailedDeviceRadiusServerTemplateInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 id string 0~36个字符。 - 设备RADIUS服务器模板ID "00000000-0000-0000-0000-000000000000" templateInfo REFERENCE 详细请参见表6。 - - createTime string 0~13个字符。 - 创建时间 "1604909066000" 返回状态码为400:请求参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:内部异常。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:查询成功,响应体参考QueryDeviceRadiusServerTemplateRsp。 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" : 10, "totalRecords" : 100, "data" : [ { "id" : "00000000-0000-0000-0000-000000000000", "templateInfo" : { "siteId" : "00000000-0000-0000-0000-000000000000", "deviceId" : "00000000-0000-0000-0000-000000000000", "name" : "RadiusServer1", "desc" : "RADIUS服务器", "isContainDomainName" : true, "sharedKey" : "Example@123", "primaryAuthenServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "ipAddress" : "10.134.6.5", "loopbackInterface" : "601" }, "secondAuthenServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "ipAddress" : "10.134.6.5", "loopbackInterface" : "601" }, "primaryAccountServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "ipAddress" : "10.134.6.5", "loopbackInterface" : "601" }, "secondAccountServerInfo" : { "serverIP" : "10.134.6.5", "serverPort" : 10, "tnpId" : "00000000-0000-0000-0000-000000000000", "vpnId" : "fbb684c8-0d37-496f-bafa-4b06d515j7l6", "ipAddress" : "10.134.6.5", "loopbackInterface" : "601" } }, "createTime" : "1604909066000" } ] } 返回状态码为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/rest/sdwan/v1/device/radius/template 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 pageIndex 是 int32 [0-10000] - 起始页。 pageIndex或pageSize为0时表示查询该租户下符合其他查询条件的所有RADIUS服务器模板。 1 pageSize 是 int32 [0-100] - 页行记录数。 pageIndex或pageSize为0时表示查询该租户下符合其他查询条件的所有RADIUS服务器模板。 10 siteId 否 string 0~36个字符。 - 站点ID "00000000-0000-0000-0000-000000000000" deviceId 否 string 0~36个字符。 - 设备ID "00000000-0000-0000-0000-000000000000" name 否 string 0~32个字符。 - 设备RADIUS服务器模板名称,模糊查询。 "radiusServer1"
  • 响应示例 返回状态码为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" : { "name" : "tacacs1", "description" : "", "masterAuthenServerIp" : "10.0.0.10", "masterAuthenServerPort" : 20, "slaveAuthenServerIp" : "10.1.1.10", "slaveAuthenServerPort" : 20, "thirdAuthenServerIp" : "10.0.0.10", "thirdAuthenServerPort" : 20, "masterAuthorServerIp" : "10.0.0.10", "masterAuthorServerPort" : 30, "slaveAuthorServerIp" : "10.1.1.10", "slaveAuthorServerPort" : 30, "thirdAuthorServerIp" : "10.0.0.10", "thirdAuthorServerPort" : 30, "masterAccServerIp" : "10.0.0.10", "masterAccServerPort" : 40, "slaveAccServerIp" : "10.1.1.10", "slaveAccServerPort" : 40, "thirdAccServerIp" : "10.0.0.10", "thirdAccServerPort" : 40, "includeDomain" : false, "builtInServerEnable" : false, "sourceIpEnable" : true, "configName" : "abc", "id" : "fbb684c8-0d37-496f-bafa-4b06db151e2e" } }
  • 请求示例 HTTP的示例 POST /controller/campus/v1/networkservice/networkconfig/profile/tacacs 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" : "tacacs1", "description" : "", "masterAuthenServerIp" : "10.0.0.10", "masterAuthenServerPort" : 20, "slaveAuthenServerIp" : "10.1.1.10", "slaveAuthenServerPort" : 20, "thirdAuthenServerIp" : "10.0.0.10", "thirdAuthenServerPort" : 20, "masterAuthorServerIp" : "10.0.0.10", "masterAuthorServerPort" : 30, "slaveAuthorServerIp" : "10.1.1.10", "slaveAuthorServerPort" : 30, "thirdAuthorServerIp" : "10.0.0.10", "thirdAuthorServerPort" : 30, "masterAccServerIp" : "10.0.0.10", "masterAccServerPort" : 40, "slaveAccServerIp" : "10.1.1.10", "slaveAccServerPort" : 40, "thirdAccServerIp" : "10.0.0.10", "thirdAccServerPort" : 40, "includeDomain" : false, "builtInServerEnable" : false, "sourceIpEnable" : true, "configName" : "abc", "shareKey" : "null" }
  • 响应参数 返回状态码为200:新增成功,返回配置信息。 表3 createTacacsTmplResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码。 "0" errmsg string - - 错误信息。 "" data REFERENCE 详细请参见表4。 - - 表4 tacacsTmplInfoDto对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 name string 1~32个字符。 - 名称(不支持$&?=+%][^_,#"相关特殊字符, 不支持修改)。 "tacacs1" description string 0~128个字符。 - 描述。 "" masterAuthenServerIp string - - 主认证服务器IP地址。 "10.0.0.10" masterAuthenServerPort integer [1-65535] - 主认证服务器端口。 20 slaveAuthenServerIp string - - 备认证服务器IP地址。 "10.1.1.10" slaveAuthenServerPort integer [1-65535] - 备认证服务器端口。 20 thirdAuthenServerIp string 0~15个字符。 - 第三认证服务器IP地址。 "10.0.0.10" thirdAuthenServerPort int32 [1-65535] - 第三认证服务器端口。 20 masterAuthorServerIp string - - 主授权服务器IP地址。 "10.0.0.10" masterAuthorServerPort integer [1-65535] - 主授权服务器端口。 30 slaveAuthorServerIp string - - 备授权服务器IP地址。 "10.1.1.10" slaveAuthorServerPort integer [1-65535] - 备授权服务器端口。 30 thirdAuthorServerIp string 0~15个字符。 - 第三授权服务器IP地址。 "10.0.0.10" thirdAuthorServerPort int32 [1-65535] - 第三授权服务器端口。 30 masterAccServerIp string - - 主计费服务器IP地址。 "10.0.0.10" masterAccServerPort integer [1-65535] - 主计费服务器端口。 40 slaveAccServerIp string - - 备计费服务器IP地址。 "10.1.1.10" slaveAccServerPort integer [1-65535] - 备计费服务器端口。 40 thirdAccServerIp string 0~15个字符。 - 主计费服务器IP地址。 "10.0.0.10" thirdAccServerPort int32 [1-65535] - 主计费服务器端口。 40 includeDomain boolean true false true 向Tacacs服务器发起认证的用户名是否包含域名。默认值为true。 false builtInServerEnable boolean true false false 是否启用内置服务器。目前还不支持,只用来做查询接口返回值,默认值为false。 false sourceIpEnable boolean true false - 源IP配置使能 true configName string 0~20个字符。满足正则表达^[a-zA-Z0-9._-]{0,20}$。 - 配置名称标识,用于tacacs-server-name "abc" id uuid - - Tacacs模板ID。 "fbb684c8-0d37-496f-bafa-4b06db151e2e"
共100000条
提示

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