tccli 3.0.1239.1__py2.py3-none-any.whl → 3.0.1241.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apm/v20210622/api.json +66 -69
  3. tccli/services/apm/v20210622/examples.json +26 -26
  4. tccli/services/autoscaling/v20180419/api.json +12 -1
  5. tccli/services/batch/v20170312/api.json +11 -11
  6. tccli/services/billing/v20180709/api.json +20 -0
  7. tccli/services/cam/v20190116/api.json +1 -1
  8. tccli/services/car/v20220110/api.json +1 -1
  9. tccli/services/car/v20220110/examples.json +3 -3
  10. tccli/services/cdb/v20170320/api.json +582 -579
  11. tccli/services/cdb/v20170320/examples.json +9 -9
  12. tccli/services/cdwdoris/v20211228/api.json +40 -0
  13. tccli/services/cfg/v20210820/api.json +11 -0
  14. tccli/services/chdfs/v20201112/api.json +10 -10
  15. tccli/services/chdfs/v20201112/examples.json +1 -1
  16. tccli/services/cls/v20201016/api.json +1 -1
  17. tccli/services/cmq/v20190304/api.json +77 -77
  18. tccli/services/csip/csip_client.py +281 -16
  19. tccli/services/csip/v20221121/api.json +1631 -101
  20. tccli/services/csip/v20221121/examples.json +40 -0
  21. tccli/services/cvm/cvm_client.py +60 -325
  22. tccli/services/cvm/v20170312/api.json +618 -1401
  23. tccli/services/cvm/v20170312/examples.json +8 -48
  24. tccli/services/cwp/cwp_client.py +0 -53
  25. tccli/services/cwp/v20180228/api.json +0 -34
  26. tccli/services/cwp/v20180228/examples.json +0 -8
  27. tccli/services/cynosdb/v20190107/api.json +452 -458
  28. tccli/services/cynosdb/v20190107/examples.json +23 -23
  29. tccli/services/dbbrain/v20191016/api.json +16 -4
  30. tccli/services/dbbrain/v20191016/examples.json +5 -5
  31. tccli/services/dbbrain/v20210527/api.json +44 -44
  32. tccli/services/dbbrain/v20210527/examples.json +8 -8
  33. tccli/services/dts/v20180330/api.json +30 -30
  34. tccli/services/dts/v20180330/examples.json +4 -4
  35. tccli/services/dts/v20211206/api.json +19 -9
  36. tccli/services/dts/v20211206/examples.json +5 -5
  37. tccli/services/ecm/v20190719/api.json +55 -48
  38. tccli/services/ecm/v20190719/examples.json +7 -7
  39. tccli/services/emr/emr_client.py +493 -16
  40. tccli/services/emr/v20190103/api.json +1323 -246
  41. tccli/services/emr/v20190103/examples.json +72 -0
  42. tccli/services/ess/v20201111/api.json +15 -6
  43. tccli/services/ess/v20201111/examples.json +12 -0
  44. tccli/services/essbasic/v20210526/api.json +11 -2
  45. tccli/services/essbasic/v20210526/examples.json +12 -0
  46. tccli/services/faceid/v20180301/api.json +3 -3
  47. tccli/services/gaap/v20180529/api.json +181 -183
  48. tccli/services/gaap/v20180529/examples.json +31 -37
  49. tccli/services/gs/v20191118/api.json +3 -3
  50. tccli/services/gs/v20191118/examples.json +3 -3
  51. tccli/services/iai/iai_client.py +53 -0
  52. tccli/services/iai/v20200303/api.json +80 -0
  53. tccli/services/iai/v20200303/examples.json +14 -0
  54. tccli/services/iotexplorer/v20190423/api.json +10 -0
  55. tccli/services/keewidb/v20220308/api.json +188 -190
  56. tccli/services/live/v20180801/api.json +323 -222
  57. tccli/services/live/v20180801/examples.json +79 -79
  58. tccli/services/mna/v20210119/api.json +20 -20
  59. tccli/services/mps/v20190612/api.json +40 -0
  60. tccli/services/oceanus/v20190422/api.json +407 -39
  61. tccli/services/oceanus/v20190422/examples.json +1 -1
  62. tccli/services/ocr/v20181119/api.json +50 -0
  63. tccli/services/sms/v20190711/api.json +81 -81
  64. tccli/services/sms/v20190711/examples.json +8 -8
  65. tccli/services/sms/v20210111/api.json +39 -39
  66. tccli/services/sqlserver/v20180328/api.json +235 -139
  67. tccli/services/sqlserver/v20180328/examples.json +2 -2
  68. tccli/services/ssl/v20191205/api.json +777 -779
  69. tccli/services/ssl/v20191205/examples.json +8 -8
  70. tccli/services/tbaas/v20180416/api.json +118 -82
  71. tccli/services/tbaas/v20180416/examples.json +7 -7
  72. tccli/services/tcb/v20180608/api.json +18 -18
  73. tccli/services/tcb/v20180608/examples.json +2 -2
  74. tccli/services/tcm/v20210413/api.json +6 -6
  75. tccli/services/tcm/v20210413/examples.json +1 -1
  76. tccli/services/tcr/v20190924/api.json +17 -12
  77. tccli/services/tdmq/v20200217/api.json +18 -0
  78. tccli/services/tem/v20210701/api.json +439 -280
  79. tccli/services/tem/v20210701/examples.json +39 -39
  80. tccli/services/tke/v20180525/api.json +50 -39
  81. tccli/services/tke/v20180525/examples.json +51 -21
  82. tccli/services/trro/v20220325/api.json +27 -27
  83. tccli/services/trro/v20220325/examples.json +1 -1
  84. tccli/services/tse/v20201207/api.json +46 -9
  85. tccli/services/tse/v20201207/examples.json +31 -31
  86. tccli/services/tsf/v20180326/api.json +448 -434
  87. tccli/services/tsf/v20180326/examples.json +122 -122
  88. tccli/services/tts/v20190823/api.json +1 -1
  89. tccli/services/vpc/v20170312/api.json +278 -37
  90. tccli/services/vpc/v20170312/examples.json +56 -8
  91. tccli/services/vpc/vpc_client.py +159 -0
  92. tccli/services/waf/v20180125/api.json +303 -4
  93. tccli/services/waf/v20180125/examples.json +25 -1
  94. tccli/services/waf/waf_client.py +163 -4
  95. {tccli-3.0.1239.1.dist-info → tccli-3.0.1241.1.dist-info}/METADATA +2 -2
  96. {tccli-3.0.1239.1.dist-info → tccli-3.0.1241.1.dist-info}/RECORD +99 -99
  97. {tccli-3.0.1239.1.dist-info → tccli-3.0.1241.1.dist-info}/WHEEL +0 -0
  98. {tccli-3.0.1239.1.dist-info → tccli-3.0.1241.1.dist-info}/entry_points.txt +0 -0
  99. {tccli-3.0.1239.1.dist-info → tccli-3.0.1241.1.dist-info}/license_files/LICENSE +0 -0
