tencentcloud-sdk-cwp 3.0.491 → 3.0.492

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34ada749c79f0dec80470d019e050eca424cd32c
4
- data.tar.gz: 32d50e9c7df9a4a762e22fcf0eb2b9d061f21e55
3
+ metadata.gz: 5290e3b553368922da9041ab45e27a4e68896710
4
+ data.tar.gz: 0ec7414bb590ceaa63e96ba17acfb87c540bc975
5
5
  SHA512:
6
- metadata.gz: fd9777d45f368ea7ca652d51e740555a03da27d5bab71397a8f03f84ab6a4e55cc33bfc6d497bfb32d819280381975a86f2428a056fd1f35ed4ee7243cac3f5f
7
- data.tar.gz: 9ac84a0401aacbaa54c8a4ebe68a4a13cd20573402181e325fe8db523e71d8e30b3ec1ccba3e8555387bc1cf1fc83f8ef6ac7bf75a4078500661979f40957ab9
6
+ metadata.gz: 8b8eadc90442b59a94f6d1c850d893744d16f785617bdfa5eff8ab67e18ee48fe0a1c9de80a350b8bf0013a92f3e80b5d422ab9b15addf04715364b32208e84a
7
+ data.tar.gz: ad178e2b62b5d7123d29fff6bdf508a223ad3c17a360ccee369fbdc36c19ef1a5a99c287bdaa779887c852acd93c92c75162b4e1eccdd378a6692c1e0cd8632d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.491
1
+ 3.0.492
@@ -2096,6 +2096,30 @@ module TencentCloud
2096
2096
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2097
2097
  end
2098
2098
 
2099
+ # 获取高危命令列表(新)
2100
+
2101
+ # @param request: Request instance for DescribeBashEventsNew.
2102
+ # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBashEventsNewRequest`
2103
+ # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBashEventsNewResponse`
2104
+ def DescribeBashEventsNew(request)
2105
+ body = send_request('DescribeBashEventsNew', request.serialize)
2106
+ response = JSON.parse(body)
2107
+ if response['Response'].key?('Error') == false
2108
+ model = DescribeBashEventsNewResponse.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
+
2099
2123
  # 获取高危命令规则列表
2100
2124
 
2101
2125
  # @param request: Request instance for DescribeBashRules.
@@ -3321,6 +3321,113 @@ module TencentCloud
3321
3321
  end
3322
3322
  end
3323
3323
 
