/* * Copyright (c) 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. */ namespace TencentCloud.Dayu.V20180709 { using Newtonsoft.Json; using System.Threading.Tasks; using TencentCloud.Common; using TencentCloud.Common.Profile; using TencentCloud.Dayu.V20180709.Models; public class DayuClient : AbstractClient{ private const string endpoint = "dayu.tencentcloudapi.com"; private const string version = "2018-07-09"; /// /// Client constructor. /// /// Credentials. /// Region name, such as "ap-guangzhou". public DayuClient(Credential credential, string region) : this(credential, region, new ClientProfile()) { } /// /// Client Constructor. /// /// Credentials. /// Region name, such as "ap-guangzhou". /// Client profiles. public DayuClient(Credential credential, string region, ClientProfile profile) : base(endpoint, version, credential, region, profile) { } /// /// 设置基础防护的DDoS告警阈值,只支持基础防护产品 /// /// /// public async Task CreateBasicDDoSAlarmThreshold(CreateBasicDDoSAlarmThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateBasicDDoSAlarmThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 设置基础防护的DDoS告警阈值,只支持基础防护产品 /// /// /// public CreateBasicDDoSAlarmThresholdResponse CreateBasicDDoSAlarmThresholdSync(CreateBasicDDoSAlarmThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateBasicDDoSAlarmThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 绑定IP到高防包实例,支持独享包、共享包;需要注意的是此接口绑定或解绑IP是异步接口,当处于绑定或解绑中时,则不允许再进行绑定或解绑,需要等待当前绑定或解绑完成。 /// /// /// public async Task CreateBoundIP(CreateBoundIPRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateBoundIP"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 绑定IP到高防包实例,支持独享包、共享包;需要注意的是此接口绑定或解绑IP是异步接口,当处于绑定或解绑中时,则不允许再进行绑定或解绑,需要等待当前绑定或解绑完成。 /// /// /// public CreateBoundIPResponse CreateBoundIPSync(CreateBoundIPRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateBoundIP"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加CC防护的访问频率控制规则 /// /// /// public async Task CreateCCFrequencyRules(CreateCCFrequencyRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateCCFrequencyRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加CC防护的访问频率控制规则 /// /// /// public CreateCCFrequencyRulesResponse CreateCCFrequencyRulesSync(CreateCCFrequencyRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateCCFrequencyRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建CC自定义策略 /// /// /// public async Task CreateCCSelfDefinePolicy(CreateCCSelfDefinePolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateCCSelfDefinePolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建CC自定义策略 /// /// /// public CreateCCSelfDefinePolicyResponse CreateCCSelfDefinePolicySync(CreateCCSelfDefinePolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateCCSelfDefinePolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加DDoS高级策略 /// /// /// public async Task CreateDDoSPolicy(CreateDDoSPolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateDDoSPolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加DDoS高级策略 /// /// /// public CreateDDoSPolicyResponse CreateDDoSPolicySync(CreateDDoSPolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateDDoSPolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加策略场景 /// /// /// public async Task CreateDDoSPolicyCase(CreateDDoSPolicyCaseRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateDDoSPolicyCase"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加策略场景 /// /// /// public CreateDDoSPolicyCaseResponse CreateDDoSPolicyCaseSync(CreateDDoSPolicyCaseRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateDDoSPolicyCase"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 资源实例重命名,支持独享包、共享包、高防IP、高防IP专业版; /// /// /// public async Task CreateInstanceName(CreateInstanceNameRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateInstanceName"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 资源实例重命名,支持独享包、共享包、高防IP、高防IP专业版; /// /// /// public CreateInstanceNameResponse CreateInstanceNameSync(CreateInstanceNameRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateInstanceName"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 上传四层健康检查配置 /// /// /// public async Task CreateL4HealthConfig(CreateL4HealthConfigRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateL4HealthConfig"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 上传四层健康检查配置 /// /// /// public CreateL4HealthConfigResponse CreateL4HealthConfigSync(CreateL4HealthConfigRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateL4HealthConfig"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加L4转发规则 /// /// /// public async Task CreateL4Rules(CreateL4RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateL4Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加L4转发规则 /// /// /// public CreateL4RulesResponse CreateL4RulesSync(CreateL4RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateL4Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 此接口是7层CC的访问频控自定义规则(IP+Host维度,不支持具体的URI),此接口已弃用,请调用新接口CreateCCFrequencyRules,新接口同时支持IP+Host维度以及具体的URI; /// /// /// public async Task CreateL7CCRule(CreateL7CCRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateL7CCRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 此接口是7层CC的访问频控自定义规则(IP+Host维度,不支持具体的URI),此接口已弃用,请调用新接口CreateCCFrequencyRules,新接口同时支持IP+Host维度以及具体的URI; /// /// /// public CreateL7CCRuleResponse CreateL7CCRuleSync(CreateL7CCRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateL7CCRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 上传七层健康检查配置 /// /// /// public async Task CreateL7HealthConfig(CreateL7HealthConfigRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateL7HealthConfig"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 上传七层健康检查配置 /// /// /// public CreateL7HealthConfigResponse CreateL7HealthConfigSync(CreateL7HealthConfigRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateL7HealthConfig"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 配置7层转发规则的证书 /// /// /// public async Task CreateL7RuleCert(CreateL7RuleCertRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateL7RuleCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 配置7层转发规则的证书 /// /// /// public CreateL7RuleCertResponse CreateL7RuleCertSync(CreateL7RuleCertRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateL7RuleCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加7层(网站)转发规则 /// /// /// public async Task CreateL7Rules(CreateL7RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateL7Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加7层(网站)转发规则 /// /// /// public CreateL7RulesResponse CreateL7RulesSync(CreateL7RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateL7Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 批量上传7层转发规则 /// /// /// public async Task CreateL7RulesUpload(CreateL7RulesUploadRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateL7RulesUpload"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 批量上传7层转发规则 /// /// /// public CreateL7RulesUploadResponse CreateL7RulesUploadSync(CreateL7RulesUploadRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateL7RulesUpload"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 高防IP专业版一键切回源站 /// /// /// public async Task CreateNetReturn(CreateNetReturnRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateNetReturn"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 高防IP专业版一键切回源站 /// /// /// public CreateNetReturnResponse CreateNetReturnSync(CreateNetReturnRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateNetReturn"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加L4转发规则 /// /// /// public async Task CreateNewL4Rules(CreateNewL4RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateNewL4Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加L4转发规则 /// /// /// public CreateNewL4RulesResponse CreateNewL4RulesSync(CreateNewL4RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateNewL4Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加7层转发规则 /// /// /// public async Task CreateNewL7Rules(CreateNewL7RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateNewL7Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加7层转发规则 /// /// /// public CreateNewL7RulesResponse CreateNewL7RulesSync(CreateNewL7RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateNewL7Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// IP解封操作 /// /// /// public async Task CreateUnblockIp(CreateUnblockIpRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateUnblockIp"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// IP解封操作 /// /// /// public CreateUnblockIpResponse CreateUnblockIpSync(CreateUnblockIpRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateUnblockIp"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除CC防护的访问频率控制规则 /// /// /// public async Task DeleteCCFrequencyRules(DeleteCCFrequencyRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteCCFrequencyRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除CC防护的访问频率控制规则 /// /// /// public DeleteCCFrequencyRulesResponse DeleteCCFrequencyRulesSync(DeleteCCFrequencyRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteCCFrequencyRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除CC自定义策略 /// /// /// public async Task DeleteCCSelfDefinePolicy(DeleteCCSelfDefinePolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteCCSelfDefinePolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除CC自定义策略 /// /// /// public DeleteCCSelfDefinePolicyResponse DeleteCCSelfDefinePolicySync(DeleteCCSelfDefinePolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteCCSelfDefinePolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除DDoS高级策略 /// /// /// public async Task DeleteDDoSPolicy(DeleteDDoSPolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteDDoSPolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除DDoS高级策略 /// /// /// public DeleteDDoSPolicyResponse DeleteDDoSPolicySync(DeleteDDoSPolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteDDoSPolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除策略场景 /// /// /// public async Task DeleteDDoSPolicyCase(DeleteDDoSPolicyCaseRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteDDoSPolicyCase"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除策略场景 /// /// /// public DeleteDDoSPolicyCaseResponse DeleteDDoSPolicyCaseSync(DeleteDDoSPolicyCaseRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteDDoSPolicyCase"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除四层转发规则 /// /// /// public async Task DeleteL4Rules(DeleteL4RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteL4Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除四层转发规则 /// /// /// public DeleteL4RulesResponse DeleteL4RulesSync(DeleteL4RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteL4Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除七层转发规则 /// /// /// public async Task DeleteL7Rules(DeleteL7RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteL7Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除七层转发规则 /// /// /// public DeleteL7RulesResponse DeleteL7RulesSync(DeleteL7RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteL7Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除L4转发规则 /// /// /// public async Task DeleteNewL4Rules(DeleteNewL4RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteNewL4Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除L4转发规则 /// /// /// public DeleteNewL4RulesResponse DeleteNewL4RulesSync(DeleteNewL4RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteNewL4Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除L7转发规则 /// /// /// public async Task DeleteNewL7Rules(DeleteNewL7RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteNewL7Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除L7转发规则 /// /// /// public DeleteNewL7RulesResponse DeleteNewL7RulesSync(DeleteNewL7RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteNewL7Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取操作日志 /// /// /// public async Task DescribeActionLog(DescribeActionLogRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeActionLog"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取操作日志 /// /// /// public DescribeActionLogResponse DescribeActionLogSync(DescribeActionLogRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeActionLog"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防IP可添加的最多7层规则数量 /// /// /// public async Task DescribeBGPIPL7RuleMaxCnt(DescribeBGPIPL7RuleMaxCntRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeBGPIPL7RuleMaxCnt"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防IP可添加的最多7层规则数量 /// /// /// public DescribeBGPIPL7RuleMaxCntResponse DescribeBGPIPL7RuleMaxCntSync(DescribeBGPIPL7RuleMaxCntRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeBGPIPL7RuleMaxCnt"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 为大禹子产品提供业务转发指标数据的接口 /// /// /// public async Task DescribeBaradData(DescribeBaradDataRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeBaradData"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 为大禹子产品提供业务转发指标数据的接口 /// /// /// public DescribeBaradDataResponse DescribeBaradDataSync(DescribeBaradDataRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeBaradData"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取基础防护CC防护阈值 /// /// /// public async Task DescribeBasicCCThreshold(DescribeBasicCCThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeBasicCCThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取基础防护CC防护阈值 /// /// /// public DescribeBasicCCThresholdResponse DescribeBasicCCThresholdSync(DescribeBasicCCThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeBasicCCThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取基础防护黑洞阈值 /// /// /// public async Task DescribeBasicDeviceThreshold(DescribeBasicDeviceThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeBasicDeviceThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取基础防护黑洞阈值 /// /// /// public DescribeBasicDeviceThresholdResponse DescribeBasicDeviceThresholdSync(DescribeBasicDeviceThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeBasicDeviceThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防包、高防IP、高防IP专业版、棋牌盾产品设置CC攻击的告警通知阈值 /// /// /// public async Task DescribeCCAlarmThreshold(DescribeCCAlarmThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeCCAlarmThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防包、高防IP、高防IP专业版、棋牌盾产品设置CC攻击的告警通知阈值 /// /// /// public DescribeCCAlarmThresholdResponse DescribeCCAlarmThresholdSync(DescribeCCAlarmThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeCCAlarmThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取CC攻击事件列表 /// /// /// public async Task DescribeCCEvList(DescribeCCEvListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeCCEvList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取CC攻击事件列表 /// /// /// public DescribeCCEvListResponse DescribeCCEvListSync(DescribeCCEvListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeCCEvList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取CC防护的访问频率控制规则 /// /// /// public async Task DescribeCCFrequencyRules(DescribeCCFrequencyRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeCCFrequencyRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取CC防护的访问频率控制规则 /// /// /// public DescribeCCFrequencyRulesResponse DescribeCCFrequencyRulesSync(DescribeCCFrequencyRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeCCFrequencyRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取CC的IP黑白名单 /// /// /// public async Task DescribeCCIpAllowDeny(DescribeCCIpAllowDenyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeCCIpAllowDeny"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取CC的IP黑白名单 /// /// /// public DescribeCCIpAllowDenyResponse DescribeCCIpAllowDenySync(DescribeCCIpAllowDenyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeCCIpAllowDeny"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取CC自定义策略 /// /// /// public async Task DescribeCCSelfDefinePolicy(DescribeCCSelfDefinePolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeCCSelfDefinePolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取CC自定义策略 /// /// /// public DescribeCCSelfDefinePolicyResponse DescribeCCSelfDefinePolicySync(DescribeCCSelfDefinePolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeCCSelfDefinePolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取CC攻击指标数据,包括总请求峰值(QPS)和攻击请求(QPS) /// /// /// public async Task DescribeCCTrend(DescribeCCTrendRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeCCTrend"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取CC攻击指标数据,包括总请求峰值(QPS)和攻击请求(QPS) /// /// /// public DescribeCCTrendResponse DescribeCCTrendSync(DescribeCCTrendRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeCCTrend"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取CC的Url白名单 /// /// /// public async Task DescribeCCUrlAllow(DescribeCCUrlAllowRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeCCUrlAllow"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取CC的Url白名单 /// /// /// public DescribeCCUrlAllowResponse DescribeCCUrlAllowSync(DescribeCCUrlAllowRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeCCUrlAllow"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防包、高防IP、高防IP专业版、棋牌盾产品设置DDoS攻击的告警通知阈值 /// /// /// public async Task DescribeDDoSAlarmThreshold(DescribeDDoSAlarmThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSAlarmThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防包、高防IP、高防IP专业版、棋牌盾产品设置DDoS攻击的告警通知阈值 /// /// /// public DescribeDDoSAlarmThresholdResponse DescribeDDoSAlarmThresholdSync(DescribeDDoSAlarmThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSAlarmThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS攻击源IP地域分布图,支持全球攻击分布和国内省份攻击分布; /// /// /// public async Task DescribeDDoSAttackIPRegionMap(DescribeDDoSAttackIPRegionMapRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSAttackIPRegionMap"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS攻击源IP地域分布图,支持全球攻击分布和国内省份攻击分布; /// /// /// public DescribeDDoSAttackIPRegionMapResponse DescribeDDoSAttackIPRegionMapSync(DescribeDDoSAttackIPRegionMapRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSAttackIPRegionMap"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS攻击源列表 /// /// /// public async Task DescribeDDoSAttackSource(DescribeDDoSAttackSourceRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSAttackSource"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS攻击源列表 /// /// /// public DescribeDDoSAttackSourceResponse DescribeDDoSAttackSourceSync(DescribeDDoSAttackSourceRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSAttackSource"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS攻击占比分析 /// /// /// public async Task DescribeDDoSCount(DescribeDDoSCountRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSCount"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS攻击占比分析 /// /// /// public DescribeDDoSCountResponse DescribeDDoSCountSync(DescribeDDoSCountRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSCount"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS防护状态(临时关闭状态),支持产品:基础防护,独享包,共享包,高防IP,高防IP专业版;调用此接口是获取当前是否有设置临时关闭DDoS防护状态,如果有设置会返回临时关闭的时长等参数。 /// /// /// public async Task DescribeDDoSDefendStatus(DescribeDDoSDefendStatusRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSDefendStatus"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS防护状态(临时关闭状态),支持产品:基础防护,独享包,共享包,高防IP,高防IP专业版;调用此接口是获取当前是否有设置临时关闭DDoS防护状态,如果有设置会返回临时关闭的时长等参数。 /// /// /// public DescribeDDoSDefendStatusResponse DescribeDDoSDefendStatusSync(DescribeDDoSDefendStatusRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSDefendStatus"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS攻击事件详情 /// /// /// public async Task DescribeDDoSEvInfo(DescribeDDoSEvInfoRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSEvInfo"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS攻击事件详情 /// /// /// public DescribeDDoSEvInfoResponse DescribeDDoSEvInfoSync(DescribeDDoSEvInfoRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSEvInfo"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS攻击事件列表 /// /// /// public async Task DescribeDDoSEvList(DescribeDDoSEvListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSEvList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS攻击事件列表 /// /// /// public DescribeDDoSEvListResponse DescribeDDoSEvListSync(DescribeDDoSEvListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSEvList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoSIP攻击日志 /// /// /// public async Task DescribeDDoSIpLog(DescribeDDoSIpLogRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSIpLog"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoSIP攻击日志 /// /// /// public DescribeDDoSIpLogResponse DescribeDDoSIpLogSync(DescribeDDoSIpLogRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSIpLog"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防IP专业版资源的DDoS攻击占比分析 /// /// /// public async Task DescribeDDoSNetCount(DescribeDDoSNetCountRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSNetCount"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防IP专业版资源的DDoS攻击占比分析 /// /// /// public DescribeDDoSNetCountResponse DescribeDDoSNetCountSync(DescribeDDoSNetCountRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSNetCount"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防IP专业版资源的DDoS攻击事件详情 /// /// /// public async Task DescribeDDoSNetEvInfo(DescribeDDoSNetEvInfoRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSNetEvInfo"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防IP专业版资源的DDoS攻击事件详情 /// /// /// public DescribeDDoSNetEvInfoResponse DescribeDDoSNetEvInfoSync(DescribeDDoSNetEvInfoRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSNetEvInfo"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防IP专业版资源的DDoS攻击事件列表 /// /// /// public async Task DescribeDDoSNetEvList(DescribeDDoSNetEvListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSNetEvList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防IP专业版资源的DDoS攻击事件列表 /// /// /// public DescribeDDoSNetEvListResponse DescribeDDoSNetEvListSync(DescribeDDoSNetEvListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSNetEvList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防IP专业版资源的DDoSIP攻击日志 /// /// /// public async Task DescribeDDoSNetIpLog(DescribeDDoSNetIpLogRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSNetIpLog"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防IP专业版资源的DDoSIP攻击日志 /// /// /// public DescribeDDoSNetIpLogResponse DescribeDDoSNetIpLogSync(DescribeDDoSNetIpLogRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSNetIpLog"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防IP专业版资源的DDoS攻击指标数据 /// /// /// public async Task DescribeDDoSNetTrend(DescribeDDoSNetTrendRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSNetTrend"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取高防IP专业版资源的DDoS攻击指标数据 /// /// /// public DescribeDDoSNetTrendResponse DescribeDDoSNetTrendSync(DescribeDDoSNetTrendRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSNetTrend"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS高级策略 /// /// /// public async Task DescribeDDoSPolicy(DescribeDDoSPolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSPolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS高级策略 /// /// /// public DescribeDDoSPolicyResponse DescribeDDoSPolicySync(DescribeDDoSPolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSPolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS攻击流量带宽和攻击包速率数据 /// /// /// public async Task DescribeDDoSTrend(DescribeDDoSTrendRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSTrend"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取DDoS攻击流量带宽和攻击包速率数据 /// /// /// public DescribeDDoSTrendResponse DescribeDDoSTrendSync(DescribeDDoSTrendRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSTrend"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 统计用户的高防资源的使用天数和DDoS攻击防护次数 /// /// /// public async Task DescribeDDoSUsedStatis(DescribeDDoSUsedStatisRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDDoSUsedStatis"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 统计用户的高防资源的使用天数和DDoS攻击防护次数 /// /// /// public DescribeDDoSUsedStatisResponse DescribeDDoSUsedStatisSync(DescribeDDoSUsedStatisRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDDoSUsedStatis"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取独享包或共享包IP对应的云资产信息,只支持独享包和共享包的IP /// /// /// public async Task DescribeIPProductInfo(DescribeIPProductInfoRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeIPProductInfo"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取独享包或共享包IP对应的云资产信息,只支持独享包和共享包的IP /// /// /// public DescribeIPProductInfoResponse DescribeIPProductInfoSync(DescribeIPProductInfoRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeIPProductInfo"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取保险包套餐列表 /// /// /// public async Task DescribeInsurePacks(DescribeInsurePacksRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeInsurePacks"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取保险包套餐列表 /// /// /// public DescribeInsurePacksResponse DescribeInsurePacksSync(DescribeInsurePacksRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeInsurePacks"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取IP封堵列表 /// /// /// public async Task DescribeIpBlockList(DescribeIpBlockListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeIpBlockList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取IP封堵列表 /// /// /// public DescribeIpBlockListResponse DescribeIpBlockListSync(DescribeIpBlockListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeIpBlockList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取IP解封记录 /// /// /// public async Task DescribeIpUnBlockList(DescribeIpUnBlockListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeIpUnBlockList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取IP解封记录 /// /// /// public DescribeIpUnBlockListResponse DescribeIpUnBlockListSync(DescribeIpUnBlockListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeIpUnBlockList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 导出四层健康检查配置 /// /// /// public async Task DescribeL4HealthConfig(DescribeL4HealthConfigRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeL4HealthConfig"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 导出四层健康检查配置 /// /// /// public DescribeL4HealthConfigResponse DescribeL4HealthConfigSync(DescribeL4HealthConfigRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeL4HealthConfig"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取L4转发规则健康检查异常结果 /// /// /// public async Task DescribeL4RulesErrHealth(DescribeL4RulesErrHealthRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeL4RulesErrHealth"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取L4转发规则健康检查异常结果 /// /// /// public DescribeL4RulesErrHealthResponse DescribeL4RulesErrHealthSync(DescribeL4RulesErrHealthRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeL4RulesErrHealth"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 导出七层健康检查配置 /// /// /// public async Task DescribeL7HealthConfig(DescribeL7HealthConfigRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeL7HealthConfig"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 导出七层健康检查配置 /// /// /// public DescribeL7HealthConfigResponse DescribeL7HealthConfigSync(DescribeL7HealthConfigRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeL7HealthConfig"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取L4转发规则 /// /// /// public async Task DescribeNewL4Rules(DescribeNewL4RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeNewL4Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取L4转发规则 /// /// /// public DescribeNewL4RulesResponse DescribeNewL4RulesSync(DescribeNewL4RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeNewL4Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取L4转发规则健康检查异常结果 /// /// /// public async Task DescribeNewL4RulesErrHealth(DescribeNewL4RulesErrHealthRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeNewL4RulesErrHealth"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取L4转发规则健康检查异常结果 /// /// /// public DescribeNewL4RulesErrHealthResponse DescribeNewL4RulesErrHealthSync(DescribeNewL4RulesErrHealthRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeNewL4RulesErrHealth"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取L7转发规则健康检查异常结果 /// /// /// public async Task DescribeNewL7RulesErrHealth(DescribeNewL7RulesErrHealthRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeNewL7RulesErrHealth"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取L7转发规则健康检查异常结果 /// /// /// public DescribeNewL7RulesErrHealthResponse DescribeNewL7RulesErrHealthSync(DescribeNewL7RulesErrHealthRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeNewL7RulesErrHealth"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取产品总览统计,支持高防包、高防IP、高防IP专业版; /// /// /// public async Task DescribePackIndex(DescribePackIndexRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribePackIndex"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取产品总览统计,支持高防包、高防IP、高防IP专业版; /// /// /// public DescribePackIndexResponse DescribePackIndexSync(DescribePackIndexRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribePackIndex"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 下载攻击事件的pcap包 /// /// /// public async Task DescribePcap(DescribePcapRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribePcap"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 下载攻击事件的pcap包 /// /// /// public DescribePcapResponse DescribePcapSync(DescribePcapRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribePcap"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取策略场景 /// /// /// public async Task DescribePolicyCase(DescribePolicyCaseRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribePolicyCase"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取策略场景 /// /// /// public DescribePolicyCaseResponse DescribePolicyCaseSync(DescribePolicyCaseRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribePolicyCase"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取资源的IP列表 /// /// /// public async Task DescribeResIpList(DescribeResIpListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeResIpList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取资源的IP列表 /// /// /// public DescribeResIpListResponse DescribeResIpListSync(DescribeResIpListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeResIpList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取资源列表 /// /// /// public async Task DescribeResourceList(DescribeResourceListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeResourceList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取资源列表 /// /// /// public DescribeResourceListResponse DescribeResourceListSync(DescribeResourceListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeResourceList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取资源的规则数 /// /// /// public async Task DescribeRuleSets(DescribeRuleSetsRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeRuleSets"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取资源的规则数 /// /// /// public DescribeRuleSetsResponse DescribeRuleSetsSync(DescribeRuleSetsRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeRuleSets"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取调度域名列表 /// /// /// public async Task DescribeSchedulingDomainList(DescribeSchedulingDomainListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeSchedulingDomainList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取调度域名列表 /// /// /// public DescribeSchedulingDomainListResponse DescribeSchedulingDomainListSync(DescribeSchedulingDomainListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeSchedulingDomainList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取本月安全统计 /// /// /// public async Task DescribeSecIndex(DescribeSecIndexRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeSecIndex"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取本月安全统计 /// /// /// public DescribeSecIndexResponse DescribeSecIndexSync(DescribeSecIndexRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeSecIndex"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取回源IP段,支持的产品:高防IP,高防IP专业版; /// /// /// public async Task DescribeSourceIpSegment(DescribeSourceIpSegmentRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeSourceIpSegment"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取回源IP段,支持的产品:高防IP,高防IP专业版; /// /// /// public DescribeSourceIpSegmentResponse DescribeSourceIpSegmentSync(DescribeSourceIpSegmentRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeSourceIpSegment"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取业务转发统计数据,支持转发流量和转发包速率 /// /// /// public async Task DescribeTransmitStatis(DescribeTransmitStatisRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeTransmitStatis"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取业务转发统计数据,支持转发流量和转发包速率 /// /// /// public DescribeTransmitStatisResponse DescribeTransmitStatisSync(DescribeTransmitStatisRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeTransmitStatis"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取黑洞解封次数 /// /// /// public async Task DescribeUnBlockStatis(DescribeUnBlockStatisRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeUnBlockStatis"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取黑洞解封次数 /// /// /// public DescribeUnBlockStatisResponse DescribeUnBlockStatisSync(DescribeUnBlockStatisRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeUnBlockStatis"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取四层转发规则 /// /// /// public async Task DescribleL4Rules(DescribleL4RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribleL4Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取四层转发规则 /// /// /// public DescribleL4RulesResponse DescribleL4RulesSync(DescribleL4RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribleL4Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取七层转发规则 /// /// /// public async Task DescribleL7Rules(DescribleL7RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribleL7Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取七层转发规则 /// /// /// public DescribleL7RulesResponse DescribleL7RulesSync(DescribleL7RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribleL7Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取7层规则 /// /// /// public async Task DescribleNewL7Rules(DescribleNewL7RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribleNewL7Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取7层规则 /// /// /// public DescribleNewL7RulesResponse DescribleNewL7RulesSync(DescribleNewL7RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribleNewL7Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取地域的资源实例数 /// /// /// public async Task DescribleRegionCount(DescribleRegionCountRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribleRegionCount"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取地域的资源实例数 /// /// /// public DescribleRegionCountResponse DescribleRegionCountSync(DescribleRegionCountRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribleRegionCount"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 为高防包、高防IP、高防IP专业版、棋牌盾产品设置CC攻击的告警通知阈值 /// /// /// public async Task ModifyCCAlarmThreshold(ModifyCCAlarmThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyCCAlarmThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 为高防包、高防IP、高防IP专业版、棋牌盾产品设置CC攻击的告警通知阈值 /// /// /// public ModifyCCAlarmThresholdResponse ModifyCCAlarmThresholdSync(ModifyCCAlarmThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyCCAlarmThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改CC防护的访问频率控制规则 /// /// /// public async Task ModifyCCFrequencyRules(ModifyCCFrequencyRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyCCFrequencyRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改CC防护的访问频率控制规则 /// /// /// public ModifyCCFrequencyRulesResponse ModifyCCFrequencyRulesSync(ModifyCCFrequencyRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyCCFrequencyRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 开启或关闭CC防护的访问频率控制规则 /// /// /// public async Task ModifyCCFrequencyRulesStatus(ModifyCCFrequencyRulesStatusRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyCCFrequencyRulesStatus"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 开启或关闭CC防护的访问频率控制规则 /// /// /// public ModifyCCFrequencyRulesStatusResponse ModifyCCFrequencyRulesStatusSync(ModifyCCFrequencyRulesStatusRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyCCFrequencyRulesStatus"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 开启或关闭CC域名防护 /// /// /// public async Task ModifyCCHostProtection(ModifyCCHostProtectionRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyCCHostProtection"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 开启或关闭CC域名防护 /// /// /// public ModifyCCHostProtectionResponse ModifyCCHostProtectionSync(ModifyCCHostProtectionRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyCCHostProtection"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加或删除CC的IP黑白名单 /// /// /// public async Task ModifyCCIpAllowDeny(ModifyCCIpAllowDenyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyCCIpAllowDeny"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加或删除CC的IP黑白名单 /// /// /// public ModifyCCIpAllowDenyResponse ModifyCCIpAllowDenySync(ModifyCCIpAllowDenyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyCCIpAllowDeny"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改CC防护等级 /// /// /// public async Task ModifyCCLevel(ModifyCCLevelRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyCCLevel"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改CC防护等级 /// /// /// public ModifyCCLevelResponse ModifyCCLevelSync(ModifyCCLevelRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyCCLevel"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改CC自定义策略开关 /// /// /// public async Task ModifyCCPolicySwitch(ModifyCCPolicySwitchRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyCCPolicySwitch"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改CC自定义策略开关 /// /// /// public ModifyCCPolicySwitchResponse ModifyCCPolicySwitchSync(ModifyCCPolicySwitchRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyCCPolicySwitch"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改CC自定义策略 /// /// /// public async Task ModifyCCSelfDefinePolicy(ModifyCCSelfDefinePolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyCCSelfDefinePolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改CC自定义策略 /// /// /// public ModifyCCSelfDefinePolicyResponse ModifyCCSelfDefinePolicySync(ModifyCCSelfDefinePolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyCCSelfDefinePolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改CC的防护阈值 /// /// /// public async Task ModifyCCThreshold(ModifyCCThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyCCThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改CC的防护阈值 /// /// /// public ModifyCCThresholdResponse ModifyCCThresholdSync(ModifyCCThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyCCThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加或删除CC的URL白名单 /// /// /// public async Task ModifyCCUrlAllow(ModifyCCUrlAllowRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyCCUrlAllow"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加或删除CC的URL白名单 /// /// /// public ModifyCCUrlAllowResponse ModifyCCUrlAllowSync(ModifyCCUrlAllowRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyCCUrlAllow"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 读取或修改DDoS的AI防护状态 /// /// /// public async Task ModifyDDoSAIStatus(ModifyDDoSAIStatusRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyDDoSAIStatus"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 读取或修改DDoS的AI防护状态 /// /// /// public ModifyDDoSAIStatusResponse ModifyDDoSAIStatusSync(ModifyDDoSAIStatusRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyDDoSAIStatus"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 为高防包、高防IP、高防IP专业版、棋牌盾等产品设置DDoS攻击的告警通知阈值 /// /// /// public async Task ModifyDDoSAlarmThreshold(ModifyDDoSAlarmThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyDDoSAlarmThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 为高防包、高防IP、高防IP专业版、棋牌盾等产品设置DDoS攻击的告警通知阈值 /// /// /// public ModifyDDoSAlarmThresholdResponse ModifyDDoSAlarmThresholdSync(ModifyDDoSAlarmThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyDDoSAlarmThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 开启或关闭DDoS防护状态,调用此接口允许临时关闭DDoS防护一段时间,等时间到了会自动开启DDoS防护; /// /// /// public async Task ModifyDDoSDefendStatus(ModifyDDoSDefendStatusRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyDDoSDefendStatus"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 开启或关闭DDoS防护状态,调用此接口允许临时关闭DDoS防护一段时间,等时间到了会自动开启DDoS防护; /// /// /// public ModifyDDoSDefendStatusResponse ModifyDDoSDefendStatusSync(ModifyDDoSDefendStatusRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyDDoSDefendStatus"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 读取或修改DDoS的防护等级 /// /// /// public async Task ModifyDDoSLevel(ModifyDDoSLevelRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyDDoSLevel"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 读取或修改DDoS的防护等级 /// /// /// public ModifyDDoSLevelResponse ModifyDDoSLevelSync(ModifyDDoSLevelRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyDDoSLevel"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改DDoS高级策略 /// /// /// public async Task ModifyDDoSPolicy(ModifyDDoSPolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyDDoSPolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改DDoS高级策略 /// /// /// public ModifyDDoSPolicyResponse ModifyDDoSPolicySync(ModifyDDoSPolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyDDoSPolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改策略场景 /// /// /// public async Task ModifyDDoSPolicyCase(ModifyDDoSPolicyCaseRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyDDoSPolicyCase"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改策略场景 /// /// /// public ModifyDDoSPolicyCaseResponse ModifyDDoSPolicyCaseSync(ModifyDDoSPolicyCaseRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyDDoSPolicyCase"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改DDoS高级策略名称 /// /// /// public async Task ModifyDDoSPolicyName(ModifyDDoSPolicyNameRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyDDoSPolicyName"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改DDoS高级策略名称 /// /// /// public ModifyDDoSPolicyNameResponse ModifyDDoSPolicyNameSync(ModifyDDoSPolicyNameRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyDDoSPolicyName"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 开启或关闭DDoS防护,只支持基础防护产品; /// /// /// public async Task ModifyDDoSSwitch(ModifyDDoSSwitchRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyDDoSSwitch"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 开启或关闭DDoS防护,只支持基础防护产品; /// /// /// public ModifyDDoSSwitchResponse ModifyDDoSSwitchSync(ModifyDDoSSwitchRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyDDoSSwitch"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改DDoS清洗阈值 /// /// /// public async Task ModifyDDoSThreshold(ModifyDDoSThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyDDoSThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改DDoS清洗阈值 /// /// /// public ModifyDDoSThresholdResponse ModifyDDoSThresholdSync(ModifyDDoSThresholdRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyDDoSThreshold"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 支持水印密钥的添加,删除,开启,关闭 /// /// /// public async Task ModifyDDoSWaterKey(ModifyDDoSWaterKeyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyDDoSWaterKey"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 支持水印密钥的添加,删除,开启,关闭 /// /// /// public ModifyDDoSWaterKeyResponse ModifyDDoSWaterKeySync(ModifyDDoSWaterKeyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyDDoSWaterKey"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改弹性防护阈值 /// /// /// public async Task ModifyElasticLimit(ModifyElasticLimitRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyElasticLimit"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改弹性防护阈值 /// /// /// public ModifyElasticLimitResponse ModifyElasticLimitSync(ModifyElasticLimitRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyElasticLimit"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改L4转发规则健康检查参数,支持的子产品:高防IP、高防IP专业版 /// /// /// public async Task ModifyL4Health(ModifyL4HealthRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyL4Health"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改L4转发规则健康检查参数,支持的子产品:高防IP、高防IP专业版 /// /// /// public ModifyL4HealthResponse ModifyL4HealthSync(ModifyL4HealthRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyL4Health"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改L4转发规则的会话保持,支持的子产品:高防IP、高防IP专业版 /// /// /// public async Task ModifyL4KeepTime(ModifyL4KeepTimeRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyL4KeepTime"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改L4转发规则的会话保持,支持的子产品:高防IP、高防IP专业版 /// /// /// public ModifyL4KeepTimeResponse ModifyL4KeepTimeSync(ModifyL4KeepTimeRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyL4KeepTime"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改L4转发规则 /// /// /// public async Task ModifyL4Rules(ModifyL4RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyL4Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改L4转发规则 /// /// /// public ModifyL4RulesResponse ModifyL4RulesSync(ModifyL4RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyL4Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改L7转发规则 /// /// /// public async Task ModifyL7Rules(ModifyL7RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyL7Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改L7转发规则 /// /// /// public ModifyL7RulesResponse ModifyL7RulesSync(ModifyL7RulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyL7Rules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 在客户收攻击或者被封堵时,切回到源站,并设置回切的时长 /// /// /// public async Task ModifyNetReturnSwitch(ModifyNetReturnSwitchRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyNetReturnSwitch"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 在客户收攻击或者被封堵时,切回到源站,并设置回切的时长 /// /// /// public ModifyNetReturnSwitchResponse ModifyNetReturnSwitchSync(ModifyNetReturnSwitchRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyNetReturnSwitch"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 资源实例绑定DDoS高级策略 /// /// /// public async Task ModifyResBindDDoSPolicy(ModifyResBindDDoSPolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyResBindDDoSPolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 资源实例绑定DDoS高级策略 /// /// /// public ModifyResBindDDoSPolicyResponse ModifyResBindDDoSPolicySync(ModifyResBindDDoSPolicyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyResBindDDoSPolicy"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改资源自动续费标记 /// /// /// public async Task ModifyResourceRenewFlag(ModifyResourceRenewFlagRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyResourceRenewFlag"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改资源自动续费标记 /// /// /// public ModifyResourceRenewFlagResponse ModifyResourceRenewFlagSync(ModifyResourceRenewFlagRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyResourceRenewFlag"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } } }