alibabacloud-cloudfw20171207 3.5.0__py3-none-any.whl → 3.6.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of alibabacloud-cloudfw20171207 might be problematic. Click here for more details.
- alibabacloud_cloudfw20171207/__init__.py +1 -1
- alibabacloud_cloudfw20171207/client.py +2104 -224
- alibabacloud_cloudfw20171207/models.py +967 -144
- {alibabacloud_cloudfw20171207-3.5.0.dist-info → alibabacloud_cloudfw20171207-3.6.0.dist-info}/METADATA +3 -3
- alibabacloud_cloudfw20171207-3.6.0.dist-info/RECORD +8 -0
- alibabacloud_cloudfw20171207-3.5.0.dist-info/RECORD +0 -8
- {alibabacloud_cloudfw20171207-3.5.0.dist-info → alibabacloud_cloudfw20171207-3.6.0.dist-info}/LICENSE +0 -0
- {alibabacloud_cloudfw20171207-3.5.0.dist-info → alibabacloud_cloudfw20171207-3.6.0.dist-info}/WHEEL +0 -0
- {alibabacloud_cloudfw20171207-3.5.0.dist-info → alibabacloud_cloudfw20171207-3.6.0.dist-info}/top_level.txt +0 -0
|
@@ -66,8 +66,12 @@ class AddAddressBookRequest(TeaModel):
|
|
|
66
66
|
# * **0** (default): no
|
|
67
67
|
self.auto_add_tag_ecs = auto_add_tag_ecs
|
|
68
68
|
# The description of the address book.
|
|
69
|
+
#
|
|
70
|
+
# This parameter is required.
|
|
69
71
|
self.description = description
|
|
70
72
|
# The name of the address book.
|
|
73
|
+
#
|
|
74
|
+
# This parameter is required.
|
|
71
75
|
self.group_name = group_name
|
|
72
76
|
# The type of the address book. Valid values:
|
|
73
77
|
#
|
|
@@ -75,6 +79,8 @@ class AddAddressBookRequest(TeaModel):
|
|
|
75
79
|
# * **domain**: domain address book
|
|
76
80
|
# * **port**: port address book
|
|
77
81
|
# * **tag**: ECS tag-based address book
|
|
82
|
+
#
|
|
83
|
+
# This parameter is required.
|
|
78
84
|
self.group_type = group_type
|
|
79
85
|
# The language of the content within the response. Valid values:
|
|
80
86
|
#
|
|
@@ -260,6 +266,8 @@ class AddControlPolicyRequest(TeaModel):
|
|
|
260
266
|
# * **accept**: allows the traffic.
|
|
261
267
|
# * **drop**: denies the traffic.
|
|
262
268
|
# * **log**: monitors the traffic.
|
|
269
|
+
#
|
|
270
|
+
# This parameter is required.
|
|
263
271
|
self.acl_action = acl_action
|
|
264
272
|
# The application type supported by the access control policy. Valid values:
|
|
265
273
|
#
|
|
@@ -285,6 +293,8 @@ class AddControlPolicyRequest(TeaModel):
|
|
|
285
293
|
# The application types supported by the access control policy.
|
|
286
294
|
self.application_name_list = application_name_list
|
|
287
295
|
# The description of the access control policy.
|
|
296
|
+
#
|
|
297
|
+
# This parameter is required.
|
|
288
298
|
self.description = description
|
|
289
299
|
# The destination port in the access control policy. Valid values:
|
|
290
300
|
#
|
|
@@ -323,11 +333,13 @@ class AddControlPolicyRequest(TeaModel):
|
|
|
323
333
|
#
|
|
324
334
|
# * If DestinationType is set to domain, the value of this parameter is a domain name.
|
|
325
335
|
#
|
|
326
|
-
# Example:
|
|
336
|
+
# Example: \\*.aliyuncs.com
|
|
327
337
|
#
|
|
328
338
|
# * If DestinationType is set to location, the value of this parameter is a location.
|
|
329
339
|
#
|
|
330
|
-
# Example:
|
|
340
|
+
# Example: ["BJ11", "ZB"]
|
|
341
|
+
#
|
|
342
|
+
# This parameter is required.
|
|
331
343
|
self.destination = destination
|
|
332
344
|
# The type of the destination address in the access control policy. Valid values:
|
|
333
345
|
#
|
|
@@ -335,11 +347,15 @@ class AddControlPolicyRequest(TeaModel):
|
|
|
335
347
|
# * **group**: address book
|
|
336
348
|
# * **domain**: domain name
|
|
337
349
|
# * **location**: location
|
|
350
|
+
#
|
|
351
|
+
# This parameter is required.
|
|
338
352
|
self.destination_type = destination_type
|
|
339
353
|
# The direction of the traffic to which the access control policy applies. Valid values:
|
|
340
354
|
#
|
|
341
355
|
# * **in**: inbound traffic
|
|
342
356
|
# * **out**: outbound traffic
|
|
357
|
+
#
|
|
358
|
+
# This parameter is required.
|
|
343
359
|
self.direction = direction
|
|
344
360
|
# The time when the access control policy stops taking effect. The value is a UNIX timestamp. Unit: seconds. The value must be on the hour or on the half hour, and at least 30 minutes later than the start time.
|
|
345
361
|
#
|
|
@@ -358,6 +374,8 @@ class AddControlPolicyRequest(TeaModel):
|
|
|
358
374
|
# * **en**: English
|
|
359
375
|
self.lang = lang
|
|
360
376
|
# The priority of the access control policy. The priority value starts from 1. A smaller priority value indicates a higher priority.
|
|
377
|
+
#
|
|
378
|
+
# This parameter is required.
|
|
361
379
|
self.new_order = new_order
|
|
362
380
|
# The protocol type supported by the access control policy. Valid values:
|
|
363
381
|
#
|
|
@@ -365,6 +383,8 @@ class AddControlPolicyRequest(TeaModel):
|
|
|
365
383
|
# * **TCP**\
|
|
366
384
|
# * **UDP**\
|
|
367
385
|
# * **ICMP**\
|
|
386
|
+
#
|
|
387
|
+
# This parameter is required.
|
|
368
388
|
self.proto = proto
|
|
369
389
|
# Specifies whether to enable the access control policy. By default, an access control policy is enabled after the policy is created. Valid values:
|
|
370
390
|
#
|
|
@@ -373,12 +393,12 @@ class AddControlPolicyRequest(TeaModel):
|
|
|
373
393
|
self.release = release
|
|
374
394
|
# The days of a week or of a month on which the access control policy takes effect.
|
|
375
395
|
#
|
|
376
|
-
# * If you set RepeatType to `Permanent`, `None`, or `Daily`, leave this parameter empty. Example:
|
|
377
|
-
# * If you set RepeatType to Weekly, you must specify this parameter. Example:
|
|
396
|
+
# * If you set RepeatType to `Permanent`, `None`, or `Daily`, leave this parameter empty. Example: [].
|
|
397
|
+
# * If you set RepeatType to Weekly, you must specify this parameter. Example: [0, 6].
|
|
378
398
|
#
|
|
379
399
|
# > If you set RepeatType to Weekly, the fields in the value of this parameter cannot be repeated.
|
|
380
400
|
#
|
|
381
|
-
# * If you set RepeatType to `Monthly`, you must specify this parameter. Example:
|
|
401
|
+
# * If you set RepeatType to `Monthly`, you must specify this parameter. Example: [1, 31].
|
|
382
402
|
#
|
|
383
403
|
# > If you set RepeatType to Monthly, the fields in the value of this parameter cannot be repeated.
|
|
384
404
|
self.repeat_days = repeat_days
|
|
@@ -410,7 +430,9 @@ class AddControlPolicyRequest(TeaModel):
|
|
|
410
430
|
#
|
|
411
431
|
# * If SourceType is set to location, the value of this parameter is a location.
|
|
412
432
|
#
|
|
413
|
-
# Example:
|
|
433
|
+
# Example: ["BJ11", "ZB"]
|
|
434
|
+
#
|
|
435
|
+
# This parameter is required.
|
|
414
436
|
self.source = source
|
|
415
437
|
# The source IP address of the request.
|
|
416
438
|
self.source_ip = source_ip
|
|
@@ -419,6 +441,8 @@ class AddControlPolicyRequest(TeaModel):
|
|
|
419
441
|
# * **net**: CIDR block
|
|
420
442
|
# * **group**: address book
|
|
421
443
|
# * **location**: location
|
|
444
|
+
#
|
|
445
|
+
# This parameter is required.
|
|
422
446
|
self.source_type = source_type
|
|
423
447
|
# The time when the access control policy starts to take effect. The value is a UNIX timestamp. Unit: seconds. The value must be on the hour or on the half hour, and at least 30 minutes earlier than the end time.
|
|
424
448
|
#
|
|
@@ -622,6 +646,8 @@ class AddInstanceMembersRequestMembers(TeaModel):
|
|
|
622
646
|
# The remarks of member that you want to add to Cloud Firewall. The remarks must be 1 to 256 characters in length.
|
|
623
647
|
self.member_desc = member_desc
|
|
624
648
|
# The UID of member that you want to add to Cloud Firewall.
|
|
649
|
+
#
|
|
650
|
+
# This parameter is required.
|
|
625
651
|
self.member_uid = member_uid
|
|
626
652
|
|
|
627
653
|
def validate(self):
|
|
@@ -654,6 +680,8 @@ class AddInstanceMembersRequest(TeaModel):
|
|
|
654
680
|
members: List[AddInstanceMembersRequestMembers] = None,
|
|
655
681
|
):
|
|
656
682
|
# The members that you want to add to Cloud Firewall.
|
|
683
|
+
#
|
|
684
|
+
# This parameter is required.
|
|
657
685
|
self.members = members
|
|
658
686
|
|
|
659
687
|
def validate(self):
|
|
@@ -773,14 +801,18 @@ class BatchCopyVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
773
801
|
# * If the VPC firewall protects mutual access traffic between a VPC and a specified network instance that is attached to a Cloud Enterprise Network (CEN) instance, the value of this parameter is the ID of the CEN instance. The network instance can be a VPC, a virtual border router (VBR), or a Cloud Connect Network (CCN) instance.
|
|
774
802
|
# * If the VPC firewall protects traffic between two VPCs that are connected by using an Express Connect circuit, the value of this parameter is the instance ID of the VPC firewall.
|
|
775
803
|
#
|
|
776
|
-
# > You can call the [DescribeVpcFirewallAclGroupList](
|
|
804
|
+
# > You can call the [DescribeVpcFirewallAclGroupList](https://help.aliyun.com/document_detail/159760.html) operation to query the IDs of policy groups.
|
|
805
|
+
#
|
|
806
|
+
# This parameter is required.
|
|
777
807
|
self.source_vpc_firewall_id = source_vpc_firewall_id
|
|
778
808
|
# The ID of the policy group of the destination VPC firewall. Valid values:
|
|
779
809
|
#
|
|
780
810
|
# * If the VPC firewall protects mutual access traffic between a VPC and a specified network instance that is attached to a CEN instance, the value of this parameter is the ID of the CEN instance. The network instance can be a VPC, a VBR, or a CCN instance.
|
|
781
811
|
# * If the VPC firewall protects traffic between two VPCs that are connected by using an Express Connect circuit, the value of this parameter is the instance ID of the VPC firewall.
|
|
782
812
|
#
|
|
783
|
-
# > You can call the [DescribeVpcFirewallAclGroupList](
|
|
813
|
+
# > You can call the [DescribeVpcFirewallAclGroupList](https://help.aliyun.com/document_detail/159760.html) operation to query the IDs of policy groups.
|
|
814
|
+
#
|
|
815
|
+
# This parameter is required.
|
|
784
816
|
self.target_vpc_firewall_id = target_vpc_firewall_id
|
|
785
817
|
|
|
786
818
|
def validate(self):
|
|
@@ -891,8 +923,12 @@ class BatchDeleteVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
891
923
|
vpc_firewall_id: str = None,
|
|
892
924
|
):
|
|
893
925
|
# The UUIDs of access control policies.
|
|
926
|
+
#
|
|
927
|
+
# This parameter is required.
|
|
894
928
|
self.acl_uuid_list = acl_uuid_list
|
|
895
929
|
# The instance ID of the VPC firewall.
|
|
930
|
+
#
|
|
931
|
+
# This parameter is required.
|
|
896
932
|
self.vpc_firewall_id = vpc_firewall_id
|
|
897
933
|
|
|
898
934
|
def validate(self):
|
|
@@ -1040,11 +1076,11 @@ class CreateDownloadTaskResponseBody(TeaModel):
|
|
|
1040
1076
|
self.request_id = request_id
|
|
1041
1077
|
# The status of the task. Valid values:
|
|
1042
1078
|
#
|
|
1043
|
-
# finish: You can query the task to obtain the download link of the file.
|
|
1079
|
+
# finish: The task finished. You can query the task to obtain the download link of the file.
|
|
1044
1080
|
#
|
|
1045
|
-
# start
|
|
1081
|
+
# start: The task start.
|
|
1046
1082
|
#
|
|
1047
|
-
# error
|
|
1083
|
+
# error: An error occurred.
|
|
1048
1084
|
#
|
|
1049
1085
|
# expire: The task file is invalid and cannot be downloaded.
|
|
1050
1086
|
self.status = status
|
|
@@ -1161,10 +1197,16 @@ class CreateNatFirewallControlPolicyRequest(TeaModel):
|
|
|
1161
1197
|
# * **accept**: allows the traffic.
|
|
1162
1198
|
# * **drop**: denies the traffic.
|
|
1163
1199
|
# * **log**: monitors the traffic.
|
|
1200
|
+
#
|
|
1201
|
+
# This parameter is required.
|
|
1164
1202
|
self.acl_action = acl_action
|
|
1165
1203
|
# The application types supported by the access control policy.
|
|
1204
|
+
#
|
|
1205
|
+
# This parameter is required.
|
|
1166
1206
|
self.application_name_list = application_name_list
|
|
1167
1207
|
# The description of the access control policy.
|
|
1208
|
+
#
|
|
1209
|
+
# This parameter is required.
|
|
1168
1210
|
self.description = description
|
|
1169
1211
|
# The destination port in the access control policy. Valid values:
|
|
1170
1212
|
#
|
|
@@ -1201,11 +1243,13 @@ class CreateNatFirewallControlPolicyRequest(TeaModel):
|
|
|
1201
1243
|
#
|
|
1202
1244
|
# * If DestinationType is set to domain, the value of this parameter is a domain name.
|
|
1203
1245
|
#
|
|
1204
|
-
# Example:
|
|
1246
|
+
# Example: \\*.aliyuncs.com
|
|
1205
1247
|
#
|
|
1206
1248
|
# * If DestinationType is set to location, the value of this parameter is a location.
|
|
1207
1249
|
#
|
|
1208
|
-
# Example:
|
|
1250
|
+
# Example: ["BJ11", "ZB"]
|
|
1251
|
+
#
|
|
1252
|
+
# This parameter is required.
|
|
1209
1253
|
self.destination = destination
|
|
1210
1254
|
# The type of the destination address in the access control policy.
|
|
1211
1255
|
#
|
|
@@ -1214,10 +1258,14 @@ class CreateNatFirewallControlPolicyRequest(TeaModel):
|
|
|
1214
1258
|
# * **net**: CIDR block
|
|
1215
1259
|
# * **group**: address book
|
|
1216
1260
|
# * **domain**: domain name
|
|
1261
|
+
#
|
|
1262
|
+
# This parameter is required.
|
|
1217
1263
|
self.destination_type = destination_type
|
|
1218
1264
|
# The direction of the traffic to which the access control policy applies. Valid values:
|
|
1219
1265
|
#
|
|
1220
1266
|
# * **out**: outbound traffic
|
|
1267
|
+
#
|
|
1268
|
+
# This parameter is required.
|
|
1221
1269
|
self.direction = direction
|
|
1222
1270
|
# The domain name resolution method of the access control policy. Valid values:
|
|
1223
1271
|
#
|
|
@@ -1241,8 +1289,12 @@ class CreateNatFirewallControlPolicyRequest(TeaModel):
|
|
|
1241
1289
|
# * **en**: English
|
|
1242
1290
|
self.lang = lang
|
|
1243
1291
|
# The ID of the NAT gateway.
|
|
1292
|
+
#
|
|
1293
|
+
# This parameter is required.
|
|
1244
1294
|
self.nat_gateway_id = nat_gateway_id
|
|
1245
1295
|
# The priority of the access control policy. The priority value starts from 1. A small priority value indicates a high priority.
|
|
1296
|
+
#
|
|
1297
|
+
# This parameter is required.
|
|
1246
1298
|
self.new_order = new_order
|
|
1247
1299
|
# The protocol type in the access control policy.
|
|
1248
1300
|
#
|
|
@@ -1252,6 +1304,8 @@ class CreateNatFirewallControlPolicyRequest(TeaModel):
|
|
|
1252
1304
|
# * TCP
|
|
1253
1305
|
# * UDP
|
|
1254
1306
|
# * ICMP
|
|
1307
|
+
#
|
|
1308
|
+
# This parameter is required.
|
|
1255
1309
|
self.proto = proto
|
|
1256
1310
|
# Specifies whether to enable the access control policy. By default, an access control policy is enabled after it is created. Valid values:
|
|
1257
1311
|
#
|
|
@@ -1260,12 +1314,12 @@ class CreateNatFirewallControlPolicyRequest(TeaModel):
|
|
|
1260
1314
|
self.release = release
|
|
1261
1315
|
# The days of a week or of a month on which the access control policy takes effect.
|
|
1262
1316
|
#
|
|
1263
|
-
# * If RepeatType is set to `Permanent`, `None`, or `Daily`, RepeatDays is left empty. Example:
|
|
1264
|
-
# * If RepeatType is set to Weekly, RepeatDays must be specified. Example:
|
|
1317
|
+
# * If RepeatType is set to `Permanent`, `None`, or `Daily`, RepeatDays is left empty. Example: [].
|
|
1318
|
+
# * If RepeatType is set to Weekly, RepeatDays must be specified. Example: [0, 6].
|
|
1265
1319
|
#
|
|
1266
1320
|
# > If RepeatType is set to Weekly, the fields in the value of RepeatDays cannot be repeated.
|
|
1267
1321
|
#
|
|
1268
|
-
# * If RepeatType is set to `Monthly`, RepeatDays must be specified. Example:
|
|
1322
|
+
# * If RepeatType is set to `Monthly`, RepeatDays must be specified. Example: [1, 31].
|
|
1269
1323
|
#
|
|
1270
1324
|
# > If RepeatType is set to Monthly, the fields in the value of RepeatDays cannot be repeated.
|
|
1271
1325
|
self.repeat_days = repeat_days
|
|
@@ -1296,6 +1350,8 @@ class CreateNatFirewallControlPolicyRequest(TeaModel):
|
|
|
1296
1350
|
# * If **SourceType** is set to `group`, the value of this parameter must be an address book name.
|
|
1297
1351
|
#
|
|
1298
1352
|
# Example: db_group
|
|
1353
|
+
#
|
|
1354
|
+
# This parameter is required.
|
|
1299
1355
|
self.source = source
|
|
1300
1356
|
# The type of the source address in the access control policy.
|
|
1301
1357
|
#
|
|
@@ -1303,6 +1359,8 @@ class CreateNatFirewallControlPolicyRequest(TeaModel):
|
|
|
1303
1359
|
#
|
|
1304
1360
|
# * **net**: source CIDR block
|
|
1305
1361
|
# * **group**: source address book
|
|
1362
|
+
#
|
|
1363
|
+
# This parameter is required.
|
|
1306
1364
|
self.source_type = source_type
|
|
1307
1365
|
# The time when the access control policy starts to take effect. The value is a UNIX timestamp. Unit: seconds. The value must be on the hour or on the half hour, and at least 30 minutes earlier than the value of EndTime.
|
|
1308
1366
|
#
|
|
@@ -1507,9 +1565,13 @@ class CreateSecurityProxyRequestNatRouteEntryList(TeaModel):
|
|
|
1507
1565
|
next_hop_type: str = None,
|
|
1508
1566
|
route_table_id: str = None,
|
|
1509
1567
|
):
|
|
1568
|
+
# This parameter is required.
|
|
1510
1569
|
self.destination_cidr = destination_cidr
|
|
1570
|
+
# This parameter is required.
|
|
1511
1571
|
self.next_hop_id = next_hop_id
|
|
1572
|
+
# This parameter is required.
|
|
1512
1573
|
self.next_hop_type = next_hop_type
|
|
1574
|
+
# This parameter is required.
|
|
1513
1575
|
self.route_table_id = route_table_id
|
|
1514
1576
|
|
|
1515
1577
|
def validate(self):
|
|
@@ -1561,11 +1623,16 @@ class CreateSecurityProxyRequest(TeaModel):
|
|
|
1561
1623
|
):
|
|
1562
1624
|
self.firewall_switch = firewall_switch
|
|
1563
1625
|
self.lang = lang
|
|
1626
|
+
# This parameter is required.
|
|
1564
1627
|
self.nat_gateway_id = nat_gateway_id
|
|
1628
|
+
# This parameter is required.
|
|
1565
1629
|
self.nat_route_entry_list = nat_route_entry_list
|
|
1630
|
+
# This parameter is required.
|
|
1566
1631
|
self.proxy_name = proxy_name
|
|
1632
|
+
# This parameter is required.
|
|
1567
1633
|
self.region_no = region_no
|
|
1568
1634
|
self.strict_mode = strict_mode
|
|
1635
|
+
# This parameter is required.
|
|
1569
1636
|
self.vpc_id = vpc_id
|
|
1570
1637
|
self.vswitch_auto = vswitch_auto
|
|
1571
1638
|
self.vswitch_cidr = vswitch_cidr
|
|
@@ -2220,11 +2287,15 @@ class CreateVpcFirewallCenConfigureRequest(TeaModel):
|
|
|
2220
2287
|
vpc_region: str = None,
|
|
2221
2288
|
):
|
|
2222
2289
|
# The ID of the CEN instance.
|
|
2290
|
+
#
|
|
2291
|
+
# This parameter is required.
|
|
2223
2292
|
self.cen_id = cen_id
|
|
2224
2293
|
# Specifies whether to enable the VPC firewall. Valid values:
|
|
2225
2294
|
#
|
|
2226
2295
|
# * **open**: After you create the VPC firewall, the VPC firewall is automatically enabled. This is the default value.
|
|
2227
|
-
# * **close**: After you create the VPC firewall, the VPC firewall is disabled. You can call the [ModifyVpcFirewallCenSwitchStatus](
|
|
2296
|
+
# * **close**: After you create the VPC firewall, the VPC firewall is disabled. You can call the [ModifyVpcFirewallCenSwitchStatus](https://help.aliyun.com/document_detail/345780.html) operation to manually enable the VPC firewall.
|
|
2297
|
+
#
|
|
2298
|
+
# This parameter is required.
|
|
2228
2299
|
self.firewall_switch = firewall_switch
|
|
2229
2300
|
# The CIDR block of the vSwitch that is automatically created for the VPC firewall. You must specify a CIDR block for the Cloud_Firewall_VSWITCH VPC that is automatically created for the VPC firewall for traffic redirection. The CIDR block does not conflict with your network plan. The subnet mask of the CIDR block must be less than or equal to 29 bits in length. The CIDR block of the vSwitch must be within the network segment of the VPC.
|
|
2230
2301
|
#
|
|
@@ -2242,7 +2313,7 @@ class CreateVpcFirewallCenConfigureRequest(TeaModel):
|
|
|
2242
2313
|
#
|
|
2243
2314
|
# If you do not specify a value, a zone is automatically assigned for the vSwitch.
|
|
2244
2315
|
#
|
|
2245
|
-
# > This parameter takes effect only when you create a VPC firewall for the first time in the current CEN instance and region. For more information about zones that are supported by each region, see [Query zones](
|
|
2316
|
+
# > This parameter takes effect only when you create a VPC firewall for the first time in the current CEN instance and region. For more information about zones that are supported by each region, see [Query zones](https://help.aliyun.com/document_detail/36064.html).
|
|
2246
2317
|
self.firewall_vpc_zone_id = firewall_vpc_zone_id
|
|
2247
2318
|
# The language of the content within the request and response. Valid values:
|
|
2248
2319
|
#
|
|
@@ -2252,14 +2323,20 @@ class CreateVpcFirewallCenConfigureRequest(TeaModel):
|
|
|
2252
2323
|
# The UID of the member that is managed by your Alibaba Cloud account.
|
|
2253
2324
|
self.member_uid = member_uid
|
|
2254
2325
|
# The ID of the VPC for which you want to create the VPC firewall.
|
|
2326
|
+
#
|
|
2327
|
+
# This parameter is required.
|
|
2255
2328
|
self.network_instance_id = network_instance_id
|
|
2256
2329
|
# The ID of the vSwitch that is used to associate with the elastic network interface (ENI) required by the VPC firewall.
|
|
2257
2330
|
self.v_switch_id = v_switch_id
|
|
2258
2331
|
# The instance name of the VPC firewall.
|
|
2332
|
+
#
|
|
2333
|
+
# This parameter is required.
|
|
2259
2334
|
self.vpc_firewall_name = vpc_firewall_name
|
|
2260
2335
|
# The ID of the region to which the VPC belongs.
|
|
2261
2336
|
#
|
|
2262
|
-
# > For more information about the regions, see [Supported regions](
|
|
2337
|
+
# > For more information about the regions, see [Supported regions](https://help.aliyun.com/document_detail/195657.html).
|
|
2338
|
+
#
|
|
2339
|
+
# This parameter is required.
|
|
2263
2340
|
self.vpc_region = vpc_region
|
|
2264
2341
|
|
|
2265
2342
|
def validate(self):
|
|
@@ -2415,7 +2492,9 @@ class CreateVpcFirewallConfigureRequest(TeaModel):
|
|
|
2415
2492
|
# The status of the VPC firewall after you create the firewall. Valid values:
|
|
2416
2493
|
#
|
|
2417
2494
|
# * **open**: After you create the VPC firewall, the VPC firewall is automatically enabled. This is the default value.
|
|
2418
|
-
# * **close**: After you create the VPC firewall, the VPC firewall is disabled. To enable the firewall, you can call the [ModifyVpcFirewallSwitchStatus](
|
|
2495
|
+
# * **close**: After you create the VPC firewall, the VPC firewall is disabled. To enable the firewall, you can call the [ModifyVpcFirewallSwitchStatus](https://help.aliyun.com/document_detail/342935.html) operation.
|
|
2496
|
+
#
|
|
2497
|
+
# This parameter is required.
|
|
2419
2498
|
self.firewall_switch = firewall_switch
|
|
2420
2499
|
# The language of the content within the request and the response. Valid values:
|
|
2421
2500
|
#
|
|
@@ -2426,12 +2505,18 @@ class CreateVpcFirewallConfigureRequest(TeaModel):
|
|
|
2426
2505
|
#
|
|
2427
2506
|
# * **RouteTableId**: the ID of the route table for the local VPC.
|
|
2428
2507
|
# * **RouteEntryList**: The value is a JSON string that contains the DestinationCidr and NextHopInstanceId parameters. The DestinationCidr parameter indicates the destination CIDR block of the local VPC. The NextHopInstanceId parameter indicates the instance ID of the next hop for the local VPC.
|
|
2508
|
+
#
|
|
2509
|
+
# This parameter is required.
|
|
2429
2510
|
self.local_vpc_cidr_table_list = local_vpc_cidr_table_list
|
|
2430
2511
|
# The ID of the local VPC.
|
|
2512
|
+
#
|
|
2513
|
+
# This parameter is required.
|
|
2431
2514
|
self.local_vpc_id = local_vpc_id
|
|
2432
2515
|
# The region ID of the local VPC.
|
|
2433
2516
|
#
|
|
2434
|
-
# > For more information about the regions in which Cloud Firewall is available, see [Supported regions](
|
|
2517
|
+
# > For more information about the regions in which Cloud Firewall is available, see [Supported regions](https://help.aliyun.com/document_detail/195657.html).
|
|
2518
|
+
#
|
|
2519
|
+
# This parameter is required.
|
|
2435
2520
|
self.local_vpc_region = local_vpc_region
|
|
2436
2521
|
# The UID of the member that is managed by your Alibaba Cloud account.
|
|
2437
2522
|
self.member_uid = member_uid
|
|
@@ -2439,14 +2524,22 @@ class CreateVpcFirewallConfigureRequest(TeaModel):
|
|
|
2439
2524
|
#
|
|
2440
2525
|
# * **RouteTableId**: the ID of the route table for the peer VPC.
|
|
2441
2526
|
# * **RouteEntryList**: The value is a JSON string that contains the DestinationCidr and NextHopInstanceId parameters. The DestinationCidr parameter indicates the destination CIDR block of the peer VPC. The NextHopInstanceId parameter indicates the instance ID of the next hop for the peer VPC.
|
|
2527
|
+
#
|
|
2528
|
+
# This parameter is required.
|
|
2442
2529
|
self.peer_vpc_cidr_table_list = peer_vpc_cidr_table_list
|
|
2443
2530
|
# The ID of the peer VPC.
|
|
2531
|
+
#
|
|
2532
|
+
# This parameter is required.
|
|
2444
2533
|
self.peer_vpc_id = peer_vpc_id
|
|
2445
2534
|
# The region ID of the peer VPC.
|
|
2446
2535
|
#
|
|
2447
|
-
# > For more information about Cloud Firewall supported regions, see [Supported regions](
|
|
2536
|
+
# > For more information about Cloud Firewall supported regions, see [Supported regions](https://help.aliyun.com/document_detail/195657.html).
|
|
2537
|
+
#
|
|
2538
|
+
# This parameter is required.
|
|
2448
2539
|
self.peer_vpc_region = peer_vpc_region
|
|
2449
2540
|
# The instance name of the VPC firewall.
|
|
2541
|
+
#
|
|
2542
|
+
# This parameter is required.
|
|
2450
2543
|
self.vpc_firewall_name = vpc_firewall_name
|
|
2451
2544
|
|
|
2452
2545
|
def validate(self):
|
|
@@ -2613,6 +2706,8 @@ class CreateVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
2613
2706
|
# - **accept**: allows the traffic.
|
|
2614
2707
|
# - **drop**: blocks the traffic.
|
|
2615
2708
|
# - **log**: monitors the traffic.
|
|
2709
|
+
#
|
|
2710
|
+
# This parameter is required.
|
|
2616
2711
|
self.acl_action = acl_action
|
|
2617
2712
|
# The type of the applications that the access control policy supports. Valid values:
|
|
2618
2713
|
#
|
|
@@ -2635,6 +2730,8 @@ class CreateVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
2635
2730
|
# The application types supported by the access control policy.
|
|
2636
2731
|
self.application_name_list = application_name_list
|
|
2637
2732
|
# The description of the access control policy.
|
|
2733
|
+
#
|
|
2734
|
+
# This parameter is required.
|
|
2638
2735
|
self.description = description
|
|
2639
2736
|
# The destination port in the access control policy.
|
|
2640
2737
|
#
|
|
@@ -2654,12 +2751,16 @@ class CreateVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
2654
2751
|
# - If **DestinationType** is set to `net`, the value of **Destination** must be a CIDR block.
|
|
2655
2752
|
# - If **DestinationType** is set to `group`, the value of **Destination** must be an address book.
|
|
2656
2753
|
# - If **DestinationType** is set to `domain`, the value of **Destination** must be a domain name.
|
|
2754
|
+
#
|
|
2755
|
+
# This parameter is required.
|
|
2657
2756
|
self.destination = destination
|
|
2658
2757
|
# The type of the destination address in the access control policy. Valid values:
|
|
2659
2758
|
#
|
|
2660
2759
|
# - **net**: CIDR block
|
|
2661
2760
|
# - **group**: address book
|
|
2662
2761
|
# - **domain**: domain name
|
|
2762
|
+
#
|
|
2763
|
+
# This parameter is required.
|
|
2663
2764
|
self.destination_type = destination_type
|
|
2664
2765
|
# The time when the access control policy stops taking effect. The value is a UNIX timestamp. Unit: seconds. The value must be on the hour or on the half hour, and at least 30 minutes later than the start time.
|
|
2665
2766
|
#
|
|
@@ -2675,6 +2776,8 @@ class CreateVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
2675
2776
|
# The priority of the access control policy.
|
|
2676
2777
|
#
|
|
2677
2778
|
# The priority value starts from 1. A smaller priority value indicates a higher priority.
|
|
2779
|
+
#
|
|
2780
|
+
# This parameter is required.
|
|
2678
2781
|
self.new_order = new_order
|
|
2679
2782
|
# The type of the protocol in the access control policy. Valid values:
|
|
2680
2783
|
#
|
|
@@ -2682,6 +2785,8 @@ class CreateVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
2682
2785
|
# - **TCP**\
|
|
2683
2786
|
# - **UDP**\
|
|
2684
2787
|
# - **ICMP**\
|
|
2788
|
+
#
|
|
2789
|
+
# This parameter is required.
|
|
2685
2790
|
self.proto = proto
|
|
2686
2791
|
# Specifies whether to enable the access control policy. By default, an access control policy is enabled after the policy is created. Valid values:
|
|
2687
2792
|
#
|
|
@@ -2690,12 +2795,12 @@ class CreateVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
2690
2795
|
self.release = release
|
|
2691
2796
|
# The days of a week or of a month on which the access control policy takes effect.
|
|
2692
2797
|
#
|
|
2693
|
-
# * If you set RepeatType to `Permanent`, `None`, or `Daily`, leave this parameter empty. Example:
|
|
2694
|
-
# * If you set RepeatType to Weekly, you must specify this parameter. Example:
|
|
2798
|
+
# * If you set RepeatType to `Permanent`, `None`, or `Daily`, leave this parameter empty. Example: [].
|
|
2799
|
+
# * If you set RepeatType to Weekly, you must specify this parameter. Example: [0, 6].
|
|
2695
2800
|
#
|
|
2696
2801
|
# > If you set RepeatType to Weekly, the fields in the value of this parameter cannot be repeated.
|
|
2697
2802
|
#
|
|
2698
|
-
# * If you set RepeatType to `Monthly`, you must specify this parameter. Example:
|
|
2803
|
+
# * If you set RepeatType to `Monthly`, you must specify this parameter. Example: [1, 31].
|
|
2699
2804
|
#
|
|
2700
2805
|
# > If you set RepeatType to Monthly, the fields in the value of this parameter cannot be repeated.
|
|
2701
2806
|
self.repeat_days = repeat_days
|
|
@@ -2719,11 +2824,15 @@ class CreateVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
2719
2824
|
#
|
|
2720
2825
|
# - If SourceType is set to `net`, the value of Source must be a CIDR block.
|
|
2721
2826
|
# - If SourceType is set to `group`, the value of Source must be an address book.
|
|
2827
|
+
#
|
|
2828
|
+
# This parameter is required.
|
|
2722
2829
|
self.source = source
|
|
2723
2830
|
# The type of the source address in the access control policy. Valid values:
|
|
2724
2831
|
#
|
|
2725
2832
|
# - **net**: CIDR block
|
|
2726
2833
|
# - **group**: address book
|
|
2834
|
+
#
|
|
2835
|
+
# This parameter is required.
|
|
2727
2836
|
self.source_type = source_type
|
|
2728
2837
|
# The time when the access control policy starts to take effect. The value is a UNIX timestamp. Unit: seconds. The value must be on the hour or on the half hour, and at least 30 minutes earlier than the end time.
|
|
2729
2838
|
#
|
|
@@ -2735,6 +2844,8 @@ class CreateVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
2735
2844
|
# - If a VPC firewall protects the traffic between two VPCs that are connected by using an Express Connect circuit, the value of this parameter must be the instance ID of the VPC firewall.
|
|
2736
2845
|
#
|
|
2737
2846
|
# > You can call the [DescribeVpcFirewallAclGroupList](https://www.alibabacloud.com/help/en/cloud-firewall/latest/describevpcfirewallaclgrouplist) operation to query the IDs.
|
|
2847
|
+
#
|
|
2848
|
+
# This parameter is required.
|
|
2738
2849
|
self.vpc_firewall_id = vpc_firewall_id
|
|
2739
2850
|
|
|
2740
2851
|
def validate(self):
|
|
@@ -2931,6 +3042,8 @@ class DeleteAddressBookRequest(TeaModel):
|
|
|
2931
3042
|
# The ID of the address book.
|
|
2932
3043
|
#
|
|
2933
3044
|
# To delete the address book, you must provide the ID of the address book. You can call the DescribeAddressBook operation to query the ID.
|
|
3045
|
+
#
|
|
3046
|
+
# This parameter is required.
|
|
2934
3047
|
self.group_uuid = group_uuid
|
|
2935
3048
|
# The natural language of the request and response. Valid values:
|
|
2936
3049
|
#
|
|
@@ -3047,7 +3160,9 @@ class DeleteControlPolicyRequest(TeaModel):
|
|
|
3047
3160
|
):
|
|
3048
3161
|
# The ID of the access control policy.
|
|
3049
3162
|
#
|
|
3050
|
-
# To delete an access control policy, you must provide the ID of the policy. You can call the [DescribeControlPolicy](
|
|
3163
|
+
# To delete an access control policy, you must provide the ID of the policy. You can call the [DescribeControlPolicy](https://help.aliyun.com/document_detail/138866.html) operation to query the ID.
|
|
3164
|
+
#
|
|
3165
|
+
# This parameter is required.
|
|
3051
3166
|
self.acl_uuid = acl_uuid
|
|
3052
3167
|
# The direction of the traffic to which the access control policy applies.
|
|
3053
3168
|
#
|
|
@@ -3055,6 +3170,8 @@ class DeleteControlPolicyRequest(TeaModel):
|
|
|
3055
3170
|
#
|
|
3056
3171
|
# * **in**: inbound traffic
|
|
3057
3172
|
# * **out**: outbound traffic
|
|
3173
|
+
#
|
|
3174
|
+
# This parameter is required.
|
|
3058
3175
|
self.direction = direction
|
|
3059
3176
|
# The natural language of the request and response.
|
|
3060
3177
|
#
|
|
@@ -3182,6 +3299,8 @@ class DeleteControlPolicyTemplateRequest(TeaModel):
|
|
|
3182
3299
|
# The source IP address of the request.
|
|
3183
3300
|
self.source_ip = source_ip
|
|
3184
3301
|
# The ID of the access control policy template.
|
|
3302
|
+
#
|
|
3303
|
+
# This parameter is required.
|
|
3185
3304
|
self.template_id = template_id
|
|
3186
3305
|
|
|
3187
3306
|
def validate(self):
|
|
@@ -3501,6 +3620,8 @@ class DeleteInstanceMembersRequest(TeaModel):
|
|
|
3501
3620
|
member_uids: List[int] = None,
|
|
3502
3621
|
):
|
|
3503
3622
|
# The unique identifiers (UID) of members that you want to remove from Cloud Firewall.
|
|
3623
|
+
#
|
|
3624
|
+
# This parameter is required.
|
|
3504
3625
|
self.member_uids = member_uids
|
|
3505
3626
|
|
|
3506
3627
|
def validate(self):
|
|
@@ -3603,12 +3724,16 @@ class DeleteNatFirewallControlPolicyRequest(TeaModel):
|
|
|
3603
3724
|
# The UUID of the access control policy.
|
|
3604
3725
|
#
|
|
3605
3726
|
# To delete an access control policy, you must provide the ID of the policy. You can call the DescribeNatFirewallControlPolicy operation to query the UUIDs of access control policies.
|
|
3727
|
+
#
|
|
3728
|
+
# This parameter is required.
|
|
3606
3729
|
self.acl_uuid = acl_uuid
|
|
3607
3730
|
# The direction of the traffic to which the access control policy applies.
|
|
3608
3731
|
#
|
|
3609
3732
|
# Valid values:
|
|
3610
3733
|
#
|
|
3611
3734
|
# * **out**: outbound traffic
|
|
3735
|
+
#
|
|
3736
|
+
# This parameter is required.
|
|
3612
3737
|
self.direction = direction
|
|
3613
3738
|
# The language of the content within the response. Valid values:
|
|
3614
3739
|
#
|
|
@@ -3616,6 +3741,8 @@ class DeleteNatFirewallControlPolicyRequest(TeaModel):
|
|
|
3616
3741
|
# * **en**: English
|
|
3617
3742
|
self.lang = lang
|
|
3618
3743
|
# The ID of the NAT gateway.
|
|
3744
|
+
#
|
|
3745
|
+
# This parameter is required.
|
|
3619
3746
|
self.nat_gateway_id = nat_gateway_id
|
|
3620
3747
|
|
|
3621
3748
|
def validate(self):
|
|
@@ -3739,6 +3866,8 @@ class DeleteNatFirewallControlPolicyBatchRequest(TeaModel):
|
|
|
3739
3866
|
# * **en**: English
|
|
3740
3867
|
self.lang = lang
|
|
3741
3868
|
# The ID of the NAT gateway.
|
|
3869
|
+
#
|
|
3870
|
+
# This parameter is required.
|
|
3742
3871
|
self.nat_gateway_id = nat_gateway_id
|
|
3743
3872
|
|
|
3744
3873
|
def validate(self):
|
|
@@ -3842,6 +3971,108 @@ class DeleteNatFirewallControlPolicyBatchResponse(TeaModel):
|
|
|
3842
3971
|
return self
|
|
3843
3972
|
|
|
3844
3973
|
|
|
3974
|
+
class DeleteSecurityProxyRequest(TeaModel):
|
|
3975
|
+
def __init__(
|
|
3976
|
+
self,
|
|
3977
|
+
lang: str = None,
|
|
3978
|
+
proxy_id: str = None,
|
|
3979
|
+
):
|
|
3980
|
+
self.lang = lang
|
|
3981
|
+
# This parameter is required.
|
|
3982
|
+
self.proxy_id = proxy_id
|
|
3983
|
+
|
|
3984
|
+
def validate(self):
|
|
3985
|
+
pass
|
|
3986
|
+
|
|
3987
|
+
def to_map(self):
|
|
3988
|
+
_map = super().to_map()
|
|
3989
|
+
if _map is not None:
|
|
3990
|
+
return _map
|
|
3991
|
+
|
|
3992
|
+
result = dict()
|
|
3993
|
+
if self.lang is not None:
|
|
3994
|
+
result['Lang'] = self.lang
|
|
3995
|
+
if self.proxy_id is not None:
|
|
3996
|
+
result['ProxyId'] = self.proxy_id
|
|
3997
|
+
return result
|
|
3998
|
+
|
|
3999
|
+
def from_map(self, m: dict = None):
|
|
4000
|
+
m = m or dict()
|
|
4001
|
+
if m.get('Lang') is not None:
|
|
4002
|
+
self.lang = m.get('Lang')
|
|
4003
|
+
if m.get('ProxyId') is not None:
|
|
4004
|
+
self.proxy_id = m.get('ProxyId')
|
|
4005
|
+
return self
|
|
4006
|
+
|
|
4007
|
+
|
|
4008
|
+
class DeleteSecurityProxyResponseBody(TeaModel):
|
|
4009
|
+
def __init__(
|
|
4010
|
+
self,
|
|
4011
|
+
request_id: str = None,
|
|
4012
|
+
):
|
|
4013
|
+
self.request_id = request_id
|
|
4014
|
+
|
|
4015
|
+
def validate(self):
|
|
4016
|
+
pass
|
|
4017
|
+
|
|
4018
|
+
def to_map(self):
|
|
4019
|
+
_map = super().to_map()
|
|
4020
|
+
if _map is not None:
|
|
4021
|
+
return _map
|
|
4022
|
+
|
|
4023
|
+
result = dict()
|
|
4024
|
+
if self.request_id is not None:
|
|
4025
|
+
result['RequestId'] = self.request_id
|
|
4026
|
+
return result
|
|
4027
|
+
|
|
4028
|
+
def from_map(self, m: dict = None):
|
|
4029
|
+
m = m or dict()
|
|
4030
|
+
if m.get('RequestId') is not None:
|
|
4031
|
+
self.request_id = m.get('RequestId')
|
|
4032
|
+
return self
|
|
4033
|
+
|
|
4034
|
+
|
|
4035
|
+
class DeleteSecurityProxyResponse(TeaModel):
|
|
4036
|
+
def __init__(
|
|
4037
|
+
self,
|
|
4038
|
+
headers: Dict[str, str] = None,
|
|
4039
|
+
status_code: int = None,
|
|
4040
|
+
body: DeleteSecurityProxyResponseBody = None,
|
|
4041
|
+
):
|
|
4042
|
+
self.headers = headers
|
|
4043
|
+
self.status_code = status_code
|
|
4044
|
+
self.body = body
|
|
4045
|
+
|
|
4046
|
+
def validate(self):
|
|
4047
|
+
if self.body:
|
|
4048
|
+
self.body.validate()
|
|
4049
|
+
|
|
4050
|
+
def to_map(self):
|
|
4051
|
+
_map = super().to_map()
|
|
4052
|
+
if _map is not None:
|
|
4053
|
+
return _map
|
|
4054
|
+
|
|
4055
|
+
result = dict()
|
|
4056
|
+
if self.headers is not None:
|
|
4057
|
+
result['headers'] = self.headers
|
|
4058
|
+
if self.status_code is not None:
|
|
4059
|
+
result['statusCode'] = self.status_code
|
|
4060
|
+
if self.body is not None:
|
|
4061
|
+
result['body'] = self.body.to_map()
|
|
4062
|
+
return result
|
|
4063
|
+
|
|
4064
|
+
def from_map(self, m: dict = None):
|
|
4065
|
+
m = m or dict()
|
|
4066
|
+
if m.get('headers') is not None:
|
|
4067
|
+
self.headers = m.get('headers')
|
|
4068
|
+
if m.get('statusCode') is not None:
|
|
4069
|
+
self.status_code = m.get('statusCode')
|
|
4070
|
+
if m.get('body') is not None:
|
|
4071
|
+
temp_model = DeleteSecurityProxyResponseBody()
|
|
4072
|
+
self.body = temp_model.from_map(m['body'])
|
|
4073
|
+
return self
|
|
4074
|
+
|
|
4075
|
+
|
|
3845
4076
|
class DeleteTrFirewallV2Request(TeaModel):
|
|
3846
4077
|
def __init__(
|
|
3847
4078
|
self,
|
|
@@ -3964,6 +4195,8 @@ class DeleteVpcFirewallCenConfigureRequest(TeaModel):
|
|
|
3964
4195
|
# The UID of the member that is managed by your Alibaba Cloud account.
|
|
3965
4196
|
self.member_uid = member_uid
|
|
3966
4197
|
# The instance IDs of VPC firewalls.
|
|
4198
|
+
#
|
|
4199
|
+
# This parameter is required.
|
|
3967
4200
|
self.vpc_firewall_id_list = vpc_firewall_id_list
|
|
3968
4201
|
|
|
3969
4202
|
def validate(self):
|
|
@@ -4078,6 +4311,8 @@ class DeleteVpcFirewallConfigureRequest(TeaModel):
|
|
|
4078
4311
|
# The UID of the member that is managed by your Alibaba Cloud account.
|
|
4079
4312
|
self.member_uid = member_uid
|
|
4080
4313
|
# The instance IDs of VPC firewalls.
|
|
4314
|
+
#
|
|
4315
|
+
# This parameter is required.
|
|
4081
4316
|
self.vpc_firewall_id_list = vpc_firewall_id_list
|
|
4082
4317
|
|
|
4083
4318
|
def validate(self):
|
|
@@ -4187,6 +4422,8 @@ class DeleteVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
4187
4422
|
# The ID of the access control policy.
|
|
4188
4423
|
#
|
|
4189
4424
|
# To delete an access control policy, you must provide the ID of the policy. You can call the **DescribeVpcFirewallControlPolicy** operation to query the ID.
|
|
4425
|
+
#
|
|
4426
|
+
# This parameter is required.
|
|
4190
4427
|
self.acl_uuid = acl_uuid
|
|
4191
4428
|
# The natural language of the request and response. Valid values:
|
|
4192
4429
|
#
|
|
@@ -4203,6 +4440,8 @@ class DeleteVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
4203
4440
|
# - If the VPC firewall is used to protect an Express Connect circuit, the value of this parameter is the ID of the VPC firewall.
|
|
4204
4441
|
#
|
|
4205
4442
|
# Example: vfw-a42bbb7b887148c9****\
|
|
4443
|
+
#
|
|
4444
|
+
# This parameter is required.
|
|
4206
4445
|
self.vpc_firewall_id = vpc_firewall_id
|
|
4207
4446
|
|
|
4208
4447
|
def validate(self):
|
|
@@ -4857,6 +5096,8 @@ class DescribeAssetListRequest(TeaModel):
|
|
|
4857
5096
|
user_type: str = None,
|
|
4858
5097
|
):
|
|
4859
5098
|
# The page number. Valid values: 1 to 50.
|
|
5099
|
+
#
|
|
5100
|
+
# This parameter is required.
|
|
4860
5101
|
self.current_page = current_page
|
|
4861
5102
|
# The IP version of the asset that is protected by Cloud Firewall. Valid values:
|
|
4862
5103
|
#
|
|
@@ -4877,10 +5118,12 @@ class DescribeAssetListRequest(TeaModel):
|
|
|
4877
5118
|
# * **discovered in 7 days**: within seven days.
|
|
4878
5119
|
self.new_resource_tag = new_resource_tag
|
|
4879
5120
|
# The number of entries per page. Valid values: 1 to 50.
|
|
5121
|
+
#
|
|
5122
|
+
# This parameter is required.
|
|
4880
5123
|
self.page_size = page_size
|
|
4881
5124
|
# The region ID of your Cloud Firewall.
|
|
4882
5125
|
#
|
|
4883
|
-
# > For more information about the regions, see [Supported regions](
|
|
5126
|
+
# > For more information about the regions, see [Supported regions](https://help.aliyun.com/document_detail/195657.html).
|
|
4884
5127
|
self.region_no = region_no
|
|
4885
5128
|
# The type of the asset. Valid values:
|
|
4886
5129
|
#
|
|
@@ -5311,7 +5554,7 @@ class DescribeAssetRiskListRequest(TeaModel):
|
|
|
5311
5554
|
#
|
|
5312
5555
|
# * Example of an IPv4 address: 47.97.221.164
|
|
5313
5556
|
#
|
|
5314
|
-
# * Example of an IPv6 address: 2001:db8:ffff:ffff:ffff
|
|
5557
|
+
# * Example of an IPv6 address: 2001:db8:ffff:ffff:ffff:\\*\\*\\*\\*:ffff
|
|
5315
5558
|
self.ip_addr_list = ip_addr_list
|
|
5316
5559
|
# The IP version of the asset that is protected by Cloud Firewall.
|
|
5317
5560
|
#
|
|
@@ -5319,6 +5562,8 @@ class DescribeAssetRiskListRequest(TeaModel):
|
|
|
5319
5562
|
#
|
|
5320
5563
|
# * **4** (default): IPv4
|
|
5321
5564
|
# * **6**: IPv6
|
|
5565
|
+
#
|
|
5566
|
+
# This parameter is required.
|
|
5322
5567
|
self.ip_version = ip_version
|
|
5323
5568
|
# The language of the content within the response. Valid values:
|
|
5324
5569
|
#
|
|
@@ -5527,7 +5772,7 @@ class DescribeCfwRiskLevelSummaryRequest(TeaModel):
|
|
|
5527
5772
|
self.lang = lang
|
|
5528
5773
|
# The region ID of your Cloud Firewall.
|
|
5529
5774
|
#
|
|
5530
|
-
# > For more information about Cloud Firewall supported regions, see [Supported regions](
|
|
5775
|
+
# > For more information about Cloud Firewall supported regions, see [Supported regions](https://help.aliyun.com/document_detail/195657.html).
|
|
5531
5776
|
self.region_id = region_id
|
|
5532
5777
|
|
|
5533
5778
|
def validate(self):
|
|
@@ -5716,6 +5961,8 @@ class DescribeControlPolicyRequest(TeaModel):
|
|
|
5716
5961
|
# The number of the page to return.
|
|
5717
5962
|
#
|
|
5718
5963
|
# Default value: 1.
|
|
5964
|
+
#
|
|
5965
|
+
# This parameter is required.
|
|
5719
5966
|
self.current_page = current_page
|
|
5720
5967
|
# The description of the access control policy. Fuzzy match is supported.
|
|
5721
5968
|
#
|
|
@@ -5734,6 +5981,8 @@ class DescribeControlPolicyRequest(TeaModel):
|
|
|
5734
5981
|
#
|
|
5735
5982
|
# * **in**: inbound traffic
|
|
5736
5983
|
# * **out**: outbound traffic
|
|
5984
|
+
#
|
|
5985
|
+
# This parameter is required.
|
|
5737
5986
|
self.direction = direction
|
|
5738
5987
|
# The IP version of the address in the access control policy. Valid values:
|
|
5739
5988
|
#
|
|
@@ -5746,6 +5995,8 @@ class DescribeControlPolicyRequest(TeaModel):
|
|
|
5746
5995
|
# * **en**: English
|
|
5747
5996
|
self.lang = lang
|
|
5748
5997
|
# The number of entries to return on each page.
|
|
5998
|
+
#
|
|
5999
|
+
# This parameter is required.
|
|
5749
6000
|
self.page_size = page_size
|
|
5750
6001
|
# The type of the protocol in the access control policy. Valid values:
|
|
5751
6002
|
#
|
|
@@ -5936,7 +6187,7 @@ class DescribeControlPolicyResponseBodyPolicys(TeaModel):
|
|
|
5936
6187
|
# * If **DestinationType** is set to **net**, the value of Destination is a CIDR block. Example: 192.0.XX.XX/24.
|
|
5937
6188
|
# * If **DestinationType** is set to **domain**, the value of Destination is a domain name. Example: aliyuncs.com.
|
|
5938
6189
|
# * If **DestinationType** is set to **group**, the value of Destination is the name of an address book. Example: db_group.
|
|
5939
|
-
# * If **DestinationType** is set to **location**, the value of Destination is a location. For more information about location codes, see [AddControlPolicy](
|
|
6190
|
+
# * If **DestinationType** is set to **location**, the value of Destination is a location. For more information about location codes, see [AddControlPolicy](https://help.aliyun.com/document_detail/138867.html). Example: ["BJ11", "ZB"].
|
|
5940
6191
|
self.destination = destination
|
|
5941
6192
|
# The CIDR blocks in the destination address book.
|
|
5942
6193
|
self.destination_group_cidrs = destination_group_cidrs
|
|
@@ -5997,12 +6248,12 @@ class DescribeControlPolicyResponseBodyPolicys(TeaModel):
|
|
|
5997
6248
|
self.release = release
|
|
5998
6249
|
# The days of a week or of a month on which the access control policy takes effect.
|
|
5999
6250
|
#
|
|
6000
|
-
# * If RepeatType is set to `Permanent`, `None`, or `Daily`, this parameter is left empty. Example:
|
|
6001
|
-
# * If RepeatType is set to Weekly, this parameter must be specified. Example:
|
|
6251
|
+
# * If RepeatType is set to `Permanent`, `None`, or `Daily`, this parameter is left empty. Example: [].
|
|
6252
|
+
# * If RepeatType is set to Weekly, this parameter must be specified. Example: [0, 6].
|
|
6002
6253
|
#
|
|
6003
6254
|
# > If RepeatType is set to Weekly, the fields in the value of RepeatDays cannot be repeated.
|
|
6004
6255
|
#
|
|
6005
|
-
# * If RepeatType is set to `Monthly`, this parameter must be specified. Example:
|
|
6256
|
+
# * If RepeatType is set to `Monthly`, this parameter must be specified. Example: [1, 31].
|
|
6006
6257
|
#
|
|
6007
6258
|
# > If RepeatType is set to Monthly, the fields in the value of RepeatDays cannot be repeated.
|
|
6008
6259
|
self.repeat_days = repeat_days
|
|
@@ -6026,7 +6277,7 @@ class DescribeControlPolicyResponseBodyPolicys(TeaModel):
|
|
|
6026
6277
|
#
|
|
6027
6278
|
# * If **SourceType** is set to `net`, the value of Source is a CIDR block. Example: 192.0.XX.XX/24.
|
|
6028
6279
|
# * If **SourceType** is set to `group`, the value of Source is the name of an address book. Example: db_group.
|
|
6029
|
-
# * If **SourceType** is set to `location`, the value of Source is a location. For more information about location codes, see [AddControlPolicy](
|
|
6280
|
+
# * If **SourceType** is set to `location`, the value of Source is a location. For more information about location codes, see [AddControlPolicy](https://help.aliyun.com/document_detail/138867.html). Example: ["BJ11", "ZB"].
|
|
6030
6281
|
self.source = source
|
|
6031
6282
|
# The CIDR blocks in the source address book.
|
|
6032
6283
|
self.source_group_cidrs = source_group_cidrs
|
|
@@ -6474,6 +6725,8 @@ class DescribeDomainResolveRequest(TeaModel):
|
|
|
6474
6725
|
source_ip: str = None,
|
|
6475
6726
|
):
|
|
6476
6727
|
# The domain name whose DNS record you want to query.
|
|
6728
|
+
#
|
|
6729
|
+
# This parameter is required.
|
|
6477
6730
|
self.domain = domain
|
|
6478
6731
|
# The IP version of the asset that is protected by Cloud Firewall. Valid values:
|
|
6479
6732
|
#
|
|
@@ -7597,6 +7850,8 @@ class DescribeInternetOpenIpRequest(TeaModel):
|
|
|
7597
7850
|
# The asset type of the instance.
|
|
7598
7851
|
self.assets_type = assets_type
|
|
7599
7852
|
# The page number.
|
|
7853
|
+
#
|
|
7854
|
+
# This parameter is required.
|
|
7600
7855
|
self.current_page = current_page
|
|
7601
7856
|
# The end of the time range to query. The value is a UNIX timestamp. Unit: seconds.
|
|
7602
7857
|
self.end_time = end_time
|
|
@@ -7606,6 +7861,8 @@ class DescribeInternetOpenIpRequest(TeaModel):
|
|
|
7606
7861
|
# * **en**: English
|
|
7607
7862
|
self.lang = lang
|
|
7608
7863
|
# The number of entries per page.
|
|
7864
|
+
#
|
|
7865
|
+
# This parameter is required.
|
|
7609
7866
|
self.page_size = page_size
|
|
7610
7867
|
# The port number.
|
|
7611
7868
|
self.port = port
|
|
@@ -7989,6 +8246,8 @@ class DescribeInternetTrafficTrendRequest(TeaModel):
|
|
|
7989
8246
|
# * **out**: outbound traffic
|
|
7990
8247
|
self.direction = direction
|
|
7991
8248
|
# The end of the time range to query. The value is a UNIX timestamp. Unit: seconds.
|
|
8249
|
+
#
|
|
8250
|
+
# This parameter is required.
|
|
7992
8251
|
self.end_time = end_time
|
|
7993
8252
|
# The language of the content in the request and response. Valid values:
|
|
7994
8253
|
#
|
|
@@ -7996,6 +8255,8 @@ class DescribeInternetTrafficTrendRequest(TeaModel):
|
|
|
7996
8255
|
# * **en**: English
|
|
7997
8256
|
self.lang = lang
|
|
7998
8257
|
# The source code.
|
|
8258
|
+
#
|
|
8259
|
+
# This parameter is required.
|
|
7999
8260
|
self.source_code = source_code
|
|
8000
8261
|
# The IP address of the access source.
|
|
8001
8262
|
self.source_ip = source_ip
|
|
@@ -8004,6 +8265,8 @@ class DescribeInternetTrafficTrendRequest(TeaModel):
|
|
|
8004
8265
|
# The public IP address of the source.
|
|
8005
8266
|
self.src_public_ip = src_public_ip
|
|
8006
8267
|
# The beginning of the time range to query. The value is a UNIX timestamp. Unit: seconds.
|
|
8268
|
+
#
|
|
8269
|
+
# This parameter is required.
|
|
8007
8270
|
self.start_time = start_time
|
|
8008
8271
|
# The type of the traffic that is captured. Valid values:
|
|
8009
8272
|
#
|
|
@@ -8944,13 +9207,15 @@ class DescribeNatFirewallControlPolicyRequest(TeaModel):
|
|
|
8944
9207
|
# * If DestinationType is set to `net`, the value of Destination must be a CIDR block. Example: 10.0.3.0/24.
|
|
8945
9208
|
# * If DestinationType is set to `domain`, the value of Destination must be a domain name. Example: aliyun.
|
|
8946
9209
|
# * If DestinationType is set to `group`, the value of Destination must be the name of an address book. Example: db_group.
|
|
8947
|
-
# * If DestinationType is set to `location`, the value of Destination is a location. For more information about location codes, see [AddControlPolicy](
|
|
9210
|
+
# * If DestinationType is set to `location`, the value of Destination is a location. For more information about location codes, see [AddControlPolicy](https://help.aliyun.com/document_detail/474128.html). Example: ["BJ11", "ZB"].
|
|
8948
9211
|
#
|
|
8949
9212
|
# > If you do not specify this parameter, all types of destination addresses are queried.
|
|
8950
9213
|
self.destination = destination
|
|
8951
9214
|
# The direction of the traffic to which the access control policy applies. Valid values:
|
|
8952
9215
|
#
|
|
8953
9216
|
# * **out**: outbound traffic
|
|
9217
|
+
#
|
|
9218
|
+
# This parameter is required.
|
|
8954
9219
|
self.direction = direction
|
|
8955
9220
|
# The language of the content within the response. Valid values:
|
|
8956
9221
|
#
|
|
@@ -8958,6 +9223,8 @@ class DescribeNatFirewallControlPolicyRequest(TeaModel):
|
|
|
8958
9223
|
# * **en**: English
|
|
8959
9224
|
self.lang = lang
|
|
8960
9225
|
# The ID of the NAT gateway.
|
|
9226
|
+
#
|
|
9227
|
+
# This parameter is required.
|
|
8961
9228
|
self.nat_gateway_id = nat_gateway_id
|
|
8962
9229
|
# The number of entries per page. Default value: 10.
|
|
8963
9230
|
self.page_size = page_size
|
|
@@ -9128,7 +9395,7 @@ class DescribeNatFirewallControlPolicyResponseBodyPolicys(TeaModel):
|
|
|
9128
9395
|
# * If the value of **DestinationType** is **net**, the value of this parameter is a CIDR block. Example: 192.0.XX.XX/24.
|
|
9129
9396
|
# * If the value of **DestinationType** is **domain**, the value of this parameter is a domain name. Example: aliyuncs.com.
|
|
9130
9397
|
# * If the value of **DestinationType** is **group**, the value of this parameter is the name of an address book. Example: db_group.
|
|
9131
|
-
# * If the value of **DestinationType** is **location**, the value of this parameter is a location. For more information about location codes, see [AddControlPolicy](
|
|
9398
|
+
# * If the value of **DestinationType** is **location**, the value of this parameter is a location. For more information about location codes, see [AddControlPolicy](https://help.aliyun.com/document_detail/138867.html). Example: ["BJ11", "ZB"].
|
|
9132
9399
|
self.destination = destination
|
|
9133
9400
|
# The CIDR blocks in the destination address book.
|
|
9134
9401
|
self.destination_group_cidrs = destination_group_cidrs
|
|
@@ -9184,12 +9451,12 @@ class DescribeNatFirewallControlPolicyResponseBodyPolicys(TeaModel):
|
|
|
9184
9451
|
self.release = release
|
|
9185
9452
|
# The days of a week or of a month on which the access control policy takes effect.
|
|
9186
9453
|
#
|
|
9187
|
-
# * If RepeatType is set to `Permanent`, `None`, or `Daily`, the value of this parameter is an empty array. Example:
|
|
9188
|
-
# * If RepeatType is set to Weekly, this parameter must be specified. Example:
|
|
9454
|
+
# * If RepeatType is set to `Permanent`, `None`, or `Daily`, the value of this parameter is an empty array. Example: [].
|
|
9455
|
+
# * If RepeatType is set to Weekly, this parameter must be specified. Example: [0, 6].
|
|
9189
9456
|
#
|
|
9190
9457
|
# > If RepeatType is set to Weekly, the fields in the value of this parameter cannot be repeated.
|
|
9191
9458
|
#
|
|
9192
|
-
# * If RepeatType is set to `Monthly`, this parameter must be specified. Example:
|
|
9459
|
+
# * If RepeatType is set to `Monthly`, this parameter must be specified. Example: [1, 31].
|
|
9193
9460
|
#
|
|
9194
9461
|
# > If RepeatType is set to Monthly, the fields in the value of this parameter cannot be repeated.
|
|
9195
9462
|
self.repeat_days = repeat_days
|
|
@@ -9213,7 +9480,7 @@ class DescribeNatFirewallControlPolicyResponseBodyPolicys(TeaModel):
|
|
|
9213
9480
|
#
|
|
9214
9481
|
# * If the value of **SourceType** is `net`, the value of this parameter is a CIDR block. Example: 192.0.XX.XX/24.
|
|
9215
9482
|
# * If the value of **SourceType** is `group`, the value of this parameter is the name of an address book. Example: db_group.
|
|
9216
|
-
# * If the value of **SourceType** is `location`, the value of this parameter is a location. For more information about location codes, see [AddControlPolicy](
|
|
9483
|
+
# * If the value of **SourceType** is `location`, the value of this parameter is a location. For more information about location codes, see [AddControlPolicy](https://help.aliyun.com/document_detail/138867.html). Example: ["BJ11", "ZB"].
|
|
9217
9484
|
self.source = source
|
|
9218
9485
|
# The CIDR blocks in the source address book.
|
|
9219
9486
|
self.source_group_cidrs = source_group_cidrs
|
|
@@ -9355,52 +9622,314 @@ class DescribeNatFirewallControlPolicyResponseBodyPolicys(TeaModel):
|
|
|
9355
9622
|
self.modify_time = m.get('ModifyTime')
|
|
9356
9623
|
if m.get('NatGatewayId') is not None:
|
|
9357
9624
|
self.nat_gateway_id = m.get('NatGatewayId')
|
|
9358
|
-
if m.get('Order') is not None:
|
|
9359
|
-
self.order = m.get('Order')
|
|
9360
|
-
if m.get('Proto') is not None:
|
|
9361
|
-
self.proto = m.get('Proto')
|
|
9362
|
-
if m.get('Release') is not None:
|
|
9363
|
-
self.release = m.get('Release')
|
|
9364
|
-
if m.get('RepeatDays') is not None:
|
|
9365
|
-
self.repeat_days = m.get('RepeatDays')
|
|
9366
|
-
if m.get('RepeatEndTime') is not None:
|
|
9367
|
-
self.repeat_end_time = m.get('RepeatEndTime')
|
|
9368
|
-
if m.get('RepeatStartTime') is not None:
|
|
9369
|
-
self.repeat_start_time = m.get('RepeatStartTime')
|
|
9370
|
-
if m.get('RepeatType') is not None:
|
|
9371
|
-
self.repeat_type = m.get('RepeatType')
|
|
9372
|
-
if m.get('Source') is not None:
|
|
9373
|
-
self.source = m.get('Source')
|
|
9374
|
-
if m.get('SourceGroupCidrs') is not None:
|
|
9375
|
-
self.source_group_cidrs = m.get('SourceGroupCidrs')
|
|
9376
|
-
if m.get('SourceGroupType') is not None:
|
|
9377
|
-
self.source_group_type = m.get('SourceGroupType')
|
|
9378
|
-
if m.get('SourceType') is not None:
|
|
9379
|
-
self.source_type = m.get('SourceType')
|
|
9380
|
-
if m.get('SpreadCnt') is not None:
|
|
9381
|
-
self.spread_cnt = m.get('SpreadCnt')
|
|
9382
|
-
if m.get('StartTime') is not None:
|
|
9383
|
-
self.start_time = m.get('StartTime')
|
|
9625
|
+
if m.get('Order') is not None:
|
|
9626
|
+
self.order = m.get('Order')
|
|
9627
|
+
if m.get('Proto') is not None:
|
|
9628
|
+
self.proto = m.get('Proto')
|
|
9629
|
+
if m.get('Release') is not None:
|
|
9630
|
+
self.release = m.get('Release')
|
|
9631
|
+
if m.get('RepeatDays') is not None:
|
|
9632
|
+
self.repeat_days = m.get('RepeatDays')
|
|
9633
|
+
if m.get('RepeatEndTime') is not None:
|
|
9634
|
+
self.repeat_end_time = m.get('RepeatEndTime')
|
|
9635
|
+
if m.get('RepeatStartTime') is not None:
|
|
9636
|
+
self.repeat_start_time = m.get('RepeatStartTime')
|
|
9637
|
+
if m.get('RepeatType') is not None:
|
|
9638
|
+
self.repeat_type = m.get('RepeatType')
|
|
9639
|
+
if m.get('Source') is not None:
|
|
9640
|
+
self.source = m.get('Source')
|
|
9641
|
+
if m.get('SourceGroupCidrs') is not None:
|
|
9642
|
+
self.source_group_cidrs = m.get('SourceGroupCidrs')
|
|
9643
|
+
if m.get('SourceGroupType') is not None:
|
|
9644
|
+
self.source_group_type = m.get('SourceGroupType')
|
|
9645
|
+
if m.get('SourceType') is not None:
|
|
9646
|
+
self.source_type = m.get('SourceType')
|
|
9647
|
+
if m.get('SpreadCnt') is not None:
|
|
9648
|
+
self.spread_cnt = m.get('SpreadCnt')
|
|
9649
|
+
if m.get('StartTime') is not None:
|
|
9650
|
+
self.start_time = m.get('StartTime')
|
|
9651
|
+
return self
|
|
9652
|
+
|
|
9653
|
+
|
|
9654
|
+
class DescribeNatFirewallControlPolicyResponseBody(TeaModel):
|
|
9655
|
+
def __init__(
|
|
9656
|
+
self,
|
|
9657
|
+
policys: List[DescribeNatFirewallControlPolicyResponseBodyPolicys] = None,
|
|
9658
|
+
request_id: str = None,
|
|
9659
|
+
total_count: str = None,
|
|
9660
|
+
):
|
|
9661
|
+
# The information about the access control policies.
|
|
9662
|
+
self.policys = policys
|
|
9663
|
+
# The request ID.
|
|
9664
|
+
self.request_id = request_id
|
|
9665
|
+
# The total number of entries returned.
|
|
9666
|
+
self.total_count = total_count
|
|
9667
|
+
|
|
9668
|
+
def validate(self):
|
|
9669
|
+
if self.policys:
|
|
9670
|
+
for k in self.policys:
|
|
9671
|
+
if k:
|
|
9672
|
+
k.validate()
|
|
9673
|
+
|
|
9674
|
+
def to_map(self):
|
|
9675
|
+
_map = super().to_map()
|
|
9676
|
+
if _map is not None:
|
|
9677
|
+
return _map
|
|
9678
|
+
|
|
9679
|
+
result = dict()
|
|
9680
|
+
result['Policys'] = []
|
|
9681
|
+
if self.policys is not None:
|
|
9682
|
+
for k in self.policys:
|
|
9683
|
+
result['Policys'].append(k.to_map() if k else None)
|
|
9684
|
+
if self.request_id is not None:
|
|
9685
|
+
result['RequestId'] = self.request_id
|
|
9686
|
+
if self.total_count is not None:
|
|
9687
|
+
result['TotalCount'] = self.total_count
|
|
9688
|
+
return result
|
|
9689
|
+
|
|
9690
|
+
def from_map(self, m: dict = None):
|
|
9691
|
+
m = m or dict()
|
|
9692
|
+
self.policys = []
|
|
9693
|
+
if m.get('Policys') is not None:
|
|
9694
|
+
for k in m.get('Policys'):
|
|
9695
|
+
temp_model = DescribeNatFirewallControlPolicyResponseBodyPolicys()
|
|
9696
|
+
self.policys.append(temp_model.from_map(k))
|
|
9697
|
+
if m.get('RequestId') is not None:
|
|
9698
|
+
self.request_id = m.get('RequestId')
|
|
9699
|
+
if m.get('TotalCount') is not None:
|
|
9700
|
+
self.total_count = m.get('TotalCount')
|
|
9701
|
+
return self
|
|
9702
|
+
|
|
9703
|
+
|
|
9704
|
+
class DescribeNatFirewallControlPolicyResponse(TeaModel):
|
|
9705
|
+
def __init__(
|
|
9706
|
+
self,
|
|
9707
|
+
headers: Dict[str, str] = None,
|
|
9708
|
+
status_code: int = None,
|
|
9709
|
+
body: DescribeNatFirewallControlPolicyResponseBody = None,
|
|
9710
|
+
):
|
|
9711
|
+
self.headers = headers
|
|
9712
|
+
self.status_code = status_code
|
|
9713
|
+
self.body = body
|
|
9714
|
+
|
|
9715
|
+
def validate(self):
|
|
9716
|
+
if self.body:
|
|
9717
|
+
self.body.validate()
|
|
9718
|
+
|
|
9719
|
+
def to_map(self):
|
|
9720
|
+
_map = super().to_map()
|
|
9721
|
+
if _map is not None:
|
|
9722
|
+
return _map
|
|
9723
|
+
|
|
9724
|
+
result = dict()
|
|
9725
|
+
if self.headers is not None:
|
|
9726
|
+
result['headers'] = self.headers
|
|
9727
|
+
if self.status_code is not None:
|
|
9728
|
+
result['statusCode'] = self.status_code
|
|
9729
|
+
if self.body is not None:
|
|
9730
|
+
result['body'] = self.body.to_map()
|
|
9731
|
+
return result
|
|
9732
|
+
|
|
9733
|
+
def from_map(self, m: dict = None):
|
|
9734
|
+
m = m or dict()
|
|
9735
|
+
if m.get('headers') is not None:
|
|
9736
|
+
self.headers = m.get('headers')
|
|
9737
|
+
if m.get('statusCode') is not None:
|
|
9738
|
+
self.status_code = m.get('statusCode')
|
|
9739
|
+
if m.get('body') is not None:
|
|
9740
|
+
temp_model = DescribeNatFirewallControlPolicyResponseBody()
|
|
9741
|
+
self.body = temp_model.from_map(m['body'])
|
|
9742
|
+
return self
|
|
9743
|
+
|
|
9744
|
+
|
|
9745
|
+
class DescribeNatFirewallListRequest(TeaModel):
|
|
9746
|
+
def __init__(
|
|
9747
|
+
self,
|
|
9748
|
+
lang: str = None,
|
|
9749
|
+
member_uid: int = None,
|
|
9750
|
+
nat_gateway_id: str = None,
|
|
9751
|
+
page_no: int = None,
|
|
9752
|
+
page_size: int = None,
|
|
9753
|
+
proxy_id: str = None,
|
|
9754
|
+
proxy_name: str = None,
|
|
9755
|
+
region_no: str = None,
|
|
9756
|
+
status: str = None,
|
|
9757
|
+
vpc_id: str = None,
|
|
9758
|
+
):
|
|
9759
|
+
self.lang = lang
|
|
9760
|
+
self.member_uid = member_uid
|
|
9761
|
+
self.nat_gateway_id = nat_gateway_id
|
|
9762
|
+
self.page_no = page_no
|
|
9763
|
+
self.page_size = page_size
|
|
9764
|
+
self.proxy_id = proxy_id
|
|
9765
|
+
self.proxy_name = proxy_name
|
|
9766
|
+
self.region_no = region_no
|
|
9767
|
+
self.status = status
|
|
9768
|
+
self.vpc_id = vpc_id
|
|
9769
|
+
|
|
9770
|
+
def validate(self):
|
|
9771
|
+
pass
|
|
9772
|
+
|
|
9773
|
+
def to_map(self):
|
|
9774
|
+
_map = super().to_map()
|
|
9775
|
+
if _map is not None:
|
|
9776
|
+
return _map
|
|
9777
|
+
|
|
9778
|
+
result = dict()
|
|
9779
|
+
if self.lang is not None:
|
|
9780
|
+
result['Lang'] = self.lang
|
|
9781
|
+
if self.member_uid is not None:
|
|
9782
|
+
result['MemberUid'] = self.member_uid
|
|
9783
|
+
if self.nat_gateway_id is not None:
|
|
9784
|
+
result['NatGatewayId'] = self.nat_gateway_id
|
|
9785
|
+
if self.page_no is not None:
|
|
9786
|
+
result['PageNo'] = self.page_no
|
|
9787
|
+
if self.page_size is not None:
|
|
9788
|
+
result['PageSize'] = self.page_size
|
|
9789
|
+
if self.proxy_id is not None:
|
|
9790
|
+
result['ProxyId'] = self.proxy_id
|
|
9791
|
+
if self.proxy_name is not None:
|
|
9792
|
+
result['ProxyName'] = self.proxy_name
|
|
9793
|
+
if self.region_no is not None:
|
|
9794
|
+
result['RegionNo'] = self.region_no
|
|
9795
|
+
if self.status is not None:
|
|
9796
|
+
result['Status'] = self.status
|
|
9797
|
+
if self.vpc_id is not None:
|
|
9798
|
+
result['VpcId'] = self.vpc_id
|
|
9799
|
+
return result
|
|
9800
|
+
|
|
9801
|
+
def from_map(self, m: dict = None):
|
|
9802
|
+
m = m or dict()
|
|
9803
|
+
if m.get('Lang') is not None:
|
|
9804
|
+
self.lang = m.get('Lang')
|
|
9805
|
+
if m.get('MemberUid') is not None:
|
|
9806
|
+
self.member_uid = m.get('MemberUid')
|
|
9807
|
+
if m.get('NatGatewayId') is not None:
|
|
9808
|
+
self.nat_gateway_id = m.get('NatGatewayId')
|
|
9809
|
+
if m.get('PageNo') is not None:
|
|
9810
|
+
self.page_no = m.get('PageNo')
|
|
9811
|
+
if m.get('PageSize') is not None:
|
|
9812
|
+
self.page_size = m.get('PageSize')
|
|
9813
|
+
if m.get('ProxyId') is not None:
|
|
9814
|
+
self.proxy_id = m.get('ProxyId')
|
|
9815
|
+
if m.get('ProxyName') is not None:
|
|
9816
|
+
self.proxy_name = m.get('ProxyName')
|
|
9817
|
+
if m.get('RegionNo') is not None:
|
|
9818
|
+
self.region_no = m.get('RegionNo')
|
|
9819
|
+
if m.get('Status') is not None:
|
|
9820
|
+
self.status = m.get('Status')
|
|
9821
|
+
if m.get('VpcId') is not None:
|
|
9822
|
+
self.vpc_id = m.get('VpcId')
|
|
9823
|
+
return self
|
|
9824
|
+
|
|
9825
|
+
|
|
9826
|
+
class DescribeNatFirewallListResponseBodyNatFirewallList(TeaModel):
|
|
9827
|
+
def __init__(
|
|
9828
|
+
self,
|
|
9829
|
+
ali_uid: int = None,
|
|
9830
|
+
error_detail: str = None,
|
|
9831
|
+
member_uid: int = None,
|
|
9832
|
+
nat_gateway_id: str = None,
|
|
9833
|
+
nat_gateway_name: str = None,
|
|
9834
|
+
proxy_id: str = None,
|
|
9835
|
+
proxy_name: str = None,
|
|
9836
|
+
proxy_status: str = None,
|
|
9837
|
+
region_id: str = None,
|
|
9838
|
+
strict_mode: int = None,
|
|
9839
|
+
vpc_id: str = None,
|
|
9840
|
+
vpc_name: str = None,
|
|
9841
|
+
):
|
|
9842
|
+
self.ali_uid = ali_uid
|
|
9843
|
+
self.error_detail = error_detail
|
|
9844
|
+
self.member_uid = member_uid
|
|
9845
|
+
self.nat_gateway_id = nat_gateway_id
|
|
9846
|
+
self.nat_gateway_name = nat_gateway_name
|
|
9847
|
+
self.proxy_id = proxy_id
|
|
9848
|
+
self.proxy_name = proxy_name
|
|
9849
|
+
self.proxy_status = proxy_status
|
|
9850
|
+
self.region_id = region_id
|
|
9851
|
+
self.strict_mode = strict_mode
|
|
9852
|
+
self.vpc_id = vpc_id
|
|
9853
|
+
self.vpc_name = vpc_name
|
|
9854
|
+
|
|
9855
|
+
def validate(self):
|
|
9856
|
+
pass
|
|
9857
|
+
|
|
9858
|
+
def to_map(self):
|
|
9859
|
+
_map = super().to_map()
|
|
9860
|
+
if _map is not None:
|
|
9861
|
+
return _map
|
|
9862
|
+
|
|
9863
|
+
result = dict()
|
|
9864
|
+
if self.ali_uid is not None:
|
|
9865
|
+
result['AliUid'] = self.ali_uid
|
|
9866
|
+
if self.error_detail is not None:
|
|
9867
|
+
result['ErrorDetail'] = self.error_detail
|
|
9868
|
+
if self.member_uid is not None:
|
|
9869
|
+
result['MemberUid'] = self.member_uid
|
|
9870
|
+
if self.nat_gateway_id is not None:
|
|
9871
|
+
result['NatGatewayId'] = self.nat_gateway_id
|
|
9872
|
+
if self.nat_gateway_name is not None:
|
|
9873
|
+
result['NatGatewayName'] = self.nat_gateway_name
|
|
9874
|
+
if self.proxy_id is not None:
|
|
9875
|
+
result['ProxyId'] = self.proxy_id
|
|
9876
|
+
if self.proxy_name is not None:
|
|
9877
|
+
result['ProxyName'] = self.proxy_name
|
|
9878
|
+
if self.proxy_status is not None:
|
|
9879
|
+
result['ProxyStatus'] = self.proxy_status
|
|
9880
|
+
if self.region_id is not None:
|
|
9881
|
+
result['RegionId'] = self.region_id
|
|
9882
|
+
if self.strict_mode is not None:
|
|
9883
|
+
result['StrictMode'] = self.strict_mode
|
|
9884
|
+
if self.vpc_id is not None:
|
|
9885
|
+
result['VpcId'] = self.vpc_id
|
|
9886
|
+
if self.vpc_name is not None:
|
|
9887
|
+
result['VpcName'] = self.vpc_name
|
|
9888
|
+
return result
|
|
9889
|
+
|
|
9890
|
+
def from_map(self, m: dict = None):
|
|
9891
|
+
m = m or dict()
|
|
9892
|
+
if m.get('AliUid') is not None:
|
|
9893
|
+
self.ali_uid = m.get('AliUid')
|
|
9894
|
+
if m.get('ErrorDetail') is not None:
|
|
9895
|
+
self.error_detail = m.get('ErrorDetail')
|
|
9896
|
+
if m.get('MemberUid') is not None:
|
|
9897
|
+
self.member_uid = m.get('MemberUid')
|
|
9898
|
+
if m.get('NatGatewayId') is not None:
|
|
9899
|
+
self.nat_gateway_id = m.get('NatGatewayId')
|
|
9900
|
+
if m.get('NatGatewayName') is not None:
|
|
9901
|
+
self.nat_gateway_name = m.get('NatGatewayName')
|
|
9902
|
+
if m.get('ProxyId') is not None:
|
|
9903
|
+
self.proxy_id = m.get('ProxyId')
|
|
9904
|
+
if m.get('ProxyName') is not None:
|
|
9905
|
+
self.proxy_name = m.get('ProxyName')
|
|
9906
|
+
if m.get('ProxyStatus') is not None:
|
|
9907
|
+
self.proxy_status = m.get('ProxyStatus')
|
|
9908
|
+
if m.get('RegionId') is not None:
|
|
9909
|
+
self.region_id = m.get('RegionId')
|
|
9910
|
+
if m.get('StrictMode') is not None:
|
|
9911
|
+
self.strict_mode = m.get('StrictMode')
|
|
9912
|
+
if m.get('VpcId') is not None:
|
|
9913
|
+
self.vpc_id = m.get('VpcId')
|
|
9914
|
+
if m.get('VpcName') is not None:
|
|
9915
|
+
self.vpc_name = m.get('VpcName')
|
|
9384
9916
|
return self
|
|
9385
9917
|
|
|
9386
9918
|
|
|
9387
|
-
class
|
|
9919
|
+
class DescribeNatFirewallListResponseBody(TeaModel):
|
|
9388
9920
|
def __init__(
|
|
9389
9921
|
self,
|
|
9390
|
-
|
|
9922
|
+
nat_firewall_list: List[DescribeNatFirewallListResponseBodyNatFirewallList] = None,
|
|
9391
9923
|
request_id: str = None,
|
|
9392
|
-
total_count:
|
|
9924
|
+
total_count: int = None,
|
|
9393
9925
|
):
|
|
9394
|
-
|
|
9395
|
-
self.policys = policys
|
|
9396
|
-
# The request ID.
|
|
9926
|
+
self.nat_firewall_list = nat_firewall_list
|
|
9397
9927
|
self.request_id = request_id
|
|
9398
|
-
# The total number of entries returned.
|
|
9399
9928
|
self.total_count = total_count
|
|
9400
9929
|
|
|
9401
9930
|
def validate(self):
|
|
9402
|
-
if self.
|
|
9403
|
-
for k in self.
|
|
9931
|
+
if self.nat_firewall_list:
|
|
9932
|
+
for k in self.nat_firewall_list:
|
|
9404
9933
|
if k:
|
|
9405
9934
|
k.validate()
|
|
9406
9935
|
|
|
@@ -9410,10 +9939,10 @@ class DescribeNatFirewallControlPolicyResponseBody(TeaModel):
|
|
|
9410
9939
|
return _map
|
|
9411
9940
|
|
|
9412
9941
|
result = dict()
|
|
9413
|
-
result['
|
|
9414
|
-
if self.
|
|
9415
|
-
for k in self.
|
|
9416
|
-
result['
|
|
9942
|
+
result['NatFirewallList'] = []
|
|
9943
|
+
if self.nat_firewall_list is not None:
|
|
9944
|
+
for k in self.nat_firewall_list:
|
|
9945
|
+
result['NatFirewallList'].append(k.to_map() if k else None)
|
|
9417
9946
|
if self.request_id is not None:
|
|
9418
9947
|
result['RequestId'] = self.request_id
|
|
9419
9948
|
if self.total_count is not None:
|
|
@@ -9422,11 +9951,11 @@ class DescribeNatFirewallControlPolicyResponseBody(TeaModel):
|
|
|
9422
9951
|
|
|
9423
9952
|
def from_map(self, m: dict = None):
|
|
9424
9953
|
m = m or dict()
|
|
9425
|
-
self.
|
|
9426
|
-
if m.get('
|
|
9427
|
-
for k in m.get('
|
|
9428
|
-
temp_model =
|
|
9429
|
-
self.
|
|
9954
|
+
self.nat_firewall_list = []
|
|
9955
|
+
if m.get('NatFirewallList') is not None:
|
|
9956
|
+
for k in m.get('NatFirewallList'):
|
|
9957
|
+
temp_model = DescribeNatFirewallListResponseBodyNatFirewallList()
|
|
9958
|
+
self.nat_firewall_list.append(temp_model.from_map(k))
|
|
9430
9959
|
if m.get('RequestId') is not None:
|
|
9431
9960
|
self.request_id = m.get('RequestId')
|
|
9432
9961
|
if m.get('TotalCount') is not None:
|
|
@@ -9434,12 +9963,12 @@ class DescribeNatFirewallControlPolicyResponseBody(TeaModel):
|
|
|
9434
9963
|
return self
|
|
9435
9964
|
|
|
9436
9965
|
|
|
9437
|
-
class
|
|
9966
|
+
class DescribeNatFirewallListResponse(TeaModel):
|
|
9438
9967
|
def __init__(
|
|
9439
9968
|
self,
|
|
9440
9969
|
headers: Dict[str, str] = None,
|
|
9441
9970
|
status_code: int = None,
|
|
9442
|
-
body:
|
|
9971
|
+
body: DescribeNatFirewallListResponseBody = None,
|
|
9443
9972
|
):
|
|
9444
9973
|
self.headers = headers
|
|
9445
9974
|
self.status_code = status_code
|
|
@@ -9470,7 +9999,7 @@ class DescribeNatFirewallControlPolicyResponse(TeaModel):
|
|
|
9470
9999
|
if m.get('statusCode') is not None:
|
|
9471
10000
|
self.status_code = m.get('statusCode')
|
|
9472
10001
|
if m.get('body') is not None:
|
|
9473
|
-
temp_model =
|
|
10002
|
+
temp_model = DescribeNatFirewallListResponseBody()
|
|
9474
10003
|
self.body = temp_model.from_map(m['body'])
|
|
9475
10004
|
return self
|
|
9476
10005
|
|
|
@@ -9488,6 +10017,8 @@ class DescribeNatFirewallPolicyPriorUsedRequest(TeaModel):
|
|
|
9488
10017
|
# Valid values:
|
|
9489
10018
|
#
|
|
9490
10019
|
# * **out**: outbound traffic
|
|
10020
|
+
#
|
|
10021
|
+
# This parameter is required.
|
|
9491
10022
|
self.direction = direction
|
|
9492
10023
|
# The IP version supported by the access control policy. Valid values:
|
|
9493
10024
|
#
|
|
@@ -9499,6 +10030,8 @@ class DescribeNatFirewallPolicyPriorUsedRequest(TeaModel):
|
|
|
9499
10030
|
# * **en**: English
|
|
9500
10031
|
self.lang = lang
|
|
9501
10032
|
# The ID of the NAT gateway.
|
|
10033
|
+
#
|
|
10034
|
+
# This parameter is required.
|
|
9502
10035
|
self.nat_gateway_id = nat_gateway_id
|
|
9503
10036
|
|
|
9504
10037
|
def validate(self):
|
|
@@ -9669,6 +10202,8 @@ class DescribeOutgoingDestinationIPRequest(TeaModel):
|
|
|
9669
10202
|
# The destination IP address in the outbound connection that is initiated to access a domain name.
|
|
9670
10203
|
self.dst_ip = dst_ip
|
|
9671
10204
|
# The end of the time range to query. The value is a UNIX timestamp. Unit: seconds.
|
|
10205
|
+
#
|
|
10206
|
+
# This parameter is required.
|
|
9672
10207
|
self.end_time = end_time
|
|
9673
10208
|
# The language of the content within the response. Valid values:
|
|
9674
10209
|
#
|
|
@@ -9696,6 +10231,8 @@ class DescribeOutgoingDestinationIPRequest(TeaModel):
|
|
|
9696
10231
|
# * **TotalBytes**: the total volume of traffic.
|
|
9697
10232
|
self.sort = sort
|
|
9698
10233
|
# The beginning of the time range to query. The value is a UNIX timestamp. Unit: seconds.
|
|
10234
|
+
#
|
|
10235
|
+
# This parameter is required.
|
|
9699
10236
|
self.start_time = start_time
|
|
9700
10237
|
# The ID of the tag. Valid values:
|
|
9701
10238
|
#
|
|
@@ -9728,7 +10265,7 @@ class DescribeOutgoingDestinationIPRequest(TeaModel):
|
|
|
9728
10265
|
# * **Rogue**: rogue software
|
|
9729
10266
|
# * **Botnet**: botnet
|
|
9730
10267
|
# * **Suspicious**: suspicious website
|
|
9731
|
-
# * **C
|
|
10268
|
+
# * **C\\&C**: command and control (C\\&C)
|
|
9732
10269
|
# * **Gang**: gang
|
|
9733
10270
|
# * **CVE**: Common Vulnerabilities and Exposures (CVE)
|
|
9734
10271
|
# * **Backdoor**: webshell
|
|
@@ -10313,6 +10850,8 @@ class DescribeOutgoingDomainRequest(TeaModel):
|
|
|
10313
10850
|
# The domain name in outbound connections.
|
|
10314
10851
|
self.domain = domain
|
|
10315
10852
|
# The end of the time range to query. The value is a UNIX timestamp. Unit: seconds.
|
|
10853
|
+
#
|
|
10854
|
+
# This parameter is required.
|
|
10316
10855
|
self.end_time = end_time
|
|
10317
10856
|
# The language of the content within the request. Valid values:
|
|
10318
10857
|
#
|
|
@@ -10336,6 +10875,8 @@ class DescribeOutgoingDomainRequest(TeaModel):
|
|
|
10336
10875
|
# * **TotalBytes**: the total volume of traffic.
|
|
10337
10876
|
self.sort = sort
|
|
10338
10877
|
# The beginning of the time range to query. The value is a UNIX timestamp. Unit: seconds.
|
|
10878
|
+
#
|
|
10879
|
+
# This parameter is required.
|
|
10339
10880
|
self.start_time = start_time
|
|
10340
10881
|
# The ID of the tag. Valid values:
|
|
10341
10882
|
#
|
|
@@ -10368,7 +10909,7 @@ class DescribeOutgoingDomainRequest(TeaModel):
|
|
|
10368
10909
|
# * **Rogue**: rogue software
|
|
10369
10910
|
# * **Botnet**: botnet
|
|
10370
10911
|
# * **Suspicious**: suspicious website
|
|
10371
|
-
# * **C
|
|
10912
|
+
# * **C\\&C**: command and control (C\\&C)
|
|
10372
10913
|
# * **Gang**: gang
|
|
10373
10914
|
# * **CVE**: Common Vulnerabilities and Exposures (CVE)
|
|
10374
10915
|
# * **Backdoor**: webshell
|
|
@@ -10950,6 +11491,8 @@ class DescribePolicyPriorUsedRequest(TeaModel):
|
|
|
10950
11491
|
#
|
|
10951
11492
|
# * **in**: inbound traffic
|
|
10952
11493
|
# * **out**: outbound traffic
|
|
11494
|
+
#
|
|
11495
|
+
# This parameter is required.
|
|
10953
11496
|
self.direction = direction
|
|
10954
11497
|
# The IP version of the asset that is protected by Cloud Firewall.
|
|
10955
11498
|
#
|
|
@@ -11102,6 +11645,8 @@ class DescribePostpayTrafficDetailRequest(TeaModel):
|
|
|
11102
11645
|
# The page number. Default value: 1.
|
|
11103
11646
|
self.current_page = current_page
|
|
11104
11647
|
# The end of the time range to query. The value is a UNIX timestamp. Unit: seconds.
|
|
11648
|
+
#
|
|
11649
|
+
# This parameter is required.
|
|
11105
11650
|
self.end_time = end_time
|
|
11106
11651
|
# The language of the content within the request and response. Valid values:
|
|
11107
11652
|
#
|
|
@@ -11118,11 +11663,15 @@ class DescribePostpayTrafficDetailRequest(TeaModel):
|
|
|
11118
11663
|
# The instance ID or the IP address of the asset.
|
|
11119
11664
|
self.search_item = search_item
|
|
11120
11665
|
# The beginning of the time range to query. The value is a UNIX timestamp. Unit: seconds.
|
|
11666
|
+
#
|
|
11667
|
+
# This parameter is required.
|
|
11121
11668
|
self.start_time = start_time
|
|
11122
11669
|
# The traffic type. This parameter is required. Valid values:
|
|
11123
11670
|
#
|
|
11124
11671
|
# * **EIP_TRAFFIC**: traffic for the Internet firewall
|
|
11125
11672
|
# * **NatGateway_TRAFFIC**: traffic for the NAT firewall
|
|
11673
|
+
#
|
|
11674
|
+
# This parameter is required.
|
|
11126
11675
|
self.traffic_type = traffic_type
|
|
11127
11676
|
|
|
11128
11677
|
def validate(self):
|
|
@@ -11719,8 +12268,10 @@ class DescribeRiskEventGroupRequest(TeaModel):
|
|
|
11719
12268
|
self.buy_version = buy_version
|
|
11720
12269
|
# The number of the page to return. Default value: **1**.
|
|
11721
12270
|
self.current_page = current_page
|
|
11722
|
-
# The type of the risk events
|
|
12271
|
+
# The type of the risk events.\\
|
|
11723
12272
|
# Set the value to **session**, which indicates intrusion events.
|
|
12273
|
+
#
|
|
12274
|
+
# This parameter is required.
|
|
11724
12275
|
self.data_type = data_type
|
|
11725
12276
|
# The direction of the traffic for the intrusion events. Valid values:
|
|
11726
12277
|
#
|
|
@@ -11736,6 +12287,8 @@ class DescribeRiskEventGroupRequest(TeaModel):
|
|
|
11736
12287
|
# > If the FirewallType parameter is set to VpcFirewall, you must specify this parameter.
|
|
11737
12288
|
self.dst_network_instance_id = dst_network_instance_id
|
|
11738
12289
|
# The end of the time range to query. The value is a UNIX timestamp. Unit: seconds.
|
|
12290
|
+
#
|
|
12291
|
+
# This parameter is required.
|
|
11739
12292
|
self.end_time = end_time
|
|
11740
12293
|
# The name of the intrusion event.
|
|
11741
12294
|
self.event_name = event_name
|
|
@@ -11790,6 +12343,8 @@ class DescribeRiskEventGroupRequest(TeaModel):
|
|
|
11790
12343
|
# > If the FirewallType parameter is set to VpcFirewall, you must specify this parameter.
|
|
11791
12344
|
self.src_network_instance_id = src_network_instance_id
|
|
11792
12345
|
# The beginning of the time range to query. The value is a UNIX timestamp. Unit: seconds.
|
|
12346
|
+
#
|
|
12347
|
+
# This parameter is required.
|
|
11793
12348
|
self.start_time = start_time
|
|
11794
12349
|
# The risk level of the intrusion events. Valid values:
|
|
11795
12350
|
#
|
|
@@ -12176,12 +12731,12 @@ class DescribeRiskEventGroupResponseBodyDataList(TeaModel):
|
|
|
12176
12731
|
self.event_name = event_name
|
|
12177
12732
|
# The time when the intrusion event was first detected. The value is a UNIX timestamp. Unit: seconds.
|
|
12178
12733
|
self.first_event_time = first_event_time
|
|
12179
|
-
# The geographical information about the IP address. The value is a struct that contains the following parameters: **CityId**, **CityName**, **CountryId**, and **CountryName
|
|
12734
|
+
# The geographical information about the IP address. The value is a struct that contains the following parameters: **CityId**, **CityName**, **CountryId**, and **CountryName**.\\
|
|
12180
12735
|
# ****************\
|
|
12181
12736
|
self.iplocation_info = iplocation_info
|
|
12182
12737
|
# The time when the intrusion event was last detected. The value is a UNIX timestamp. Unit: seconds.
|
|
12183
12738
|
self.last_event_time = last_event_time
|
|
12184
|
-
# The information about the private IP address in the intrusion event. The value is an array that contains the following parameters: **RegionNo**, **ResourceInstanceId**, **ResourceInstanceName**, and **ResourcePrivateIP
|
|
12739
|
+
# The information about the private IP address in the intrusion event. The value is an array that contains the following parameters: **RegionNo**, **ResourceInstanceId**, **ResourceInstanceName**, and **ResourcePrivateIP**.\\
|
|
12185
12740
|
# ****************\
|
|
12186
12741
|
self.resource_private_iplist = resource_private_iplist
|
|
12187
12742
|
# The type of the public IP address in the intrusion event. Valid values:
|
|
@@ -12213,10 +12768,10 @@ class DescribeRiskEventGroupResponseBodyDataList(TeaModel):
|
|
|
12213
12768
|
self.src_private_iplist = src_private_iplist
|
|
12214
12769
|
# The tag added to the threat intelligence that is provided for major events.
|
|
12215
12770
|
self.tag = tag
|
|
12216
|
-
# The information about the destination VPC of the intrusion event. The value is a struct that contains the following parameters: **EcsInstanceId**, **EcsInstanceName**, **NetworkInstanceId**, **NetworkInstanceName**, and **RegionNo
|
|
12771
|
+
# The information about the destination VPC of the intrusion event. The value is a struct that contains the following parameters: **EcsInstanceId**, **EcsInstanceName**, **NetworkInstanceId**, **NetworkInstanceName**, and **RegionNo**.\\
|
|
12217
12772
|
# ********************\
|
|
12218
12773
|
self.vpc_dst_info = vpc_dst_info
|
|
12219
|
-
# The information about the source VPC of the intrusion event. The value is a struct that contains the following parameters: **EcsInstanceId**, **EcsInstanceName**, **NetworkInstanceId**, **NetworkInstanceName**, and **RegionNo
|
|
12774
|
+
# The information about the source VPC of the intrusion event. The value is a struct that contains the following parameters: **EcsInstanceId**, **EcsInstanceName**, **NetworkInstanceId**, **NetworkInstanceName**, and **RegionNo**.\\
|
|
12220
12775
|
# ********************\
|
|
12221
12776
|
self.vpc_src_info = vpc_src_info
|
|
12222
12777
|
# The risk level of the intrusion event. Valid values:
|
|
@@ -12460,6 +13015,8 @@ class DescribeRiskEventPayloadRequest(TeaModel):
|
|
|
12460
13015
|
# The ID of the destination VPC to query. If you specify this parameter, all intrusion events that contain the specified ID of the destination VPC are queried.
|
|
12461
13016
|
self.dst_vpc_id = dst_vpc_id
|
|
12462
13017
|
# The end of the time range to query. The value is a timestamp. Unit: seconds.
|
|
13018
|
+
#
|
|
13019
|
+
# This parameter is required.
|
|
12463
13020
|
self.end_time = end_time
|
|
12464
13021
|
# The type of the firewall. Valid values:
|
|
12465
13022
|
#
|
|
@@ -12473,8 +13030,12 @@ class DescribeRiskEventPayloadRequest(TeaModel):
|
|
|
12473
13030
|
# The ID of the source VPC to query. If you specify this parameter, all intrusion events that contain the specified ID of the source VPC are queried.
|
|
12474
13031
|
self.src_vpc_id = src_vpc_id
|
|
12475
13032
|
# The beginning of the time range to query. The value is a timestamp. Unit: seconds.
|
|
13033
|
+
#
|
|
13034
|
+
# This parameter is required.
|
|
12476
13035
|
self.start_time = start_time
|
|
12477
13036
|
# The UUID of the intrusion event.
|
|
13037
|
+
#
|
|
13038
|
+
# This parameter is required.
|
|
12478
13039
|
self.uuid = uuid
|
|
12479
13040
|
|
|
12480
13041
|
def validate(self):
|
|
@@ -14385,6 +14946,8 @@ class DescribeUserAssetIPTrafficInfoRequest(TeaModel):
|
|
|
14385
14946
|
traffic_time: str = None,
|
|
14386
14947
|
):
|
|
14387
14948
|
# The IP address of the asset.
|
|
14949
|
+
#
|
|
14950
|
+
# This parameter is required.
|
|
14388
14951
|
self.asset_ip = asset_ip
|
|
14389
14952
|
# The language of the content within the response. Valid values:
|
|
14390
14953
|
#
|
|
@@ -14392,6 +14955,8 @@ class DescribeUserAssetIPTrafficInfoRequest(TeaModel):
|
|
|
14392
14955
|
# * **en**: English
|
|
14393
14956
|
self.lang = lang
|
|
14394
14957
|
# The time range to query. The value is a UNIX timestamp. Unit: seconds.
|
|
14958
|
+
#
|
|
14959
|
+
# This parameter is required.
|
|
14395
14960
|
self.traffic_time = traffic_time
|
|
14396
14961
|
|
|
14397
14962
|
def validate(self):
|
|
@@ -14850,11 +15415,11 @@ class DescribeVpcFirewallAclGroupListResponseBodyAclGroupList(TeaModel):
|
|
|
14850
15415
|
#
|
|
14851
15416
|
# * If the VPC firewall is used to protect a Cloud Enterprise Network (CEN) instance, the value of this parameter is the ID of the CEN instance.
|
|
14852
15417
|
#
|
|
14853
|
-
# Example: cen-ervw0g12b5jbw
|
|
15418
|
+
# Example: cen-ervw0g12b5jbw\\*\\*\\*\\*\
|
|
14854
15419
|
#
|
|
14855
15420
|
# * If the VPC firewall is used to protect an Express Connect circuit, the value of this parameter is the instance ID of the VPC firewall.
|
|
14856
15421
|
#
|
|
14857
|
-
# Example: vfw-a42bbb7b887148c9
|
|
15422
|
+
# Example: vfw-a42bbb7b887148c9\\*\\*\\*\\*\
|
|
14858
15423
|
self.acl_group_id = acl_group_id
|
|
14859
15424
|
# The name of the policy group. Valid values:
|
|
14860
15425
|
#
|
|
@@ -15013,7 +15578,9 @@ class DescribeVpcFirewallCenDetailRequest(TeaModel):
|
|
|
15013
15578
|
self.network_instance_id = network_instance_id
|
|
15014
15579
|
# The instance ID of the VPC firewall.
|
|
15015
15580
|
#
|
|
15016
|
-
# > You can call the [DescribeVpcFirewallCenList](
|
|
15581
|
+
# > You can call the [DescribeVpcFirewallCenList](https://help.aliyun.com/document_detail/345777.html) operation to query the instance IDs of VPC firewalls.
|
|
15582
|
+
#
|
|
15583
|
+
# This parameter is required.
|
|
15017
15584
|
self.vpc_firewall_id = vpc_firewall_id
|
|
15018
15585
|
|
|
15019
15586
|
def validate(self):
|
|
@@ -15564,7 +16131,7 @@ class DescribeVpcFirewallCenListRequest(TeaModel):
|
|
|
15564
16131
|
self.page_size = page_size
|
|
15565
16132
|
# The region ID of the VPC.
|
|
15566
16133
|
#
|
|
15567
|
-
# > For more information about the regions, see [Supported regions](
|
|
16134
|
+
# > For more information about the regions, see [Supported regions](https://help.aliyun.com/document_detail/195657.html).
|
|
15568
16135
|
self.region_no = region_no
|
|
15569
16136
|
# The routing mode of the VPC firewall. Valid values:
|
|
15570
16137
|
#
|
|
@@ -16166,6 +16733,8 @@ class DescribeVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
16166
16733
|
# The unique ID of the access control policy.
|
|
16167
16734
|
self.acl_uuid = acl_uuid
|
|
16168
16735
|
# The number of the page to return.
|
|
16736
|
+
#
|
|
16737
|
+
# This parameter is required.
|
|
16169
16738
|
self.current_page = current_page
|
|
16170
16739
|
# The description of the access control policy. Fuzzy match is supported.
|
|
16171
16740
|
self.description = description
|
|
@@ -16185,6 +16754,8 @@ class DescribeVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
16185
16754
|
# The number of entries to return on each page.
|
|
16186
16755
|
#
|
|
16187
16756
|
# Maximum value: 50.
|
|
16757
|
+
#
|
|
16758
|
+
# This parameter is required.
|
|
16188
16759
|
self.page_size = page_size
|
|
16189
16760
|
# The protocol type in the access control policy. Valid values:
|
|
16190
16761
|
#
|
|
@@ -16217,7 +16788,9 @@ class DescribeVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
16217
16788
|
# * If the VPC firewall protects the traffic between two VPCs that are connected by using a CEN instance, the value of this parameter must be the ID of the CEN instance.
|
|
16218
16789
|
# * If the VPC firewall protects the traffic between two VPCs that are connected by using an Express Connect circuit, the value of this parameter must be the instance ID of the VPC firewall.
|
|
16219
16790
|
#
|
|
16220
|
-
# > You can call the [DescribeVpcFirewallAclGroupList](
|
|
16791
|
+
# > You can call the [DescribeVpcFirewallAclGroupList](https://help.aliyun.com/document_detail/159760.html) operation to query the ID.
|
|
16792
|
+
#
|
|
16793
|
+
# This parameter is required.
|
|
16221
16794
|
self.vpc_firewall_id = vpc_firewall_id
|
|
16222
16795
|
|
|
16223
16796
|
def validate(self):
|
|
@@ -16418,12 +16991,12 @@ class DescribeVpcFirewallControlPolicyResponseBodyPolicys(TeaModel):
|
|
|
16418
16991
|
self.release = release
|
|
16419
16992
|
# The days of a week or of a month on which the access control policy takes effect.
|
|
16420
16993
|
#
|
|
16421
|
-
# * If RepeatType is set to `Permanent`, `None`, or `Daily`, RepeatDays is left empty. Example:
|
|
16422
|
-
# * If RepeatType is set to Weekly, RepeatDays must be specified. Example:
|
|
16994
|
+
# * If RepeatType is set to `Permanent`, `None`, or `Daily`, RepeatDays is left empty. Example: [].
|
|
16995
|
+
# * If RepeatType is set to Weekly, RepeatDays must be specified. Example: [0, 6].
|
|
16423
16996
|
#
|
|
16424
16997
|
# > If RepeatType is set to Weekly, the fields in the value of RepeatDays cannot be repeated.
|
|
16425
16998
|
#
|
|
16426
|
-
# * If RepeatType is set to `Monthly`, RepeatDays must be specified. Example:
|
|
16999
|
+
# * If RepeatType is set to `Monthly`, RepeatDays must be specified. Example: [1, 31].
|
|
16427
17000
|
#
|
|
16428
17001
|
# > If RepeatType is set to Monthly, the fields in the value of RepeatDays cannot be repeated.
|
|
16429
17002
|
self.repeat_days = repeat_days
|
|
@@ -16713,8 +17286,10 @@ class DescribeVpcFirewallDefaultIPSConfigRequest(TeaModel):
|
|
|
16713
17286
|
self.member_uid = member_uid
|
|
16714
17287
|
# The instance ID of the VPC firewall. Valid values:
|
|
16715
17288
|
#
|
|
16716
|
-
# * If the VPC firewall protects mutual access traffic between a VPC and a specified network instance that is attached to a Cloud Enterprise Network (CEN) instance, the value of this parameter is the ID of the CEN instance. The network instance can be a VPC, a virtual border router (VBR), or a Cloud Connect Network (CCN) instance. You can call the [DescribeVpcFirewallCenList](
|
|
16717
|
-
# * If the VPC firewall protects traffic between two VPCs that are connected by using an Express Connect circuit, the value of this parameter is the instance ID of the VPC firewall. You can call the [DescribeVpcFirewallList](
|
|
17289
|
+
# * If the VPC firewall protects mutual access traffic between a VPC and a specified network instance that is attached to a Cloud Enterprise Network (CEN) instance, the value of this parameter is the ID of the CEN instance. The network instance can be a VPC, a virtual border router (VBR), or a Cloud Connect Network (CCN) instance. You can call the [DescribeVpcFirewallCenList](https://help.aliyun.com/document_detail/345777.html) operation to query the IDs of CEN instances.
|
|
17290
|
+
# * If the VPC firewall protects traffic between two VPCs that are connected by using an Express Connect circuit, the value of this parameter is the instance ID of the VPC firewall. You can call the [DescribeVpcFirewallList](https://help.aliyun.com/document_detail/342932.html) operation to query the instance IDs of VPC firewalls.
|
|
17291
|
+
#
|
|
17292
|
+
# This parameter is required.
|
|
16718
17293
|
self.vpc_firewall_id = vpc_firewall_id
|
|
16719
17294
|
|
|
16720
17295
|
def validate(self):
|
|
@@ -16859,7 +17434,9 @@ class DescribeVpcFirewallDetailRequest(TeaModel):
|
|
|
16859
17434
|
self.peer_vpc_id = peer_vpc_id
|
|
16860
17435
|
# The instance ID of the VPC firewall.
|
|
16861
17436
|
#
|
|
16862
|
-
# > You can call the [DescribeVpcFirewallList](
|
|
17437
|
+
# > You can call the [DescribeVpcFirewallList](https://help.aliyun.com/document_detail/342932.html) operation to query the instance IDs of VPC firewalls.
|
|
17438
|
+
#
|
|
17439
|
+
# This parameter is required.
|
|
16863
17440
|
self.vpc_firewall_id = vpc_firewall_id
|
|
16864
17441
|
|
|
16865
17442
|
def validate(self):
|
|
@@ -17358,6 +17935,8 @@ class DescribeVpcFirewallIPSWhitelistRequest(TeaModel):
|
|
|
17358
17935
|
# The UID of the member in Cloud Firewall.
|
|
17359
17936
|
self.member_uid = member_uid
|
|
17360
17937
|
# The instance ID of the VPC firewall.
|
|
17938
|
+
#
|
|
17939
|
+
# This parameter is required.
|
|
17361
17940
|
self.vpc_firewall_id = vpc_firewall_id
|
|
17362
17941
|
|
|
17363
17942
|
def validate(self):
|
|
@@ -17582,7 +18161,7 @@ class DescribeVpcFirewallListRequest(TeaModel):
|
|
|
17582
18161
|
self.peer_uid = peer_uid
|
|
17583
18162
|
# The region ID of the VPC.
|
|
17584
18163
|
#
|
|
17585
|
-
# > For more information about the regions, see [Supported regions](
|
|
18164
|
+
# > For more information about the regions, see [Supported regions](https://help.aliyun.com/document_detail/195657.html).
|
|
17586
18165
|
self.region_no = region_no
|
|
17587
18166
|
# The instance ID of the VPC firewall.
|
|
17588
18167
|
self.vpc_firewall_id = vpc_firewall_id
|
|
@@ -18241,6 +18820,8 @@ class DescribeVpcFirewallPolicyPriorUsedRequest(TeaModel):
|
|
|
18241
18820
|
# - If the VPC firewall is used to protect an Express Connect circuit, the value of this parameter is the ID of the VPC firewall instance.
|
|
18242
18821
|
#
|
|
18243
18822
|
# Example: vfw-a42bbb7b887148c9****\
|
|
18823
|
+
#
|
|
18824
|
+
# This parameter is required.
|
|
18244
18825
|
self.vpc_firewall_id = vpc_firewall_id
|
|
18245
18826
|
|
|
18246
18827
|
def validate(self):
|
|
@@ -18366,7 +18947,7 @@ class DescribeVpcListLiteRequest(TeaModel):
|
|
|
18366
18947
|
self.lang = lang
|
|
18367
18948
|
# The region ID of the VPC.
|
|
18368
18949
|
#
|
|
18369
|
-
# > For more information about Cloud Firewall supported regions, see [Supported regions](
|
|
18950
|
+
# > For more information about Cloud Firewall supported regions, see [Supported regions](https://help.aliyun.com/document_detail/195657.html).
|
|
18370
18951
|
self.region_no = region_no
|
|
18371
18952
|
# The source IP address of the request.
|
|
18372
18953
|
self.source_ip = source_ip
|
|
@@ -18762,6 +19343,8 @@ class DescribeVulnerabilityProtectedListRequest(TeaModel):
|
|
|
18762
19343
|
# The number of the page to return. Default value: 1.
|
|
18763
19344
|
self.current_page = current_page
|
|
18764
19345
|
# The end of the time range to query. The value is a UNIX timestamp. Unit: seconds.
|
|
19346
|
+
#
|
|
19347
|
+
# This parameter is required.
|
|
18765
19348
|
self.end_time = end_time
|
|
18766
19349
|
# The language of the content within the response. Valid values:
|
|
18767
19350
|
#
|
|
@@ -18782,6 +19365,8 @@ class DescribeVulnerabilityProtectedListRequest(TeaModel):
|
|
|
18782
19365
|
# The IP address of the access source.
|
|
18783
19366
|
self.source_ip = source_ip
|
|
18784
19367
|
# The beginning of the time range to query. The value is a UNIX timestamp. Unit: seconds.
|
|
19368
|
+
#
|
|
19369
|
+
# This parameter is required.
|
|
18785
19370
|
self.start_time = start_time
|
|
18786
19371
|
# The type of the user. Set the value to **buy**, which indicates user of a paid edition of Cloud Firewall.
|
|
18787
19372
|
self.user_type = user_type
|
|
@@ -18912,7 +19497,7 @@ class DescribeVulnerabilityProtectedListResponseBodyVulnListResourceList(TeaMode
|
|
|
18912
19497
|
self.intranet_ip = intranet_ip
|
|
18913
19498
|
# The region ID of your Cloud Firewall.
|
|
18914
19499
|
#
|
|
18915
|
-
# > For more information about Cloud Firewall supported regions, see [Supported regions](
|
|
19500
|
+
# > For more information about Cloud Firewall supported regions, see [Supported regions](https://help.aliyun.com/document_detail/195657.html).
|
|
18916
19501
|
self.region_id = region_id
|
|
18917
19502
|
# The ID of the instance.
|
|
18918
19503
|
self.resource_id = resource_id
|
|
@@ -19366,12 +19951,18 @@ class ModifyAddressBookRequest(TeaModel):
|
|
|
19366
19951
|
# * **0**: no
|
|
19367
19952
|
self.auto_add_tag_ecs = auto_add_tag_ecs
|
|
19368
19953
|
# The description of the address book.
|
|
19954
|
+
#
|
|
19955
|
+
# This parameter is required.
|
|
19369
19956
|
self.description = description
|
|
19370
19957
|
# The name of the address book.
|
|
19958
|
+
#
|
|
19959
|
+
# This parameter is required.
|
|
19371
19960
|
self.group_name = group_name
|
|
19372
19961
|
# The ID of the address book.
|
|
19373
19962
|
#
|
|
19374
|
-
# > To modify the address book, you must provide the ID of the address book. You can call the [DescribeAddressBook](
|
|
19963
|
+
# > To modify the address book, you must provide the ID of the address book. You can call the [DescribeAddressBook](https://help.aliyun.com/document_detail/138869.html) operation to query the ID.
|
|
19964
|
+
#
|
|
19965
|
+
# This parameter is required.
|
|
19375
19966
|
self.group_uuid = group_uuid
|
|
19376
19967
|
# The language of the content within the request and response. Valid values:
|
|
19377
19968
|
#
|
|
@@ -19548,10 +20139,14 @@ class ModifyControlPolicyRequest(TeaModel):
|
|
|
19548
20139
|
# * **accept**: allows the traffic.
|
|
19549
20140
|
# * **drop**: denies the traffic.
|
|
19550
20141
|
# * **log**: monitors the traffic.
|
|
20142
|
+
#
|
|
20143
|
+
# This parameter is required.
|
|
19551
20144
|
self.acl_action = acl_action
|
|
19552
20145
|
# The UUID of the access control policy.
|
|
19553
20146
|
#
|
|
19554
|
-
# > To modify an access control policy, you must specify the UUID of the policy. You can call the [DescribeControlPolicy](
|
|
20147
|
+
# > To modify an access control policy, you must specify the UUID of the policy. You can call the [DescribeControlPolicy](https://help.aliyun.com/document_detail/138866.html) interface to query the UUID.
|
|
20148
|
+
#
|
|
20149
|
+
# This parameter is required.
|
|
19555
20150
|
self.acl_uuid = acl_uuid
|
|
19556
20151
|
# The type of the application that the access control policy supports. Valid values:
|
|
19557
20152
|
#
|
|
@@ -19575,6 +20170,8 @@ class ModifyControlPolicyRequest(TeaModel):
|
|
|
19575
20170
|
# The application names.
|
|
19576
20171
|
self.application_name_list = application_name_list
|
|
19577
20172
|
# The description of the access control policy.
|
|
20173
|
+
#
|
|
20174
|
+
# This parameter is required.
|
|
19578
20175
|
self.description = description
|
|
19579
20176
|
# The destination port in the access control policy.
|
|
19580
20177
|
self.dest_port = dest_port
|
|
@@ -19589,8 +20186,10 @@ class ModifyControlPolicyRequest(TeaModel):
|
|
|
19589
20186
|
#
|
|
19590
20187
|
# * If **DestinationType** is set to net, the value of **Destination** is a CIDR block. Example: 1.2.XX.XX/24.
|
|
19591
20188
|
# * If **DestinationType** is set to group, the value of **Destination** is an address book. Example: db_group.
|
|
19592
|
-
# * If **DestinationType** is set to domain, the value of **Destination** is a domain name. Example:
|
|
19593
|
-
# * If **DestinationType** is set to location, the value of **Destination** is a location. For more information about the location codes, see the "AddControlPolicy" topic. Example:
|
|
20189
|
+
# * If **DestinationType** is set to domain, the value of **Destination** is a domain name. Example: \\*.aliyuncs.com.
|
|
20190
|
+
# * If **DestinationType** is set to location, the value of **Destination** is a location. For more information about the location codes, see the "AddControlPolicy" topic. Example: ["BJ11", "ZB"].
|
|
20191
|
+
#
|
|
20192
|
+
# This parameter is required.
|
|
19594
20193
|
self.destination = destination
|
|
19595
20194
|
# The type of the destination address in the access control policy. Valid values:
|
|
19596
20195
|
#
|
|
@@ -19598,11 +20197,15 @@ class ModifyControlPolicyRequest(TeaModel):
|
|
|
19598
20197
|
# * **group**: address book
|
|
19599
20198
|
# * **domain**: domain name
|
|
19600
20199
|
# * **location**: location
|
|
20200
|
+
#
|
|
20201
|
+
# This parameter is required.
|
|
19601
20202
|
self.destination_type = destination_type
|
|
19602
20203
|
# The direction of the traffic to which the access control policy applies. Valid values:
|
|
19603
20204
|
#
|
|
19604
20205
|
# * **in**: inbound traffic
|
|
19605
20206
|
# * **out**: outbound traffic
|
|
20207
|
+
#
|
|
20208
|
+
# This parameter is required.
|
|
19606
20209
|
self.direction = direction
|
|
19607
20210
|
# The time when the access control policy stops taking effect. The value is a UNIX timestamp. Unit: seconds. The value must be on the hour or on the half hour, and at least 30 minutes later than the value of StartTime.
|
|
19608
20211
|
#
|
|
@@ -19621,6 +20224,8 @@ class ModifyControlPolicyRequest(TeaModel):
|
|
|
19621
20224
|
# * **ICMP**\
|
|
19622
20225
|
#
|
|
19623
20226
|
# > The value *ANY* indicates all types of applications.
|
|
20227
|
+
#
|
|
20228
|
+
# This parameter is required.
|
|
19624
20229
|
self.proto = proto
|
|
19625
20230
|
# The status of the access control policy. Valid values:
|
|
19626
20231
|
#
|
|
@@ -19629,12 +20234,12 @@ class ModifyControlPolicyRequest(TeaModel):
|
|
|
19629
20234
|
self.release = release
|
|
19630
20235
|
# The days of a week or of a month on which the access control policy takes effect.
|
|
19631
20236
|
#
|
|
19632
|
-
# * If you set RepeatType to `Permanent`, `None`, or `Daily`, the value of this parameter is an empty array. Example:
|
|
19633
|
-
# * If you set RepeatType to Weekly, you must specify this parameter. Example:
|
|
20237
|
+
# * If you set RepeatType to `Permanent`, `None`, or `Daily`, the value of this parameter is an empty array. Example: []
|
|
20238
|
+
# * If you set RepeatType to Weekly, you must specify this parameter. Example: [0, 6]
|
|
19634
20239
|
#
|
|
19635
20240
|
# > If you set RepeatType to Weekly, the fields in the value of this parameter cannot be repeated.
|
|
19636
20241
|
#
|
|
19637
|
-
# * If you set RepeatType to `Monthly`, you must specify this parameter. Example:
|
|
20242
|
+
# * If you set RepeatType to `Monthly`, you must specify this parameter. Example: [1, 31]
|
|
19638
20243
|
#
|
|
19639
20244
|
# > If you set RepeatType to Monthly, the fields in the value of this parameter cannot be repeated.
|
|
19640
20245
|
self.repeat_days = repeat_days
|
|
@@ -19658,13 +20263,17 @@ class ModifyControlPolicyRequest(TeaModel):
|
|
|
19658
20263
|
#
|
|
19659
20264
|
# * If **SourceType** is set to net, the value of **Source** is a CIDR block. Example: 1.2.XX.XX/24.
|
|
19660
20265
|
# * If **SourceType** is set to group, the value of **Source** is an address book. Example: db_group.
|
|
19661
|
-
# * If **SourceType** is set to location, the value of **Source** is a location. For more information about the location codes, see the "AddControlPolicy" topic. Example:
|
|
20266
|
+
# * If **SourceType** is set to location, the value of **Source** is a location. For more information about the location codes, see the "AddControlPolicy" topic. Example: ["BJ11", "ZB"]
|
|
20267
|
+
#
|
|
20268
|
+
# This parameter is required.
|
|
19662
20269
|
self.source = source
|
|
19663
20270
|
# The type of the source address in the access control policy. Valid values:
|
|
19664
20271
|
#
|
|
19665
20272
|
# * **net**: CIDR block
|
|
19666
20273
|
# * **group**: address book
|
|
19667
20274
|
# * **location**: location
|
|
20275
|
+
#
|
|
20276
|
+
# This parameter is required.
|
|
19668
20277
|
self.source_type = source_type
|
|
19669
20278
|
# The time when the access control policy starts to take effect. The value is a UNIX timestamp. Unit: seconds. The value must be on the hour or on the half hour, and at least 30 minutes earlier than the value of EndTime.
|
|
19670
20279
|
#
|
|
@@ -19857,6 +20466,8 @@ class ModifyControlPolicyPositionRequest(TeaModel):
|
|
|
19857
20466
|
#
|
|
19858
20467
|
# * in: inbound traffic
|
|
19859
20468
|
# * out: outbound traffic
|
|
20469
|
+
#
|
|
20470
|
+
# This parameter is required.
|
|
19860
20471
|
self.direction = direction
|
|
19861
20472
|
# The language of the content within the response. Valid values:
|
|
19862
20473
|
#
|
|
@@ -19865,9 +20476,13 @@ class ModifyControlPolicyPositionRequest(TeaModel):
|
|
|
19865
20476
|
self.lang = lang
|
|
19866
20477
|
# The new priority of the IPv4 access control policy. You must specify a numeric value for this parameter. The value 1 indicates the highest priority. A larger value indicates a lower priority.
|
|
19867
20478
|
#
|
|
19868
|
-
# > The new priority cannot exceed the priority range of the IPv4 access control policy. Otherwise, an error occurs when you call this operation. Before you call this operation, we recommend that you use the [DescribePolicyPriorUsed](
|
|
20479
|
+
# > The new priority cannot exceed the priority range of the IPv4 access control policy. Otherwise, an error occurs when you call this operation. Before you call this operation, we recommend that you use the [DescribePolicyPriorUsed](https://help.aliyun.com/document_detail/138862.html) operation to query the priority range of the IPv4 access control policy in the specified direction.
|
|
20480
|
+
#
|
|
20481
|
+
# This parameter is required.
|
|
19869
20482
|
self.new_order = new_order
|
|
19870
20483
|
# The original priority of the IPv4 access control policy.
|
|
20484
|
+
#
|
|
20485
|
+
# This parameter is required.
|
|
19871
20486
|
self.old_order = old_order
|
|
19872
20487
|
# The source IP address of the request.
|
|
19873
20488
|
self.source_ip = source_ip
|
|
@@ -19992,13 +20607,16 @@ class ModifyDefaultIPSConfigRequest(TeaModel):
|
|
|
19992
20607
|
source_ip: str = None,
|
|
19993
20608
|
):
|
|
19994
20609
|
self.ai_rules = ai_rules
|
|
20610
|
+
# This parameter is required.
|
|
19995
20611
|
self.basic_rules = basic_rules
|
|
20612
|
+
# This parameter is required.
|
|
19996
20613
|
self.cti_rules = cti_rules
|
|
19997
20614
|
self.enable_all_patch = enable_all_patch
|
|
19998
20615
|
self.enable_default = enable_default
|
|
19999
20616
|
self.lang = lang
|
|
20000
20617
|
self.patch_rules = patch_rules
|
|
20001
20618
|
self.rule_class = rule_class
|
|
20619
|
+
# This parameter is required.
|
|
20002
20620
|
self.run_mode = run_mode
|
|
20003
20621
|
self.source_ip = source_ip
|
|
20004
20622
|
|
|
@@ -20267,8 +20885,12 @@ class ModifyInstanceMemberAttributesRequestMembers(TeaModel):
|
|
|
20267
20885
|
member_uid: int = None,
|
|
20268
20886
|
):
|
|
20269
20887
|
# The remarks of the member in Cloud Firewall.
|
|
20888
|
+
#
|
|
20889
|
+
# This parameter is required.
|
|
20270
20890
|
self.member_desc = member_desc
|
|
20271
20891
|
# The UID of the member in Cloud Firewall.
|
|
20892
|
+
#
|
|
20893
|
+
# This parameter is required.
|
|
20272
20894
|
self.member_uid = member_uid
|
|
20273
20895
|
|
|
20274
20896
|
def validate(self):
|
|
@@ -20301,6 +20923,8 @@ class ModifyInstanceMemberAttributesRequest(TeaModel):
|
|
|
20301
20923
|
members: List[ModifyInstanceMemberAttributesRequestMembers] = None,
|
|
20302
20924
|
):
|
|
20303
20925
|
# The members that to be modified.
|
|
20926
|
+
#
|
|
20927
|
+
# This parameter is required.
|
|
20304
20928
|
self.members = members
|
|
20305
20929
|
|
|
20306
20930
|
def validate(self):
|
|
@@ -20432,16 +21056,22 @@ class ModifyNatFirewallControlPolicyRequest(TeaModel):
|
|
|
20432
21056
|
# * **accept**: allows the traffic.
|
|
20433
21057
|
# * **drop**: denies the traffic.
|
|
20434
21058
|
# * **log**: monitors the traffic.
|
|
21059
|
+
#
|
|
21060
|
+
# This parameter is required.
|
|
20435
21061
|
self.acl_action = acl_action
|
|
20436
21062
|
# The UUID of the access control policy.
|
|
20437
21063
|
#
|
|
20438
21064
|
# To modify the configurations of an access control policy, you must provide the UUID of the policy. You can call the DescribeNatFirewallControlPolicy operation to query the UUIDs of access control policies.
|
|
21065
|
+
#
|
|
21066
|
+
# This parameter is required.
|
|
20439
21067
|
self.acl_uuid = acl_uuid
|
|
20440
21068
|
# The name of the application.
|
|
20441
21069
|
self.application_name_list = application_name_list
|
|
20442
21070
|
# The description of the access control policy. Fuzzy match is supported.
|
|
20443
21071
|
#
|
|
20444
21072
|
# > If you do not specify this parameter, the descriptions of all policies are queried.
|
|
21073
|
+
#
|
|
21074
|
+
# This parameter is required.
|
|
20445
21075
|
self.description = description
|
|
20446
21076
|
# The destination port in the access control policy.
|
|
20447
21077
|
#
|
|
@@ -20458,21 +21088,25 @@ class ModifyNatFirewallControlPolicyRequest(TeaModel):
|
|
|
20458
21088
|
#
|
|
20459
21089
|
# * If **DestinationType** is set to net, the value of **Destination** is a CIDR block. Example: 1.2.3.4/24
|
|
20460
21090
|
# * If **DestinationType** is set to group, the value of **Destination** is an address book. Example: db_group
|
|
20461
|
-
# * If **DestinationType** is set to domain, the value of **Destination** is a domain name. Example:
|
|
20462
|
-
# * If **DestinationType** is set to location, the value of **Destination** is a location. For more information about the location codes, see the "AddControlPolicy" topic. Example:
|
|
21091
|
+
# * If **DestinationType** is set to domain, the value of **Destination** is a domain name. Example: \\*.aliyuncs.com
|
|
21092
|
+
# * If **DestinationType** is set to location, the value of **Destination** is a location. For more information about the location codes, see the "AddControlPolicy" topic. Example: ["BJ11", "ZB"]
|
|
21093
|
+
#
|
|
21094
|
+
# This parameter is required.
|
|
20463
21095
|
self.destination = destination
|
|
20464
21096
|
# The type of the destination address in the access control policy. Valid values:
|
|
20465
21097
|
#
|
|
20466
21098
|
# * **net**: CIDR block
|
|
20467
21099
|
# * **group**: address book
|
|
20468
21100
|
# * **domain**: domain name
|
|
20469
|
-
# * **location
|
|
21101
|
+
# * **location**: destination location
|
|
21102
|
+
#
|
|
21103
|
+
# This parameter is required.
|
|
20470
21104
|
self.destination_type = destination_type
|
|
20471
21105
|
# The direction of the traffic to which the access control policy applies.
|
|
20472
21106
|
#
|
|
20473
21107
|
# * Set the value to **out**.
|
|
20474
21108
|
self.direction = direction
|
|
20475
|
-
# The domain name resolution method of the access control policy.
|
|
21109
|
+
# The domain name resolution method of the access control policy. Valid values:
|
|
20476
21110
|
#
|
|
20477
21111
|
# * **0**: Fully qualified domain name (FQDN)-based resolution
|
|
20478
21112
|
# * **1**: Domain Name System (DNS)-based dynamic resolution
|
|
@@ -20488,6 +21122,8 @@ class ModifyNatFirewallControlPolicyRequest(TeaModel):
|
|
|
20488
21122
|
# * **en**: English
|
|
20489
21123
|
self.lang = lang
|
|
20490
21124
|
# The ID of the NAT gateway.
|
|
21125
|
+
#
|
|
21126
|
+
# This parameter is required.
|
|
20491
21127
|
self.nat_gateway_id = nat_gateway_id
|
|
20492
21128
|
# The protocol type supported by the access control policy. Valid values:
|
|
20493
21129
|
#
|
|
@@ -20497,6 +21133,8 @@ class ModifyNatFirewallControlPolicyRequest(TeaModel):
|
|
|
20497
21133
|
# * **ICMP**\
|
|
20498
21134
|
#
|
|
20499
21135
|
# > The value **ANY** indicates all types of protocols.
|
|
21136
|
+
#
|
|
21137
|
+
# This parameter is required.
|
|
20500
21138
|
self.proto = proto
|
|
20501
21139
|
# The status of the access control policy. Valid values:
|
|
20502
21140
|
#
|
|
@@ -20505,12 +21143,12 @@ class ModifyNatFirewallControlPolicyRequest(TeaModel):
|
|
|
20505
21143
|
self.release = release
|
|
20506
21144
|
# The days of a week or of a month on which the access control policy takes effect.
|
|
20507
21145
|
#
|
|
20508
|
-
# * If RepeatType is set to `Permanent`, `None`, or `Daily`, RepeatDays is left empty. Example:
|
|
20509
|
-
# * If RepeatType is set to Weekly, RepeatDays must be specified. Example:
|
|
21146
|
+
# * If RepeatType is set to `Permanent`, `None`, or `Daily`, RepeatDays is left empty. Example: [].
|
|
21147
|
+
# * If RepeatType is set to Weekly, RepeatDays must be specified. Example: [0, 6].
|
|
20510
21148
|
#
|
|
20511
21149
|
# > If RepeatType is set to Weekly, the fields in the value of RepeatDays cannot be repeated.
|
|
20512
21150
|
#
|
|
20513
|
-
# * If RepeatType is set to `Monthly`, RepeatDays must be specified. Example:
|
|
21151
|
+
# * If RepeatType is set to `Monthly`, RepeatDays must be specified. Example: [1, 31].
|
|
20514
21152
|
#
|
|
20515
21153
|
# > If RepeatType is set to Monthly, the fields in the value of RepeatDays cannot be repeated.
|
|
20516
21154
|
self.repeat_days = repeat_days
|
|
@@ -20534,11 +21172,15 @@ class ModifyNatFirewallControlPolicyRequest(TeaModel):
|
|
|
20534
21172
|
#
|
|
20535
21173
|
# * If **SourceType** is set to `net`, the value of this parameter is a CIDR block. Example: 10.2.XX.XX/24.
|
|
20536
21174
|
# * If **SourceType** is set to `group`, the value of this parameter is an address book name. Example: db_group.
|
|
21175
|
+
#
|
|
21176
|
+
# This parameter is required.
|
|
20537
21177
|
self.source = source
|
|
20538
21178
|
# The type of the source address in the access control policy. Valid values:
|
|
20539
21179
|
#
|
|
20540
21180
|
# * **net**: CIDR block
|
|
20541
21181
|
# * **group**: address book
|
|
21182
|
+
#
|
|
21183
|
+
# This parameter is required.
|
|
20542
21184
|
self.source_type = source_type
|
|
20543
21185
|
# The time when the access control policy starts to take effect. The value is a UNIX timestamp. Unit: seconds. The value must be on the hour or on the half hour, and at least 30 minutes earlier than the value of EndTime.
|
|
20544
21186
|
#
|
|
@@ -20732,6 +21374,8 @@ class ModifyNatFirewallControlPolicyPositionRequest(TeaModel):
|
|
|
20732
21374
|
new_order: int = None,
|
|
20733
21375
|
):
|
|
20734
21376
|
# The UUID of the access control policy.
|
|
21377
|
+
#
|
|
21378
|
+
# This parameter is required.
|
|
20735
21379
|
self.acl_uuid = acl_uuid
|
|
20736
21380
|
# The direction of the traffic to which the access control policy applies.
|
|
20737
21381
|
#
|
|
@@ -20743,12 +21387,16 @@ class ModifyNatFirewallControlPolicyPositionRequest(TeaModel):
|
|
|
20743
21387
|
# * **en**: English
|
|
20744
21388
|
self.lang = lang
|
|
20745
21389
|
# The ID of the NAT gateway.
|
|
21390
|
+
#
|
|
21391
|
+
# This parameter is required.
|
|
20746
21392
|
self.nat_gateway_id = nat_gateway_id
|
|
20747
21393
|
# The new priority of the IPv4 access control policy. You must specify a numeric value for this parameter. The value 1 indicates the highest priority. A larger value indicates a lower priority.
|
|
20748
21394
|
#
|
|
20749
21395
|
# > Make sure that the value of this parameter is within the priority range of existing IPv4 access control policies. Otherwise, an error occurs when you call this operation.
|
|
20750
21396
|
#
|
|
20751
21397
|
# Before you call this operation, we recommend that you call the DescribeNatFirewallPolicyPriorUsed operation to query the priority range of the IPv4 access control policies in the specified traffic direction.
|
|
21398
|
+
#
|
|
21399
|
+
# This parameter is required.
|
|
20752
21400
|
self.new_order = new_order
|
|
20753
21401
|
|
|
20754
21402
|
def validate(self):
|
|
@@ -20867,6 +21515,8 @@ class ModifyPolicyAdvancedConfigRequest(TeaModel):
|
|
|
20867
21515
|
#
|
|
20868
21516
|
# * **on**: enables the strict mode.
|
|
20869
21517
|
# * **off**: disables the strict mode.
|
|
21518
|
+
#
|
|
21519
|
+
# This parameter is required.
|
|
20870
21520
|
self.internet_switch = internet_switch
|
|
20871
21521
|
# The natural language of the request and response. Valid values:
|
|
20872
21522
|
#
|
|
@@ -21157,10 +21807,12 @@ class ModifyTrFirewallV2RoutePolicyScopeRequest(TeaModel):
|
|
|
21157
21807
|
tr_firewall_route_policy_id: str = None,
|
|
21158
21808
|
):
|
|
21159
21809
|
self.dest_candidate_list = dest_candidate_list
|
|
21810
|
+
# This parameter is required.
|
|
21160
21811
|
self.firewall_id = firewall_id
|
|
21161
21812
|
self.lang = lang
|
|
21162
21813
|
self.should_recover = should_recover
|
|
21163
21814
|
self.src_candidate_list = src_candidate_list
|
|
21815
|
+
# This parameter is required.
|
|
21164
21816
|
self.tr_firewall_route_policy_id = tr_firewall_route_policy_id
|
|
21165
21817
|
|
|
21166
21818
|
def validate(self):
|
|
@@ -21231,10 +21883,12 @@ class ModifyTrFirewallV2RoutePolicyScopeShrinkRequest(TeaModel):
|
|
|
21231
21883
|
tr_firewall_route_policy_id: str = None,
|
|
21232
21884
|
):
|
|
21233
21885
|
self.dest_candidate_list_shrink = dest_candidate_list_shrink
|
|
21886
|
+
# This parameter is required.
|
|
21234
21887
|
self.firewall_id = firewall_id
|
|
21235
21888
|
self.lang = lang
|
|
21236
21889
|
self.should_recover = should_recover
|
|
21237
21890
|
self.src_candidate_list_shrink = src_candidate_list_shrink
|
|
21891
|
+
# This parameter is required.
|
|
21238
21892
|
self.tr_firewall_route_policy_id = tr_firewall_route_policy_id
|
|
21239
21893
|
|
|
21240
21894
|
def validate(self):
|
|
@@ -21499,9 +22153,13 @@ class ModifyVpcFirewallCenConfigureRequest(TeaModel):
|
|
|
21499
22153
|
self.member_uid = member_uid
|
|
21500
22154
|
# The instance ID of the VPC firewall.
|
|
21501
22155
|
#
|
|
21502
|
-
# > You can call the [DescribeVpcFirewallCenList](
|
|
22156
|
+
# > You can call the [DescribeVpcFirewallCenList](https://help.aliyun.com/document_detail/345777.html) operation to query the instance IDs of VPC firewalls.
|
|
22157
|
+
#
|
|
22158
|
+
# This parameter is required.
|
|
21503
22159
|
self.vpc_firewall_id = vpc_firewall_id
|
|
21504
22160
|
# The instance name of the VPC firewall.
|
|
22161
|
+
#
|
|
22162
|
+
# This parameter is required.
|
|
21505
22163
|
self.vpc_firewall_name = vpc_firewall_name
|
|
21506
22164
|
|
|
21507
22165
|
def validate(self):
|
|
@@ -21617,6 +22275,8 @@ class ModifyVpcFirewallCenSwitchStatusRequest(TeaModel):
|
|
|
21617
22275
|
#
|
|
21618
22276
|
# * **open**: yes
|
|
21619
22277
|
# * **close**: no
|
|
22278
|
+
#
|
|
22279
|
+
# This parameter is required.
|
|
21620
22280
|
self.firewall_switch = firewall_switch
|
|
21621
22281
|
# The language of the content within the request and response. Valid values:
|
|
21622
22282
|
#
|
|
@@ -21627,7 +22287,9 @@ class ModifyVpcFirewallCenSwitchStatusRequest(TeaModel):
|
|
|
21627
22287
|
self.member_uid = member_uid
|
|
21628
22288
|
# The instance ID of the VPC firewall.
|
|
21629
22289
|
#
|
|
21630
|
-
# > You can call the [DescribeVpcFirewallCenList](
|
|
22290
|
+
# > You can call the [DescribeVpcFirewallCenList](https://help.aliyun.com/document_detail/345777.html) operation to query the instance IDs of VPC firewalls.
|
|
22291
|
+
#
|
|
22292
|
+
# This parameter is required.
|
|
21631
22293
|
self.vpc_firewall_id = vpc_firewall_id
|
|
21632
22294
|
|
|
21633
22295
|
def validate(self):
|
|
@@ -21751,7 +22413,9 @@ class ModifyVpcFirewallConfigureRequest(TeaModel):
|
|
|
21751
22413
|
# * **RouteTableId**: the ID of the route table for the local VPC.
|
|
21752
22414
|
# * **RouteEntryList**: The value is a JSON string that contains the DestinationCidr and NextHopInstanceId parameters. The DestinationCidr parameter indicates the destination CIDR block of the local VPC. The NextHopInstanceId parameter indicates the instance ID of the next hop for the local VPC.
|
|
21753
22415
|
#
|
|
21754
|
-
# > You can call the [DescribeVpcFirewallDetail](
|
|
22416
|
+
# > You can call the [DescribeVpcFirewallDetail](https://help.aliyun.com/document_detail/342892.html) operation to query the CIDR blocks of local VPCs for VPC firewalls.
|
|
22417
|
+
#
|
|
22418
|
+
# This parameter is required.
|
|
21755
22419
|
self.local_vpc_cidr_table_list = local_vpc_cidr_table_list
|
|
21756
22420
|
# The UID of the member that is managed by your Alibaba Cloud account.
|
|
21757
22421
|
self.member_uid = member_uid
|
|
@@ -21760,13 +22424,19 @@ class ModifyVpcFirewallConfigureRequest(TeaModel):
|
|
|
21760
22424
|
# * **RouteTableId**: the ID of the route table for the peer VPC.
|
|
21761
22425
|
# * **RouteEntryList**: The value is a JSON string that contains the DestinationCidr and NextHopInstanceId parameters. The DestinationCidr parameter indicates the destination CIDR block of the peer VPC. The NextHopInstanceId parameter indicates the instance ID of the next hop for the peer VPC.
|
|
21762
22426
|
#
|
|
21763
|
-
# > You can call the [DescribeVpcFirewallDetail](
|
|
22427
|
+
# > You can call the [DescribeVpcFirewallDetail](https://help.aliyun.com/document_detail/342892.html) operation to query the CIDR blocks of peer VPCs for VPC firewalls.
|
|
22428
|
+
#
|
|
22429
|
+
# This parameter is required.
|
|
21764
22430
|
self.peer_vpc_cidr_table_list = peer_vpc_cidr_table_list
|
|
21765
22431
|
# The instance ID of the VPC firewall.
|
|
21766
22432
|
#
|
|
21767
|
-
# > You can call the [DescribeVpcFirewallList](
|
|
22433
|
+
# > You can call the [DescribeVpcFirewallList](https://help.aliyun.com/document_detail/342932.html) operation to query the instance IDs of VPC firewalls.
|
|
22434
|
+
#
|
|
22435
|
+
# This parameter is required.
|
|
21768
22436
|
self.vpc_firewall_id = vpc_firewall_id
|
|
21769
22437
|
# The instance name of the VPC firewall.
|
|
22438
|
+
#
|
|
22439
|
+
# This parameter is required.
|
|
21770
22440
|
self.vpc_firewall_name = vpc_firewall_name
|
|
21771
22441
|
|
|
21772
22442
|
def validate(self):
|
|
@@ -21911,10 +22581,14 @@ class ModifyVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
21911
22581
|
# * **accept**: allows the traffic.
|
|
21912
22582
|
# * **drop**: blocks the traffic.
|
|
21913
22583
|
# * **log**: monitors the traffic.
|
|
22584
|
+
#
|
|
22585
|
+
# This parameter is required.
|
|
21914
22586
|
self.acl_action = acl_action
|
|
21915
22587
|
# The unique ID of the access control policy.
|
|
21916
22588
|
#
|
|
21917
|
-
# If you want to modify the configurations of an access control policy, you must provide the unique ID of the policy. You can call the [DescribeVpcFirewallControlPolicy](
|
|
22589
|
+
# If you want to modify the configurations of an access control policy, you must provide the unique ID of the policy. You can call the [DescribeVpcFirewallControlPolicy](https://help.aliyun.com/document_detail/159758.html) operation to query the ID.
|
|
22590
|
+
#
|
|
22591
|
+
# This parameter is required.
|
|
21918
22592
|
self.acl_uuid = acl_uuid
|
|
21919
22593
|
# The application type used in the access control policy.
|
|
21920
22594
|
#
|
|
@@ -21939,6 +22613,8 @@ class ModifyVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
21939
22613
|
# The application names.
|
|
21940
22614
|
self.application_name_list = application_name_list
|
|
21941
22615
|
# The description of the access control policy.
|
|
22616
|
+
#
|
|
22617
|
+
# This parameter is required.
|
|
21942
22618
|
self.description = description
|
|
21943
22619
|
# The destination port in the access control policy.
|
|
21944
22620
|
self.dest_port = dest_port
|
|
@@ -21961,7 +22637,9 @@ class ModifyVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
21961
22637
|
#
|
|
21962
22638
|
# * If **DestinationType** is set to `domain`, the value of this parameter must be a domain name.
|
|
21963
22639
|
#
|
|
21964
|
-
# Example:
|
|
22640
|
+
# Example: \\*.aliyuncs.com
|
|
22641
|
+
#
|
|
22642
|
+
# This parameter is required.
|
|
21965
22643
|
self.destination = destination
|
|
21966
22644
|
# The type of the destination address in the access control policy.
|
|
21967
22645
|
#
|
|
@@ -21970,6 +22648,8 @@ class ModifyVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
21970
22648
|
# * **net**: CIDR block
|
|
21971
22649
|
# * **group**: address book
|
|
21972
22650
|
# * **domain**: domain name
|
|
22651
|
+
#
|
|
22652
|
+
# This parameter is required.
|
|
21973
22653
|
self.destination_type = destination_type
|
|
21974
22654
|
# The time when the access control policy stops taking effect. The value is a UNIX timestamp. Unit: seconds. The value must be on the hour or on the half hour, and at least 30 minutes later than the value of StartTime.
|
|
21975
22655
|
#
|
|
@@ -21990,6 +22670,8 @@ class ModifyVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
21990
22670
|
# * TCP
|
|
21991
22671
|
# * UDP
|
|
21992
22672
|
# * ICMP
|
|
22673
|
+
#
|
|
22674
|
+
# This parameter is required.
|
|
21993
22675
|
self.proto = proto
|
|
21994
22676
|
# Specifies whether to enable the access control policy. By default, an access control policy is enabled after the policy is created. Valid values:
|
|
21995
22677
|
#
|
|
@@ -21998,12 +22680,12 @@ class ModifyVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
21998
22680
|
self.release = release
|
|
21999
22681
|
# The days of a week or of a month on which the access control policy takes effect.
|
|
22000
22682
|
#
|
|
22001
|
-
# * If you set RepeatType to `Permanent`, `None`, or `Daily`, the value of this parameter is an empty array. Example:
|
|
22002
|
-
# * If you set RepeatType to Weekly, you must specify this parameter. Example:
|
|
22683
|
+
# * If you set RepeatType to `Permanent`, `None`, or `Daily`, the value of this parameter is an empty array. Example: [].
|
|
22684
|
+
# * If you set RepeatType to Weekly, you must specify this parameter. Example: [0, 6].
|
|
22003
22685
|
#
|
|
22004
22686
|
# > If you set RepeatType to Weekly, the fields in the value of this parameter cannot be repeated.
|
|
22005
22687
|
#
|
|
22006
|
-
# * If you set RepeatType to `Monthly`, you must specify this parameter. Example:
|
|
22688
|
+
# * If you set RepeatType to `Monthly`, you must specify this parameter. Example: [1, 31].
|
|
22007
22689
|
#
|
|
22008
22690
|
# > If you set RepeatType to Monthly, the fields in the value of this parameter cannot be repeated.
|
|
22009
22691
|
self.repeat_days = repeat_days
|
|
@@ -22034,6 +22716,8 @@ class ModifyVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
22034
22716
|
# * If **SourceType** is set to `group`, the value of this parameter must be an address book name.
|
|
22035
22717
|
#
|
|
22036
22718
|
# Example: db_group
|
|
22719
|
+
#
|
|
22720
|
+
# This parameter is required.
|
|
22037
22721
|
self.source = source
|
|
22038
22722
|
# The type of the source address in the access control policy.
|
|
22039
22723
|
#
|
|
@@ -22041,20 +22725,24 @@ class ModifyVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
22041
22725
|
#
|
|
22042
22726
|
# * **net**: CIDR block
|
|
22043
22727
|
# * **group**: address book
|
|
22728
|
+
#
|
|
22729
|
+
# This parameter is required.
|
|
22044
22730
|
self.source_type = source_type
|
|
22045
22731
|
# The time when the access control policy starts to take effect. The value is a UNIX timestamp. Unit: seconds. The value must be on the hour or on the half hour, and at least 30 minutes earlier than the value of EndTime.
|
|
22046
22732
|
#
|
|
22047
22733
|
# > If you set RepeatType to Permanent, leave this parameter empty. If you set RepeatType to None, Daily, Weekly, or Monthly, you must specify this parameter.
|
|
22048
22734
|
self.start_time = start_time
|
|
22049
|
-
# The instance ID of the VPC firewall. You can call the [DescribeVpcFirewallAclGroupList](
|
|
22735
|
+
# The instance ID of the VPC firewall. You can call the [DescribeVpcFirewallAclGroupList](https://help.aliyun.com/document_detail/159760.html) operation to query the ID.
|
|
22050
22736
|
#
|
|
22051
22737
|
# * If the VPC firewall is used to protect a CEN instance, the value of this parameter must be the ID of the CEN instance.
|
|
22052
22738
|
#
|
|
22053
|
-
# Example: cen-ervw0g12b5jbw
|
|
22739
|
+
# Example: cen-ervw0g12b5jbw\\*\\*\\*\\*\
|
|
22054
22740
|
#
|
|
22055
22741
|
# * If the VPC firewall is used to protect an Express Connect circuit, the value of this parameter must be the instance ID of the VPC firewall.
|
|
22056
22742
|
#
|
|
22057
|
-
# Example: vfw-a42bbb7b887148c9
|
|
22743
|
+
# Example: vfw-a42bbb7b887148c9\\*\\*\\*\\*\
|
|
22744
|
+
#
|
|
22745
|
+
# This parameter is required.
|
|
22058
22746
|
self.vpc_firewall_id = vpc_firewall_id
|
|
22059
22747
|
|
|
22060
22748
|
def validate(self):
|
|
@@ -22241,7 +22929,7 @@ class ModifyVpcFirewallControlPolicyPositionRequest(TeaModel):
|
|
|
22241
22929
|
):
|
|
22242
22930
|
# The UUID of the access control policy.
|
|
22243
22931
|
#
|
|
22244
|
-
# If you want to modify the configurations of an access control policy, you must provide the UUID of the policy. You can call the [DescribeVpcFirewallControlPolicy](
|
|
22932
|
+
# If you want to modify the configurations of an access control policy, you must provide the UUID of the policy. You can call the [DescribeVpcFirewallControlPolicy](https://help.aliyun.com/document_detail/159758.html) operation to query the UUID.
|
|
22245
22933
|
self.acl_uuid = acl_uuid
|
|
22246
22934
|
# The language of the content within the request and the response.
|
|
22247
22935
|
#
|
|
@@ -22251,22 +22939,26 @@ class ModifyVpcFirewallControlPolicyPositionRequest(TeaModel):
|
|
|
22251
22939
|
# * **en**: English
|
|
22252
22940
|
self.lang = lang
|
|
22253
22941
|
# The new priority of the access control policy.
|
|
22942
|
+
#
|
|
22943
|
+
# This parameter is required.
|
|
22254
22944
|
self.new_order = new_order
|
|
22255
22945
|
# The original priority of the access control policy.
|
|
22256
22946
|
#
|
|
22257
22947
|
# > This parameter is not recommended. We recommend that you use the AclUuid parameter to specify the policy that you want to modify.
|
|
22258
22948
|
self.old_order = old_order
|
|
22259
|
-
# The ID of the group to which the access control policy belongs. You can call the [DescribeVpcFirewallAclGroupList](
|
|
22949
|
+
# The ID of the group to which the access control policy belongs. You can call the [DescribeVpcFirewallAclGroupList](https://help.aliyun.com/document_detail/159760.html) operation to query the ID.
|
|
22260
22950
|
#
|
|
22261
22951
|
# Valid values:
|
|
22262
22952
|
#
|
|
22263
22953
|
# * If the VPC firewall is used to protect a CEN instance, the value of this parameter must be the ID of the CEN instance.
|
|
22264
22954
|
#
|
|
22265
|
-
# Example: cen-ervw0g12b5jbw
|
|
22955
|
+
# Example: cen-ervw0g12b5jbw\\*\\*\\*\\*\
|
|
22266
22956
|
#
|
|
22267
22957
|
# * If the VPC firewall is used to protect an Express Connect circuit, the value of this parameter must be the instance ID of the VPC firewall.
|
|
22268
22958
|
#
|
|
22269
|
-
# Example: vfw-a42bbb7b887148c9
|
|
22959
|
+
# Example: vfw-a42bbb7b887148c9\\*\\*\\*\\*\
|
|
22960
|
+
#
|
|
22961
|
+
# This parameter is required.
|
|
22270
22962
|
self.vpc_firewall_id = vpc_firewall_id
|
|
22271
22963
|
|
|
22272
22964
|
def validate(self):
|
|
@@ -22389,11 +23081,15 @@ class ModifyVpcFirewallDefaultIPSConfigRequest(TeaModel):
|
|
|
22389
23081
|
#
|
|
22390
23082
|
# * **1**: yes
|
|
22391
23083
|
# * **0**: no
|
|
23084
|
+
#
|
|
23085
|
+
# This parameter is required.
|
|
22392
23086
|
self.basic_rules = basic_rules
|
|
22393
23087
|
# Specifies whether to enable virtual patching. Valid values:
|
|
22394
23088
|
#
|
|
22395
23089
|
# * **1**: yes
|
|
22396
23090
|
# * **0**: no
|
|
23091
|
+
#
|
|
23092
|
+
# This parameter is required.
|
|
22397
23093
|
self.enable_all_patch = enable_all_patch
|
|
22398
23094
|
# The language of the content within the request and response. Valid values:
|
|
22399
23095
|
#
|
|
@@ -22406,13 +23102,17 @@ class ModifyVpcFirewallDefaultIPSConfigRequest(TeaModel):
|
|
|
22406
23102
|
#
|
|
22407
23103
|
# * **1**: block mode
|
|
22408
23104
|
# * **0**: monitor mode
|
|
23105
|
+
#
|
|
23106
|
+
# This parameter is required.
|
|
22409
23107
|
self.run_mode = run_mode
|
|
22410
23108
|
# The source IP address of the request.
|
|
22411
23109
|
self.source_ip = source_ip
|
|
22412
23110
|
# The instance ID of the VPC firewall. Valid values:
|
|
22413
23111
|
#
|
|
22414
|
-
# * If the VPC firewall protects mutual access traffic between a VPC and a specified network instance that is attached to a Cloud Enterprise Network (CEN) instance, the value of this parameter is the ID of the CEN instance. The network instance can be a VPC, a virtual border router (VBR), or a Cloud Connect Network (CCN) instance. You can call the [DescribeVpcFirewallCenList](
|
|
22415
|
-
# * If the VPC firewall protects mutual access traffic between two VPCs that are connected by using an Express Connect circuit, the value of this parameter is the ID of the VPC firewall. You can call the [DescribeVpcFirewallList](
|
|
23112
|
+
# * If the VPC firewall protects mutual access traffic between a VPC and a specified network instance that is attached to a Cloud Enterprise Network (CEN) instance, the value of this parameter is the ID of the CEN instance. The network instance can be a VPC, a virtual border router (VBR), or a Cloud Connect Network (CCN) instance. You can call the [DescribeVpcFirewallCenList](https://help.aliyun.com/document_detail/345777.html) operation to query the IDs of CEN instances.
|
|
23113
|
+
# * If the VPC firewall protects mutual access traffic between two VPCs that are connected by using an Express Connect circuit, the value of this parameter is the ID of the VPC firewall. You can call the [DescribeVpcFirewallList](https://help.aliyun.com/document_detail/342932.html) operation to query the instance IDs of VPC firewalls.
|
|
23114
|
+
#
|
|
23115
|
+
# This parameter is required.
|
|
22416
23116
|
self.vpc_firewall_id = vpc_firewall_id
|
|
22417
23117
|
|
|
22418
23118
|
def validate(self):
|
|
@@ -22547,17 +23247,23 @@ class ModifyVpcFirewallIPSWhitelistRequest(TeaModel):
|
|
|
22547
23247
|
#
|
|
22548
23248
|
# * **1**: user-defined
|
|
22549
23249
|
# * **2**: address book
|
|
23250
|
+
#
|
|
23251
|
+
# This parameter is required.
|
|
22550
23252
|
self.list_type = list_type
|
|
22551
23253
|
# The entry in the list.
|
|
22552
23254
|
self.list_value = list_value
|
|
22553
23255
|
# The UID of the member that is managed by your Alibaba Cloud account.
|
|
22554
23256
|
self.member_uid = member_uid
|
|
22555
23257
|
# The instance ID of the VPC firewall.
|
|
23258
|
+
#
|
|
23259
|
+
# This parameter is required.
|
|
22556
23260
|
self.vpc_firewall_id = vpc_firewall_id
|
|
22557
23261
|
# The type of the whitelist. Valid values:
|
|
22558
23262
|
#
|
|
22559
23263
|
# * **1**: destination
|
|
22560
23264
|
# * **2**: source
|
|
23265
|
+
#
|
|
23266
|
+
# This parameter is required.
|
|
22561
23267
|
self.white_type = white_type
|
|
22562
23268
|
|
|
22563
23269
|
def validate(self):
|
|
@@ -22681,6 +23387,8 @@ class ModifyVpcFirewallSwitchStatusRequest(TeaModel):
|
|
|
22681
23387
|
#
|
|
22682
23388
|
# * **open**: yes
|
|
22683
23389
|
# * **close**: no
|
|
23390
|
+
#
|
|
23391
|
+
# This parameter is required.
|
|
22684
23392
|
self.firewall_switch = firewall_switch
|
|
22685
23393
|
# The language of the content within the request and response. Valid values:
|
|
22686
23394
|
#
|
|
@@ -22691,7 +23399,9 @@ class ModifyVpcFirewallSwitchStatusRequest(TeaModel):
|
|
|
22691
23399
|
self.member_uid = member_uid
|
|
22692
23400
|
# The instance ID of the VPC firewall.
|
|
22693
23401
|
#
|
|
22694
|
-
# > You can call the [DescribeVpcFirewallList](
|
|
23402
|
+
# > You can call the [DescribeVpcFirewallList](https://help.aliyun.com/document_detail/342932.html) operation to query the instance IDs of VPC firewalls.
|
|
23403
|
+
#
|
|
23404
|
+
# This parameter is required.
|
|
22695
23405
|
self.vpc_firewall_id = vpc_firewall_id
|
|
22696
23406
|
|
|
22697
23407
|
def validate(self):
|
|
@@ -23487,6 +24197,8 @@ class ResetNatFirewallRuleHitCountRequest(TeaModel):
|
|
|
23487
24197
|
nat_gateway_id: str = None,
|
|
23488
24198
|
):
|
|
23489
24199
|
# The UUID of the access control policy.
|
|
24200
|
+
#
|
|
24201
|
+
# This parameter is required.
|
|
23490
24202
|
self.acl_uuid = acl_uuid
|
|
23491
24203
|
# The language of the content within the request and response. Valid values:
|
|
23492
24204
|
#
|
|
@@ -23600,6 +24312,8 @@ class ResetVpcFirewallRuleHitCountRequest(TeaModel):
|
|
|
23600
24312
|
lang: str = None,
|
|
23601
24313
|
):
|
|
23602
24314
|
# The ID of the access control policy.
|
|
24315
|
+
#
|
|
24316
|
+
# This parameter is required.
|
|
23603
24317
|
self.acl_uuid = acl_uuid
|
|
23604
24318
|
# The natural language of the request and response.
|
|
23605
24319
|
#
|
|
@@ -23702,3 +24416,112 @@ class ResetVpcFirewallRuleHitCountResponse(TeaModel):
|
|
|
23702
24416
|
return self
|
|
23703
24417
|
|
|
23704
24418
|
|
|
24419
|
+
class SwitchSecurityProxyRequest(TeaModel):
|
|
24420
|
+
def __init__(
|
|
24421
|
+
self,
|
|
24422
|
+
lang: str = None,
|
|
24423
|
+
proxy_id: str = None,
|
|
24424
|
+
switch: str = None,
|
|
24425
|
+
):
|
|
24426
|
+
self.lang = lang
|
|
24427
|
+
# This parameter is required.
|
|
24428
|
+
self.proxy_id = proxy_id
|
|
24429
|
+
# This parameter is required.
|
|
24430
|
+
self.switch = switch
|
|
24431
|
+
|
|
24432
|
+
def validate(self):
|
|
24433
|
+
pass
|
|
24434
|
+
|
|
24435
|
+
def to_map(self):
|
|
24436
|
+
_map = super().to_map()
|
|
24437
|
+
if _map is not None:
|
|
24438
|
+
return _map
|
|
24439
|
+
|
|
24440
|
+
result = dict()
|
|
24441
|
+
if self.lang is not None:
|
|
24442
|
+
result['Lang'] = self.lang
|
|
24443
|
+
if self.proxy_id is not None:
|
|
24444
|
+
result['ProxyId'] = self.proxy_id
|
|
24445
|
+
if self.switch is not None:
|
|
24446
|
+
result['Switch'] = self.switch
|
|
24447
|
+
return result
|
|
24448
|
+
|
|
24449
|
+
def from_map(self, m: dict = None):
|
|
24450
|
+
m = m or dict()
|
|
24451
|
+
if m.get('Lang') is not None:
|
|
24452
|
+
self.lang = m.get('Lang')
|
|
24453
|
+
if m.get('ProxyId') is not None:
|
|
24454
|
+
self.proxy_id = m.get('ProxyId')
|
|
24455
|
+
if m.get('Switch') is not None:
|
|
24456
|
+
self.switch = m.get('Switch')
|
|
24457
|
+
return self
|
|
24458
|
+
|
|
24459
|
+
|
|
24460
|
+
class SwitchSecurityProxyResponseBody(TeaModel):
|
|
24461
|
+
def __init__(
|
|
24462
|
+
self,
|
|
24463
|
+
request_id: str = None,
|
|
24464
|
+
):
|
|
24465
|
+
self.request_id = request_id
|
|
24466
|
+
|
|
24467
|
+
def validate(self):
|
|
24468
|
+
pass
|
|
24469
|
+
|
|
24470
|
+
def to_map(self):
|
|
24471
|
+
_map = super().to_map()
|
|
24472
|
+
if _map is not None:
|
|
24473
|
+
return _map
|
|
24474
|
+
|
|
24475
|
+
result = dict()
|
|
24476
|
+
if self.request_id is not None:
|
|
24477
|
+
result['RequestId'] = self.request_id
|
|
24478
|
+
return result
|
|
24479
|
+
|
|
24480
|
+
def from_map(self, m: dict = None):
|
|
24481
|
+
m = m or dict()
|
|
24482
|
+
if m.get('RequestId') is not None:
|
|
24483
|
+
self.request_id = m.get('RequestId')
|
|
24484
|
+
return self
|
|
24485
|
+
|
|
24486
|
+
|
|
24487
|
+
class SwitchSecurityProxyResponse(TeaModel):
|
|
24488
|
+
def __init__(
|
|
24489
|
+
self,
|
|
24490
|
+
headers: Dict[str, str] = None,
|
|
24491
|
+
status_code: int = None,
|
|
24492
|
+
body: SwitchSecurityProxyResponseBody = None,
|
|
24493
|
+
):
|
|
24494
|
+
self.headers = headers
|
|
24495
|
+
self.status_code = status_code
|
|
24496
|
+
self.body = body
|
|
24497
|
+
|
|
24498
|
+
def validate(self):
|
|
24499
|
+
if self.body:
|
|
24500
|
+
self.body.validate()
|
|
24501
|
+
|
|
24502
|
+
def to_map(self):
|
|
24503
|
+
_map = super().to_map()
|
|
24504
|
+
if _map is not None:
|
|
24505
|
+
return _map
|
|
24506
|
+
|
|
24507
|
+
result = dict()
|
|
24508
|
+
if self.headers is not None:
|
|
24509
|
+
result['headers'] = self.headers
|
|
24510
|
+
if self.status_code is not None:
|
|
24511
|
+
result['statusCode'] = self.status_code
|
|
24512
|
+
if self.body is not None:
|
|
24513
|
+
result['body'] = self.body.to_map()
|
|
24514
|
+
return result
|
|
24515
|
+
|
|
24516
|
+
def from_map(self, m: dict = None):
|
|
24517
|
+
m = m or dict()
|
|
24518
|
+
if m.get('headers') is not None:
|
|
24519
|
+
self.headers = m.get('headers')
|
|
24520
|
+
if m.get('statusCode') is not None:
|
|
24521
|
+
self.status_code = m.get('statusCode')
|
|
24522
|
+
if m.get('body') is not None:
|
|
24523
|
+
temp_model = SwitchSecurityProxyResponseBody()
|
|
24524
|
+
self.body = temp_model.from_map(m['body'])
|
|
24525
|
+
return self
|
|
24526
|
+
|
|
24527
|
+
|