3324
+ # 高危命令数据(新)
3325
+ class BashEventNew < TencentCloud::Common::AbstractModel
3326
+ # @param Id: 数据ID
3327
+ # @type Id: Integer
3328
+ # @param Uuid: 云镜ID
3329
+ # @type Uuid: String
3330
+ # @param Quuid: 主机ID
3331
+ # @type Quuid: String
3332
+ # @param HostIp: 主机内网IP
3333
+ # @type HostIp: String
3334
+ # @param User: 执行用户名
3335
+ # @type User: String
3336
+ # @param Platform: 平台类型
3337
+ # @type Platform: Integer
3338
+ # @param BashCmd: 执行命令
3339
+ # @type BashCmd: String
3340
+ # @param RuleId: 规则ID
3341
+ # @type RuleId: Integer
3342
+ # @param RuleName: 规则名称
3343
+ # @type RuleName: String
3344
+ # @param RuleLevel: 规则等级:1-高 2-中 3-低
3345
+ # @type RuleLevel: Integer
3346
+ # @param Status: 处理状态: 0 = 待处理 1= 已处理, 2 = 已加白, 3 = 已忽略
3347
+ # @type Status: Integer
3348
+ # @param CreateTime: 发生时间
3349
+ # @type CreateTime: String
3350
+ # @param MachineName: 主机名
3351
+ # @type MachineName: String
3352
+ # @param DetectBy: 0: bash日志 1: 实时监控(雷霆版)
3353
+ # 注意:此字段可能返回 null,表示取不到有效值。
3354
+ # @type DetectBy: Integer
3355
+ # @param Pid: 进程id
3356
+ # 注意:此字段可能返回 null,表示取不到有效值。
3357
+ # @type Pid: String
3358
+ # @param Exe: 进程名称
3359
+ # 注意:此字段可能返回 null,表示取不到有效值。
3360
+ # @type Exe: String
3361
+ # @param ModifyTime: 处理时间
3362
+ # 注意:此字段可能返回 null,表示取不到有效值。
3363
+ # @type ModifyTime: String
3364
+ # @param RuleCategory: 规则类别 0=系统规则,1=用户规则
3365
+ # 注意:此字段可能返回 null,表示取不到有效值。
3366
+ # @type RuleCategory: Integer
3367
+ # @param RegexBashCmd: 自动生成的正则表达式
3368
+ # 注意:此字段可能返回 null,表示取不到有效值。
3369
+ # @type RegexBashCmd: String
3370
+ # @param MachineType: 0:普通 1:专业版 2:旗舰版
3371
+ # 注意:此字段可能返回 null,表示取不到有效值。
3372
+ # @type MachineType: Integer
3373
+ # @param MachineExtraInfo: 机器额外信息
3374
+ # 注意:此字段可能返回 null,表示取不到有效值。
3375
+ # @type MachineExtraInfo: :class:`Tencentcloud::Cwp.v20180228.models.MachineExtraInfo`
3376
+
3377
+ attr_accessor :Id, :Uuid, :Quuid, :HostIp, :User, :Platform, :BashCmd, :RuleId, :RuleName, :RuleLevel, :Status, :CreateTime, :MachineName, :DetectBy, :Pid, :Exe, :ModifyTime, :RuleCategory, :RegexBashCmd, :MachineType, :MachineExtraInfo
3378
+
3379
+ def initialize(id=nil, uuid=nil, quuid=nil, hostip=nil, user=nil, platform=nil, bashcmd=nil, ruleid=nil, rulename=nil, rulelevel=nil, status=nil, createtime=nil, machinename=nil, detectby=nil, pid=nil, exe=nil, modifytime=nil, rulecategory=nil, regexbashcmd=nil, machinetype=nil, machineextrainfo=nil)
3380
+ @Id = id
3381
+ @Uuid = uuid
3382
+ @Quuid = quuid
3383
+ @HostIp = hostip
3384
+ @User = user
3385
+ @Platform = platform
3386
+ @BashCmd = bashcmd
3387
+ @RuleId = ruleid
3388
+ @RuleName = rulename
3389
+ @RuleLevel = rulelevel
3390
+ @Status = status
3391
+ @CreateTime = createtime
3392
+ @MachineName = machinename
3393
+ @DetectBy = detectby
3394
+ @Pid = pid
3395
+ @Exe = exe
3396
+ @ModifyTime = modifytime
3397
+ @RuleCategory = rulecategory
3398
+ @RegexBashCmd = regexbashcmd
3399
+ @MachineType = machinetype
3400
+ @MachineExtraInfo = machineextrainfo
3401
+ end
3402
+
3403
+ def deserialize(params)
3404
+ @Id = params['Id']
3405
+ @Uuid = params['Uuid']
3406
+ @Quuid = params['Quuid']
3407
+ @HostIp = params['HostIp']
3408
+ @User = params['User']
3409
+ @Platform = params['Platform']
3410
+ @BashCmd = params['BashCmd']
3411
+ @RuleId = params['RuleId']
3412
+ @RuleName = params['RuleName']
3413
+ @RuleLevel = params['RuleLevel']
3414
+ @Status = params['Status']
3415
+ @CreateTime = params['CreateTime']
3416
+ @MachineName = params['MachineName']
3417
+ @DetectBy = params['DetectBy']
3418
+ @Pid = params['Pid']
3419
+ @Exe = params['Exe']
3420
+ @ModifyTime = params['ModifyTime']
3421
+ @RuleCategory = params['RuleCategory']
3422
+ @RegexBashCmd = params['RegexBashCmd']
3423
+ @MachineType = params['MachineType']
3424
+ unless params['MachineExtraInfo'].nil?
3425
+ @MachineExtraInfo = MachineExtraInfo.new
3426
+ @MachineExtraInfo.deserialize(params['MachineExtraInfo'])
3427
+ end
3428
+ end
3429
+ end
3430
+
3324
3431
  # 高危命令规则
3325
3432
  class BashRule < TencentCloud::Common::AbstractModel
3326
3433
  # @param Id: 规则ID
@@ -8540,6 +8647,86 @@ module TencentCloud
8540
8647
  end
8541
8648
  end
