tencentcloud-sdk-cwp 3.0.540 → 3.0.541

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b411e50f6dd6ed81e4999e12b2d15d248c48ed69
4
- data.tar.gz: 91b299c9c39f98fad187cef63a0fbefa27899408
3
+ metadata.gz: 5c28bb91b3a1d83837a3f7c115a01183a2181576
4
+ data.tar.gz: 0b0419a1ba63bb24a9e5304123b6485bf0706183
5
5
  SHA512:
6
- metadata.gz: 720e87536ab0e1dcb3731e965e82c0c0949654ea32ef6fadfa7d60179dac7b53e499ae353bbadbf9ed556bc51cf783505083bf3128801a36d83a34fc415d2338
7
- data.tar.gz: 78d51af69485ac23ac400a9161507e4db7ef60b524ff64557535a63df3516ab17f18f3f5d4520ec2f25144f6391e39dc790996b5d1d33b0fd0808239d579e9b6
6
+ metadata.gz: 15bdcddd2637324c5c2e35d0af0b64944765f6fe8cb34367a26c480b81ca53e20b8e741272b4534e8058b5988edc3cb8adcc834c80322f89872330ae32699a52
7
+ data.tar.gz: b6d20d4d06f265608489c0c7650ab1fe16bbb79d7163fef2630ed1c0ce505c4f3e7552b0d24b80382d405b30e296fe71713f42e39405d0ad192ba005410a852e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.540
1
+ 3.0.541
@@ -3776,6 +3776,30 @@ module TencentCloud
3776
3776
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3777
3777
  end
3778
3778
 
3779
+ # 获取恶意请求事件列表
3780
+
3781
+ # @param request: Request instance for DescribeRiskDnsEventList.
3782
+ # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeRiskDnsEventListRequest`
3783
+ # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeRiskDnsEventListResponse`
3784
+ def DescribeRiskDnsEventList(request)
3785
+ body = send_request('DescribeRiskDnsEventList', request.serialize)
3786
+ response = JSON.parse(body)
3787
+ if response['Response'].key?('Error') == false
3788
+ model = DescribeRiskDnsEventListResponse.new
3789
+ model.deserialize(response['Response'])
3790
+ model
3791
+ else
3792
+ code = response['Response']['Error']['Code']
3793
+ message = response['Response']['Error']['Message']
3794
+ reqid = response['Response']['RequestId']
3795
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3796
+ end
3797
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3798
+ raise e
3799
+ rescue StandardError => e
3800
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3801
+ end
3802
+
3779
3803
  # 入侵检测,获取恶意请求列表
3780
3804
 
3781
3805
  # @param request: Request instance for DescribeRiskDnsList.
@@ -13682,6 +13682,84 @@ module TencentCloud
13682
13682
  end
13683
13683
  end
13684
13684
 