@@ -70,6 +70,13 @@
70
70
  "output": "CreateAccessExportResponse",
71
71
  "status": "online"
72
72
  },
73
+ "CreateAreaBanRule": {
74
+ "document": "添加(编辑)地域封禁中的地域信息",
75
+ "input": "CreateAreaBanRuleRequest",
76
+ "name": "添加地域封禁规则",
77
+ "output": "CreateAreaBanRuleResponse",
78
+ "status": "online"
79
+ },
73
80
  "CreateDeals": {
74
81
  "document": "计费资源购买、续费下单接口",
75
82
  "input": "CreateDealsRequest",
@@ -252,6 +259,13 @@
252
259
  "output": "DescribeAreaBanAreasResponse",
253
260
  "status": "online"
254
261
  },
262
+ "DescribeAreaBanRule": {
263
+ "document": "获取地域封禁规则配置",
264
+ "input": "DescribeAreaBanRuleRequest",
265
+ "name": "获取地域封禁规则",
266
+ "output": "DescribeAreaBanRuleResponse",
267
+ "status": "online"
268
+ },
255
269
  "DescribeAreaBanSupportAreas": {
256
270
  "document": "获取WAF地域封禁支持的地域列表",
257
271
  "input": "DescribeAreaBanSupportAreasRequest",
@@ -728,6 +742,13 @@
728
742
  "output": "ModifyAreaBanAreasResponse",
729
743
  "status": "online"
730
744
  },
745
+ "ModifyAreaBanRule": {
746
+ "document": "添加(编辑)地域封禁中的地域信息",
747
+ "input": "ModifyAreaBanRuleRequest",
748
+ "name": "编辑地域封禁规则",
749
+ "output": "ModifyAreaBanRuleResponse",
750
+ "status": "online"
751
+ },
731
752
  "ModifyAreaBanStatus": {
732
753
  "document": "修改防护域名的地域封禁状态",
733
754
  "input": "ModifyAreaBanStatusRequest",
@@ -890,9 +911,9 @@
890
911
  "status": "online"
891
912
  },