8542
8649
 
8650
+ # DescribeBashEventsNew请求参数结构体
8651
+ class DescribeBashEventsNewRequest < TencentCloud::Common::AbstractModel
8652
+ # @param Limit: 返回数量,默认为10,最大值为100。
8653
+ # @type Limit: Integer
8654
+ # @param Filters: 过滤条件。
8655
+ # <li>HostName - String - 是否必填:否 - 主机名</li>
8656
+ # <li>Hostip - String - 是否必填:否 - 主机内网IP</li>
8657
+ # <li>HostIp - String - 是否必填:否 - 主机内网IP</li>
8658
+ # <li>RuleCategory - Int - 是否必填:否 - 策略类型,全部或者单选(0:系统 1:用户)</li>
8659
+ # <li>RuleName - String - 是否必填:否 - 策略名称</li>
8660
+ # <li>RuleLevel - Int - 是否必填:否 - 威胁等级,可以多选</li>
8661
+ # <li>Status - Int - 是否必填:否 - 处理状态,可多选(0:待处理 1:已处理 2:已加白 3:已忽略 4:已删除 5:已拦截)</li>
8662
+ # <li>DetectBy - Int - 是否必填:否 - 数据来源,可多选(0:bash日志 1:实时监控)</li>
8663
+ # <li>StartTime - String - 是否必填:否 - 开始时间</li>
8664
+ # <li>EndTime - String - 是否必填:否 - 结束时间</li>
8665
+ # @type Filters: Array
8666
+ # @param Offset: 偏移量,默认为0。
8667
+ # @type Offset: Integer
8668
+ # @param Order: 排序方式:根据请求次数排序:asc-升序/desc-降序
8669
+ # @type Order: String
8670
+ # @param By: 排序字段:CreateTime-发生时间。ModifyTime-处理时间
8671
+ # @type By: String
8672
+
8673
+ attr_accessor :Limit, :Filters, :Offset, :Order, :By
8674
+
8675
+ def initialize(limit=nil, filters=nil, offset=nil, order=nil, by=nil)
8676
+ @Limit = limit
8677
+ @Filters = filters
8678
+ @Offset = offset
8679
+ @Order = order
8680
+ @By = by
8681
+ end
8682
+
8683
+ def deserialize(params)
8684
+ @Limit = params['Limit']
8685
+ unless params['Filters'].nil?
8686
+ @Filters = []
8687
+ params['Filters'].each do |i|
8688
+ filter_tmp = Filter.new
8689
+ filter_tmp.deserialize(i)
8690
+ @Filters << filter_tmp
8691
+ end
8692
+ end
8693
+ @Offset = params['Offset']
8694
+ @Order = params['Order']
8695
+ @By = params['By']
8696
+ end
8697
+ end
8698
+
8699
+ # DescribeBashEventsNew返回参数结构体
8700
+ class DescribeBashEventsNewResponse < TencentCloud::Common::AbstractModel
8701
+ # @param TotalCount: 总条数
8702
+ # @type TotalCount: Integer
8703
+ # @param List: 高危命令事件列表
8704
+ # @type List: Array
8705
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8706
+ # @type RequestId: String
8707
+
8708
+ attr_accessor :TotalCount, :List, :RequestId
8709
+
8710
+ def initialize(totalcount=nil, list=nil, requestid=nil)
8711
+ @TotalCount = totalcount
8712
+ @List = list
8713
+ @RequestId = requestid
8714
+ end
8715
+
8716
+ def deserialize(params)
8717
+ @TotalCount = params['TotalCount']
8718
+ unless params['List'].nil?
8719
+ @List = []
8720
+ params['List'].each do |i|
8721
+ basheventnew_tmp = BashEventNew.new
8722
+ basheventnew_tmp.deserialize(i)
8723
+ @List << basheventnew_tmp
8724
+ end
8725
+ end
8726
+ @RequestId = params['RequestId']
8727
+ end
8728
+ end
8729
+
8543
8730
  # DescribeBashEvents请求参数结构体
8544
8731
  class DescribeBashEventsRequest < TencentCloud::Common::AbstractModel
8545
8732
  # @param Limit: 返回数量,默认为10,最大值为100。
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.491
4
+ version: 3.0.492
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-01-11 00:00:00.000000000 Z
11
+ date: 2023-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common