云服务器内容精选

  • 响应示例 返回状态码为200:配置成功,响应体参考ConfigPolicyResponse。 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" : "1", "errmsg" : "error", "success" : [ { "siteId" : "356da474-d2da-4a90-a119-e07408684e97" } ], "fail" : [ { "errcode" : "1", "errmsg" : "", "siteId" : "356da474-d2da-4a90-a119-e07408684e97" } ] } 返回状态码为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/oamservice/saupgrade/sites 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 { "configUpgradePolicyDto" : [ { "siteId" : "356da474-d2da-4a90-a119-e07408684e97", "upgradeRegularly" : true, "upgradeImmediately" : false, "upgradeDay" : "Sunday", "upgradeTime" : "00:00", "signatureDatabaseTypes" : ["ip-reputation","antivirus"] } ] }
  • 响应参数 返回状态码为200:配置成功,响应体参考ConfigPolicyResponse。 表4 ConfigPolicyResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~10个字符。 - 错误码。 "1" errmsg string - - 错误信息。 "error" success ARRAY_REFERENCE 1-10个列表项,详细请参见表5。 策略下发成功的站点的信息列表。 - fail ARRAY_REFERENCE 1-10个列表项,详细请参见表6。 策略下发失败的站点的信息列表。 - 表5 SuccessBean对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 siteId string 36个字符。 - 站点标识,UUID格式。 "356da474-d2da-4a90-a119-e07408684e97" 表6 FailBean对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~10个字符。 - 错误码。 "1" errmsg string - - 错误信息。 "" siteId string 36个字符。 - 站点标识,UUID格式。 "356da474-d2da-4a90-a119-e07408684e97" 返回状态码为400:请求参数错误,无响应体。 详细信息请参见实际响应消息体。 返回状态码为500:服务内部错误,无响应体。 详细信息请参见实际响应消息体。
  • 响应示例 返回状态码为200:查询成功,响应体参考GetPolicyResponse。 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" : "1", "errmsg" : "error", "data" : [ { "deviceId" : "356da474-d2da-4a90-a119-e07408684e97", "signatureDatabaseType" : "ip-reputation", "version" : "2017010101", "status" : -1, "lastUpgradeTime" : 0, "nextUpgradeTime" : 0 } ] } 返回状态码为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:查询成功,响应体参考GetPolicyResponse。 表2 GetPolicyResponse对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~10个字符。 - 错误码。 "1" errmsg string - - 错误信息。 "error" data ARRAY_REFERENCE 1-100个列表项,详细请参见表3。 升级策略详情。 - 表3 UpgradePolicydetail对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 deviceId string 36个字符。 - 设备标识,UUID格式。 "356da474-d2da-4a90-a119-e07408684e97" signatureDatabaseType string ip-reputation antivirus intrusion-prevention file-reputation cnc application - 设备特征库升级类型。 "ip-reputation" version string 1~36个字符。 - 设备特征库版本。 "2017010101" status integer -1 0 1 3 10 11 - 设备特征库升级状态。取值如下:-1---升级失败,0---未配置,1---初始化 ,3---未要求升级 ,10---升级完成,11---升级中。 -1 lastUpgradeTime int64 [0-1568044800561] - 上次特征库升级时间,UTC时间格式(毫秒)。 0 nextUpgradeTime int64 [0-1568044800561] - 下次特征库升级时间,UTC时间格式(毫秒)。 0 返回状态码为400:请求参数错误,无响应体。 详细信息请参见实际响应消息体。 返回状态码为500:服务内部错误,无响应体。 详细信息请参见实际响应消息体。
  • 请求示例 HTTP的示例 GET /controller/campus/v1/oamservice/saupgrade/sites/ea25fdbf-8dee-4823-bac2-5bfe8e3359cad 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