892
913
  "ModifyProtectionStatus": {
893
- "document": "获取基础安全防护(WAF开关)状态",
914
+ "document": "开启、关闭WAF开关",
894
915
  "input": "ModifyProtectionStatusRequest",
895
- "name": "获取基础安全防护(WAF开关)状态",
916
+ "name": "开启、关闭WAF开关",
896
917
  "output": "ModifyProtectionStatusResponse",
897
918
  "status": "online"
898
919
  },
@@ -3010,6 +3031,121 @@
3010
3031
  ],
3011
3032
  "usage": "in"
3012
3033
  },
3034
+ "Area": {
3035
+ "document": "地域信息",
3036
+ "members": [
3037
+ {
3038
+ "disabled": false,
3039
+ "document": "国家,除了标准的国家外还支持国内、国外这两个特殊的标识",
3040
+ "example": "中国",
3041
+ "member": "string",
3042
+ "name": "Country",
3043
+ "output_required": false,
3044
+ "required": true,
3045
+ "type": "string",
3046
+ "value_allowed_null": false
3047
+ },
3048
+ {
3049
+ "disabled": false,
3050
+ "document": "省份",
3051
+ "example": "广州",
3052
+ "member": "string",
3053
+ "name": "Region",
3054
+ "output_required": false,
3055
+ "required": false,
3056
+ "type": "string",
3057
+ "value_allowed_null": false
3058
+ },
3059
+ {
3060
+ "disabled": false,
3061
+ "document": "城市",
3062
+ "example": "深圳",
3063
+ "member": "string",
3064
+ "name": "City",
3065
+ "output_required": false,
3066
+ "required": false,
3067
+ "type": "string",
3068
+ "value_allowed_null": false
3069
+ }
3070
+ ],
3071
+ "usage": "both"
3072
+ },
3073
+ "AreaBanRule": {
3074
+ "document": "地域封禁规则详情",
3075
+ "members": [
3076
+ {
3077
+ "disabled": false,
3078
+ "document": "状态 0:未开启地域封禁、1:开启地域封禁",
3079
+ "example": "0",
3080
+ "member": "int64",
3081
+ "name": "Status",
3082
+ "output_required": true,
3083
+ "type": "int",
3084
+ "value_allowed_null": false
3085
+ },
3086
+ {
3087
+ "disabled": false,
3088
+ "document": "数据来源 custom:自定义(默认)、batch:批量防护",
3089
+ "example": "custom",
3090
+ "member": "string",
3091
+ "name": "Source",
3092
+ "output_required": false,
3093
+ "type": "string",
3094
+ "value_allowed_null": false
3095
+ },
3096
+ {
3097
+ "disabled": false,
3098
+ "document": "配置的地域列表",
3099
+ "example": "[{\"Country\":\"中国\",\"Region\":\"广东\",\"City\":\"深圳\"}]",
3100
+ "member": "Area",
3101
+ "name": "Areas",
3102
+ "output_required": true,
3103
+ "type": "list",
3104
+ "value_allowed_null": false
3105
+ },
3106
+ {
3107
+ "disabled": false,
3108
+ "document": "规则执行的方式,TimedJob为定时执行,CronJob为周期执行",
3109
+ "example": "TimedJob",
3110
+ "member": "string",
3111
+ "name": "JobType",
3112
+ "output_required": true,
3113
+ "type": "string",
3114
+ "value_allowed_null": false
3115
+ },
3116
+ {
3117
+ "disabled": false,
3118
+ "document": "定时任务配置",
3119
+ "example": "{ \"Timed\": [ { \"StartDateTime\": 1711618518, \"EndDateTime\": 1711918518 } ], \"Cron\": [ { \"Day\": 12, \"WDay\": 2, \"StartTime\": \"12:11\", \"EndTime\": \"21:00\" } ], \"TimeTZone\": \"UTC+8\" }",
3120
+ "member": "JobDateTime",
3121
+ "name": "JobDateTime",
3122
+ "output_required": true,
3123
+ "type": "object",
3124
+ "value_allowed_null": false
3125
+ },
3126
+ {
3127
+ "disabled": false,
3128
+ "document": "如果是周期任务类型,那么表示周期的类型,支持 Week:按周、Month:按月",
3129
+ "example": "Week",
3130
+ "member": "string",
3131
+ "name": "CronType",
3132
+ "output_required": false,
3133
+ "type": "string",
3134
+ "value_allowed_null": false
3135
+ },
3136
+ {
3137
+ "disabled": false,
3138
+ "document": "地域信息的语言,支持cn、en,默认为中文cn",
3139
+ "example": "cn",
3140
+ "member": "string",
3141
+ "name": "Lang",
3142
+ "output_required": false,
3143
+ "type": "string",
3144
+ "value_allowed_null": false
3145
+ }
3146
+ ],
3147
+ "usage": "out"
3148
+ },
3013
3149
  "AttackLogInfo": {
3014
3150
  "document": "攻击日志详情",
3015
3151
  "members": [
@@ -4739,6 +4875,69 @@
4739
4875
  ],
4740
4876
  "type": "object"
4741
4877
  },
