云服务器内容精选

  • 请求示例 HTTP的示例 POST /controller/campus/ui/v1/sdwan/lan/static-arps/action/batch-delete 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 { "vpnId" : "00000000-0000-0000-0000-00000000", "siteId" : "00000000-0000-0000-0000-00000000", "staticArp" : [ { "deviceId" : "00000000-0000-0000-0000-00000000", "id" : "00000000-0000-0000-0000-00000000", "vlanId" : "100", "ipAddress" : "192.168.1.1", "macAddress" : "0000-0000-0000", "outInterfaceName" : "GigabitEthernet0/0/0", "arpType" : "system" } ] }
  • 响应示例 返回状态码为200:接口调用成功,响应体参考StaticArpResponse。 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" : "", "vpnId" : "00000000-0000-0000-0000-00000000", "siteId" : "00000000-0000-0000-0000-00000000", "success" : [ { "deviceId" : "00000000-0000-0000-0000-00000000", "id" : "00000000-0000-0000-0000-00000000", "vlanId" : "100", "ipAddress" : "192.168.1.1", "macAddress" : "0000-0000-0000", "outInterfaceName" : "GigabitEthernet0/0/0", "arpType" : "system" } ], "fail" : [ { "errparams" : [ "siteId" ], "errcode" : "0", "errmsg" : "", "data" : { "deviceId" : "00000000-0000-0000-0000-00000000", "id" : "00000000-0000-0000-0000-00000000", "vlanId" : "100", "ipAddress" : "192.168.1.1", "macAddress" : "0000-0000-0000", "outInterfaceName" : "GigabitEthernet0/0/0", "arpType" : "system" } } ] } 返回状态码为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:接口调用成功,响应体参考StaticArpResponse。 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" : "", "vpnId" : "00000000-0000-0000-0000-00000000", "siteId" : "00000000-0000-0000-0000-00000000", "success" : [ { "deviceId" : "00000000-0000-0000-0000-00000000", "id" : "00000000-0000-0000-0000-00000000", "vlanId" : "100", "ipAddress" : "192.168.1.1", "macAddress" : "0000-0000-0000", "outInterfaceName" : "GigabitEthernet0/0/0", "arpType" : "system" } ], "fail" : [ { "errparams" : [ "siteId" ], "errcode" : "0", "errmsg" : "", "data" : { "deviceId" : "00000000-0000-0000-0000-00000000", "id" : "00000000-0000-0000-0000-00000000", "vlanId" : "100", "ipAddress" : "192.168.1.1", "macAddress" : "0000-0000-0000", "outInterfaceName" : "GigabitEthernet0/0/0", "arpType" : "system" } } ] } 返回状态码为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/ui/v1/sdwan/lan/static-arps 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 { "vpnId" : "00000000-0000-0000-0000-00000000", "siteId" : "00000000-0000-0000-0000-00000000", "staticArp" : [ { "deviceId" : "00000000-0000-0000-0000-00000000", "id" : "00000000-0000-0000-0000-00000000", "vlanId" : "100", "ipAddress" : "192.168.1.1", "macAddress" : "0000-0000-0000", "outInterfaceName" : "GigabitEthernet0/0/0", "arpType" : "system" } ] }
  • 请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 body 是 REFERENCE 详细请参见表2。 创建SD-WAN Static ARP子网参数体。 - 表2 StaticArps对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 vpnId 否 uuid - - vpn id标识,uuid格式。创建和修改Static ARP时必填,删除Static ARP非必填。 "00000000-0000-0000-0000-00000000" siteId 否 uuid - - 站点 id标识,uuid格式。创建和修改Static ARP时必填,删除Static ARP非必填。 "00000000-0000-0000-0000-00000000" staticArp 否 ARRAY_REFERENCE 1-100个列表项,详细请参见表3。 Static ARP集合 - 表3 StaticArp对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 deviceId 是 uuid 0~36个字符。 - 设备ID,VRRP使能是对两个设备生效,不需要指定设备ID,uuid格式。 "00000000-0000-0000-0000-00000000" id 否 uuid - - 子网ID,用来识别更新还是增加的关键元素。 "00000000-0000-0000-0000-00000000" vlanId 否 string 0~32个字符。 - VLAN ID。L2LAN接口VLAN ID或者L3LAN接口子接口的VLAN ID。 "100" ipAddress 否 string 0~32个字符。 - IP地址。当arpType取值为interface时,使用引用的LAN接口同网段地址。 "192.168.1.1" macAddress 否 string 0~64个字符。 - MAC地址。 "0000-0000-0000" outInterfaceName 否 string 0~32个字符。 - 出接口接口名称。LAN接口引用的物理接口或者Eth-Trunk。 "GigabitEthernet0/0/0" arpType 否 string 1~18个字符。 system arp类型,取值范围:system、interface。创建时必填。配置后不支持修改。 "system"
  • 请求示例 HTTP的示例 PUT /controller/campus/ui/v1/sdwan/lan/static-arps 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 { "vpnId" : "00000000-0000-0000-0000-00000000", "siteId" : "00000000-0000-0000-0000-00000000", "staticArp" : [ { "deviceId" : "00000000-0000-0000-0000-00000000", "id" : "00000000-0000-0000-0000-00000000", "vlanId" : "100", "ipAddress" : "192.168.1.1", "macAddress" : "0000-0000-0000", "outInterfaceName" : "GigabitEthernet0/0/0", "arpType" : "system" } ] }
  • 响应示例 返回状态码为200:接口调用成功,响应体参考StaticArpResponse。 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" : "", "vpnId" : "00000000-0000-0000-0000-00000000", "siteId" : "00000000-0000-0000-0000-00000000", "success" : [ { "deviceId" : "00000000-0000-0000-0000-00000000", "id" : "00000000-0000-0000-0000-00000000", "vlanId" : "100", "ipAddress" : "192.168.1.1", "macAddress" : "0000-0000-0000", "outInterfaceName" : "GigabitEthernet0/0/0", "arpType" : "system" } ], "fail" : [ { "errparams" : [ "siteId" ], "errcode" : "0", "errmsg" : "", "data" : { "deviceId" : "00000000-0000-0000-0000-00000000", "id" : "00000000-0000-0000-0000-00000000", "vlanId" : "100", "ipAddress" : "192.168.1.1", "macAddress" : "0000-0000-0000", "outInterfaceName" : "GigabitEthernet0/0/0", "arpType" : "system" } } ] } 返回状态码为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
  • 响应示例 返回状态码为200:查询指定站点的所有LAN子网列表接口调用成功,响应体参考QueryStaticArpsResponse。 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 { "errparams" : [ "siteId" ], "errcode" : "0", "errmsg" : "", "totalRecords" : 200, "pageSize" : 20, "pageIndex" : 1, "data" : { "vpnId" : "00000000-0000-0000-0000-00000000", "siteId" : "00000000-0000-0000-0000-00000000", "staticArp" : [ { "deviceId" : "00000000-0000-0000-0000-00000000", "id" : "00000000-0000-0000-0000-00000000", "vlanId" : "100", "ipAddress" : "192.168.1.1", "macAddress" : "0000-0000-0000", "outInterfaceName" : "GigabitEthernet0/0/0", "arpType" : "system" } ] } } 返回状态码为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 /controller/campus/ui/v1/sdwan/lan/static-arps?pageIndex=0&pageSize=20&sort=name&vpnId=00000000-0000-0000-0000-00000000&siteId=00000000-0000-0000-0000-00000000&id=00000000-0000-0000-0000-00000000&keyType=IP&keyWord=192.168.1.1 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/ui/v1/sdwan/lan/static-arps 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 pageIndex 否 int32 [0-400] 0 当前页数,默认是0,当不填时表示查询所有页。 0 pageSize 否 int32 [0-1000] 20 页大小,默认是20。 20 sort 否 string 0~255个字符。 - 排序字段,默认情况下不排序。 "name" vpnId 否 uuid - - 所在VPN ID。当不填ID时,vpnid和siteid必须一起填写。 "00000000-0000-0000-0000-00000000" siteId 否 uuid - - 所在站点ID。当不填ID时,vpnid和siteid必须一起填写。 "00000000-0000-0000-0000-00000000" id 否 uuid - - IP Subnet ID。 "00000000-0000-0000-0000-00000000" keyType 否 string 0~16个字符。 - 关键字类型:IP或MAC。 "IP" keyWord 否 string 0~128个字符。 - 关键字。 "192.168.1.1"