tencentcloud-sdk-cfw 3.0.654 → 3.0.656
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190904/client.rb +672 -0
- data/lib/v20190904/models.rb +2774 -154
- metadata +2 -2
data/lib/v20190904/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 添加互联网边界访问控制规则
|
57
|
+
|
58
|
+
# @param request: Request instance for AddAclRule.
|
59
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::AddAclRuleRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::AddAclRuleResponse`
|
61
|
+
def AddAclRule(request)
|
62
|
+
body = send_request('AddAclRule', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = AddAclRuleResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
56
80
|
# 创建新企业安全组规则
|
57
81
|
|
58
82
|
# @param request: Request instance for AddEnterpriseSecurityGroupRules.
|
@@ -101,6 +125,30 @@ module TencentCloud
|
|
101
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
126
|
end
|
103
127
|
|
128
|
+
# 添加VPC内网间规则
|
129
|
+
|
130
|
+
# @param request: Request instance for AddVpcAcRule.
|
131
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::AddVpcAcRuleRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::AddVpcAcRuleResponse`
|
133
|
+
def AddVpcAcRule(request)
|
134
|
+
body = send_request('AddVpcAcRule', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = AddVpcAcRuleResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
104
152
|
# 创建访问控制规则
|
105
153
|
|
106
154
|
# @param request: Request instance for CreateAcRules.
|
@@ -293,6 +341,30 @@ module TencentCloud
|
|
293
341
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
342
|
end
|
295
343
|
|
344
|
+
# 创建VPC间防火墙(防火墙组)
|
345
|
+
|
346
|
+
# @param request: Request instance for CreateVpcFwGroup.
|
347
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::CreateVpcFwGroupRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::CreateVpcFwGroupResponse`
|
349
|
+
def CreateVpcFwGroup(request)
|
350
|
+
body = send_request('CreateVpcFwGroup', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = CreateVpcFwGroupResponse.new
|
354
|
+
model.deserialize(response['Response'])
|
355
|
+
model
|
356
|
+
else
|
357
|
+
code = response['Response']['Error']['Code']
|
358
|
+
message = response['Response']['Error']['Message']
|
359
|
+
reqid = response['Response']['RequestId']
|
360
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
361
|
+
end
|
362
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
363
|
+
raise e
|
364
|
+
rescue StandardError => e
|
365
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
|
+
end
|
367
|
+
|
296
368
|
# 删除规则
|
297
369
|
|
298
370
|
# @param request: Request instance for DeleteAcRule.
|
@@ -365,6 +437,30 @@ module TencentCloud
|
|
365
437
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
438
|
end
|
367
439
|
|
440
|
+
# 批量删除入侵防御封禁列表、放通列表规则
|
441
|
+
|
442
|
+
# @param request: Request instance for DeleteBlockIgnoreRuleList.
|
443
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DeleteBlockIgnoreRuleListRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DeleteBlockIgnoreRuleListResponse`
|
445
|
+
def DeleteBlockIgnoreRuleList(request)
|
446
|
+
body = send_request('DeleteBlockIgnoreRuleList', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = DeleteBlockIgnoreRuleListResponse.new
|
450
|
+
model.deserialize(response['Response'])
|
451
|
+
model
|
452
|
+
else
|
453
|
+
code = response['Response']['Error']['Code']
|
454
|
+
message = response['Response']['Error']['Message']
|
455
|
+
reqid = response['Response']['RequestId']
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
+
end
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
+
raise e
|
460
|
+
rescue StandardError => e
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
+
end
|
463
|
+
|
368
464
|
# 销毁防火墙实例
|
369
465
|
|
370
466
|
# @param request: Request instance for DeleteNatFwInstance.
|
@@ -437,6 +533,30 @@ module TencentCloud
|
|
437
533
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
534
|
end
|
439
535
|
|
536
|
+
# 删除防火墙(组),或者删除其中实例
|
537
|
+
|
538
|
+
# @param request: Request instance for DeleteVpcFwGroup.
|
539
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DeleteVpcFwGroupRequest`
|
540
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DeleteVpcFwGroupResponse`
|
541
|
+
def DeleteVpcFwGroup(request)
|
542
|
+
body = send_request('DeleteVpcFwGroup', request.serialize)
|
543
|
+
response = JSON.parse(body)
|
544
|
+
if response['Response'].key?('Error') == false
|
545
|
+
model = DeleteVpcFwGroupResponse.new
|
546
|
+
model.deserialize(response['Response'])
|
547
|
+
model
|
548
|
+
else
|
549
|
+
code = response['Response']['Error']['Code']
|
550
|
+
message = response['Response']['Error']['Message']
|
551
|
+
reqid = response['Response']['RequestId']
|
552
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
553
|
+
end
|
554
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
555
|
+
raise e
|
556
|
+
rescue StandardError => e
|
557
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
|
+
end
|
559
|
+
|
440
560
|
# 删除防火墙实例
|
441
561
|
|
442
562
|
# @param request: Request instance for DeleteVpcInstance.
|
@@ -485,6 +605,78 @@ module TencentCloud
|
|
485
605
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
606
|
end
|
487
607
|
|
608
|
+
# 查询互联网边界访问控制列表
|
609
|
+
|
610
|
+
# @param request: Request instance for DescribeAclRule.
|
611
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeAclRuleRequest`
|
612
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeAclRuleResponse`
|
613
|
+
def DescribeAclRule(request)
|
614
|
+
body = send_request('DescribeAclRule', request.serialize)
|
615
|
+
response = JSON.parse(body)
|
616
|
+
if response['Response'].key?('Error') == false
|
617
|
+
model = DescribeAclRuleResponse.new
|
618
|
+
model.deserialize(response['Response'])
|
619
|
+
model
|
620
|
+
else
|
621
|
+
code = response['Response']['Error']['Code']
|
622
|
+
message = response['Response']['Error']['Message']
|
623
|
+
reqid = response['Response']['RequestId']
|
624
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
625
|
+
end
|
626
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
627
|
+
raise e
|
628
|
+
rescue StandardError => e
|
629
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
630
|
+
end
|
631
|
+
|
632
|
+
# 查询地址模板列表
|
633
|
+
|
634
|
+
# @param request: Request instance for DescribeAddressTemplateList.
|
635
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeAddressTemplateListRequest`
|
636
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeAddressTemplateListResponse`
|
637
|
+
def DescribeAddressTemplateList(request)
|
638
|
+
body = send_request('DescribeAddressTemplateList', request.serialize)
|
639
|
+
response = JSON.parse(body)
|
640
|
+
if response['Response'].key?('Error') == false
|
641
|
+
model = DescribeAddressTemplateListResponse.new
|
642
|
+
model.deserialize(response['Response'])
|
643
|
+
model
|
644
|
+
else
|
645
|
+
code = response['Response']['Error']['Code']
|
646
|
+
message = response['Response']['Error']['Message']
|
647
|
+
reqid = response['Response']['RequestId']
|
648
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
649
|
+
end
|
650
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
651
|
+
raise e
|
652
|
+
rescue StandardError => e
|
653
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
|
+
end
|
655
|
+
|
656
|
+
# 资产同步状态查询
|
657
|
+
|
658
|
+
# @param request: Request instance for DescribeAssetSync.
|
659
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeAssetSyncRequest`
|
660
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeAssetSyncResponse`
|
661
|
+
def DescribeAssetSync(request)
|
662
|
+
body = send_request('DescribeAssetSync', request.serialize)
|
663
|
+
response = JSON.parse(body)
|
664
|
+
if response['Response'].key?('Error') == false
|
665
|
+
model = DescribeAssetSyncResponse.new
|
666
|
+
model.deserialize(response['Response'])
|
667
|
+
model
|
668
|
+
else
|
669
|
+
code = response['Response']['Error']['Code']
|
670
|
+
message = response['Response']['Error']['Message']
|
671
|
+
reqid = response['Response']['RequestId']
|
672
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
673
|
+
end
|
674
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
675
|
+
raise e
|
676
|
+
rescue StandardError => e
|
677
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
|
+
end
|
679
|
+
|
488
680
|
# 获取安全组关联实例列表
|
489
681
|
|
490
682
|
# @param request: Request instance for DescribeAssociatedInstanceList.
|
@@ -677,6 +869,78 @@ module TencentCloud
|
|
677
869
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
870
|
end
|
679
871
|
|
872
|
+
# 串行防火墙IP开关列表
|
873
|
+
|
874
|
+
# @param request: Request instance for DescribeFwEdgeIps.
|
875
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeFwEdgeIpsRequest`
|
876
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeFwEdgeIpsResponse`
|
877
|
+
def DescribeFwEdgeIps(request)
|
878
|
+
body = send_request('DescribeFwEdgeIps', request.serialize)
|
879
|
+
response = JSON.parse(body)
|
880
|
+
if response['Response'].key?('Error') == false
|
881
|
+
model = DescribeFwEdgeIpsResponse.new
|
882
|
+
model.deserialize(response['Response'])
|
883
|
+
model
|
884
|
+
else
|
885
|
+
code = response['Response']['Error']['Code']
|
886
|
+
message = response['Response']['Error']['Message']
|
887
|
+
reqid = response['Response']['RequestId']
|
888
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
889
|
+
end
|
890
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
891
|
+
raise e
|
892
|
+
rescue StandardError => e
|
893
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
894
|
+
end
|
895
|
+
|
896
|
+
# 获取租户所有VPC防火墙(组)及VPC防火墙实例卡片信息
|
897
|
+
|
898
|
+
# @param request: Request instance for DescribeFwGroupInstanceInfo.
|
899
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeFwGroupInstanceInfoRequest`
|
900
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeFwGroupInstanceInfoResponse`
|
901
|
+
def DescribeFwGroupInstanceInfo(request)
|
902
|
+
body = send_request('DescribeFwGroupInstanceInfo', request.serialize)
|
903
|
+
response = JSON.parse(body)
|
904
|
+
if response['Response'].key?('Error') == false
|
905
|
+
model = DescribeFwGroupInstanceInfoResponse.new
|
906
|
+
model.deserialize(response['Response'])
|
907
|
+
model
|
908
|
+
else
|
909
|
+
code = response['Response']['Error']['Code']
|
910
|
+
message = response['Response']['Error']['Message']
|
911
|
+
reqid = response['Response']['RequestId']
|
912
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
913
|
+
end
|
914
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
915
|
+
raise e
|
916
|
+
rescue StandardError => e
|
917
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
918
|
+
end
|
919
|
+
|
920
|
+
# 获取防火墙同步状态,一般在执行同步操作后查询
|
921
|
+
|
922
|
+
# @param request: Request instance for DescribeFwSyncStatus.
|
923
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeFwSyncStatusRequest`
|
924
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeFwSyncStatusResponse`
|
925
|
+
def DescribeFwSyncStatus(request)
|
926
|
+
body = send_request('DescribeFwSyncStatus', request.serialize)
|
927
|
+
response = JSON.parse(body)
|
928
|
+
if response['Response'].key?('Error') == false
|
929
|
+
model = DescribeFwSyncStatusResponse.new
|
930
|
+
model.deserialize(response['Response'])
|
931
|
+
model
|
932
|
+
else
|
933
|
+
code = response['Response']['Error']['Code']
|
934
|
+
message = response['Response']['Error']['Message']
|
935
|
+
reqid = response['Response']['RequestId']
|
936
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
937
|
+
end
|
938
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
939
|
+
raise e
|
940
|
+
rescue StandardError => e
|
941
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
942
|
+
end
|
943
|
+
|
680
944
|
# DescribeGuideScanInfo新手引导扫描接口信息
|
681
945
|
|
682
946
|
# @param request: Request instance for DescribeGuideScanInfo.
|
@@ -893,6 +1157,30 @@ module TencentCloud
|
|
893
1157
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
894
1158
|
end
|
895
1159
|
|
1160
|
+
# 查询NAT边界防火墙开关列表
|
1161
|
+
|
1162
|
+
# @param request: Request instance for DescribeNatSwitchList.
|
1163
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeNatSwitchListRequest`
|
1164
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeNatSwitchListResponse`
|
1165
|
+
def DescribeNatSwitchList(request)
|
1166
|
+
body = send_request('DescribeNatSwitchList', request.serialize)
|
1167
|
+
response = JSON.parse(body)
|
1168
|
+
if response['Response'].key?('Error') == false
|
1169
|
+
model = DescribeNatSwitchListResponse.new
|
1170
|
+
model.deserialize(response['Response'])
|
1171
|
+
model
|
1172
|
+
else
|
1173
|
+
code = response['Response']['Error']['Code']
|
1174
|
+
message = response['Response']['Error']['Message']
|
1175
|
+
reqid = response['Response']['RequestId']
|
1176
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1177
|
+
end
|
1178
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1179
|
+
raise e
|
1180
|
+
rescue StandardError => e
|
1181
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1182
|
+
end
|
1183
|
+
|
896
1184
|
# DescribeResourceGroup资产中心资产树信息
|
897
1185
|
|
898
1186
|
# @param request: Request instance for DescribeResourceGroup.
|
@@ -1133,6 +1421,54 @@ module TencentCloud
|
|
1133
1421
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1134
1422
|
end
|
1135
1423
|
|
1424
|
+
# 查询内网间访问控制列表
|
1425
|
+
|
1426
|
+
# @param request: Request instance for DescribeVpcAcRule.
|
1427
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeVpcAcRuleRequest`
|
1428
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeVpcAcRuleResponse`
|
1429
|
+
def DescribeVpcAcRule(request)
|
1430
|
+
body = send_request('DescribeVpcAcRule', request.serialize)
|
1431
|
+
response = JSON.parse(body)
|
1432
|
+
if response['Response'].key?('Error') == false
|
1433
|
+
model = DescribeVpcAcRuleResponse.new
|
1434
|
+
model.deserialize(response['Response'])
|
1435
|
+
model
|
1436
|
+
else
|
1437
|
+
code = response['Response']['Error']['Code']
|
1438
|
+
message = response['Response']['Error']['Message']
|
1439
|
+
reqid = response['Response']['RequestId']
|
1440
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1441
|
+
end
|
1442
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1443
|
+
raise e
|
1444
|
+
rescue StandardError => e
|
1445
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1446
|
+
end
|
1447
|
+
|
1448
|
+
# VPC防火墙(组)开关列表
|
1449
|
+
|
1450
|
+
# @param request: Request instance for DescribeVpcFwGroupSwitch.
|
1451
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeVpcFwGroupSwitchRequest`
|
1452
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeVpcFwGroupSwitchResponse`
|
1453
|
+
def DescribeVpcFwGroupSwitch(request)
|
1454
|
+
body = send_request('DescribeVpcFwGroupSwitch', request.serialize)
|
1455
|
+
response = JSON.parse(body)
|
1456
|
+
if response['Response'].key?('Error') == false
|
1457
|
+
model = DescribeVpcFwGroupSwitchResponse.new
|
1458
|
+
model.deserialize(response['Response'])
|
1459
|
+
model
|
1460
|
+
else
|
1461
|
+
code = response['Response']['Error']['Code']
|
1462
|
+
message = response['Response']['Error']['Message']
|
1463
|
+
reqid = response['Response']['RequestId']
|
1464
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1465
|
+
end
|
1466
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1467
|
+
raise e
|
1468
|
+
rescue StandardError => e
|
1469
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1470
|
+
end
|
1471
|
+
|
1136
1472
|
# 防火墙垂直扩容
|
1137
1473
|
|
1138
1474
|
# @param request: Request instance for ExpandCfwVertical.
|
@@ -1181,6 +1517,54 @@ module TencentCloud
|
|
1181
1517
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1182
1518
|
end
|
1183
1519
|
|
1520
|
+
# 修改互联网边界访问控制规则
|
1521
|
+
|
1522
|
+
# @param request: Request instance for ModifyAclRule.
|
1523
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyAclRuleRequest`
|
1524
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyAclRuleResponse`
|
1525
|
+
def ModifyAclRule(request)
|
1526
|
+
body = send_request('ModifyAclRule', request.serialize)
|
1527
|
+
response = JSON.parse(body)
|
1528
|
+
if response['Response'].key?('Error') == false
|
1529
|
+
model = ModifyAclRuleResponse.new
|
1530
|
+
model.deserialize(response['Response'])
|
1531
|
+
model
|
1532
|
+
else
|
1533
|
+
code = response['Response']['Error']['Code']
|
1534
|
+
message = response['Response']['Error']['Message']
|
1535
|
+
reqid = response['Response']['RequestId']
|
1536
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1537
|
+
end
|
1538
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1539
|
+
raise e
|
1540
|
+
rescue StandardError => e
|
1541
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1542
|
+
end
|
1543
|
+
|
1544
|
+
# 修改地址模板
|
1545
|
+
|
1546
|
+
# @param request: Request instance for ModifyAddressTemplate.
|
1547
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyAddressTemplateRequest`
|
1548
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyAddressTemplateResponse`
|
1549
|
+
def ModifyAddressTemplate(request)
|
1550
|
+
body = send_request('ModifyAddressTemplate', request.serialize)
|
1551
|
+
response = JSON.parse(body)
|
1552
|
+
if response['Response'].key?('Error') == false
|
1553
|
+
model = ModifyAddressTemplateResponse.new
|
1554
|
+
model.deserialize(response['Response'])
|
1555
|
+
model
|
1556
|
+
else
|
1557
|
+
code = response['Response']['Error']['Code']
|
1558
|
+
message = response['Response']['Error']['Message']
|
1559
|
+
reqid = response['Response']['RequestId']
|
1560
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1561
|
+
end
|
1562
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1563
|
+
raise e
|
1564
|
+
rescue StandardError => e
|
1565
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1566
|
+
end
|
1567
|
+
|
1184
1568
|
# 互联网边界防火墙一键开关
|
1185
1569
|
|
1186
1570
|
# @param request: Request instance for ModifyAllPublicIPSwitchStatus.
|
@@ -1277,6 +1661,30 @@ module TencentCloud
|
|
1277
1661
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1278
1662
|
end
|
1279
1663
|
|
1664
|
+
# 资产同步
|
1665
|
+
|
1666
|
+
# @param request: Request instance for ModifyAssetSync.
|
1667
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyAssetSyncRequest`
|
1668
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyAssetSyncResponse`
|
1669
|
+
def ModifyAssetSync(request)
|
1670
|
+
body = send_request('ModifyAssetSync', request.serialize)
|
1671
|
+
response = JSON.parse(body)
|
1672
|
+
if response['Response'].key?('Error') == false
|
1673
|
+
model = ModifyAssetSyncResponse.new
|
1674
|
+
model.deserialize(response['Response'])
|
1675
|
+
model
|
1676
|
+
else
|
1677
|
+
code = response['Response']['Error']['Code']
|
1678
|
+
message = response['Response']['Error']['Message']
|
1679
|
+
reqid = response['Response']['RequestId']
|
1680
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1681
|
+
end
|
1682
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1683
|
+
raise e
|
1684
|
+
rescue StandardError => e
|
1685
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1686
|
+
end
|
1687
|
+
|
1280
1688
|
# 支持对封禁列表、放通列表如下操作:
|
1281
1689
|
# 批量增加封禁IP、放通IP/域名
|
1282
1690
|
# 批量删除封禁IP、放通IP/域名
|
@@ -1304,6 +1712,30 @@ module TencentCloud
|
|
1304
1712
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1305
1713
|
end
|
1306
1714
|
|
1715
|
+
# 编辑单条入侵防御封禁列表、放通列表规则
|
1716
|
+
|
1717
|
+
# @param request: Request instance for ModifyBlockIgnoreRule.
|
1718
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyBlockIgnoreRuleRequest`
|
1719
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyBlockIgnoreRuleResponse`
|
1720
|
+
def ModifyBlockIgnoreRule(request)
|
1721
|
+
body = send_request('ModifyBlockIgnoreRule', request.serialize)
|
1722
|
+
response = JSON.parse(body)
|
1723
|
+
if response['Response'].key?('Error') == false
|
1724
|
+
model = ModifyBlockIgnoreRuleResponse.new
|
1725
|
+
model.deserialize(response['Response'])
|
1726
|
+
model
|
1727
|
+
else
|
1728
|
+
code = response['Response']['Error']['Code']
|
1729
|
+
message = response['Response']['Error']['Message']
|
1730
|
+
reqid = response['Response']['RequestId']
|
1731
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1732
|
+
end
|
1733
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1734
|
+
raise e
|
1735
|
+
rescue StandardError => e
|
1736
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1737
|
+
end
|
1738
|
+
|
1307
1739
|
# ModifyBlockTop取消置顶接口
|
1308
1740
|
|
1309
1741
|
# @param request: Request instance for ModifyBlockTop.
|
@@ -1353,6 +1785,30 @@ module TencentCloud
|
|
1353
1785
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1354
1786
|
end
|
1355
1787
|
|
1788
|
+
# 修改边界防火墙开关(旁路、串行)
|
1789
|
+
|
1790
|
+
# @param request: Request instance for ModifyEdgeIpSwitch.
|
1791
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyEdgeIpSwitchRequest`
|
1792
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyEdgeIpSwitchResponse`
|
1793
|
+
def ModifyEdgeIpSwitch(request)
|
1794
|
+
body = send_request('ModifyEdgeIpSwitch', request.serialize)
|
1795
|
+
response = JSON.parse(body)
|
1796
|
+
if response['Response'].key?('Error') == false
|
1797
|
+
model = ModifyEdgeIpSwitchResponse.new
|
1798
|
+
model.deserialize(response['Response'])
|
1799
|
+
model
|
1800
|
+
else
|
1801
|
+
code = response['Response']['Error']['Code']
|
1802
|
+
message = response['Response']['Error']['Message']
|
1803
|
+
reqid = response['Response']['RequestId']
|
1804
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1805
|
+
end
|
1806
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1807
|
+
raise e
|
1808
|
+
rescue StandardError => e
|
1809
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1810
|
+
end
|
1811
|
+
|
1356
1812
|
# 修改企业安全组下发状态
|
1357
1813
|
|
1358
1814
|
# @param request: Request instance for ModifyEnterpriseSecurityDispatchStatus.
|
@@ -1401,6 +1857,30 @@ module TencentCloud
|
|
1401
1857
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1402
1858
|
end
|
1403
1859
|
|
1860
|
+
# 修改防火墙(组)开关(支持单点模式、多点模式、全互通模式)
|
1861
|
+
|
1862
|
+
# @param request: Request instance for ModifyFwGroupSwitch.
|
1863
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyFwGroupSwitchRequest`
|
1864
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyFwGroupSwitchResponse`
|
1865
|
+
def ModifyFwGroupSwitch(request)
|
1866
|
+
body = send_request('ModifyFwGroupSwitch', request.serialize)
|
1867
|
+
response = JSON.parse(body)
|
1868
|
+
if response['Response'].key?('Error') == false
|
1869
|
+
model = ModifyFwGroupSwitchResponse.new
|
1870
|
+
model.deserialize(response['Response'])
|
1871
|
+
model
|
1872
|
+
else
|
1873
|
+
code = response['Response']['Error']['Code']
|
1874
|
+
message = response['Response']['Error']['Message']
|
1875
|
+
reqid = response['Response']['RequestId']
|
1876
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1877
|
+
end
|
1878
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1879
|
+
raise e
|
1880
|
+
rescue StandardError => e
|
1881
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1882
|
+
end
|
1883
|
+
|
1404
1884
|
# 修改NAT访问控制规则
|
1405
1885
|
|
1406
1886
|
# @param request: Request instance for ModifyNatAcRule.
|
@@ -1497,6 +1977,30 @@ module TencentCloud
|
|
1497
1977
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1498
1978
|
end
|
1499
1979
|
|
1980
|
+
# 编辑NAT防火墙
|
1981
|
+
|
1982
|
+
# @param request: Request instance for ModifyNatInstance.
|
1983
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyNatInstanceRequest`
|
1984
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyNatInstanceResponse`
|
1985
|
+
def ModifyNatInstance(request)
|
1986
|
+
body = send_request('ModifyNatInstance', request.serialize)
|
1987
|
+
response = JSON.parse(body)
|
1988
|
+
if response['Response'].key?('Error') == false
|
1989
|
+
model = ModifyNatInstanceResponse.new
|
1990
|
+
model.deserialize(response['Response'])
|
1991
|
+
model
|
1992
|
+
else
|
1993
|
+
code = response['Response']['Error']['Code']
|
1994
|
+
message = response['Response']['Error']['Message']
|
1995
|
+
reqid = response['Response']['RequestId']
|
1996
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1997
|
+
end
|
1998
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1999
|
+
raise e
|
2000
|
+
rescue StandardError => e
|
2001
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2002
|
+
end
|
2003
|
+
|
1500
2004
|
# NAT防火墙规则快速排序
|
1501
2005
|
|
1502
2006
|
# @param request: Request instance for ModifyNatSequenceRules.
|
@@ -1666,6 +2170,30 @@ module TencentCloud
|
|
1666
2170
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1667
2171
|
end
|
1668
2172
|
|
2173
|
+
# 互联网边界规则快速排序
|
2174
|
+
|
2175
|
+
# @param request: Request instance for ModifySequenceAclRules.
|
2176
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifySequenceAclRulesRequest`
|
2177
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifySequenceAclRulesResponse`
|
2178
|
+
def ModifySequenceAclRules(request)
|
2179
|
+
body = send_request('ModifySequenceAclRules', request.serialize)
|
2180
|
+
response = JSON.parse(body)
|
2181
|
+
if response['Response'].key?('Error') == false
|
2182
|
+
model = ModifySequenceAclRulesResponse.new
|
2183
|
+
model.deserialize(response['Response'])
|
2184
|
+
model
|
2185
|
+
else
|
2186
|
+
code = response['Response']['Error']['Code']
|
2187
|
+
message = response['Response']['Error']['Message']
|
2188
|
+
reqid = response['Response']['RequestId']
|
2189
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2190
|
+
end
|
2191
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2192
|
+
raise e
|
2193
|
+
rescue StandardError => e
|
2194
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2195
|
+
end
|
2196
|
+
|
1669
2197
|
# 修改规则执行顺序
|
1670
2198
|
|
1671
2199
|
# @param request: Request instance for ModifySequenceRules.
|
@@ -1738,6 +2266,78 @@ module TencentCloud
|
|
1738
2266
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1739
2267
|
end
|
1740
2268
|
|
2269
|
+
# 修改内网间访问控制规则
|
2270
|
+
|
2271
|
+
# @param request: Request instance for ModifyVpcAcRule.
|
2272
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyVpcAcRuleRequest`
|
2273
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyVpcAcRuleResponse`
|
2274
|
+
def ModifyVpcAcRule(request)
|
2275
|
+
body = send_request('ModifyVpcAcRule', request.serialize)
|
2276
|
+
response = JSON.parse(body)
|
2277
|
+
if response['Response'].key?('Error') == false
|
2278
|
+
model = ModifyVpcAcRuleResponse.new
|
2279
|
+
model.deserialize(response['Response'])
|
2280
|
+
model
|
2281
|
+
else
|
2282
|
+
code = response['Response']['Error']['Code']
|
2283
|
+
message = response['Response']['Error']['Message']
|
2284
|
+
reqid = response['Response']['RequestId']
|
2285
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2286
|
+
end
|
2287
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2288
|
+
raise e
|
2289
|
+
rescue StandardError => e
|
2290
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2291
|
+
end
|
2292
|
+
|
2293
|
+
# 编辑VPC间防火墙(防火墙组)
|
2294
|
+
|
2295
|
+
# @param request: Request instance for ModifyVpcFwGroup.
|
2296
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyVpcFwGroupRequest`
|
2297
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyVpcFwGroupResponse`
|
2298
|
+
def ModifyVpcFwGroup(request)
|
2299
|
+
body = send_request('ModifyVpcFwGroup', request.serialize)
|
2300
|
+
response = JSON.parse(body)
|
2301
|
+
if response['Response'].key?('Error') == false
|
2302
|
+
model = ModifyVpcFwGroupResponse.new
|
2303
|
+
model.deserialize(response['Response'])
|
2304
|
+
model
|
2305
|
+
else
|
2306
|
+
code = response['Response']['Error']['Code']
|
2307
|
+
message = response['Response']['Error']['Message']
|
2308
|
+
reqid = response['Response']['RequestId']
|
2309
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2310
|
+
end
|
2311
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2312
|
+
raise e
|
2313
|
+
rescue StandardError => e
|
2314
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2315
|
+
end
|
2316
|
+
|
2317
|
+
# vpc间规则快速排序
|
2318
|
+
|
2319
|
+
# @param request: Request instance for ModifyVpcFwSequenceRules.
|
2320
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyVpcFwSequenceRulesRequest`
|
2321
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyVpcFwSequenceRulesResponse`
|
2322
|
+
def ModifyVpcFwSequenceRules(request)
|
2323
|
+
body = send_request('ModifyVpcFwSequenceRules', request.serialize)
|
2324
|
+
response = JSON.parse(body)
|
2325
|
+
if response['Response'].key?('Error') == false
|
2326
|
+
model = ModifyVpcFwSequenceRulesResponse.new
|
2327
|
+
model.deserialize(response['Response'])
|
2328
|
+
model
|
2329
|
+
else
|
2330
|
+
code = response['Response']['Error']['Code']
|
2331
|
+
message = response['Response']['Error']['Message']
|
2332
|
+
reqid = response['Response']['RequestId']
|
2333
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2334
|
+
end
|
2335
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2336
|
+
raise e
|
2337
|
+
rescue StandardError => e
|
2338
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2339
|
+
end
|
2340
|
+
|
1741
2341
|
# 删除互联网边界规则
|
1742
2342
|
|
1743
2343
|
# @param request: Request instance for RemoveAcRule.
|
@@ -1762,6 +2362,30 @@ module TencentCloud
|
|
1762
2362
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1763
2363
|
end
|
1764
2364
|
|
2365
|
+
# 删除互联网边界访问控制规则
|
2366
|
+
|
2367
|
+
# @param request: Request instance for RemoveAclRule.
|
2368
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::RemoveAclRuleRequest`
|
2369
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::RemoveAclRuleResponse`
|
2370
|
+
def RemoveAclRule(request)
|
2371
|
+
body = send_request('RemoveAclRule', request.serialize)
|
2372
|
+
response = JSON.parse(body)
|
2373
|
+
if response['Response'].key?('Error') == false
|
2374
|
+
model = RemoveAclRuleResponse.new
|
2375
|
+
model.deserialize(response['Response'])
|
2376
|
+
model
|
2377
|
+
else
|
2378
|
+
code = response['Response']['Error']['Code']
|
2379
|
+
message = response['Response']['Error']['Message']
|
2380
|
+
reqid = response['Response']['RequestId']
|
2381
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2382
|
+
end
|
2383
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2384
|
+
raise e
|
2385
|
+
rescue StandardError => e
|
2386
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2387
|
+
end
|
2388
|
+
|
1765
2389
|
# 删除新企业安全组规则
|
1766
2390
|
|
1767
2391
|
# @param request: Request instance for RemoveEnterpriseSecurityGroupRule.
|
@@ -1810,6 +2434,30 @@ module TencentCloud
|
|
1810
2434
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1811
2435
|
end
|
1812
2436
|
|
2437
|
+
# 删除VPC间规则
|
2438
|
+
|
2439
|
+
# @param request: Request instance for RemoveVpcAcRule.
|
2440
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::RemoveVpcAcRuleRequest`
|
2441
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::RemoveVpcAcRuleResponse`
|
2442
|
+
def RemoveVpcAcRule(request)
|
2443
|
+
body = send_request('RemoveVpcAcRule', request.serialize)
|
2444
|
+
response = JSON.parse(body)
|
2445
|
+
if response['Response'].key?('Error') == false
|
2446
|
+
model = RemoveVpcAcRuleResponse.new
|
2447
|
+
model.deserialize(response['Response'])
|
2448
|
+
model
|
2449
|
+
else
|
2450
|
+
code = response['Response']['Error']['Code']
|
2451
|
+
message = response['Response']['Error']['Message']
|
2452
|
+
reqid = response['Response']['RequestId']
|
2453
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2454
|
+
end
|
2455
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2456
|
+
raise e
|
2457
|
+
rescue StandardError => e
|
2458
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2459
|
+
end
|
2460
|
+
|
1813
2461
|
# 配置防火墙Dnat规则
|
1814
2462
|
|
1815
2463
|
# @param request: Request instance for SetNatFwDnatRule.
|
@@ -1882,6 +2530,30 @@ module TencentCloud
|
|
1882
2530
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1883
2531
|
end
|
1884
2532
|
|
2533
|
+
# 同步防火墙操作,包括同步防火墙路由(若vpc,专线网关等增加了Cidr,需要手动同步一下路由使之在防火墙上生效)等。
|
2534
|
+
|
2535
|
+
# @param request: Request instance for SyncFwOperate.
|
2536
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::SyncFwOperateRequest`
|
2537
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::SyncFwOperateResponse`
|
2538
|
+
def SyncFwOperate(request)
|
2539
|
+
body = send_request('SyncFwOperate', request.serialize)
|
2540
|
+
response = JSON.parse(body)
|
2541
|
+
if response['Response'].key?('Error') == false
|
2542
|
+
model = SyncFwOperateResponse.new
|
2543
|
+
model.deserialize(response['Response'])
|
2544
|
+
model
|
2545
|
+
else
|
2546
|
+
code = response['Response']['Error']['Code']
|
2547
|
+
message = response['Response']['Error']['Message']
|
2548
|
+
reqid = response['Response']['RequestId']
|
2549
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2550
|
+
end
|
2551
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2552
|
+
raise e
|
2553
|
+
rescue StandardError => e
|
2554
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2555
|
+
end
|
2556
|
+
|
1885
2557
|
|
1886
2558
|
end
|
1887
2559
|
end
|