云服务器内容精选

  • 响应参数 返回状态码为200:查询成功,响应体参考GetIPSecInfoRsp。 表3 GetIpsecInfoRsp对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~10个字符。 - 错误码。 "0" errmsg string 0~255个字符。 - 错误信息。 "" pageIndex int32 [1-10000] - 分页序号。 1 pageSize integer [1-100] - 分页大小。 10 totalRecords int32 [0-10000] - 条目总数。 100 collectedTime int64 - - 数据采集时间戳。 "1693222020466" data ARRAY_REFERENCE 0-10000个列表项,详细请参见表4。 设备IPSec信息结构体。 - 表4 IpsecInfo对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 deviceId string 0~36个字符。 - 设备ID。 "00000000-0000-0000-0000-000000000000" siteId string 0~36个字符。 - 站点ID。 "00000000-0000-0000-0000-000000000000" deviceName string 0~256个字符。 - 设备名称。 "deviceName" siteName string 0~256个字符。 - 站点名称。 "siteName" ifmName string 0~256个字符。 - 接口名称。 "GE0/0/1" peerAddress string 0~256个字符。 - 对端IP地址。 "192.168.1.1" peerPort int32 [1-65535] - 对端UDP端口号。 1 localAddress string 0~256个字符。 - 对端IP地址。 "192.168.1.1" localPort int32 [1-65535] - 本端UDP端口号。 1 status string 0~256个字符。 - IPSec隧道状态,Up:IPSec隧道建立成功;Down :IPSec隧道Down;Not found:设备无IPSec隧道;查询失败:设备在线状态异常,设备返回错误;版本不支持:设备版本不支持(V600R024C00、V300R023C00SPC100之前设备)。 "siteName" 返回状态码为400:请求参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:内部异常。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:查询成功,响应体参考GetIPSecInfoRsp。 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" : "", "pageIndex" : 1, "pageSize" : 10, "totalRecords" : 100, "collectedTime" : "1693222020466", "data" : [ { "deviceId" : "00000000-0000-0000-0000-000000000000", "siteId" : "00000000-0000-0000-0000-000000000000", "deviceName" : "deviceName", "siteName" : "siteName", "ifmName" : "GE0/0/1", "peerAddress" : "192.168.1.1", "peerPort" : 1, "localAddress" : "192.168.1.1", "localPort" : 1, "status" : "siteName" } ] } 返回状态码为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/sdwan/ipsec/get-ipsec-infos 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 { "siteIds" : ["00000000-0000-0000-0000-000000000000"], "keyWord" : "deviceName", "peerAddress" : "192.168.1.1", "localAddress" : "192.168.1.1", "status" : "Down", "pageIndex" : 1, "pageSize" : 10, "isRealTime" : true }