4878
+ "CreateAreaBanRuleRequest": {
4879
+ "document": "CreateAreaBanRule请求参数结构体",
4880
+ "members": [
4881
+ {
4882
+ "disabled": false,
4883
+ "document": "需要修改的域名",
4884
+ "example": "test.com",
4885
+ "member": "string",
4886
+ "name": "Domain",
4887
+ "required": true,
4888
+ "type": "string"
4889
+ },
4890
+ {
4891
+ "disabled": false,
4892
+ "document": "需要新增的封禁地域",
4893
+ "example": "[{\"Country\":\"中国\",\"Region\":\"广东\",\"City\":\"深圳\"}]",
4894
+ "member": "Area",
4895
+ "name": "Areas",
4896
+ "required": true,
4897
+ "type": "list"
4898
+ },
4899
+ {
4900
+ "disabled": false,
4901
+ "document": "规则执行的方式,TimedJob为定时执行,CronJob为周期执行",
4902
+ "example": "TimedJob",
4903
+ "member": "string",
4904
+ "name": "JobType",
4905
+ "required": true,
4906
+ "type": "string"
4907
+ },
4908
+ {
4909
+ "disabled": false,
4910
+ "document": "定时任务配置",
4911
+ "example": "{ \"Timed\": [ { \"StartDateTime\": 1711618518, \"EndDateTime\": 1711918518 } ], \"Cron\": [ { \"Day\": 12, \"WDay\": 2, \"StartTime\": \"12:11\", \"EndTime\": \"21:00\" } ], \"TimeTZone\": \"UTC+8\" }",
4912
+ "member": "JobDateTime",
4913
+ "name": "JobDateTime",
4914
+ "required": true,
4915
+ "type": "object"
4916
+ },
4917
+ {
4918
+ "disabled": false,
4919
+ "document": "地域信息的语言,支持cn、en,默认为中文cn",
4920
+ "example": "cn",
4921
+ "member": "string",
4922
+ "name": "Lang",
4923
+ "required": true,
4924
+ "type": "string"
4925
+ }
4926
+ ],
4927
+ "type": "object"
4928
+ },
4929
+ "CreateAreaBanRuleResponse": {
4930
+ "document": "CreateAreaBanRule返回参数结构体",
4931
+ "members": [
4932
+ {
4933
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4934
+ "member": "string",
4935
+ "name": "RequestId",
4936
+ "type": "string"
4937
+ }
4938
+ ],
4939
+ "type": "object"
4940
+ },
4742
4941
  "CreateDealsGoods": {
4743
4942
  "document": "计费下单接口出入参Goods",
4744
4943
  "members": [
@@ -6293,7 +6492,7 @@
6293
6492
  },
6294
6493
  {
6295
6494
  "disabled": false,
6296
- "document": "目前支持根据ts排序",
6495
+ "document": "目前支持根据create_time、modify_time、id排序",
6297
6496
  "example": "\"ts\"",
6298
6497
  "member": "string",
6299
6498
  "name": "By",
@@ -6946,6 +7145,43 @@
6946
7145
  ],
6947
7146
  "usage": "out"
6948
7147
  },