13685
+ # DescribeRiskDnsEventList请求参数结构体
13686
+ class DescribeRiskDnsEventListRequest < TencentCloud::Common::AbstractModel
13687
+ # @param Filters: <li>IpOrName - String - 是否必填:否 - 主机Ip或别名筛选</li>
13688
+ # <li>HostId - String - 是否必填:否 - 主机Id</li>
13689
+ # <li>AgentId - String - 是否必填:否 - 客户端Id</li>
13690
+ # <li>PolicyType - String - 是否必填:否 - 策略类型,0:系统策略1:用户自定义策略</li>
13691
+ # <li>Domain - String - 是否必填:否 - 域名(先对域名做urlencode,再base64)</li>
13692
+ # <li>HandleStatus - String - 是否必填:否 - 状态筛选0:待处理;2:信任;3:不信任</li>
13693
+ # <li>BeginTime - String - 是否必填:否 - 最近访问开始时间</li>
13694
+ # <li>EndTime - String - 是否必填:否 - 最近访问结束时间</li>
13695
+ # @type Filters: Array
13696
+ # @param Limit: 需要返回的数量,默认为10,最大值为100
13697
+ # @type Limit: Integer
13698
+ # @param Offset: 偏移量,默认为0。
13699
+ # @type Offset: Integer
13700
+ # @param Order: 排序方式:根据请求次数排序:[asc:升序|desc:降序]
13701
+ # @type Order: String
13702
+ # @param By: 排序字段:[AccessCount:请求次数|LastTime:最近请求时间]
13703
+ # @type By: String
13704
+
13705
+ attr_accessor :Filters, :Limit, :Offset, :Order, :By
13706
+
13707
+ def initialize(filters=nil, limit=nil, offset=nil, order=nil, by=nil)
13708
+ @Filters = filters
13709
+ @Limit = limit
13710
+ @Offset = offset
13711
+ @Order = order
13712
+ @By = by
13713
+ end
13714
+
13715
+ def deserialize(params)
13716
+ unless params['Filters'].nil?
13717
+ @Filters = []
13718
+ params['Filters'].each do |i|
13719
+ filter_tmp = Filter.new
13720
+ filter_tmp.deserialize(i)
13721
+ @Filters << filter_tmp
13722
+ end
13723
+ end
13724
+ @Limit = params['Limit']
13725
+ @Offset = params['Offset']
13726
+ @Order = params['Order']
13727
+ @By = params['By']
13728
+ end
13729
+ end
13730
+
13731
+ # DescribeRiskDnsEventList返回参数结构体
13732
+ class DescribeRiskDnsEventListResponse < TencentCloud::Common::AbstractModel
13733
+ # @param List: 恶意请求事件列表
13734
+ # 注意:此字段可能返回 null,表示取不到有效值。
13735
+ # @type List: Array
13736
+ # @param TotalCount: 总数
13737
+ # @type TotalCount: Integer
13738
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
13739
+ # @type RequestId: String
13740
+
13741
+ attr_accessor :List, :TotalCount, :RequestId
13742
+
13743
+ def initialize(list=nil, totalcount=nil, requestid=nil)
13744
+ @List = list
13745
+ @TotalCount = totalcount
13746
+ @RequestId = requestid
13747
+ end
13748
+
13749
+ def deserialize(params)
13750
+ unless params['List'].nil?
13751
+ @List = []
13752
+ params['List'].each do |i|
13753
+ riskdnsevent_tmp = RiskDnsEvent.new
13754
+ riskdnsevent_tmp.deserialize(i)
13755
+ @List << riskdnsevent_tmp
13756
+ end
13757
+ end
13758
+ @TotalCount = params['TotalCount']
13759
+ @RequestId = params['RequestId']
13760
+ end
13761
+ end
13762
+
13685
13763
  # DescribeRiskDnsList请求参数结构体
13686
13764
  class DescribeRiskDnsListRequest < TencentCloud::Common::AbstractModel
13687
13765
  # @param Limit: 需要返回的数量,默认为10,最大值为100
@@ -21100,6 +21178,122 @@ module TencentCloud
21100
21178
  end
21101
21179
  end
21102
21180
 
