tencentcloud-sdk-cwp 3.0.522 → 3.0.523
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180228/client.rb +696 -0
- data/lib/v20180228/models.rb +2309 -235
- metadata +2 -2
data/lib/v20180228/client.rb
CHANGED
@@ -320,6 +320,54 @@ module TencentCloud
|
|
320
320
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
321
321
|
end
|
322
322
|
|
323
|
+
# 删除基线规则
|
324
|
+
|
325
|
+
# @param request: Request instance for DeleteBaselineRule.
|
326
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DeleteBaselineRuleRequest`
|
327
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteBaselineRuleResponse`
|
328
|
+
def DeleteBaselineRule(request)
|
329
|
+
body = send_request('DeleteBaselineRule', request.serialize)
|
330
|
+
response = JSON.parse(body)
|
331
|
+
if response['Response'].key?('Error') == false
|
332
|
+
model = DeleteBaselineRuleResponse.new
|
333
|
+
model.deserialize(response['Response'])
|
334
|
+
model
|
335
|
+
else
|
336
|
+
code = response['Response']['Error']['Code']
|
337
|
+
message = response['Response']['Error']['Message']
|
338
|
+
reqid = response['Response']['RequestId']
|
339
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
340
|
+
end
|
341
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
342
|
+
raise e
|
343
|
+
rescue StandardError => e
|
344
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
345
|
+
end
|
346
|
+
|
347
|
+
# 删除基线忽略规则
|
348
|
+
|
349
|
+
# @param request: Request instance for DeleteBaselineRuleIgnore.
|
350
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DeleteBaselineRuleIgnoreRequest`
|
351
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteBaselineRuleIgnoreResponse`
|
352
|
+
def DeleteBaselineRuleIgnore(request)
|
353
|
+
body = send_request('DeleteBaselineRuleIgnore', request.serialize)
|
354
|
+
response = JSON.parse(body)
|
355
|
+
if response['Response'].key?('Error') == false
|
356
|
+
model = DeleteBaselineRuleIgnoreResponse.new
|
357
|
+
model.deserialize(response['Response'])
|
358
|
+
model
|
359
|
+
else
|
360
|
+
code = response['Response']['Error']['Code']
|
361
|
+
message = response['Response']['Error']['Message']
|
362
|
+
reqid = response['Response']['RequestId']
|
363
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
364
|
+
end
|
365
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
366
|
+
raise e
|
367
|
+
rescue StandardError => e
|
368
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
369
|
+
end
|
370
|
+
|
323
371
|
# 根据基线策略id删除策略
|
324
372
|
|
325
373
|
# @param request: Request instance for DeleteBaselineStrategy.
|
@@ -344,6 +392,30 @@ module TencentCloud
|
|
344
392
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
345
393
|
end
|
346
394
|
|
395
|
+
# 删除基线弱口令
|
396
|
+
|
397
|
+
# @param request: Request instance for DeleteBaselineWeakPassword.
|
398
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DeleteBaselineWeakPasswordRequest`
|
399
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteBaselineWeakPasswordResponse`
|
400
|
+
def DeleteBaselineWeakPassword(request)
|
401
|
+
body = send_request('DeleteBaselineWeakPassword', request.serialize)
|
402
|
+
response = JSON.parse(body)
|
403
|
+
if response['Response'].key?('Error') == false
|
404
|
+
model = DeleteBaselineWeakPasswordResponse.new
|
405
|
+
model.deserialize(response['Response'])
|
406
|
+
model
|
407
|
+
else
|
408
|
+
code = response['Response']['Error']['Code']
|
409
|
+
message = response['Response']['Error']['Message']
|
410
|
+
reqid = response['Response']['RequestId']
|
411
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
412
|
+
end
|
413
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
414
|
+
raise e
|
415
|
+
rescue StandardError => e
|
416
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
417
|
+
end
|
418
|
+
|
347
419
|
# 根据Ids删除高危命令事件
|
348
420
|
|
349
421
|
# @param request: Request instance for DeleteBashEvents.
|
@@ -1784,6 +1856,78 @@ module TencentCloud
|
|
1784
1856
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1785
1857
|
end
|
1786
1858
|
|
1859
|
+
# 获取基线检测详情记录
|
1860
|
+
|
1861
|
+
# @param request: Request instance for DescribeBaselineDetectList.
|
1862
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineDetectListRequest`
|
1863
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineDetectListResponse`
|
1864
|
+
def DescribeBaselineDetectList(request)
|
1865
|
+
body = send_request('DescribeBaselineDetectList', request.serialize)
|
1866
|
+
response = JSON.parse(body)
|
1867
|
+
if response['Response'].key?('Error') == false
|
1868
|
+
model = DescribeBaselineDetectListResponse.new
|
1869
|
+
model.deserialize(response['Response'])
|
1870
|
+
model
|
1871
|
+
else
|
1872
|
+
code = response['Response']['Error']['Code']
|
1873
|
+
message = response['Response']['Error']['Message']
|
1874
|
+
reqid = response['Response']['RequestId']
|
1875
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1876
|
+
end
|
1877
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1878
|
+
raise e
|
1879
|
+
rescue StandardError => e
|
1880
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1881
|
+
end
|
1882
|
+
|
1883
|
+
# 获取基线检测概览
|
1884
|
+
|
1885
|
+
# @param request: Request instance for DescribeBaselineDetectOverview.
|
1886
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineDetectOverviewRequest`
|
1887
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineDetectOverviewResponse`
|
1888
|
+
def DescribeBaselineDetectOverview(request)
|
1889
|
+
body = send_request('DescribeBaselineDetectOverview', request.serialize)
|
1890
|
+
response = JSON.parse(body)
|
1891
|
+
if response['Response'].key?('Error') == false
|
1892
|
+
model = DescribeBaselineDetectOverviewResponse.new
|
1893
|
+
model.deserialize(response['Response'])
|
1894
|
+
model
|
1895
|
+
else
|
1896
|
+
code = response['Response']['Error']['Code']
|
1897
|
+
message = response['Response']['Error']['Message']
|
1898
|
+
reqid = response['Response']['RequestId']
|
1899
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1900
|
+
end
|
1901
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1902
|
+
raise e
|
1903
|
+
rescue StandardError => e
|
1904
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1905
|
+
end
|
1906
|
+
|
1907
|
+
# 获取基线下载列表
|
1908
|
+
|
1909
|
+
# @param request: Request instance for DescribeBaselineDownloadList.
|
1910
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineDownloadListRequest`
|
1911
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineDownloadListResponse`
|
1912
|
+
def DescribeBaselineDownloadList(request)
|
1913
|
+
body = send_request('DescribeBaselineDownloadList', request.serialize)
|
1914
|
+
response = JSON.parse(body)
|
1915
|
+
if response['Response'].key?('Error') == false
|
1916
|
+
model = DescribeBaselineDownloadListResponse.new
|
1917
|
+
model.deserialize(response['Response'])
|
1918
|
+
model
|
1919
|
+
else
|
1920
|
+
code = response['Response']['Error']['Code']
|
1921
|
+
message = response['Response']['Error']['Message']
|
1922
|
+
reqid = response['Response']['RequestId']
|
1923
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1924
|
+
end
|
1925
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1926
|
+
raise e
|
1927
|
+
rescue StandardError => e
|
1928
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1929
|
+
end
|
1930
|
+
|
1787
1931
|
# 根据基线id查询基线影响主机列表
|
1788
1932
|
|
1789
1933
|
# @param request: Request instance for DescribeBaselineEffectHostList.
|
@@ -1808,6 +1952,30 @@ module TencentCloud
|
|
1808
1952
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1809
1953
|
end
|
1810
1954
|
|
1955
|
+
# 获取基线修复列表
|
1956
|
+
|
1957
|
+
# @param request: Request instance for DescribeBaselineFixList.
|
1958
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineFixListRequest`
|
1959
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineFixListResponse`
|
1960
|
+
def DescribeBaselineFixList(request)
|
1961
|
+
body = send_request('DescribeBaselineFixList', request.serialize)
|
1962
|
+
response = JSON.parse(body)
|
1963
|
+
if response['Response'].key?('Error') == false
|
1964
|
+
model = DescribeBaselineFixListResponse.new
|
1965
|
+
model.deserialize(response['Response'])
|
1966
|
+
model
|
1967
|
+
else
|
1968
|
+
code = response['Response']['Error']['Code']
|
1969
|
+
message = response['Response']['Error']['Message']
|
1970
|
+
reqid = response['Response']['RequestId']
|
1971
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1972
|
+
end
|
1973
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1974
|
+
raise e
|
1975
|
+
rescue StandardError => e
|
1976
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1977
|
+
end
|
1978
|
+
|
1811
1979
|
# 获取基线检测主机列表
|
1812
1980
|
|
1813
1981
|
# @param request: Request instance for DescribeBaselineHostDetectList.
|
@@ -1832,6 +2000,54 @@ module TencentCloud
|
|
1832
2000
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1833
2001
|
end
|
1834
2002
|
|
2003
|
+
# 获取忽略规则主机列表
|
2004
|
+
|
2005
|
+
# @param request: Request instance for DescribeBaselineHostIgnoreList.
|
2006
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineHostIgnoreListRequest`
|
2007
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineHostIgnoreListResponse`
|
2008
|
+
def DescribeBaselineHostIgnoreList(request)
|
2009
|
+
body = send_request('DescribeBaselineHostIgnoreList', request.serialize)
|
2010
|
+
response = JSON.parse(body)
|
2011
|
+
if response['Response'].key?('Error') == false
|
2012
|
+
model = DescribeBaselineHostIgnoreListResponse.new
|
2013
|
+
model.deserialize(response['Response'])
|
2014
|
+
model
|
2015
|
+
else
|
2016
|
+
code = response['Response']['Error']['Code']
|
2017
|
+
message = response['Response']['Error']['Message']
|
2018
|
+
reqid = response['Response']['RequestId']
|
2019
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2020
|
+
end
|
2021
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2022
|
+
raise e
|
2023
|
+
rescue StandardError => e
|
2024
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2025
|
+
end
|
2026
|
+
|
2027
|
+
# 获取基线服务器风险TOP5
|
2028
|
+
|
2029
|
+
# @param request: Request instance for DescribeBaselineHostRiskTop.
|
2030
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineHostRiskTopRequest`
|
2031
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineHostRiskTopResponse`
|
2032
|
+
def DescribeBaselineHostRiskTop(request)
|
2033
|
+
body = send_request('DescribeBaselineHostRiskTop', request.serialize)
|
2034
|
+
response = JSON.parse(body)
|
2035
|
+
if response['Response'].key?('Error') == false
|
2036
|
+
model = DescribeBaselineHostRiskTopResponse.new
|
2037
|
+
model.deserialize(response['Response'])
|
2038
|
+
model
|
2039
|
+
else
|
2040
|
+
code = response['Response']['Error']['Code']
|
2041
|
+
message = response['Response']['Error']['Message']
|
2042
|
+
reqid = response['Response']['RequestId']
|
2043
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2044
|
+
end
|
2045
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2046
|
+
raise e
|
2047
|
+
rescue StandardError => e
|
2048
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2049
|
+
end
|
2050
|
+
|
1835
2051
|
# 接口返回TopN的风险服务器
|
1836
2052
|
|
1837
2053
|
# @param request: Request instance for DescribeBaselineHostTop.
|
@@ -1880,6 +2096,54 @@ module TencentCloud
|
|
1880
2096
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1881
2097
|
end
|
1882
2098
|
|
2099
|
+
# 获取忽略规则项列表
|
2100
|
+
|
2101
|
+
# @param request: Request instance for DescribeBaselineItemIgnoreList.
|
2102
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineItemIgnoreListRequest`
|
2103
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineItemIgnoreListResponse`
|
2104
|
+
def DescribeBaselineItemIgnoreList(request)
|
2105
|
+
body = send_request('DescribeBaselineItemIgnoreList', request.serialize)
|
2106
|
+
response = JSON.parse(body)
|
2107
|
+
if response['Response'].key?('Error') == false
|
2108
|
+
model = DescribeBaselineItemIgnoreListResponse.new
|
2109
|
+
model.deserialize(response['Response'])
|
2110
|
+
model
|
2111
|
+
else
|
2112
|
+
code = response['Response']['Error']['Code']
|
2113
|
+
message = response['Response']['Error']['Message']
|
2114
|
+
reqid = response['Response']['RequestId']
|
2115
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2116
|
+
end
|
2117
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2118
|
+
raise e
|
2119
|
+
rescue StandardError => e
|
2120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2121
|
+
end
|
2122
|
+
|
2123
|
+
# 获取基线检测项信息
|
2124
|
+
|
2125
|
+
# @param request: Request instance for DescribeBaselineItemInfo.
|
2126
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineItemInfoRequest`
|
2127
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineItemInfoResponse`
|
2128
|
+
def DescribeBaselineItemInfo(request)
|
2129
|
+
body = send_request('DescribeBaselineItemInfo', request.serialize)
|
2130
|
+
response = JSON.parse(body)
|
2131
|
+
if response['Response'].key?('Error') == false
|
2132
|
+
model = DescribeBaselineItemInfoResponse.new
|
2133
|
+
model.deserialize(response['Response'])
|
2134
|
+
model
|
2135
|
+
else
|
2136
|
+
code = response['Response']['Error']['Code']
|
2137
|
+
message = response['Response']['Error']['Message']
|
2138
|
+
reqid = response['Response']['RequestId']
|
2139
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2140
|
+
end
|
2141
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2142
|
+
raise e
|
2143
|
+
rescue StandardError => e
|
2144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2145
|
+
end
|
2146
|
+
|
1883
2147
|
# 获取基线项检测结果列表
|
1884
2148
|
|
1885
2149
|
# @param request: Request instance for DescribeBaselineItemList.
|
@@ -1904,6 +2168,30 @@ module TencentCloud
|
|
1904
2168
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1905
2169
|
end
|
1906
2170
|
|
2171
|
+
# 获取基线检测项TOP5
|
2172
|
+
|
2173
|
+
# @param request: Request instance for DescribeBaselineItemRiskTop.
|
2174
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineItemRiskTopRequest`
|
2175
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineItemRiskTopResponse`
|
2176
|
+
def DescribeBaselineItemRiskTop(request)
|
2177
|
+
body = send_request('DescribeBaselineItemRiskTop', request.serialize)
|
2178
|
+
response = JSON.parse(body)
|
2179
|
+
if response['Response'].key?('Error') == false
|
2180
|
+
model = DescribeBaselineItemRiskTopResponse.new
|
2181
|
+
model.deserialize(response['Response'])
|
2182
|
+
model
|
2183
|
+
else
|
2184
|
+
code = response['Response']['Error']['Code']
|
2185
|
+
message = response['Response']['Error']['Message']
|
2186
|
+
reqid = response['Response']['RequestId']
|
2187
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2188
|
+
end
|
2189
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2190
|
+
raise e
|
2191
|
+
rescue StandardError => e
|
2192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2193
|
+
end
|
2194
|
+
|
1907
2195
|
# 查询基线列表信息
|
1908
2196
|
|
1909
2197
|
# @param request: Request instance for DescribeBaselineList.
|
@@ -1976,6 +2264,102 @@ module TencentCloud
|
|
1976
2264
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1977
2265
|
end
|
1978
2266
|
|
2267
|
+
# 获取基线分类列表
|
2268
|
+
|
2269
|
+
# @param request: Request instance for DescribeBaselineRuleCategoryList.
|
2270
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineRuleCategoryListRequest`
|
2271
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineRuleCategoryListResponse`
|
2272
|
+
def DescribeBaselineRuleCategoryList(request)
|
2273
|
+
body = send_request('DescribeBaselineRuleCategoryList', request.serialize)
|
2274
|
+
response = JSON.parse(body)
|
2275
|
+
if response['Response'].key?('Error') == false
|
2276
|
+
model = DescribeBaselineRuleCategoryListResponse.new
|
2277
|
+
model.deserialize(response['Response'])
|
2278
|
+
model
|
2279
|
+
else
|
2280
|
+
code = response['Response']['Error']['Code']
|
2281
|
+
message = response['Response']['Error']['Message']
|
2282
|
+
reqid = response['Response']['RequestId']
|
2283
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2284
|
+
end
|
2285
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2286
|
+
raise e
|
2287
|
+
rescue StandardError => e
|
2288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2289
|
+
end
|
2290
|
+
|
2291
|
+
# 获取基线规则检测列表
|
2292
|
+
|
2293
|
+
# @param request: Request instance for DescribeBaselineRuleDetectList.
|
2294
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineRuleDetectListRequest`
|
2295
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineRuleDetectListResponse`
|
2296
|
+
def DescribeBaselineRuleDetectList(request)
|
2297
|
+
body = send_request('DescribeBaselineRuleDetectList', request.serialize)
|
2298
|
+
response = JSON.parse(body)
|
2299
|
+
if response['Response'].key?('Error') == false
|
2300
|
+
model = DescribeBaselineRuleDetectListResponse.new
|
2301
|
+
model.deserialize(response['Response'])
|
2302
|
+
model
|
2303
|
+
else
|
2304
|
+
code = response['Response']['Error']['Code']
|
2305
|
+
message = response['Response']['Error']['Message']
|
2306
|
+
reqid = response['Response']['RequestId']
|
2307
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2308
|
+
end
|
2309
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2310
|
+
raise e
|
2311
|
+
rescue StandardError => e
|
2312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2313
|
+
end
|
2314
|
+
|
2315
|
+
# 获取基线忽略规则列表
|
2316
|
+
|
2317
|
+
# @param request: Request instance for DescribeBaselineRuleIgnoreList.
|
2318
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineRuleIgnoreListRequest`
|
2319
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineRuleIgnoreListResponse`
|
2320
|
+
def DescribeBaselineRuleIgnoreList(request)
|
2321
|
+
body = send_request('DescribeBaselineRuleIgnoreList', request.serialize)
|
2322
|
+
response = JSON.parse(body)
|
2323
|
+
if response['Response'].key?('Error') == false
|
2324
|
+
model = DescribeBaselineRuleIgnoreListResponse.new
|
2325
|
+
model.deserialize(response['Response'])
|
2326
|
+
model
|
2327
|
+
else
|
2328
|
+
code = response['Response']['Error']['Code']
|
2329
|
+
message = response['Response']['Error']['Message']
|
2330
|
+
reqid = response['Response']['RequestId']
|
2331
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2332
|
+
end
|
2333
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2334
|
+
raise e
|
2335
|
+
rescue StandardError => e
|
2336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2337
|
+
end
|
2338
|
+
|
2339
|
+
# 获取基线规则列表
|
2340
|
+
|
2341
|
+
# @param request: Request instance for DescribeBaselineRuleList.
|
2342
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineRuleListRequest`
|
2343
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineRuleListResponse`
|
2344
|
+
def DescribeBaselineRuleList(request)
|
2345
|
+
body = send_request('DescribeBaselineRuleList', request.serialize)
|
2346
|
+
response = JSON.parse(body)
|
2347
|
+
if response['Response'].key?('Error') == false
|
2348
|
+
model = DescribeBaselineRuleListResponse.new
|
2349
|
+
model.deserialize(response['Response'])
|
2350
|
+
model
|
2351
|
+
else
|
2352
|
+
code = response['Response']['Error']['Code']
|
2353
|
+
message = response['Response']['Error']['Message']
|
2354
|
+
reqid = response['Response']['RequestId']
|
2355
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2356
|
+
end
|
2357
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2358
|
+
raise e
|
2359
|
+
rescue StandardError => e
|
2360
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2361
|
+
end
|
2362
|
+
|
1979
2363
|
# 根据任务id查询基线检测进度
|
1980
2364
|
|
1981
2365
|
# @param request: Request instance for DescribeBaselineScanSchedule.
|
@@ -2072,6 +2456,30 @@ module TencentCloud
|
|
2072
2456
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2073
2457
|
end
|
2074
2458
|
|
2459
|
+
# 获取基线弱口令列表
|
2460
|
+
|
2461
|
+
# @param request: Request instance for DescribeBaselineWeakPasswordList.
|
2462
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineWeakPasswordListRequest`
|
2463
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineWeakPasswordListResponse`
|
2464
|
+
def DescribeBaselineWeakPasswordList(request)
|
2465
|
+
body = send_request('DescribeBaselineWeakPasswordList', request.serialize)
|
2466
|
+
response = JSON.parse(body)
|
2467
|
+
if response['Response'].key?('Error') == false
|
2468
|
+
model = DescribeBaselineWeakPasswordListResponse.new
|
2469
|
+
model.deserialize(response['Response'])
|
2470
|
+
model
|
2471
|
+
else
|
2472
|
+
code = response['Response']['Error']['Code']
|
2473
|
+
message = response['Response']['Error']['Message']
|
2474
|
+
reqid = response['Response']['RequestId']
|
2475
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2476
|
+
end
|
2477
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2478
|
+
raise e
|
2479
|
+
rescue StandardError => e
|
2480
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2481
|
+
end
|
2482
|
+
|
2075
2483
|
# 获取高危命令列表
|
2076
2484
|
|
2077
2485
|
# @param request: Request instance for DescribeBashEvents.
|
@@ -2504,6 +2912,30 @@ module TencentCloud
|
|
2504
2912
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2505
2913
|
end
|
2506
2914
|
|
2915
|
+
# 获取一键忽略受影响的检测项和主机信息
|
2916
|
+
|
2917
|
+
# @param request: Request instance for DescribeIgnoreHostAndItemConfig.
|
2918
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeIgnoreHostAndItemConfigRequest`
|
2919
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeIgnoreHostAndItemConfigResponse`
|
2920
|
+
def DescribeIgnoreHostAndItemConfig(request)
|
2921
|
+
body = send_request('DescribeIgnoreHostAndItemConfig', request.serialize)
|
2922
|
+
response = JSON.parse(body)
|
2923
|
+
if response['Response'].key?('Error') == false
|
2924
|
+
model = DescribeIgnoreHostAndItemConfigResponse.new
|
2925
|
+
model.deserialize(response['Response'])
|
2926
|
+
model
|
2927
|
+
else
|
2928
|
+
code = response['Response']['Error']['Code']
|
2929
|
+
message = response['Response']['Error']['Message']
|
2930
|
+
reqid = response['Response']['RequestId']
|
2931
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2932
|
+
end
|
2933
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2934
|
+
raise e
|
2935
|
+
rescue StandardError => e
|
2936
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2937
|
+
end
|
2938
|
+
|
2507
2939
|
# 根据检测项id与筛选条件查询忽略检测项影响主机列表信息
|
2508
2940
|
|
2509
2941
|
# @param request: Request instance for DescribeIgnoreRuleEffectHostList.
|
@@ -4376,6 +4808,102 @@ module TencentCloud
|
|
4376
4808
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4377
4809
|
end
|
4378
4810
|
|
4811
|
+
# 导出修复列表
|
4812
|
+
|
4813
|
+
# @param request: Request instance for ExportBaselineFixList.
|
4814
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::ExportBaselineFixListRequest`
|
4815
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::ExportBaselineFixListResponse`
|
4816
|
+
def ExportBaselineFixList(request)
|
4817
|
+
body = send_request('ExportBaselineFixList', request.serialize)
|
4818
|
+
response = JSON.parse(body)
|
4819
|
+
if response['Response'].key?('Error') == false
|
4820
|
+
model = ExportBaselineFixListResponse.new
|
4821
|
+
model.deserialize(response['Response'])
|
4822
|
+
model
|
4823
|
+
else
|
4824
|
+
code = response['Response']['Error']['Code']
|
4825
|
+
message = response['Response']['Error']['Message']
|
4826
|
+
reqid = response['Response']['RequestId']
|
4827
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4828
|
+
end
|
4829
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4830
|
+
raise e
|
4831
|
+
rescue StandardError => e
|
4832
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4833
|
+
end
|
4834
|
+
|
4835
|
+
# 导出基线主机检测
|
4836
|
+
|
4837
|
+
# @param request: Request instance for ExportBaselineHostDetectList.
|
4838
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::ExportBaselineHostDetectListRequest`
|
4839
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::ExportBaselineHostDetectListResponse`
|
4840
|
+
def ExportBaselineHostDetectList(request)
|
4841
|
+
body = send_request('ExportBaselineHostDetectList', request.serialize)
|
4842
|
+
response = JSON.parse(body)
|
4843
|
+
if response['Response'].key?('Error') == false
|
4844
|
+
model = ExportBaselineHostDetectListResponse.new
|
4845
|
+
model.deserialize(response['Response'])
|
4846
|
+
model
|
4847
|
+
else
|
4848
|
+
code = response['Response']['Error']['Code']
|
4849
|
+
message = response['Response']['Error']['Message']
|
4850
|
+
reqid = response['Response']['RequestId']
|
4851
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4852
|
+
end
|
4853
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4854
|
+
raise e
|
4855
|
+
rescue StandardError => e
|
4856
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4857
|
+
end
|
4858
|
+
|
4859
|
+
# 导出基线检测项
|
4860
|
+
|
4861
|
+
# @param request: Request instance for ExportBaselineItemDetectList.
|
4862
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::ExportBaselineItemDetectListRequest`
|
4863
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::ExportBaselineItemDetectListResponse`
|
4864
|
+
def ExportBaselineItemDetectList(request)
|
4865
|
+
body = send_request('ExportBaselineItemDetectList', request.serialize)
|
4866
|
+
response = JSON.parse(body)
|
4867
|
+
if response['Response'].key?('Error') == false
|
4868
|
+
model = ExportBaselineItemDetectListResponse.new
|
4869
|
+
model.deserialize(response['Response'])
|
4870
|
+
model
|
4871
|
+
else
|
4872
|
+
code = response['Response']['Error']['Code']
|
4873
|
+
message = response['Response']['Error']['Message']
|
4874
|
+
reqid = response['Response']['RequestId']
|
4875
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4876
|
+
end
|
4877
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4878
|
+
raise e
|
4879
|
+
rescue StandardError => e
|
4880
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4881
|
+
end
|
4882
|
+
|
4883
|
+
# 导出检测项结果列表
|
4884
|
+
|
4885
|
+
# @param request: Request instance for ExportBaselineItemList.
|
4886
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::ExportBaselineItemListRequest`
|
4887
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::ExportBaselineItemListResponse`
|
4888
|
+
def ExportBaselineItemList(request)
|
4889
|
+
body = send_request('ExportBaselineItemList', request.serialize)
|
4890
|
+
response = JSON.parse(body)
|
4891
|
+
if response['Response'].key?('Error') == false
|
4892
|
+
model = ExportBaselineItemListResponse.new
|
4893
|
+
model.deserialize(response['Response'])
|
4894
|
+
model
|
4895
|
+
else
|
4896
|
+
code = response['Response']['Error']['Code']
|
4897
|
+
message = response['Response']['Error']['Message']
|
4898
|
+
reqid = response['Response']['RequestId']
|
4899
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4900
|
+
end
|
4901
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4902
|
+
raise e
|
4903
|
+
rescue StandardError => e
|
4904
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4905
|
+
end
|
4906
|
+
|
4379
4907
|
# 导出基线列表
|
4380
4908
|
|
4381
4909
|
# @param request: Request instance for ExportBaselineList.
|
@@ -4400,6 +4928,54 @@ module TencentCloud
|
|
4400
4928
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4401
4929
|
end
|
4402
4930
|
|
4931
|
+
# 导出基线检测规则
|
4932
|
+
|
4933
|
+
# @param request: Request instance for ExportBaselineRuleDetectList.
|
4934
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::ExportBaselineRuleDetectListRequest`
|
4935
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::ExportBaselineRuleDetectListResponse`
|
4936
|
+
def ExportBaselineRuleDetectList(request)
|
4937
|
+
body = send_request('ExportBaselineRuleDetectList', request.serialize)
|
4938
|
+
response = JSON.parse(body)
|
4939
|
+
if response['Response'].key?('Error') == false
|
4940
|
+
model = ExportBaselineRuleDetectListResponse.new
|
4941
|
+
model.deserialize(response['Response'])
|
4942
|
+
model
|
4943
|
+
else
|
4944
|
+
code = response['Response']['Error']['Code']
|
4945
|
+
message = response['Response']['Error']['Message']
|
4946
|
+
reqid = response['Response']['RequestId']
|
4947
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4948
|
+
end
|
4949
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4950
|
+
raise e
|
4951
|
+
rescue StandardError => e
|
4952
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4953
|
+
end
|
4954
|
+
|
4955
|
+
# 导出弱口令配置列表
|
4956
|
+
|
4957
|
+
# @param request: Request instance for ExportBaselineWeakPasswordList.
|
4958
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::ExportBaselineWeakPasswordListRequest`
|
4959
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::ExportBaselineWeakPasswordListResponse`
|
4960
|
+
def ExportBaselineWeakPasswordList(request)
|
4961
|
+
body = send_request('ExportBaselineWeakPasswordList', request.serialize)
|
4962
|
+
response = JSON.parse(body)
|
4963
|
+
if response['Response'].key?('Error') == false
|
4964
|
+
model = ExportBaselineWeakPasswordListResponse.new
|
4965
|
+
model.deserialize(response['Response'])
|
4966
|
+
model
|
4967
|
+
else
|
4968
|
+
code = response['Response']['Error']['Code']
|
4969
|
+
message = response['Response']['Error']['Message']
|
4970
|
+
reqid = response['Response']['RequestId']
|
4971
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4972
|
+
end
|
4973
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4974
|
+
raise e
|
4975
|
+
rescue StandardError => e
|
4976
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4977
|
+
end
|
4978
|
+
|
4403
4979
|
# 导出高危命令事件
|
4404
4980
|
|
4405
4981
|
# @param request: Request instance for ExportBashEvents.
|
@@ -4856,6 +5432,30 @@ module TencentCloud
|
|
4856
5432
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4857
5433
|
end
|
4858
5434
|
|
5435
|
+
# 修复基线检测
|
5436
|
+
|
5437
|
+
# @param request: Request instance for FixBaselineDetect.
|
5438
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::FixBaselineDetectRequest`
|
5439
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::FixBaselineDetectResponse`
|
5440
|
+
def FixBaselineDetect(request)
|
5441
|
+
body = send_request('FixBaselineDetect', request.serialize)
|
5442
|
+
response = JSON.parse(body)
|
5443
|
+
if response['Response'].key?('Error') == false
|
5444
|
+
model = FixBaselineDetectResponse.new
|
5445
|
+
model.deserialize(response['Response'])
|
5446
|
+
model
|
5447
|
+
else
|
5448
|
+
code = response['Response']['Error']['Code']
|
5449
|
+
message = response['Response']['Error']['Message']
|
5450
|
+
reqid = response['Response']['RequestId']
|
5451
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
5452
|
+
end
|
5453
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
5454
|
+
raise e
|
5455
|
+
rescue StandardError => e
|
5456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
5457
|
+
end
|
5458
|
+
|
4859
5459
|
# 本接口 (IgnoreImpactedHosts) 用于忽略漏洞。
|
4860
5460
|
|
4861
5461
|
# @param request: Request instance for IgnoreImpactedHosts.
|
@@ -4976,6 +5576,102 @@ module TencentCloud
|
|
4976
5576
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4977
5577
|
end
|
4978
5578
|
|
5579
|
+
# 更改基线策略状态
|
5580
|
+
|
5581
|
+
# @param request: Request instance for ModifyBaselinePolicyState.
|
5582
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::ModifyBaselinePolicyStateRequest`
|
5583
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyBaselinePolicyStateResponse`
|
5584
|
+
def ModifyBaselinePolicyState(request)
|
5585
|
+
body = send_request('ModifyBaselinePolicyState', request.serialize)
|
5586
|
+
response = JSON.parse(body)
|
5587
|
+
if response['Response'].key?('Error') == false
|
5588
|
+
model = ModifyBaselinePolicyStateResponse.new
|
5589
|
+
model.deserialize(response['Response'])
|
5590
|
+
model
|
5591
|
+
else
|
5592
|
+
code = response['Response']['Error']['Code']
|
5593
|
+
message = response['Response']['Error']['Message']
|
5594
|
+
reqid = response['Response']['RequestId']
|
5595
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
5596
|
+
end
|
5597
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
5598
|
+
raise e
|
5599
|
+
rescue StandardError => e
|
5600
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
5601
|
+
end
|
5602
|
+
|
5603
|
+
# 更改基线检测规则
|
5604
|
+
|
5605
|
+
# @param request: Request instance for ModifyBaselineRule.
|
5606
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::ModifyBaselineRuleRequest`
|
5607
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyBaselineRuleResponse`
|
5608
|
+
def ModifyBaselineRule(request)
|
5609
|
+
body = send_request('ModifyBaselineRule', request.serialize)
|
5610
|
+
response = JSON.parse(body)
|
5611
|
+
if response['Response'].key?('Error') == false
|
5612
|
+
model = ModifyBaselineRuleResponse.new
|
5613
|
+
model.deserialize(response['Response'])
|
5614
|
+
model
|
5615
|
+
else
|
5616
|
+
code = response['Response']['Error']['Code']
|
5617
|
+
message = response['Response']['Error']['Message']
|
5618
|
+
reqid = response['Response']['RequestId']
|
5619
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
5620
|
+
end
|
5621
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
5622
|
+
raise e
|
5623
|
+
rescue StandardError => e
|
5624
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
5625
|
+
end
|
5626
|
+
|
5627
|
+
# 更改基线忽略规则
|
5628
|
+
|
5629
|
+
# @param request: Request instance for ModifyBaselineRuleIgnore.
|
5630
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::ModifyBaselineRuleIgnoreRequest`
|
5631
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyBaselineRuleIgnoreResponse`
|
5632
|
+
def ModifyBaselineRuleIgnore(request)
|
5633
|
+
body = send_request('ModifyBaselineRuleIgnore', request.serialize)
|
5634
|
+
response = JSON.parse(body)
|
5635
|
+
if response['Response'].key?('Error') == false
|
5636
|
+
model = ModifyBaselineRuleIgnoreResponse.new
|
5637
|
+
model.deserialize(response['Response'])
|
5638
|
+
model
|
5639
|
+
else
|
5640
|
+
code = response['Response']['Error']['Code']
|
5641
|
+
message = response['Response']['Error']['Message']
|
5642
|
+
reqid = response['Response']['RequestId']
|
5643
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
5644
|
+
end
|
5645
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
5646
|
+
raise e
|
5647
|
+
rescue StandardError => e
|
5648
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
5649
|
+
end
|
5650
|
+
|
5651
|
+
# 更改或新增弱口令
|
5652
|
+
|
5653
|
+
# @param request: Request instance for ModifyBaselineWeakPassword.
|
5654
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::ModifyBaselineWeakPasswordRequest`
|
5655
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyBaselineWeakPasswordResponse`
|
5656
|
+
def ModifyBaselineWeakPassword(request)
|
5657
|
+
body = send_request('ModifyBaselineWeakPassword', request.serialize)
|
5658
|
+
response = JSON.parse(body)
|
5659
|
+
if response['Response'].key?('Error') == false
|
5660
|
+
model = ModifyBaselineWeakPasswordResponse.new
|
5661
|
+
model.deserialize(response['Response'])
|
5662
|
+
model
|
5663
|
+
else
|
5664
|
+
code = response['Response']['Error']['Code']
|
5665
|
+
message = response['Response']['Error']['Message']
|
5666
|
+
reqid = response['Response']['RequestId']
|
5667
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
5668
|
+
end
|
5669
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
5670
|
+
raise e
|
5671
|
+
rescue StandardError => e
|
5672
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
5673
|
+
end
|
5674
|
+
|
4979
5675
|
# 修改暴力破解规则
|
4980
5676
|
|
4981
5677
|
# @param request: Request instance for ModifyBruteAttackRules.
|