# frozen_string_literal: true # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'json' module TencentCloud module Cwp module V20180228 class Client < TencentCloud::Common::AbstractClient def initialize(credential, region, profile = nil) api_version = '2018-02-28' api_endpoint = 'cwp.tencentcloudapi.com' sdk_version = 'CWP_' + File.read(File.expand_path('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end # 取消漏洞忽略 # @param request: Request instance for CancelIgnoreVul. # @type request: :class:`Tencentcloud::cwp::V20180228::CancelIgnoreVulRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::CancelIgnoreVulResponse` def CancelIgnoreVul(request) body = send_request('CancelIgnoreVul', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CancelIgnoreVulResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据检测项id或事件id批量忽略事件或取消忽略 # @param request: Request instance for ChangeRuleEventsIgnoreStatus. # @type request: :class:`Tencentcloud::cwp::V20180228::ChangeRuleEventsIgnoreStatusRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ChangeRuleEventsIgnoreStatusResponse` def ChangeRuleEventsIgnoreStatus(request) body = send_request('ChangeRuleEventsIgnoreStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ChangeRuleEventsIgnoreStatusResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 校验高危命令用户规则新增和编辑时的参数。 # @param request: Request instance for CheckBashRuleParams. # @type request: :class:`Tencentcloud::cwp::V20180228::CheckBashRuleParamsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::CheckBashRuleParamsResponse` def CheckBashRuleParams(request) body = send_request('CheckBashRuleParams', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CheckBashRuleParamsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据策略信息创建基线策略 # @param request: Request instance for CreateBaselineStrategy. # @type request: :class:`Tencentcloud::cwp::V20180228::CreateBaselineStrategyRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::CreateBaselineStrategyResponse` def CreateBaselineStrategy(request) body = send_request('CreateBaselineStrategy', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateBaselineStrategyResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建应急漏洞扫描任务 # @param request: Request instance for CreateEmergencyVulScan. # @type request: :class:`Tencentcloud::cwp::V20180228::CreateEmergencyVulScanRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::CreateEmergencyVulScanResponse` def CreateEmergencyVulScan(request) body = send_request('CreateEmergencyVulScan', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateEmergencyVulScanResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # CreateLicenseOrder 该接口可以创建专业版/旗舰版订单 # 支持预付费后付费创建 # 后付费订单直接创建成功 # 预付费订单仅下单不支付,需要调用计费支付接口进行支付 # @param request: Request instance for CreateLicenseOrder. # @type request: :class:`Tencentcloud::cwp::V20180228::CreateLicenseOrderRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::CreateLicenseOrderResponse` def CreateLicenseOrder(request) body = send_request('CreateLicenseOrder', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateLicenseOrderResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 添加网站防护服务器 # @param request: Request instance for CreateProtectServer. # @type request: :class:`Tencentcloud::cwp::V20180228::CreateProtectServerRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::CreateProtectServerResponse` def CreateProtectServer(request) body = send_request('CreateProtectServer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateProtectServerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口可以对入侵检测-文件查杀扫描检测 # @param request: Request instance for CreateScanMalwareSetting. # @type request: :class:`Tencentcloud::cwp::V20180228::CreateScanMalwareSettingRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::CreateScanMalwareSettingResponse` def CreateScanMalwareSetting(request) body = send_request('CreateScanMalwareSetting', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateScanMalwareSettingResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 添加历史搜索记录 # @param request: Request instance for CreateSearchLog. # @type request: :class:`Tencentcloud::cwp::V20180228::CreateSearchLogRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::CreateSearchLogResponse` def CreateSearchLog(request) body = send_request('CreateSearchLog', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateSearchLogResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 添加检索模板 # @param request: Request instance for CreateSearchTemplate. # @type request: :class:`Tencentcloud::cwp::V20180228::CreateSearchTemplateRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::CreateSearchTemplateResponse` def CreateSearchTemplate(request) body = send_request('CreateSearchTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateSearchTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除网络攻击日志 # @param request: Request instance for DeleteAttackLogs. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteAttackLogsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteAttackLogsResponse` def DeleteAttackLogs(request) body = send_request('DeleteAttackLogs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteAttackLogsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除基线策略配置 # @param request: Request instance for DeleteBaselinePolicy. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteBaselinePolicyRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteBaselinePolicyResponse` def DeleteBaselinePolicy(request) body = send_request('DeleteBaselinePolicy', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteBaselinePolicyResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据基线策略id删除策略 # @param request: Request instance for DeleteBaselineStrategy. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteBaselineStrategyRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteBaselineStrategyResponse` def DeleteBaselineStrategy(request) body = send_request('DeleteBaselineStrategy', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteBaselineStrategyResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据Ids删除高危命令事件 # @param request: Request instance for DeleteBashEvents. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteBashEventsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteBashEventsResponse` def DeleteBashEvents(request) body = send_request('DeleteBashEvents', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteBashEventsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除高危命令规则 # @param request: Request instance for DeleteBashRules. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteBashRulesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteBashRulesResponse` def DeleteBashRules(request) body = send_request('DeleteBashRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteBashRulesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (DeleteBruteAttacks) 用于删除暴力破解记录。 # @param request: Request instance for DeleteBruteAttacks. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteBruteAttacksRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteBruteAttacksResponse` def DeleteBruteAttacks(request) body = send_request('DeleteBruteAttacks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteBruteAttacksResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 对授权管理-订单列表内已过期的订单进行删除.(删除后的订单不在统计范畴内) # @param request: Request instance for DeleteLicenseRecord. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteLicenseRecordRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteLicenseRecordResponse` def DeleteLicenseRecord(request) body = send_request('DeleteLicenseRecord', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteLicenseRecordResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口用于删除异地登录白名单规则。 # @param request: Request instance for DeleteLoginWhiteList. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteLoginWhiteListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteLoginWhiteListResponse` def DeleteLoginWhiteList(request) body = send_request('DeleteLoginWhiteList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteLoginWhiteListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口(DeleteMachine)用于卸载云镜客户端。 # @param request: Request instance for DeleteMachine. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteMachineRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteMachineResponse` def DeleteMachine(request) body = send_request('DeleteMachine', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteMachineResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除服务器关联的标签 # @param request: Request instance for DeleteMachineTag. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteMachineTagRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteMachineTagResponse` def DeleteMachineTag(request) body = send_request('DeleteMachineTag', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteMachineTagResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (DeleteMaliciousRequests) 用于删除恶意请求记录。 # @param request: Request instance for DeleteMaliciousRequests. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteMaliciousRequestsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteMaliciousRequestsResponse` def DeleteMaliciousRequests(request) body = send_request('DeleteMaliciousRequests', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteMaliciousRequestsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 入侵管理-终止扫描任务 # @param request: Request instance for DeleteMalwareScanTask. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteMalwareScanTaskRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteMalwareScanTaskResponse` def DeleteMalwareScanTask(request) body = send_request('DeleteMalwareScanTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteMalwareScanTaskResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (DeleteMalwares) 用于删除木马记录。 # @param request: Request instance for DeleteMalwares. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteMalwaresRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteMalwaresResponse` def DeleteMalwares(request) body = send_request('DeleteMalwares', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteMalwaresResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (DeleteNonlocalLoginPlaces) 用于删除异地登录记录。 # @param request: Request instance for DeleteNonlocalLoginPlaces. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteNonlocalLoginPlacesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteNonlocalLoginPlacesResponse` def DeleteNonlocalLoginPlaces(request) body = send_request('DeleteNonlocalLoginPlaces', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteNonlocalLoginPlacesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据Ids删除本地提权 # @param request: Request instance for DeletePrivilegeEvents. # @type request: :class:`Tencentcloud::cwp::V20180228::DeletePrivilegeEventsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeletePrivilegeEventsResponse` def DeletePrivilegeEvents(request) body = send_request('DeletePrivilegeEvents', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeletePrivilegeEventsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除本地提权规则 # @param request: Request instance for DeletePrivilegeRules. # @type request: :class:`Tencentcloud::cwp::V20180228::DeletePrivilegeRulesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeletePrivilegeRulesResponse` def DeletePrivilegeRules(request) body = send_request('DeletePrivilegeRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeletePrivilegeRulesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除防护网站 # @param request: Request instance for DeleteProtectDir. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteProtectDirRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteProtectDirResponse` def DeleteProtectDir(request) body = send_request('DeleteProtectDir', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteProtectDirResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据Ids删除反弹Shell事件 # @param request: Request instance for DeleteReverseShellEvents. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteReverseShellEventsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteReverseShellEventsResponse` def DeleteReverseShellEvents(request) body = send_request('DeleteReverseShellEvents', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteReverseShellEventsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除反弹Shell规则 # @param request: Request instance for DeleteReverseShellRules. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteReverseShellRulesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteReverseShellRulesResponse` def DeleteReverseShellRules(request) body = send_request('DeleteReverseShellRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteReverseShellRulesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # DeleteScanTask 该接口可以对指定类型的扫描任务进行停止扫描; # @param request: Request instance for DeleteScanTask. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteScanTaskRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteScanTaskResponse` def DeleteScanTask(request) body = send_request('DeleteScanTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteScanTaskResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除检索模板 # @param request: Request instance for DeleteSearchTemplate. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteSearchTemplateRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteSearchTemplateResponse` def DeleteSearchTemplate(request) body = send_request('DeleteSearchTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteSearchTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 删除标签 # @param request: Request instance for DeleteTags. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteTagsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteTagsResponse` def DeleteTags(request) body = send_request('DeleteTags', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteTagsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 网站防篡改-删除事件记录 # @param request: Request instance for DeleteWebPageEventLog. # @type request: :class:`Tencentcloud::cwp::V20180228::DeleteWebPageEventLogRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DeleteWebPageEventLogResponse` def DeleteWebPageEventLog(request) body = send_request('DeleteWebPageEventLog', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteWebPageEventLogResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (DescribeAccountStatistics) 用于获取帐号统计列表数据。 # @param request: Request instance for DescribeAccountStatistics. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAccountStatisticsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAccountStatisticsResponse` def DescribeAccountStatistics(request) body = send_request('DescribeAccountStatistics', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAccountStatisticsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询应用列表 # @param request: Request instance for DescribeAssetAppList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetAppListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetAppListResponse` def DescribeAssetAppList(request) body = send_request('DescribeAssetAppList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetAppListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取软件关联进程列表 # @param request: Request instance for DescribeAssetAppProcessList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetAppProcessListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetAppProcessListResponse` def DescribeAssetAppProcessList(request) body = send_request('DescribeAssetAppProcessList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetAppProcessListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取内核模块详情 # @param request: Request instance for DescribeAssetCoreModuleInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetCoreModuleInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetCoreModuleInfoResponse` def DescribeAssetCoreModuleInfo(request) body = send_request('DescribeAssetCoreModuleInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetCoreModuleInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询资产管理内核模块列表 # @param request: Request instance for DescribeAssetCoreModuleList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetCoreModuleListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetCoreModuleListResponse` def DescribeAssetCoreModuleList(request) body = send_request('DescribeAssetCoreModuleList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetCoreModuleListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取资产管理数据库详情 # @param request: Request instance for DescribeAssetDatabaseInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetDatabaseInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetDatabaseInfoResponse` def DescribeAssetDatabaseInfo(request) body = send_request('DescribeAssetDatabaseInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetDatabaseInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询资产管理数据库列表 # @param request: Request instance for DescribeAssetDatabaseList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetDatabaseListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetDatabaseListResponse` def DescribeAssetDatabaseList(request) body = send_request('DescribeAssetDatabaseList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetDatabaseListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询资产管理环境变量列表 # @param request: Request instance for DescribeAssetEnvList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetEnvListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetEnvListResponse` def DescribeAssetEnvList(request) body = send_request('DescribeAssetEnvList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetEnvListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取主机所有资源数量 # @param request: Request instance for DescribeAssetHostTotalCount. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetHostTotalCountRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetHostTotalCountResponse` def DescribeAssetHostTotalCount(request) body = send_request('DescribeAssetHostTotalCount', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetHostTotalCountResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取资产数量: 主机数、账号数、端口数、进程数、软件数、数据库数、Web应用数、Web框架数、Web服务数、Web站点数 # @param request: Request instance for DescribeAssetInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetInfoResponse` def DescribeAssetInfo(request) body = send_request('DescribeAssetInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询资产管理启动服务列表 # @param request: Request instance for DescribeAssetInitServiceList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetInitServiceListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetInitServiceListResponse` def DescribeAssetInitServiceList(request) body = send_request('DescribeAssetInitServiceList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetInitServiceListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取Jar包详情 # @param request: Request instance for DescribeAssetJarInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetJarInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetJarInfoResponse` def DescribeAssetJarInfo(request) body = send_request('DescribeAssetJarInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetJarInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询Jar包列表 # @param request: Request instance for DescribeAssetJarList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetJarListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetJarListResponse` def DescribeAssetJarList(request) body = send_request('DescribeAssetJarList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetJarListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取资产管理主机资源详细信息 # @param request: Request instance for DescribeAssetMachineDetail. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetMachineDetailRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetMachineDetailResponse` def DescribeAssetMachineDetail(request) body = send_request('DescribeAssetMachineDetail', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetMachineDetailResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取资产指纹页面的资源监控列表 # @param request: Request instance for DescribeAssetMachineList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetMachineListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetMachineListResponse` def DescribeAssetMachineList(request) body = send_request('DescribeAssetMachineList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetMachineListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询资产管理计划任务列表 # @param request: Request instance for DescribeAssetPlanTaskList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetPlanTaskListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetPlanTaskListResponse` def DescribeAssetPlanTaskList(request) body = send_request('DescribeAssetPlanTaskList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetPlanTaskListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取资产管理端口列表 # @param request: Request instance for DescribeAssetPortInfoList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetPortInfoListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetPortInfoListResponse` def DescribeAssetPortInfoList(request) body = send_request('DescribeAssetPortInfoList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetPortInfoListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取资产管理进程列表 # @param request: Request instance for DescribeAssetProcessInfoList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetProcessInfoListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetProcessInfoListResponse` def DescribeAssetProcessInfoList(request) body = send_request('DescribeAssetProcessInfoList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetProcessInfoListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取主机最近趋势情况 # @param request: Request instance for DescribeAssetRecentMachineInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetRecentMachineInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetRecentMachineInfoResponse` def DescribeAssetRecentMachineInfo(request) body = send_request('DescribeAssetRecentMachineInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetRecentMachineInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取资产管理系统安装包列表 # @param request: Request instance for DescribeAssetSystemPackageList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetSystemPackageListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetSystemPackageListResponse` def DescribeAssetSystemPackageList(request) body = send_request('DescribeAssetSystemPackageList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetSystemPackageListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取主机账号详情 # @param request: Request instance for DescribeAssetUserInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetUserInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetUserInfoResponse` def DescribeAssetUserInfo(request) body = send_request('DescribeAssetUserInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetUserInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取账号列表 # @param request: Request instance for DescribeAssetUserList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetUserListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetUserListResponse` def DescribeAssetUserList(request) body = send_request('DescribeAssetUserList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetUserListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取资产管理Web应用列表 # @param request: Request instance for DescribeAssetWebAppList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetWebAppListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetWebAppListResponse` def DescribeAssetWebAppList(request) body = send_request('DescribeAssetWebAppList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetWebAppListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取资产管理Web应用插件列表 # @param request: Request instance for DescribeAssetWebAppPluginList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetWebAppPluginListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetWebAppPluginListResponse` def DescribeAssetWebAppPluginList(request) body = send_request('DescribeAssetWebAppPluginList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetWebAppPluginListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取资产管理Web框架列表 # @param request: Request instance for DescribeAssetWebFrameList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetWebFrameListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetWebFrameListResponse` def DescribeAssetWebFrameList(request) body = send_request('DescribeAssetWebFrameList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetWebFrameListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取Web站点详情 # @param request: Request instance for DescribeAssetWebLocationInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetWebLocationInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetWebLocationInfoResponse` def DescribeAssetWebLocationInfo(request) body = send_request('DescribeAssetWebLocationInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetWebLocationInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取Web站点列表 # @param request: Request instance for DescribeAssetWebLocationList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetWebLocationListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetWebLocationListResponse` def DescribeAssetWebLocationList(request) body = send_request('DescribeAssetWebLocationList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetWebLocationListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询资产管理Web服务列表 # @param request: Request instance for DescribeAssetWebServiceInfoList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetWebServiceInfoListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetWebServiceInfoListResponse` def DescribeAssetWebServiceInfoList(request) body = send_request('DescribeAssetWebServiceInfoList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetWebServiceInfoListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取Web服务关联进程列表 # @param request: Request instance for DescribeAssetWebServiceProcessList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAssetWebServiceProcessListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAssetWebServiceProcessListResponse` def DescribeAssetWebServiceProcessList(request) body = send_request('DescribeAssetWebServiceProcessList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAssetWebServiceProcessListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 网络攻击日志详情 # @param request: Request instance for DescribeAttackLogInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAttackLogInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAttackLogInfoResponse` def DescribeAttackLogInfo(request) body = send_request('DescribeAttackLogInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAttackLogInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 按分页形式展示网络攻击日志列表 # @param request: Request instance for DescribeAttackLogs. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAttackLogsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAttackLogsResponse` def DescribeAttackLogs(request) body = send_request('DescribeAttackLogs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAttackLogsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取网络攻击威胁类型列表 # @param request: Request instance for DescribeAttackVulTypeList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAttackVulTypeListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAttackVulTypeListResponse` def DescribeAttackVulTypeList(request) body = send_request('DescribeAttackVulTypeList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAttackVulTypeListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 专家服务-可用订单详情 # @param request: Request instance for DescribeAvailableExpertServiceDetail. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeAvailableExpertServiceDetailRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeAvailableExpertServiceDetailResponse` def DescribeAvailableExpertServiceDetail(request) body = send_request('DescribeAvailableExpertServiceDetail', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAvailableExpertServiceDetailResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取爆破阻断模式 # @param request: Request instance for DescribeBanMode. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBanModeRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBanModeResponse` def DescribeBanMode(request) body = send_request('DescribeBanMode', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBanModeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取阻断地域 # @param request: Request instance for DescribeBanRegions. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBanRegionsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBanRegionsResponse` def DescribeBanRegions(request) body = send_request('DescribeBanRegions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBanRegionsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取阻断按钮状态 # @param request: Request instance for DescribeBanStatus. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBanStatusRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBanStatusResponse` def DescribeBanStatus(request) body = send_request('DescribeBanStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBanStatusResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取阻断白名单列表 # @param request: Request instance for DescribeBanWhiteList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBanWhiteListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBanWhiteListResponse` def DescribeBanWhiteList(request) body = send_request('DescribeBanWhiteList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBanWhiteListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据基线策略id查询基线策略数据概览统计 # @param request: Request instance for DescribeBaselineAnalysisData. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineAnalysisDataRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineAnalysisDataResponse` def DescribeBaselineAnalysisData(request) body = send_request('DescribeBaselineAnalysisData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBaselineAnalysisDataResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询基线基础信息列表 # @param request: Request instance for DescribeBaselineBasicInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineBasicInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineBasicInfoResponse` def DescribeBaselineBasicInfo(request) body = send_request('DescribeBaselineBasicInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBaselineBasicInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据基线id查询基线详情接口 # @param request: Request instance for DescribeBaselineDetail. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineDetailRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineDetailResponse` def DescribeBaselineDetail(request) body = send_request('DescribeBaselineDetail', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBaselineDetailResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据基线id查询基线影响主机列表 # @param request: Request instance for DescribeBaselineEffectHostList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineEffectHostListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineEffectHostListResponse` def DescribeBaselineEffectHostList(request) body = send_request('DescribeBaselineEffectHostList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBaselineEffectHostListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取基线检测主机列表 # @param request: Request instance for DescribeBaselineHostDetectList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineHostDetectListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineHostDetectListResponse` def DescribeBaselineHostDetectList(request) body = send_request('DescribeBaselineHostDetectList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBaselineHostDetectListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 接口返回TopN的风险服务器 # @param request: Request instance for DescribeBaselineHostTop. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineHostTopRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineHostTopResponse` def DescribeBaselineHostTop(request) body = send_request('DescribeBaselineHostTop', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBaselineHostTopResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取基线检测项的列表 # @param request: Request instance for DescribeBaselineItemDetectList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineItemDetectListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineItemDetectListResponse` def DescribeBaselineItemDetectList(request) body = send_request('DescribeBaselineItemDetectList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBaselineItemDetectListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取基线项检测结果列表 # @param request: Request instance for DescribeBaselineItemList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineItemListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineItemListResponse` def DescribeBaselineItemList(request) body = send_request('DescribeBaselineItemList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBaselineItemListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询基线列表信息 # @param request: Request instance for DescribeBaselineList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineListResponse` def DescribeBaselineList(request) body = send_request('DescribeBaselineList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBaselineListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取基线策略列表 # @param request: Request instance for DescribeBaselinePolicyList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselinePolicyListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselinePolicyListResponse` def DescribeBaselinePolicyList(request) body = send_request('DescribeBaselinePolicyList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBaselinePolicyListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据基线id查询下属检测项信息 # @param request: Request instance for DescribeBaselineRule. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineRuleRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineRuleResponse` def DescribeBaselineRule(request) body = send_request('DescribeBaselineRule', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBaselineRuleResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据任务id查询基线检测进度 # @param request: Request instance for DescribeBaselineScanSchedule. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineScanScheduleRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineScanScheduleResponse` def DescribeBaselineScanSchedule(request) body = send_request('DescribeBaselineScanSchedule', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBaselineScanScheduleResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据基线策略id查询策略详情 # @param request: Request instance for DescribeBaselineStrategyDetail. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineStrategyDetailRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineStrategyDetailResponse` def DescribeBaselineStrategyDetail(request) body = send_request('DescribeBaselineStrategyDetail', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBaselineStrategyDetailResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询一个用户下的基线策略信息 # @param request: Request instance for DescribeBaselineStrategyList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineStrategyListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineStrategyListResponse` def DescribeBaselineStrategyList(request) body = send_request('DescribeBaselineStrategyList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBaselineStrategyListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据策略id查询基线检测项TOP # @param request: Request instance for DescribeBaselineTop. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineTopRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineTopResponse` def DescribeBaselineTop(request) body = send_request('DescribeBaselineTop', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBaselineTopResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取高危命令列表 # @param request: Request instance for DescribeBashEvents. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBashEventsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBashEventsResponse` def DescribeBashEvents(request) body = send_request('DescribeBashEvents', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBashEventsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取高危命令列表(新) # @param request: Request instance for DescribeBashEventsNew. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBashEventsNewRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBashEventsNewResponse` def DescribeBashEventsNew(request) body = send_request('DescribeBashEventsNew', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBashEventsNewResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取高危命令规则列表 # @param request: Request instance for DescribeBashRules. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBashRulesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBashRulesResponse` def DescribeBashRules(request) body = send_request('DescribeBashRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBashRulesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取密码破解列表 # @param request: Request instance for DescribeBruteAttackList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBruteAttackListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBruteAttackListResponse` def DescribeBruteAttackList(request) body = send_request('DescribeBruteAttackList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBruteAttackListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取爆破破解规则 # @param request: Request instance for DescribeBruteAttackRules. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBruteAttackRulesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBruteAttackRulesResponse` def DescribeBruteAttackRules(request) body = send_request('DescribeBruteAttackRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBruteAttackRulesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取客户端异常事件 # @param request: Request instance for DescribeClientException. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeClientExceptionRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeClientExceptionResponse` def DescribeClientException(request) body = send_request('DescribeClientException', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeClientExceptionResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (DescribeComponentStatistics) 用于获取组件统计列表数据。 # @param request: Request instance for DescribeComponentStatistics. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeComponentStatisticsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeComponentStatisticsResponse` def DescribeComponentStatistics(request) body = send_request('DescribeComponentStatistics', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeComponentStatisticsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取ES字段聚合结果 # @param request: Request instance for DescribeESAggregations. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeESAggregationsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeESAggregationsResponse` def DescribeESAggregations(request) body = send_request('DescribeESAggregations', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeESAggregationsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 专家服务-应急响应列表 # @param request: Request instance for DescribeEmergencyResponseList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeEmergencyResponseListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeEmergencyResponseListResponse` def DescribeEmergencyResponseList(request) body = send_request('DescribeEmergencyResponseList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeEmergencyResponseListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取应急漏洞列表 # @param request: Request instance for DescribeEmergencyVulList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeEmergencyVulListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeEmergencyVulListResponse` def DescribeEmergencyVulList(request) body = send_request('DescribeEmergencyVulList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeEmergencyVulListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 专家服务-安全管家列表 # @param request: Request instance for DescribeExpertServiceList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeExpertServiceListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeExpertServiceListResponse` def DescribeExpertServiceList(request) body = send_request('DescribeExpertServiceList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeExpertServiceListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 专家服务-专家服务订单列表 # @param request: Request instance for DescribeExpertServiceOrderList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeExpertServiceOrderListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeExpertServiceOrderListResponse` def DescribeExpertServiceOrderList(request) body = send_request('DescribeExpertServiceOrderList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeExpertServiceOrderListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (DescribeExportMachines) 用于导出区域主机列表。 # @param request: Request instance for DescribeExportMachines. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeExportMachinesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeExportMachinesResponse` def DescribeExportMachines(request) body = send_request('DescribeExportMachines', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeExportMachinesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取主机相关统计 # @param request: Request instance for DescribeGeneralStat. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeGeneralStatRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeGeneralStatResponse` def DescribeGeneralStat(request) body = send_request('DescribeGeneralStat', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeGeneralStatResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (DescribeHistoryAccounts) 用于获取帐号变更历史列表数据。 # @param request: Request instance for DescribeHistoryAccounts. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeHistoryAccountsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeHistoryAccountsResponse` def DescribeHistoryAccounts(request) body = send_request('DescribeHistoryAccounts', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeHistoryAccountsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询日志检索服务信息 # @param request: Request instance for DescribeHistoryService. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeHistoryServiceRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeHistoryServiceResponse` def DescribeHistoryService(request) body = send_request('DescribeHistoryService', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeHistoryServiceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取登录审计列表 # @param request: Request instance for DescribeHostLoginList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeHostLoginListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeHostLoginListResponse` def DescribeHostLoginList(request) body = send_request('DescribeHostLoginList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeHostLoginListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询已经忽略的检测项信息 # @param request: Request instance for DescribeIgnoreBaselineRule. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeIgnoreBaselineRuleRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeIgnoreBaselineRuleResponse` def DescribeIgnoreBaselineRule(request) body = send_request('DescribeIgnoreBaselineRule', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeIgnoreBaselineRuleResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据检测项id与筛选条件查询忽略检测项影响主机列表信息 # @param request: Request instance for DescribeIgnoreRuleEffectHostList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeIgnoreRuleEffectHostListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeIgnoreRuleEffectHostListResponse` def DescribeIgnoreRuleEffectHostList(request) body = send_request('DescribeIgnoreRuleEffectHostList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeIgnoreRuleEffectHostListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询批量导入机器信息 # @param request: Request instance for DescribeImportMachineInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeImportMachineInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeImportMachineInfoResponse` def DescribeImportMachineInfo(request) body = send_request('DescribeImportMachineInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeImportMachineInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取索引列表 # @param request: Request instance for DescribeIndexList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeIndexListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeIndexListResponse` def DescribeIndexList(request) body = send_request('DescribeIndexList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeIndexListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询java内存马事件列表 # @param request: Request instance for DescribeJavaMemShellList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeJavaMemShellListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeJavaMemShellListResponse` def DescribeJavaMemShellList(request) body = send_request('DescribeJavaMemShellList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeJavaMemShellListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 该接口可以获取设置中心-授权管理,某个授权下已绑定的授权机器列表 # @param request: Request instance for DescribeLicenseBindList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeLicenseBindListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeLicenseBindListResponse` def DescribeLicenseBindList(request) body = send_request('DescribeLicenseBindList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLicenseBindListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询授权绑定任务的进度 # @param request: Request instance for DescribeLicenseBindSchedule. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeLicenseBindScheduleRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeLicenseBindScheduleResponse` def DescribeLicenseBindSchedule(request) body = send_request('DescribeLicenseBindSchedule', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLicenseBindScheduleResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 授权管理-授权概览信息 # @param request: Request instance for DescribeLicenseGeneral. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeLicenseGeneralRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeLicenseGeneralResponse` def DescribeLicenseGeneral(request) body = send_request('DescribeLicenseGeneral', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLicenseGeneralResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取用户所有授权订单信息 # @param request: Request instance for DescribeLicenseList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeLicenseListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeLicenseListResponse` def DescribeLicenseList(request) body = send_request('DescribeLicenseList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLicenseListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取日志检索容量使用统计 # @param request: Request instance for DescribeLogStorageStatistic. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeLogStorageStatisticRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeLogStorageStatisticResponse` def DescribeLogStorageStatistic(request) body = send_request('DescribeLogStorageStatistic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLogStorageStatisticResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取异地登录白名单合并后列表 # @param request: Request instance for DescribeLoginWhiteCombinedList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeLoginWhiteCombinedListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeLoginWhiteCombinedListResponse` def DescribeLoginWhiteCombinedList(request) body = send_request('DescribeLoginWhiteCombinedList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLoginWhiteCombinedListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取异地登录白名单列表 # @param request: Request instance for DescribeLoginWhiteList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeLoginWhiteListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeLoginWhiteListResponse` def DescribeLoginWhiteList(request) body = send_request('DescribeLoginWhiteList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLoginWhiteListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口(DescribeMachineInfo)用于获取机器详细信息。 # @param request: Request instance for DescribeMachineInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeMachineInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeMachineInfoResponse` def DescribeMachineInfo(request) body = send_request('DescribeMachineInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMachineInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 用于网页防篡改获取区域主机列表。 # @param request: Request instance for DescribeMachineList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeMachineListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeMachineListResponse` def DescribeMachineList(request) body = send_request('DescribeMachineList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMachineListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询可筛选操作系统列表. # @param request: Request instance for DescribeMachineOsList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeMachineOsListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeMachineOsListResponse` def DescribeMachineOsList(request) body = send_request('DescribeMachineOsList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMachineOsListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取机器地域列表 # @param request: Request instance for DescribeMachineRegions. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeMachineRegionsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeMachineRegionsResponse` def DescribeMachineRegions(request) body = send_request('DescribeMachineRegions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMachineRegionsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (DescribeMachines) 用于获取区域主机列表。 # @param request: Request instance for DescribeMachines. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeMachinesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeMachinesResponse` def DescribeMachines(request) body = send_request('DescribeMachines', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMachinesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 入侵检测获取木马列表 # @param request: Request instance for DescribeMalWareList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeMalWareListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeMalWareListResponse` def DescribeMalWareList(request) body = send_request('DescribeMalWareList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMalWareListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询恶意请求白名单列表 # @param request: Request instance for DescribeMaliciousRequestWhiteList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeMaliciousRequestWhiteListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeMaliciousRequestWhiteListResponse` def DescribeMaliciousRequestWhiteList(request) body = send_request('DescribeMaliciousRequestWhiteList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMaliciousRequestWhiteListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取木马文件下载地址 # @param request: Request instance for DescribeMalwareFile. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeMalwareFileRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeMalwareFileResponse` def DescribeMalwareFile(request) body = send_request('DescribeMalwareFile', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMalwareFileResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查看恶意文件详情 # @param request: Request instance for DescribeMalwareInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeMalwareInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeMalwareInfoResponse` def DescribeMalwareInfo(request) body = send_request('DescribeMalwareInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMalwareInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 打开入侵检测-恶意文件检测,弹出风险预警内容 # @param request: Request instance for DescribeMalwareRiskWarning. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeMalwareRiskWarningRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeMalwareRiskWarningResponse` def DescribeMalwareRiskWarning(request) body = send_request('DescribeMalwareRiskWarning', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMalwareRiskWarningResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询定时扫描配置 # @param request: Request instance for DescribeMalwareTimingScanSetting. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeMalwareTimingScanSettingRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeMalwareTimingScanSettingResponse` def DescribeMalwareTimingScanSetting(request) body = send_request('DescribeMalwareTimingScanSetting', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMalwareTimingScanSettingResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 专家服务-安全管家月巡检报告下载 # @param request: Request instance for DescribeMonthInspectionReport. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeMonthInspectionReportRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeMonthInspectionReportResponse` def DescribeMonthInspectionReport(request) body = send_request('DescribeMonthInspectionReport', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMonthInspectionReportResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (DescribeOpenPortStatistics) 用于获取端口统计列表。 # @param request: Request instance for DescribeOpenPortStatistics. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeOpenPortStatisticsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeOpenPortStatisticsResponse` def DescribeOpenPortStatistics(request) body = send_request('DescribeOpenPortStatistics', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeOpenPortStatisticsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取概览统计数据。 # @param request: Request instance for DescribeOverviewStatistics. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeOverviewStatisticsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeOverviewStatisticsResponse` def DescribeOverviewStatistics(request) body = send_request('DescribeOverviewStatistics', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeOverviewStatisticsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取本地提权事件列表 # @param request: Request instance for DescribePrivilegeEvents. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribePrivilegeEventsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribePrivilegeEventsResponse` def DescribePrivilegeEvents(request) body = send_request('DescribePrivilegeEvents', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribePrivilegeEventsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取本地提权规则列表 # @param request: Request instance for DescribePrivilegeRules. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribePrivilegeRulesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribePrivilegeRulesResponse` def DescribePrivilegeRules(request) body = send_request('DescribePrivilegeRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribePrivilegeRulesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 用于获取专业版概览信息。 # @param request: Request instance for DescribeProVersionInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeProVersionInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeProVersionInfoResponse` def DescribeProVersionInfo(request) body = send_request('DescribeProVersionInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeProVersionInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 用于获取单台主机或所有主机是否开通专业版状态。 # @param request: Request instance for DescribeProVersionStatus. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeProVersionStatusRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeProVersionStatusResponse` def DescribeProVersionStatus(request) body = send_request('DescribeProVersionStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeProVersionStatusResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (DescribeProcessStatistics) 用于获取进程统计列表数据。 # @param request: Request instance for DescribeProcessStatistics. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeProcessStatisticsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeProcessStatisticsResponse` def DescribeProcessStatistics(request) body = send_request('DescribeProcessStatistics', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeProcessStatisticsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 网页防篡改防护目录列表 # @param request: Request instance for DescribeProtectDirList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeProtectDirListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeProtectDirListResponse` def DescribeProtectDirList(request) body = send_request('DescribeProtectDirList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeProtectDirListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询防护目录关联服务器列表信息 # @param request: Request instance for DescribeProtectDirRelatedServer. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeProtectDirRelatedServerRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeProtectDirRelatedServerResponse` def DescribeProtectDirRelatedServer(request) body = send_request('DescribeProtectDirRelatedServer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeProtectDirRelatedServerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 专家服务-旗舰重保列表 # @param request: Request instance for DescribeProtectNetList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeProtectNetListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeProtectNetListResponse` def DescribeProtectNetList(request) body = send_request('DescribeProtectNetList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeProtectNetListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取反弹Shell列表 # @param request: Request instance for DescribeReverseShellEvents. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeReverseShellEventsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeReverseShellEventsResponse` def DescribeReverseShellEvents(request) body = send_request('DescribeReverseShellEvents', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeReverseShellEventsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取反弹Shell规则列表 # @param request: Request instance for DescribeReverseShellRules. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeReverseShellRulesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeReverseShellRulesResponse` def DescribeReverseShellRules(request) body = send_request('DescribeReverseShellRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeReverseShellRulesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 入侵检测,获取恶意请求列表 # @param request: Request instance for DescribeRiskDnsList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeRiskDnsListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeRiskDnsListResponse` def DescribeRiskDnsList(request) body = send_request('DescribeRiskDnsList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRiskDnsListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 更新或者插入用户告警设置(该接口废弃,请调用 ModifyWarningSetting ) # @param request: Request instance for DescribeSaveOrUpdateWarnings. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeSaveOrUpdateWarningsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeSaveOrUpdateWarningsResponse` def DescribeSaveOrUpdateWarnings(request) body = send_request('DescribeSaveOrUpdateWarnings', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSaveOrUpdateWarningsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询木马扫描进度 # @param request: Request instance for DescribeScanMalwareSchedule. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeScanMalwareScheduleRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeScanMalwareScheduleResponse` def DescribeScanMalwareSchedule(request) body = send_request('DescribeScanMalwareSchedule', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeScanMalwareScheduleResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据taskid查询检测进度 # @param request: Request instance for DescribeScanSchedule. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeScanScheduleRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeScanScheduleResponse` def DescribeScanSchedule(request) body = send_request('DescribeScanSchedule', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeScanScheduleResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # DescribeScanState 该接口能查询对应模块正在进行的扫描任务状态 # @param request: Request instance for DescribeScanState. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeScanStateRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeScanStateResponse` def DescribeScanState(request) body = send_request('DescribeScanState', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeScanStateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # DescribeScanTaskDetails 查询扫描任务详情 , 可以查询扫描进度信息/异常; # @param request: Request instance for DescribeScanTaskDetails. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeScanTaskDetailsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeScanTaskDetailsResponse` def DescribeScanTaskDetails(request) body = send_request('DescribeScanTaskDetails', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeScanTaskDetailsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # DescribeScanTaskStatus 查询机器扫描状态列表用于过滤筛选 # @param request: Request instance for DescribeScanTaskStatus. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeScanTaskStatusRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeScanTaskStatusResponse` def DescribeScanTaskStatus(request) body = send_request('DescribeScanTaskStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeScanTaskStatusResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询定期检测的配置 # @param request: Request instance for DescribeScanVulSetting. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeScanVulSettingRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeScanVulSettingResponse` def DescribeScanVulSetting(request) body = send_request('DescribeScanVulSetting', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeScanVulSettingResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出ES查询文档列表 # @param request: Request instance for DescribeSearchExportList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeSearchExportListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeSearchExportListResponse` def DescribeSearchExportList(request) body = send_request('DescribeSearchExportList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSearchExportListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取历史搜索记录 # @param request: Request instance for DescribeSearchLogs. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeSearchLogsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeSearchLogsResponse` def DescribeSearchLogs(request) body = send_request('DescribeSearchLogs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSearchLogsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取快速检索列表 # @param request: Request instance for DescribeSearchTemplates. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeSearchTemplatesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeSearchTemplatesResponse` def DescribeSearchTemplates(request) body = send_request('DescribeSearchTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSearchTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (DescribeSecurityDynamics) 用于获取安全事件动态消息数据。 # @param request: Request instance for DescribeSecurityDynamics. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeSecurityDynamicsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeSecurityDynamicsResponse` def DescribeSecurityDynamics(request) body = send_request('DescribeSecurityDynamics', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSecurityDynamicsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取安全事件统计 # @param request: Request instance for DescribeSecurityEventStat. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeSecurityEventStatRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeSecurityEventStatResponse` def DescribeSecurityEventStat(request) body = send_request('DescribeSecurityEventStat', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSecurityEventStatResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取安全概览相关事件统计数据接口 # @param request: Request instance for DescribeSecurityEventsCnt. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeSecurityEventsCntRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeSecurityEventsCntResponse` def DescribeSecurityEventsCnt(request) body = send_request('DescribeSecurityEventsCnt', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSecurityEventsCntResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (DescribeSecurityTrends) 用于获取安全事件统计数据。 # @param request: Request instance for DescribeSecurityTrends. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeSecurityTrendsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeSecurityTrendsResponse` def DescribeSecurityTrends(request) body = send_request('DescribeSecurityTrends', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSecurityTrendsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询服务区关联目录详情 # @param request: Request instance for DescribeServerRelatedDirInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeServerRelatedDirInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeServerRelatedDirInfoResponse` def DescribeServerRelatedDirInfo(request) body = send_request('DescribeServerRelatedDirInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeServerRelatedDirInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取待处理风险文件数+影响服务器数+是否试用检测+最近检测时间 # @param request: Request instance for DescribeServersAndRiskAndFirstInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeServersAndRiskAndFirstInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeServersAndRiskAndFirstInfoResponse` def DescribeServersAndRiskAndFirstInfo(request) body = send_request('DescribeServersAndRiskAndFirstInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeServersAndRiskAndFirstInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据策略名查询策略是否存在 # @param request: Request instance for DescribeStrategyExist. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeStrategyExistRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeStrategyExistResponse` def DescribeStrategyExist(request) body = send_request('DescribeStrategyExist', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeStrategyExistResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取指定标签关联的服务器信息 # @param request: Request instance for DescribeTagMachines. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeTagMachinesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeTagMachinesResponse` def DescribeTagMachines(request) body = send_request('DescribeTagMachines', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTagMachinesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取所有主机标签 # @param request: Request instance for DescribeTags. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeTagsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeTagsResponse` def DescribeTags(request) body = send_request('DescribeTags', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTagsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取漏洞管理模块指定类型的待处理漏洞数、主机数和非专业版主机数量 # @param request: Request instance for DescribeUndoVulCounts. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeUndoVulCountsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeUndoVulCountsResponse` def DescribeUndoVulCounts(request) body = send_request('DescribeUndoVulCounts', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeUndoVulCountsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 此接口(DescribeUsualLoginPlaces)用于查询常用登录地。 # @param request: Request instance for DescribeUsualLoginPlaces. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeUsualLoginPlacesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeUsualLoginPlacesResponse` def DescribeUsualLoginPlaces(request) body = send_request('DescribeUsualLoginPlaces', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeUsualLoginPlacesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 用于统计专业版和基础版机器数。 # @param request: Request instance for DescribeVersionStatistics. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeVersionStatisticsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeVersionStatisticsResponse` def DescribeVersionStatistics(request) body = send_request('DescribeVersionStatistics', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeVersionStatisticsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 漏洞管理模块,获取近日指定类型的漏洞数量和主机数量 # @param request: Request instance for DescribeVulCountByDates. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeVulCountByDatesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeVulCountByDatesResponse` def DescribeVulCountByDates(request) body = send_request('DescribeVulCountByDates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeVulCountByDatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 漏洞影响主机列表 # @param request: Request instance for DescribeVulEffectHostList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeVulEffectHostListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeVulEffectHostListResponse` def DescribeVulEffectHostList(request) body = send_request('DescribeVulEffectHostList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeVulEffectHostListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取待处理漏洞数+影响主机数 # @param request: Request instance for DescribeVulHostCountScanTime. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeVulHostCountScanTimeRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeVulHostCountScanTimeResponse` def DescribeVulHostCountScanTime(request) body = send_request('DescribeVulHostCountScanTime', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeVulHostCountScanTimeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取服务器风险top列表 # @param request: Request instance for DescribeVulHostTop. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeVulHostTopRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeVulHostTopResponse` def DescribeVulHostTop(request) body = send_request('DescribeVulHostTop', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeVulHostTopResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 漏洞详情,带CVSS版本 # @param request: Request instance for DescribeVulInfoCvss. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeVulInfoCvssRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeVulInfoCvssResponse` def DescribeVulInfoCvss(request) body = send_request('DescribeVulInfoCvss', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeVulInfoCvssResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 漏洞数量等级分布统计 # @param request: Request instance for DescribeVulLevelCount. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeVulLevelCountRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeVulLevelCountResponse` def DescribeVulLevelCount(request) body = send_request('DescribeVulLevelCount', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeVulLevelCountResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取漏洞列表数据 # @param request: Request instance for DescribeVulList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeVulListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeVulListResponse` def DescribeVulList(request) body = send_request('DescribeVulList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeVulListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 漏洞top统计 # @param request: Request instance for DescribeVulTop. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeVulTopRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeVulTopResponse` def DescribeVulTop(request) body = send_request('DescribeVulTop', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeVulTopResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 获取当前用户告警列表 # @param request: Request instance for DescribeWarningList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeWarningListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeWarningListResponse` def DescribeWarningList(request) body = send_request('DescribeWarningList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeWarningListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询篡改事件列表 # @param request: Request instance for DescribeWebPageEventList. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeWebPageEventListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeWebPageEventListResponse` def DescribeWebPageEventList(request) body = send_request('DescribeWebPageEventList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeWebPageEventListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 查询网站防篡改概览信息 # @param request: Request instance for DescribeWebPageGeneralize. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeWebPageGeneralizeRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeWebPageGeneralizeResponse` def DescribeWebPageGeneralize(request) body = send_request('DescribeWebPageGeneralize', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeWebPageGeneralizeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 网站防篡改-查询动态防护信息 # @param request: Request instance for DescribeWebPageProtectStat. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeWebPageProtectStatRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeWebPageProtectStatResponse` def DescribeWebPageProtectStat(request) body = send_request('DescribeWebPageProtectStat', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeWebPageProtectStatResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 网站防篡改-查询网页防篡改服务器购买信息及服务器信息 # @param request: Request instance for DescribeWebPageServiceInfo. # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeWebPageServiceInfoRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeWebPageServiceInfoResponse` def DescribeWebPageServiceInfo(request) body = send_request('DescribeWebPageServiceInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeWebPageServiceInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # DestroyOrder 该接口可以对资源销毁. # @param request: Request instance for DestroyOrder. # @type request: :class:`Tencentcloud::cwp::V20180228::DestroyOrderRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::DestroyOrderResponse` def DestroyOrder(request) body = send_request('DestroyOrder', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DestroyOrderResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 新增或修改高危命令规则 # @param request: Request instance for EditBashRules. # @type request: :class:`Tencentcloud::cwp::V20180228::EditBashRulesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::EditBashRulesResponse` def EditBashRules(request) body = send_request('EditBashRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = EditBashRulesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 新增或编辑标签 # @param request: Request instance for EditTags. # @type request: :class:`Tencentcloud::cwp::V20180228::EditTagsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::EditTagsResponse` def EditTags(request) body = send_request('EditTags', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = EditTagsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出资产管理内核模块列表 # @param request: Request instance for ExportAssetCoreModuleList. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportAssetCoreModuleListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportAssetCoreModuleListResponse` def ExportAssetCoreModuleList(request) body = send_request('ExportAssetCoreModuleList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportAssetCoreModuleListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出资产管理Web服务列表 # @param request: Request instance for ExportAssetWebServiceInfoList. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportAssetWebServiceInfoListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportAssetWebServiceInfoListResponse` def ExportAssetWebServiceInfoList(request) body = send_request('ExportAssetWebServiceInfoList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportAssetWebServiceInfoListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出网络攻击日志 # @param request: Request instance for ExportAttackLogs. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportAttackLogsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportAttackLogsResponse` def ExportAttackLogs(request) body = send_request('ExportAttackLogs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportAttackLogsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出基线影响主机列表 # @param request: Request instance for ExportBaselineEffectHostList. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportBaselineEffectHostListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportBaselineEffectHostListResponse` def ExportBaselineEffectHostList(request) body = send_request('ExportBaselineEffectHostList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportBaselineEffectHostListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出基线列表 # @param request: Request instance for ExportBaselineList. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportBaselineListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportBaselineListResponse` def ExportBaselineList(request) body = send_request('ExportBaselineList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportBaselineListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出高危命令事件 # @param request: Request instance for ExportBashEvents. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportBashEventsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportBashEventsResponse` def ExportBashEvents(request) body = send_request('ExportBashEvents', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportBashEventsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (ExportBruteAttacks) 用于导出密码破解记录成CSV文件。 # @param request: Request instance for ExportBruteAttacks. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportBruteAttacksRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportBruteAttacksResponse` def ExportBruteAttacks(request) body = send_request('ExportBruteAttacks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportBruteAttacksResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出已忽略基线检测项信息 # @param request: Request instance for ExportIgnoreBaselineRule. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportIgnoreBaselineRuleRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportIgnoreBaselineRuleResponse` def ExportIgnoreBaselineRule(request) body = send_request('ExportIgnoreBaselineRule', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportIgnoreBaselineRuleResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据检测项id导出忽略检测项影响主机列表 # @param request: Request instance for ExportIgnoreRuleEffectHostList. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportIgnoreRuleEffectHostListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportIgnoreRuleEffectHostListResponse` def ExportIgnoreRuleEffectHostList(request) body = send_request('ExportIgnoreRuleEffectHostList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportIgnoreRuleEffectHostListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出授权列表对应的绑定信息 # @param request: Request instance for ExportLicenseDetail. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportLicenseDetailRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportLicenseDetailResponse` def ExportLicenseDetail(request) body = send_request('ExportLicenseDetail', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportLicenseDetailResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (ExportMaliciousRequests) 用于导出下载恶意请求文件。 # @param request: Request instance for ExportMaliciousRequests. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportMaliciousRequestsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportMaliciousRequestsResponse` def ExportMaliciousRequests(request) body = send_request('ExportMaliciousRequests', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportMaliciousRequestsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (ExportMalwares) 用于导出木马记录CSV文件。 # @param request: Request instance for ExportMalwares. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportMalwaresRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportMalwaresResponse` def ExportMalwares(request) body = send_request('ExportMalwares', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportMalwaresResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (ExportNonlocalLoginPlaces) 用于导出异地登录事件记录CSV文件。 # @param request: Request instance for ExportNonlocalLoginPlaces. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportNonlocalLoginPlacesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportNonlocalLoginPlacesResponse` def ExportNonlocalLoginPlaces(request) body = send_request('ExportNonlocalLoginPlaces', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportNonlocalLoginPlacesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出本地提权事件 # @param request: Request instance for ExportPrivilegeEvents. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportPrivilegeEventsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportPrivilegeEventsResponse` def ExportPrivilegeEvents(request) body = send_request('ExportPrivilegeEvents', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportPrivilegeEventsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出网页防篡改防护目录列表 # @param request: Request instance for ExportProtectDirList. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportProtectDirListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportProtectDirListResponse` def ExportProtectDirList(request) body = send_request('ExportProtectDirList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportProtectDirListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出反弹Shell事件 # @param request: Request instance for ExportReverseShellEvents. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportReverseShellEventsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportReverseShellEventsResponse` def ExportReverseShellEvents(request) body = send_request('ExportReverseShellEvents', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportReverseShellEventsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据任务id导出指定扫描任务详情 # @param request: Request instance for ExportScanTaskDetails. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportScanTaskDetailsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportScanTaskDetailsResponse` def ExportScanTaskDetails(request) body = send_request('ExportScanTaskDetails', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportScanTaskDetailsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出风险趋势 # @param request: Request instance for ExportSecurityTrends. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportSecurityTrendsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportSecurityTrendsResponse` def ExportSecurityTrends(request) body = send_request('ExportSecurityTrends', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportSecurityTrendsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 用于异步导出数据量大的日志文件 # @param request: Request instance for ExportTasks. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportTasksRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportTasksResponse` def ExportTasks(request) body = send_request('ExportTasks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportTasksResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出本次漏洞检测Excel # @param request: Request instance for ExportVulDetectionExcel. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportVulDetectionExcelRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportVulDetectionExcelResponse` def ExportVulDetectionExcel(request) body = send_request('ExportVulDetectionExcel', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportVulDetectionExcelResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出漏洞检测报告。 # @param request: Request instance for ExportVulDetectionReport. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportVulDetectionReportRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportVulDetectionReportResponse` def ExportVulDetectionReport(request) body = send_request('ExportVulDetectionReport', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportVulDetectionReportResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出漏洞影响主机列表 # @param request: Request instance for ExportVulEffectHostList. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportVulEffectHostListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportVulEffectHostListResponse` def ExportVulEffectHostList(request) body = send_request('ExportVulEffectHostList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportVulEffectHostListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 漏洞管理-导出漏洞列表 # @param request: Request instance for ExportVulList. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportVulListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportVulListResponse` def ExportVulList(request) body = send_request('ExportVulList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportVulListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 导出篡改事件列表 # @param request: Request instance for ExportWebPageEventList. # @type request: :class:`Tencentcloud::cwp::V20180228::ExportWebPageEventListRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ExportWebPageEventListResponse` def ExportWebPageEventList(request) body = send_request('ExportWebPageEventList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportWebPageEventListResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口 (IgnoreImpactedHosts) 用于忽略漏洞。 # @param request: Request instance for IgnoreImpactedHosts. # @type request: :class:`Tencentcloud::cwp::V20180228::IgnoreImpactedHostsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::IgnoreImpactedHostsResponse` def IgnoreImpactedHosts(request) body = send_request('IgnoreImpactedHosts', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = IgnoreImpactedHostsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 用于设置新增主机自动开通专业防护配置。 # @param request: Request instance for ModifyAutoOpenProVersionConfig. # @type request: :class:`Tencentcloud::cwp::V20180228::ModifyAutoOpenProVersionConfigRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyAutoOpenProVersionConfigResponse` def ModifyAutoOpenProVersionConfig(request) body = send_request('ModifyAutoOpenProVersionConfig', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyAutoOpenProVersionConfigResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 修改爆破阻断模式 # @param request: Request instance for ModifyBanMode. # @type request: :class:`Tencentcloud::cwp::V20180228::ModifyBanModeRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyBanModeResponse` def ModifyBanMode(request) body = send_request('ModifyBanMode', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyBanModeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 设置阻断开关状态 # @param request: Request instance for ModifyBanStatus. # @type request: :class:`Tencentcloud::cwp::V20180228::ModifyBanStatusRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyBanStatusResponse` def ModifyBanStatus(request) body = send_request('ModifyBanStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyBanStatusResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 更改基线策略设置 # @param request: Request instance for ModifyBaselinePolicy. # @type request: :class:`Tencentcloud::cwp::V20180228::ModifyBaselinePolicyRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyBaselinePolicyResponse` def ModifyBaselinePolicy(request) body = send_request('ModifyBaselinePolicy', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyBaselinePolicyResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 修改暴力破解规则 # @param request: Request instance for ModifyBruteAttackRules. # @type request: :class:`Tencentcloud::cwp::V20180228::ModifyBruteAttackRulesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyBruteAttackRulesResponse` def ModifyBruteAttackRules(request) body = send_request('ModifyBruteAttackRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyBruteAttackRulesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 设置中心-授权管理 对某个授权批量绑定机器 # @param request: Request instance for ModifyLicenseBinds. # @type request: :class:`Tencentcloud::cwp::V20180228::ModifyLicenseBindsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyLicenseBindsResponse` def ModifyLicenseBinds(request) body = send_request('ModifyLicenseBinds', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyLicenseBindsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 设置中心-授权管理 对某个授权批量解绑机器 # @param request: Request instance for ModifyLicenseUnBinds. # @type request: :class:`Tencentcloud::cwp::V20180228::ModifyLicenseUnBindsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyLicenseUnBindsResponse` def ModifyLicenseUnBinds(request) body = send_request('ModifyLicenseUnBinds', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyLicenseUnBindsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 定时扫描设置 # @param request: Request instance for ModifyMalwareTimingScanSettings. # @type request: :class:`Tencentcloud::cwp::V20180228::ModifyMalwareTimingScanSettingsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyMalwareTimingScanSettingsResponse` def ModifyMalwareTimingScanSettings(request) body = send_request('ModifyMalwareTimingScanSettings', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyMalwareTimingScanSettingsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 对订单属性编辑 # @param request: Request instance for ModifyOrderAttribute. # @type request: :class:`Tencentcloud::cwp::V20180228::ModifyOrderAttributeRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyOrderAttributeResponse` def ModifyOrderAttribute(request) body = send_request('ModifyOrderAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyOrderAttributeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 修改告警设置 # @param request: Request instance for ModifyWarningSetting. # @type request: :class:`Tencentcloud::cwp::V20180228::ModifyWarningSettingRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyWarningSettingResponse` def ModifyWarningSetting(request) body = send_request('ModifyWarningSetting', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyWarningSettingResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 创建/修改网站防护目录 # @param request: Request instance for ModifyWebPageProtectDir. # @type request: :class:`Tencentcloud::cwp::V20180228::ModifyWebPageProtectDirRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyWebPageProtectDirResponse` def ModifyWebPageProtectDir(request) body = send_request('ModifyWebPageProtectDir', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyWebPageProtectDirResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 修改网站防护设置 # @param request: Request instance for ModifyWebPageProtectSetting. # @type request: :class:`Tencentcloud::cwp::V20180228::ModifyWebPageProtectSettingRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyWebPageProtectSettingResponse` def ModifyWebPageProtectSetting(request) body = send_request('ModifyWebPageProtectSetting', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyWebPageProtectSettingResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 网站防篡改防护设置开关 # @param request: Request instance for ModifyWebPageProtectSwitch. # @type request: :class:`Tencentcloud::cwp::V20180228::ModifyWebPageProtectSwitchRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ModifyWebPageProtectSwitchResponse` def ModifyWebPageProtectSwitch(request) body = send_request('ModifyWebPageProtectSwitch', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyWebPageProtectSwitchResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口(RecoverMalwares)用于批量恢复已经被隔离的木马文件。 # @param request: Request instance for RecoverMalwares. # @type request: :class:`Tencentcloud::cwp::V20180228::RecoverMalwaresRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::RecoverMalwaresResponse` def RecoverMalwares(request) body = send_request('RecoverMalwares', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecoverMalwaresResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 资产指纹启动扫描 # @param request: Request instance for ScanAsset. # @type request: :class:`Tencentcloud::cwp::V20180228::ScanAssetRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ScanAssetResponse` def ScanAsset(request) body = send_request('ScanAsset', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ScanAssetResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 一键检测 # @param request: Request instance for ScanVul. # @type request: :class:`Tencentcloud::cwp::V20180228::ScanVulRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ScanVulResponse` def ScanVul(request) body = send_request('ScanVul', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ScanVulResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 漏洞管理-重新检测接口 # @param request: Request instance for ScanVulAgain. # @type request: :class:`Tencentcloud::cwp::V20180228::ScanVulAgainRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ScanVulAgainResponse` def ScanVulAgain(request) body = send_request('ScanVulAgain', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ScanVulAgainResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 定期扫描漏洞设置 # @param request: Request instance for ScanVulSetting. # @type request: :class:`Tencentcloud::cwp::V20180228::ScanVulSettingRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::ScanVulSettingResponse` def ScanVulSetting(request) body = send_request('ScanVulSetting', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ScanVulSettingResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口(SeparateMalwares)用于隔离木马。 # @param request: Request instance for SeparateMalwares. # @type request: :class:`Tencentcloud::cwp::V20180228::SeparateMalwaresRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::SeparateMalwaresResponse` def SeparateMalwares(request) body = send_request('SeparateMalwares', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SeparateMalwaresResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 设置高危命令事件状态 # @param request: Request instance for SetBashEventsStatus. # @type request: :class:`Tencentcloud::cwp::V20180228::SetBashEventsStatusRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::SetBashEventsStatusResponse` def SetBashEventsStatus(request) body = send_request('SetBashEventsStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SetBashEventsStatusResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 检测基线 # @param request: Request instance for StartBaselineDetect. # @type request: :class:`Tencentcloud::cwp::V20180228::StartBaselineDetectRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::StartBaselineDetectResponse` def StartBaselineDetect(request) body = send_request('StartBaselineDetect', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StartBaselineDetectResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 停止基线检测 # @param request: Request instance for StopBaselineDetect. # @type request: :class:`Tencentcloud::cwp::V20180228::StopBaselineDetectRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::StopBaselineDetectResponse` def StopBaselineDetect(request) body = send_request('StopBaselineDetect', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StopBaselineDetectResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 不再提醒爆破阻断提示弹窗 # @param request: Request instance for StopNoticeBanTips. # @type request: :class:`Tencentcloud::cwp::V20180228::StopNoticeBanTipsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::StopNoticeBanTipsResponse` def StopNoticeBanTips(request) body = send_request('StopNoticeBanTips', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StopNoticeBanTipsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 切换高危命令规则状态 # @param request: Request instance for SwitchBashRules. # @type request: :class:`Tencentcloud::cwp::V20180228::SwitchBashRulesRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::SwitchBashRulesResponse` def SwitchBashRules(request) body = send_request('SwitchBashRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SwitchBashRulesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 同步资产扫描信息 # @param request: Request instance for SyncAssetScan. # @type request: :class:`Tencentcloud::cwp::V20180228::SyncAssetScanRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::SyncAssetScanResponse` def SyncAssetScan(request) body = send_request('SyncAssetScan', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SyncAssetScanResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 同步基线检测进度概要 # @param request: Request instance for SyncBaselineDetectSummary. # @type request: :class:`Tencentcloud::cwp::V20180228::SyncBaselineDetectSummaryRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::SyncBaselineDetectSummaryResponse` def SyncBaselineDetectSummary(request) body = send_request('SyncBaselineDetectSummary', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SyncBaselineDetectSummaryResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口(TrustMalwares)将被识别木马文件设为信任。 # @param request: Request instance for TrustMalwares. # @type request: :class:`Tencentcloud::cwp::V20180228::TrustMalwaresRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::TrustMalwaresResponse` def TrustMalwares(request) body = send_request('TrustMalwares', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TrustMalwaresResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 本接口(UntrustMalwares)用于取消信任木马文件。 # @param request: Request instance for UntrustMalwares. # @type request: :class:`Tencentcloud::cwp::V20180228::UntrustMalwaresRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::UntrustMalwaresResponse` def UntrustMalwares(request) body = send_request('UntrustMalwares', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UntrustMalwaresResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 根据基线策略id更新策略信息 # @param request: Request instance for UpdateBaselineStrategy. # @type request: :class:`Tencentcloud::cwp::V20180228::UpdateBaselineStrategyRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::UpdateBaselineStrategyResponse` def UpdateBaselineStrategy(request) body = send_request('UpdateBaselineStrategy', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateBaselineStrategyResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end # 关联机器标签列表 # @param request: Request instance for UpdateMachineTags. # @type request: :class:`Tencentcloud::cwp::V20180228::UpdateMachineTagsRequest` # @rtype: :class:`Tencentcloud::cwp::V20180228::UpdateMachineTagsResponse` def UpdateMachineTags(request) body = send_request('UpdateMachineTags', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateMachineTagsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end end end end end