21181
+ # 恶意请求事件
21182
+ class RiskDnsEvent < TencentCloud::Common::AbstractModel
21183
+ # @param Id: 事件Id
21184
+ # @type Id: Integer
21185
+ # @param PolicyId: 策略ID
21186
+ # @type PolicyId: Integer
21187
+ # @param PolicyType: 命中策略类型[-1:未知|0系统|1:用户]
21188
+ # @type PolicyType: Integer
21189
+ # @param PolicyName: 命中策略名称
21190
+ # @type PolicyName: String
21191
+ # @param ProtectLevel: 保护级别[0:基础版|1:专业版|2:旗舰版]
21192
+ # @type ProtectLevel: Integer
21193
+ # @param HostId: 主机ID
21194
+ # @type HostId: String
21195
+ # @param HostName: 主机名称
21196
+ # @type HostName: String
21197
+ # @param HostIp: 主机IP
21198
+ # @type HostIp: String
21199
+ # @param WanIp: 外网IP
21200
+ # @type WanIp: String
21201
+ # @param AgentId: 客户端ID
21202
+ # @type AgentId: String
21203
+ # @param Domain: 访问域名
21204
+ # @type Domain: String
21205
+ # @param Tags: 标签特性
21206
+ # @type Tags: Array
21207
+ # @param AccessCount: 访问次数
21208
+ # @type AccessCount: Integer
21209
+ # @param ThreatDesc: 威胁描述
21210
+ # @type ThreatDesc: String
21211
+ # @param SuggestSolution: 修复方案
21212
+ # @type SuggestSolution: String
21213
+ # @param ReferenceLink: 参考链接
21214
+ # @type ReferenceLink: String
21215
+ # @param HandleStatus: 处理状态;[0:待处理|2:已加白|3:非信任状态|4:已处理|5:已忽略]
21216
+ # @type HandleStatus: Integer
21217
+ # @param Pid: 进程ID
21218
+ # @type Pid: Integer
21219
+ # @param ProcessName: 进程名
21220
+ # @type ProcessName: String
21221
+ # @param ProcessMd5: 进程MD5
21222
+ # @type ProcessMd5: String
21223
+ # @param CmdLine: 命令行
21224
+ # @type CmdLine: String
21225
+ # @param FirstTime: 首次访问时间
21226
+ # @type FirstTime: String
21227
+ # @param LastTime: 最近访问时间
21228
+ # @type LastTime: String
21229
+ # @param HostStatus: 主机在线状态[OFFLINE:离线|ONLINE:在线|UNKNOWN:未知]
21230
+ # @type HostStatus: String
21231
+ # @param MachineExtraInfo: 附加信息
21232
+ # 注意:此字段可能返回 null,表示取不到有效值。
21233
+ # @type MachineExtraInfo: :class:`Tencentcloud::Cwp.v20180228.models.MachineExtraInfo`
21234
+
21235
+ attr_accessor :Id, :PolicyId, :PolicyType, :PolicyName, :ProtectLevel, :HostId, :HostName, :HostIp, :WanIp, :AgentId, :Domain, :Tags, :AccessCount, :ThreatDesc, :SuggestSolution, :ReferenceLink, :HandleStatus, :Pid, :ProcessName, :ProcessMd5, :CmdLine, :FirstTime, :LastTime, :HostStatus, :MachineExtraInfo
21236
+
21237
+ def initialize(id=nil, policyid=nil, policytype=nil, policyname=nil, protectlevel=nil, hostid=nil, hostname=nil, hostip=nil, wanip=nil, agentid=nil, domain=nil, tags=nil, accesscount=nil, threatdesc=nil, suggestsolution=nil, referencelink=nil, handlestatus=nil, pid=nil, processname=nil, processmd5=nil, cmdline=nil, firsttime=nil, lasttime=nil, hoststatus=nil, machineextrainfo=nil)
21238
+ @Id = id
21239
+ @PolicyId = policyid
21240
+ @PolicyType = policytype
21241
+ @PolicyName = policyname
21242
+ @ProtectLevel = protectlevel
21243
+ @HostId = hostid
21244
+ @HostName = hostname
21245
+ @HostIp = hostip
21246
+ @WanIp = wanip
21247
+ @AgentId = agentid
21248
+ @Domain = domain
21249
+ @Tags = tags
21250
+ @AccessCount = accesscount
21251
+ @ThreatDesc = threatdesc
21252
+ @SuggestSolution = suggestsolution
21253
+ @ReferenceLink = referencelink
21254
+ @HandleStatus = handlestatus
21255
+ @Pid = pid
21256
+ @ProcessName = processname
21257
+ @ProcessMd5 = processmd5
21258
+ @CmdLine = cmdline
21259
+ @FirstTime = firsttime
21260
+ @LastTime = lasttime
21261
+ @HostStatus = hoststatus
21262
+ @MachineExtraInfo = machineextrainfo
21263
+ end
21264
+
21265
+ def deserialize(params)
21266
+ @Id = params['Id']
21267
+ @PolicyId = params['PolicyId']
21268
+ @PolicyType = params['PolicyType']
21269
+ @PolicyName = params['PolicyName']
21270
+ @ProtectLevel = params['ProtectLevel']
21271
+ @HostId = params['HostId']
21272
+ @HostName = params['HostName']
21273
+ @HostIp = params['HostIp']
21274
+ @WanIp = params['WanIp']
21275
+ @AgentId = params['AgentId']
21276
+ @Domain = params['Domain']
21277
+ @Tags = params['Tags']
21278
+ @AccessCount = params['AccessCount']
21279
+ @ThreatDesc = params['ThreatDesc']
21280
+ @SuggestSolution = params['SuggestSolution']
21281
+ @ReferenceLink = params['ReferenceLink']
21282
+ @HandleStatus = params['HandleStatus']
21283
+ @Pid = params['Pid']
21284
+ @ProcessName = params['ProcessName']
21285
+ @ProcessMd5 = params['ProcessMd5']
21286
+ @CmdLine = params['CmdLine']
21287
+ @FirstTime = params['FirstTime']
21288
+ @LastTime = params['LastTime']
21289
+ @HostStatus = params['HostStatus']
21290
+ unless params['MachineExtraInfo'].nil?
21291
+ @MachineExtraInfo = MachineExtraInfo.new
21292
+ @MachineExtraInfo.deserialize(params['MachineExtraInfo'])
21293
+ end
21294
+ end
21295
+ end
21296
+
21103
21297
  # 恶意请求列表
21104
21298
  class RiskDnsList < TencentCloud::Common::AbstractModel
21105
21299
  # @param Url: 对外访问域名
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cwp
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.540
4
+ version: 3.0.541
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-29 00:00:00.000000000 Z
11
+ date: 2023-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common