7148
+ "DescribeAreaBanRuleRequest": {
7149
+ "document": "DescribeAreaBanRule请求参数结构体",
7150
+ "members": [
7151
+ {
7152
+ "disabled": false,
7153
+ "document": "需要查询的域名",
7154
+ "example": "www.testwaf.com",
7155
+ "member": "string",
7156
+ "name": "Domain",
7157
+ "required": true,
7158
+ "type": "string"
7159
+ }
7160
+ ],
7161
+ "type": "object"
7162
+ },
7163
+ "DescribeAreaBanRuleResponse": {
7164
+ "document": "DescribeAreaBanRule返回参数结构体",
7165
+ "members": [
7166
+ {
7167
+ "disabled": false,
7168
+ "document": "规则内容",
7169
+ "example": "{ \"Status\": 1, \"Source\": \"custom\", \"Areas\": [ { \"Country\": \"中国\", \"Region\": \"广东\", \"City\": \"深圳\" } ], \"JobType\": \"Timed\", \"JobDateTime\": { \"Timed\": [ { \"StartDateTime\": 1711618518, \"EndDateTime\": 1711919518 } ], \"Cron\": [ ], \"TimeTZone\": \"UTC+8\" }, \"Lang\": \"cn\" }",
7170
+ "member": "AreaBanRule",
7171
+ "name": "Data",
7172
+ "output_required": true,
7173
+ "type": "object",
7174
+ "value_allowed_null": false
7175
+ },
7176
+ {
7177
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
7178
+ "member": "string",
7179
+ "name": "RequestId",
7180
+ "type": "string"
7181
+ }
7182
+ ],
7183
+ "type": "object"
7184
+ },
6949
7185
  "DescribeAreaBanSupportAreasRequest": {
6950
7186
  "document": "DescribeAreaBanSupportAreas请求参数结构体",
6951
7187
  "members": [],
@@ -15970,6 +16206,69 @@
15970
16206
  ],
15971
16207
  "type": "object"
15972
16208
  },
16209
+ "ModifyAreaBanRuleRequest": {
16210
+ "document": "ModifyAreaBanRule请求参数结构体",
16211
+ "members": [
16212
+ {
16213
+ "disabled": false,
16214
+ "document": "需要修改的域名",
16215
+ "example": "www.qcloudwaf.com",
16216
+ "member": "string",
16217
+ "name": "Domain",
16218
+ "required": true,
16219
+ "type": "string"
16220
+ },
16221
+ {
16222
+ "disabled": false,
16223
+ "document": "需要新增的封禁地域",
16224
+ "example": "[{\"Country\":\"中国\",\"Region\":\"广东\",\"City\":\"深圳\"}]",
16225
+ "member": "Area",
16226
+ "name": "Areas",
16227
+ "required": true,
16228
+ "type": "list"
16229
+ },
16230
+ {
16231
+ "disabled": false,
16232
+ "document": "规则执行的方式,TimedJob为定时执行,CronJob为周期执行",
16233
+ "example": "TimedJob",
16234
+ "member": "string",
16235
+ "name": "JobType",
16236
+ "required": true,
16237
+ "type": "string"
16238
+ },
16239
+ {
16240
+ "disabled": false,
16241
+ "document": "定时任务配置",
16242
+ "example": "{ \"Timed\": [ { \"StartDateTime\": 1711618518, \"EndDateTime\": 1711918518 } ], \"Cron\": [ { \"Day\": 12, \"WDay\": 2, \"StartTime\": \"12:11\", \"EndTime\": \"21:00\" } ], \"TimeTZone\": \"UTC+8\" }",
16243
+ "member": "JobDateTime",
16244
+ "name": "JobDateTime",
16245
+ "required": true,
16246
+ "type": "object"
16247
+ },
16248
+ {
16249
+ "disabled": false,
16250
+ "document": "地域信息的语言,支持cn、en,默认为中文cn",
16251
+ "example": "cn",
16252
+ "member": "string",
16253
+ "name": "Lang",
16254
+ "required": false,
16255
+ "type": "string"
16256
+ }
16257
+ ],
16258
+ "type": "object"
16259
+ },
16260
+ "ModifyAreaBanRuleResponse": {
16261
+ "document": "ModifyAreaBanRule返回参数结构体",
16262
+ "members": [
16263
+ {
16264
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
16265
+ "member": "string",
16266
+ "name": "RequestId",
16267
+ "type": "string"
16268
+ }
16269
+ ],
16270
+ "type": "object"
16271
+ },
15973
16272
  "ModifyAreaBanStatusRequest": {
15974
16273
  "document": "ModifyAreaBanStatus请求参数结构体",
15975
16274
  "members": [
@@ -17595,7 +17894,7 @@
17595
17894
  },
17596
17895
  {
17597
17896
  "disabled": false,
17598
- "document": "状态",
17897
+ "document": "1:开启WAF开关,0:关闭WAF开关",
17599
17898
  "example": "0",
17600
17899
  "member": "uint64",
17601
17900
  "name": "Status",
@@ -86,6 +86,14 @@
86
86
  "title": "创建访问日志导出"
87
87
  }
88
88
  ],
