tencentcloud-sdk-cwp 3.0.541 → 3.0.543
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 +24 -0
- data/lib/v20180228/models.rb +175 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c91c98ce9338fd6f60ee7bb8faeca18ea53b9333
|
4
|
+
data.tar.gz: 7f1719c6da0d913d5b8dac189e0d13fc07680b46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a294990fee98db21f815b0ed930ec96e1e7903dbd56ef959504d42a6431ee816de5e551b62542080e6001fb60333ba87a0fb8c0f9a94db1ce617e5ea11e13f8
|
7
|
+
data.tar.gz: 1f54936723535fa5e829a2a0894a7b49b94e33df271b78903a6185c47f2a0ee0e11ba5adc8c8adef8e5a8057e711dc35a885ddcda7db9ec6364e48d21d979f10
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.543
|
data/lib/v20180228/client.rb
CHANGED
@@ -2504,6 +2504,30 @@ module TencentCloud
|
|
2504
2504
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2505
2505
|
end
|
2506
2506
|
|
2507
|
+
# 查询高危命令事件详情(新)
|
2508
|
+
|
2509
|
+
# @param request: Request instance for DescribeBashEventsInfoNew.
|
2510
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBashEventsInfoNewRequest`
|
2511
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBashEventsInfoNewResponse`
|
2512
|
+
def DescribeBashEventsInfoNew(request)
|
2513
|
+
body = send_request('DescribeBashEventsInfoNew', request.serialize)
|
2514
|
+
response = JSON.parse(body)
|
2515
|
+
if response['Response'].key?('Error') == false
|
2516
|
+
model = DescribeBashEventsInfoNewResponse.new
|
2517
|
+
model.deserialize(response['Response'])
|
2518
|
+
model
|
2519
|
+
else
|
2520
|
+
code = response['Response']['Error']['Code']
|
2521
|
+
message = response['Response']['Error']['Message']
|
2522
|
+
reqid = response['Response']['RequestId']
|
2523
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2524
|
+
end
|
2525
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2526
|
+
raise e
|
2527
|
+
rescue StandardError => e
|
2528
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2529
|
+
end
|
2530
|
+
|
2507
2531
|
# 获取高危命令列表(新)
|
2508
2532
|
|
2509
2533
|
# @param request: Request instance for DescribeBashEventsNew.
|
data/lib/v20180228/models.rb
CHANGED
@@ -3877,6 +3877,141 @@ module TencentCloud
|
|
3877
3877
|
end
|
3878
3878
|
end
|
3879
3879
|
|
3880
|
+
# 高危命令数据详情(新)
|
3881
|
+
class BashEventsInfoNew < TencentCloud::Common::AbstractModel
|
3882
|
+
# @param Id: 数据ID
|
3883
|
+
# @type Id: Integer
|
3884
|
+
# @param Uuid: 云镜ID
|
3885
|
+
# @type Uuid: String
|
3886
|
+
# @param Quuid: 主机ID
|
3887
|
+
# @type Quuid: String
|
3888
|
+
# @param HostIp: 主机内网IP
|
3889
|
+
# @type HostIp: String
|
3890
|
+
# @param Platform: 平台类型
|
3891
|
+
# @type Platform: Integer
|
3892
|
+
# @param BashCmd: 执行命令
|
3893
|
+
# @type BashCmd: String
|
3894
|
+
# @param RuleId: 规则ID,等于0表示已规则已被删除或生效范围已修改
|
3895
|
+
# @type RuleId: Integer
|
3896
|
+
# @param RuleName: 规则名称
|
3897
|
+
# @type RuleName: String
|
3898
|
+
# @param RuleLevel: 规则等级:1-高 2-中 3-低
|
3899
|
+
# @type RuleLevel: Integer
|
3900
|
+
# @param Status: 处理状态: 0 = 待处理 1= 已处理, 2 = 已加白, 3= 已忽略
|
3901
|
+
# @type Status: Integer
|
3902
|
+
# @param CreateTime: 发生时间
|
3903
|
+
# @type CreateTime: String
|
3904
|
+
# @param MachineName: 主机名
|
3905
|
+
# @type MachineName: String
|
3906
|
+
# @param Exe: 进程名称
|
3907
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3908
|
+
# @type Exe: String
|
3909
|
+
# @param ModifyTime: 处理时间
|
3910
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3911
|
+
# @type ModifyTime: String
|
3912
|
+
# @param RuleCategory: 规则类别 0=系统规则,1=用户规则
|
3913
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3914
|
+
# @type RuleCategory: Integer
|
3915
|
+
# @param RegexBashCmd: 自动生成的正则表达式
|
3916
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3917
|
+
# @type RegexBashCmd: String
|
3918
|
+
# @param PsTree: 进程树 json pid:进程id,exe:文件路径 ,account:进程所属用组和用户 ,cmdline:执行命令,ssh_service: SSH服务ip, ssh_soure:登录源
|
3919
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3920
|
+
# @type PsTree: String
|
3921
|
+
# @param SuggestScheme: 建议方案
|
3922
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3923
|
+
# @type SuggestScheme: String
|
3924
|
+
# @param HarmDescribe: 描述
|
3925
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3926
|
+
# @type HarmDescribe: String
|
3927
|
+
# @param Tags: 标签
|
3928
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3929
|
+
# @type Tags: Array
|
3930
|
+
# @param References: 参考链接
|
3931
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3932
|
+
# @type References: Array
|
3933
|
+
# @param MachineWanIp: 主机外网ip
|
3934
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3935
|
+
# @type MachineWanIp: String
|
3936
|
+
# @param MachineStatus: 主机在线状态 OFFLINE ONLINE
|
3937
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3938
|
+
# @type MachineStatus: String
|
3939
|
+
# @param User: 登录用户
|
3940
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3941
|
+
# @type User: String
|
3942
|
+
# @param Pid: 进程号
|
3943
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3944
|
+
# @type Pid: String
|
3945
|
+
# @param MachineType: 0:普通 1:专业版 2:旗舰版
|
3946
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3947
|
+
# @type MachineType: Integer
|
3948
|
+
# @param DetectBy: 检测来源 0:bash日志 1:实时监控
|
3949
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3950
|
+
# @type DetectBy: Integer
|
3951
|
+
|
3952
|
+
attr_accessor :Id, :Uuid, :Quuid, :HostIp, :Platform, :BashCmd, :RuleId, :RuleName, :RuleLevel, :Status, :CreateTime, :MachineName, :Exe, :ModifyTime, :RuleCategory, :RegexBashCmd, :PsTree, :SuggestScheme, :HarmDescribe, :Tags, :References, :MachineWanIp, :MachineStatus, :User, :Pid, :MachineType, :DetectBy
|
3953
|
+
|
3954
|
+
def initialize(id=nil, uuid=nil, quuid=nil, hostip=nil, platform=nil, bashcmd=nil, ruleid=nil, rulename=nil, rulelevel=nil, status=nil, createtime=nil, machinename=nil, exe=nil, modifytime=nil, rulecategory=nil, regexbashcmd=nil, pstree=nil, suggestscheme=nil, harmdescribe=nil, tags=nil, references=nil, machinewanip=nil, machinestatus=nil, user=nil, pid=nil, machinetype=nil, detectby=nil)
|
3955
|
+
@Id = id
|
3956
|
+
@Uuid = uuid
|
3957
|
+
@Quuid = quuid
|
3958
|
+
@HostIp = hostip
|
3959
|
+
@Platform = platform
|
3960
|
+
@BashCmd = bashcmd
|
3961
|
+
@RuleId = ruleid
|
3962
|
+
@RuleName = rulename
|
3963
|
+
@RuleLevel = rulelevel
|
3964
|
+
@Status = status
|
3965
|
+
@CreateTime = createtime
|
3966
|
+
@MachineName = machinename
|
3967
|
+
@Exe = exe
|
3968
|
+
@ModifyTime = modifytime
|
3969
|
+
@RuleCategory = rulecategory
|
3970
|
+
@RegexBashCmd = regexbashcmd
|
3971
|
+
@PsTree = pstree
|
3972
|
+
@SuggestScheme = suggestscheme
|
3973
|
+
@HarmDescribe = harmdescribe
|
3974
|
+
@Tags = tags
|
3975
|
+
@References = references
|
3976
|
+
@MachineWanIp = machinewanip
|
3977
|
+
@MachineStatus = machinestatus
|
3978
|
+
@User = user
|
3979
|
+
@Pid = pid
|
3980
|
+
@MachineType = machinetype
|
3981
|
+
@DetectBy = detectby
|
3982
|
+
end
|
3983
|
+
|
3984
|
+
def deserialize(params)
|
3985
|
+
@Id = params['Id']
|
3986
|
+
@Uuid = params['Uuid']
|
3987
|
+
@Quuid = params['Quuid']
|
3988
|
+
@HostIp = params['HostIp']
|
3989
|
+
@Platform = params['Platform']
|
3990
|
+
@BashCmd = params['BashCmd']
|
3991
|
+
@RuleId = params['RuleId']
|
3992
|
+
@RuleName = params['RuleName']
|
3993
|
+
@RuleLevel = params['RuleLevel']
|
3994
|
+
@Status = params['Status']
|
3995
|
+
@CreateTime = params['CreateTime']
|
3996
|
+
@MachineName = params['MachineName']
|
3997
|
+
@Exe = params['Exe']
|
3998
|
+
@ModifyTime = params['ModifyTime']
|
3999
|
+
@RuleCategory = params['RuleCategory']
|
4000
|
+
@RegexBashCmd = params['RegexBashCmd']
|
4001
|
+
@PsTree = params['PsTree']
|
4002
|
+
@SuggestScheme = params['SuggestScheme']
|
4003
|
+
@HarmDescribe = params['HarmDescribe']
|
4004
|
+
@Tags = params['Tags']
|
4005
|
+
@References = params['References']
|
4006
|
+
@MachineWanIp = params['MachineWanIp']
|
4007
|
+
@MachineStatus = params['MachineStatus']
|
4008
|
+
@User = params['User']
|
4009
|
+
@Pid = params['Pid']
|
4010
|
+
@MachineType = params['MachineType']
|
4011
|
+
@DetectBy = params['DetectBy']
|
4012
|
+
end
|
4013
|
+
end
|
4014
|
+
|
3880
4015
|
# 高危命令规则
|
3881
4016
|
class BashRule < TencentCloud::Common::AbstractModel
|
3882
4017
|
# @param Id: 规则ID
|
@@ -10089,6 +10224,46 @@ module TencentCloud
|
|
10089
10224
|
end
|
10090
10225
|
end
|
10091
10226
|
|
10227
|
+
# DescribeBashEventsInfoNew请求参数结构体
|
10228
|
+
class DescribeBashEventsInfoNewRequest < TencentCloud::Common::AbstractModel
|
10229
|
+
# @param Id: 事件id
|
10230
|
+
# @type Id: Integer
|
10231
|
+
|
10232
|
+
attr_accessor :Id
|
10233
|
+
|
10234
|
+
def initialize(id=nil)
|
10235
|
+
@Id = id
|
10236
|
+
end
|
10237
|
+
|
10238
|
+
def deserialize(params)
|
10239
|
+
@Id = params['Id']
|
10240
|
+
end
|
10241
|
+
end
|
10242
|
+
|
10243
|
+
# DescribeBashEventsInfoNew返回参数结构体
|
10244
|
+
class DescribeBashEventsInfoNewResponse < TencentCloud::Common::AbstractModel
|
10245
|
+
# @param BashEventsInfo: 事件详情
|
10246
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10247
|
+
# @type BashEventsInfo: :class:`Tencentcloud::Cwp.v20180228.models.BashEventsInfoNew`
|
10248
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
10249
|
+
# @type RequestId: String
|
10250
|
+
|
10251
|
+
attr_accessor :BashEventsInfo, :RequestId
|
10252
|
+
|
10253
|
+
def initialize(basheventsinfo=nil, requestid=nil)
|
10254
|
+
@BashEventsInfo = basheventsinfo
|
10255
|
+
@RequestId = requestid
|
10256
|
+
end
|
10257
|
+
|
10258
|
+
def deserialize(params)
|
10259
|
+
unless params['BashEventsInfo'].nil?
|
10260
|
+
@BashEventsInfo = BashEventsInfoNew.new
|
10261
|
+
@BashEventsInfo.deserialize(params['BashEventsInfo'])
|
10262
|
+
end
|
10263
|
+
@RequestId = params['RequestId']
|
10264
|
+
end
|
10265
|
+
end
|
10266
|
+
|
10092
10267
|
# DescribeBashEventsNew请求参数结构体
|
10093
10268
|
class DescribeBashEventsNewRequest < TencentCloud::Common::AbstractModel
|
10094
10269
|
# @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.
|
4
|
+
version: 3.0.543
|
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-
|
11
|
+
date: 2023-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|