89
+ "CreateAreaBanRule": [
90
+ {
91
+ "document": "",
92
+ "input": "POST / HTTP/1.1\nHost: waf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBatchAreaBanRule\n<公共请求参数>\n\n{\n \"Domain\": \"www.testwaf.com\",\n \"Areas\": [\n {\n \"Country\": \"中国\",\n \"Region\": \"广东\",\n \"City\": \"深圳\"\n }\n ],\n \"JobType\": \"CronJob\",\n \"JobDateTime\": {\n \"Timed\": [\n {\n \"StartDateTime\": 1711618518,\n \"EndDateTime\": 1711918518\n }\n ],\n \"Cron\": [\n {\n \"Days\": [],\n \"WDays\": [\n 2\n ],\n \"StartTime\": \"12:11\",\n \"EndTime\": \"21:00\"\n }\n ],\n \"TimeTZone\": \"UTC+8\"\n },\n \"Lang\": \"cn\"\n}",
93
+ "output": "{\n \"Response\": {\n \"RequestId\": \"9b02bf9e-c89c-42c3-9ae1-685f968fa02d\"\n }\n}",
94
+ "title": "添加地域封禁规则"
95
+ }
96
+ ],
89
97
  "CreateDeals": [
90
98
  {
91
99
  "document": "",
@@ -300,6 +308,14 @@
300
308
  "title": "未设置封禁区域的场景"
301
309
  }
302
310
  ],
311
+ "DescribeAreaBanRule": [
312
+ {
313
+ "document": "",
314
+ "input": "POST / HTTP/1.1\nHost: waf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSupportAreas\n<公共请求参数>\n\n{\n \"Domain\": \"www.testwaf.com\"\n}",
315
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"Status\": 1,\n \"Source\": \"custom\",\n \"Areas\": [\n {\n \"Country\": \"中国\",\n \"Region\": \"广东\",\n \"City\": \"深圳\"\n }\n ],\n \"JobType\": \"Timed\",\n \"JobDateTime\": {\n \"Timed\": [\n {\n \"StartDateTime\": 1711618518,\n \"EndDateTime\": 1711919518\n }\n ],\n \"Cron\": [],\n \"TimeTZone\": \"UTC+8\"\n },\n \"Lang\": \"cn\"\n },\n \"RequestId\": \"9b02bf9e-c89c-42c3-9ae1-685f968fa02d\"\n }\n}",
316
+ "title": "获取地域封禁规则"
317
+ }
318
+ ],
303
319
  "DescribeAreaBanSupportAreas": [
304
320
  {
305
321
  "document": "",
@@ -856,6 +872,14 @@
856
872
  "title": "ModifyAreaBanAreas"
857
873
  }
858
874
  ],
875
+ "ModifyAreaBanRule": [
876
+ {
877
+ "document": "",
878
+ "input": "POST / HTTP/1.1\nHost: waf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAreaBanRule\n<公共请求参数>\n\n{\n \"Domain\": \"www.testwaf.com\",\n \"Areas\": [\n {\n \"Country\": \"中国\",\n \"Region\": \"广东\",\n \"City\": \"深圳\"\n }\n ],\n \"JobType\": \"CronJob\",\n \"JobDateTime\": {\n \"Timed\": [\n {\n \"StartDateTime\": 1711618518,\n \"EndDateTime\": 1711918518\n }\n ],\n \"Cron\": [\n {\n \"Days\": [],\n \"WDays\": [\n 2\n ],\n \"StartTime\": \"12:11\",\n \"EndTime\": \"21:00\"\n }\n ],\n \"TimeTZone\": \"UTC+8\"\n }\n}",
879
+ "output": "{\n \"Response\": {\n \"RequestId\": \"9b02bf9e-c89c-42c3-9ae1-685f968fa02d\"\n }\n}",
880
+ "title": "编辑地域封禁规则"
881
+ }
882
+ ],
859
883
  "ModifyAreaBanStatus": [
860
884
  {
861
885
  "document": "",
@@ -1057,7 +1081,7 @@
1057
1081
  "document": "",
1058
1082
  "input": "https://waf.tencentcloudapi.com/?Action=ModifyProtectionStatus\r\n&Domain=www.test.com\r\n&Status=0\r\n&<公共请求参数>",
1059
1083
  "output": "{\n \"Response\": {\n \"RequestId\": \"d680b87a-8c4a-4840-af18-3acb5c9f0e54\"\n }\n}",
1060
- "title": "waf斯巴达-waf开关"
1084
+ "title": "关闭WAF开关"
1061
1085
  }
1062
1086
  ],
1063
1087
  "ModifySpartaProtection": [
@@ -1785,6 +1785,58 @@ def doDeleteAntiInfoLeakRule(args, parsed_globals):
1785
1785
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1786
1786
 
1787
1787
 
1788
+ def doDescribePeakPoints(args, parsed_globals):
1789
+ g_param = parse_global_arg(parsed_globals)
1790
+
1791
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1792
+ cred = credential.CVMRoleCredential()
1793
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1794
+ cred = credential.STSAssumeRoleCredential(
1795
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1796
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1797
+ )
1798
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1799
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1800
+ else:
1801
+ cred = credential.Credential(
1802
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1803
+ )
1804
+ http_profile = HttpProfile(
1805
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1806
+ reqMethod="POST",
1807
+ endpoint=g_param[OptionsDefine.Endpoint],
1808
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1809
+ )
1810
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1811
+ if g_param[OptionsDefine.Language]:
1812
+ profile.language = g_param[OptionsDefine.Language]
1813
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1814
+ client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
1815
+ client._sdkVersion += ("_CLI_" + __version__)
1816
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1817
+ model = models.DescribePeakPointsRequest()
1818
+ model.from_json_string(json.dumps(args))
1819
+ start_time = time.time()
1820
+ while True:
1821
+ rsp = client.DescribePeakPoints(model)
1822
+ result = rsp.to_json_string()
1823
+ try:
1824
+ json_obj = json.loads(result)
1825
+ except TypeError as e:
1826
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1827
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1828
+ break
1829
+ cur_time = time.time()
1830
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1831
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1832
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1833
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1834
+ else:
1835
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1836
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1837
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1838
+
1839
+
1788
1840
  def doModifyAreaBanAreas(args, parsed_globals):
1789
1841
  g_param = parse_global_arg(parsed_globals)
1790
1842
 
@@ -2565,7 +2617,7 @@ def doDescribeAccessFastAnalysis(args, parsed_globals):
2565
2617
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2566
2618
 
2567
2619
 
2568
- def doDescribePeakPoints(args, parsed_globals):
2620
+ def doCreateAreaBanRule(args, parsed_globals):
2569
2621
  g_param = parse_global_arg(parsed_globals)
2570
2622
 
2571
2623
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2594,11 +2646,11 @@ def doDescribePeakPoints(args, parsed_globals):
2594
2646
  client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
2595
2647
  client._sdkVersion += ("_CLI_" + __version__)
2596
2648
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2597
- model = models.DescribePeakPointsRequest()
2649
+ model = models.CreateAreaBanRuleRequest()
2598
2650
  model.from_json_string(json.dumps(args))
2599
2651
  start_time = time.time()
2600
2652
  while True:
2601
- rsp = client.DescribePeakPoints(model)
2653
+ rsp = client.CreateAreaBanRule(model)
2602
2654
  result = rsp.to_json_string()
2603
2655
  try:
2604
2656
  json_obj = json.loads(result)
@@ -5789,6 +5841,58 @@ def doGetInstanceQpsLimit(args, parsed_globals):
5789
5841
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5790
5842
 
5791
5843
 
5844
+ def doDescribeAreaBanRule(args, parsed_globals):
5845
+ g_param = parse_global_arg(parsed_globals)
5846
+
5847
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5848
+ cred = credential.CVMRoleCredential()
5849
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5850
+ cred = credential.STSAssumeRoleCredential(
5851
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5852
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5853
+ )
5854
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5855
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5856
+ else:
5857
+ cred = credential.Credential(
5858
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5859
+ )
5860
+ http_profile = HttpProfile(
5861
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5862
+ reqMethod="POST",
5863
+ endpoint=g_param[OptionsDefine.Endpoint],
5864
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5865
+ )
5866
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5867
+ if g_param[OptionsDefine.Language]:
5868
+ profile.language = g_param[OptionsDefine.Language]
5869
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5870
+ client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
5871
+ client._sdkVersion += ("_CLI_" + __version__)
5872
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5873
+ model = models.DescribeAreaBanRuleRequest()
5874
+ model.from_json_string(json.dumps(args))
5875
+ start_time = time.time()
5876
+ while True:
5877
+ rsp = client.DescribeAreaBanRule(model)
5878
+ result = rsp.to_json_string()
5879
+ try:
5880
+ json_obj = json.loads(result)
5881
+ except TypeError as e:
5882
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5883
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5884
+ break
5885
+ cur_time = time.time()
5886
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5887
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5888
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5889
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5890
+ else:
5891
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5892
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5893
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5894
+
5895
+
5792
5896
  def doDeleteAccessExport(args, parsed_globals):
5793
5897
  g_param = parse_global_arg(parsed_globals)
5794
5898
 
@@ -6465,6 +6569,58 @@ def doModifyApiAnalyzeStatus(args, parsed_globals):
6465
6569
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6466
6570
 
6467
6571
 
6572
+ def doModifyAreaBanRule(args, parsed_globals):
6573
+ g_param = parse_global_arg(parsed_globals)
6574
+
6575
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6576
+ cred = credential.CVMRoleCredential()
6577
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6578
+ cred = credential.STSAssumeRoleCredential(
6579
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6580
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6581
+ )
6582
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6583
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6584
+ else:
6585
+ cred = credential.Credential(
6586
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6587
+ )
6588
+ http_profile = HttpProfile(
6589
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6590
+ reqMethod="POST",
6591
+ endpoint=g_param[OptionsDefine.Endpoint],
6592
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6593
+ )
6594
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6595
+ if g_param[OptionsDefine.Language]:
6596
+ profile.language = g_param[OptionsDefine.Language]
6597
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6598
+ client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
6599
+ client._sdkVersion += ("_CLI_" + __version__)
6600
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6601
+ model = models.ModifyAreaBanRuleRequest()
6602
+ model.from_json_string(json.dumps(args))
6603
+ start_time = time.time()
6604
+ while True:
6605
+ rsp = client.ModifyAreaBanRule(model)
6606
+ result = rsp.to_json_string()
6607
+ try:
6608
+ json_obj = json.loads(result)
6609
+ except TypeError as e:
6610
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6611
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6612
+ break
6613
+ cur_time = time.time()
6614
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6615
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6616
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6617
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6618
+ else:
6619
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6620
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6621
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6622
+
6623
+
6468
6624
  def doDescribeWafAutoDenyStatus(args, parsed_globals):
6469
6625
  g_param = parse_global_arg(parsed_globals)
6470
6626
 
@@ -7654,6 +7810,7 @@ ACTION_MAP = {
7654
7810
  "DescribeWebshellStatus": doDescribeWebshellStatus,
7655
7811
  "DescribeDomainWhiteRules": doDescribeDomainWhiteRules,
7656
7812
  "DeleteAntiInfoLeakRule": doDeleteAntiInfoLeakRule,
7813
+ "DescribePeakPoints": doDescribePeakPoints,
7657
7814
  "ModifyAreaBanAreas": doModifyAreaBanAreas,
7658
7815
  "CreateDeals": doCreateDeals,
7659
7816
  "DescribeAreaBanSupportAreas": doDescribeAreaBanSupportAreas,
@@ -7669,7 +7826,7 @@ ACTION_MAP = {
7669
7826
  "DescribeVipInfo": doDescribeVipInfo,
7670
7827
  "DeleteHost": doDeleteHost,
7671
7828
  "DescribeAccessFastAnalysis": doDescribeAccessFastAnalysis,
7672
- "DescribePeakPoints": doDescribePeakPoints,
7829
+ "CreateAreaBanRule": doCreateAreaBanRule,
7673
7830
  "ModifyCustomWhiteRule": doModifyCustomWhiteRule,
7674
7831
  "DescribeCertificateVerifyResult": doDescribeCertificateVerifyResult,
7675
7832
  "DeleteIpAccessControlV2": doDeleteIpAccessControlV2,
@@ -7731,6 +7888,7 @@ ACTION_MAP = {
7731
7888
  "ModifyGenerateDeals": doModifyGenerateDeals,
7732
7889
  "DescribeHostLimit": doDescribeHostLimit,
7733
7890
  "GetInstanceQpsLimit": doGetInstanceQpsLimit,
7891
+ "DescribeAreaBanRule": doDescribeAreaBanRule,
7734
7892
  "DeleteAccessExport": doDeleteAccessExport,
7735
7893
  "ModifyAntiInfoLeakRuleStatus": doModifyAntiInfoLeakRuleStatus,
7736
7894
  "DescribeDomainVerifyResult": doDescribeDomainVerifyResult,
@@ -7744,6 +7902,7 @@ ACTION_MAP = {
7744
7902
  "ModifyInstanceName": doModifyInstanceName,
7745
7903
  "ModifyModuleStatus": doModifyModuleStatus,
7746
7904
  "ModifyApiAnalyzeStatus": doModifyApiAnalyzeStatus,
7905
+ "ModifyAreaBanRule": doModifyAreaBanRule,
7747
7906
  "DescribeWafAutoDenyStatus": doDescribeWafAutoDenyStatus,
7748
7907
  "ModifyCustomWhiteRuleStatus": doModifyCustomWhiteRuleStatus,
7749
7908
  "DescribePorts": doDescribePorts,