tccli 3.0.1140.1__py2.py3-none-any.whl → 3.0.1142.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/csip/v20221121/api.json +158 -159
- tccli/services/csip/v20221121/examples.json +12 -12
- tccli/services/cynosdb/v20190107/api.json +113 -33
- tccli/services/cynosdb/v20190107/examples.json +3 -3
- tccli/services/dcdb/v20180411/api.json +21 -11
- tccli/services/domain/v20180808/api.json +30 -30
- tccli/services/dts/v20211206/api.json +11 -0
- tccli/services/emr/v20190103/api.json +2 -2
- tccli/services/ess/v20201111/api.json +13 -4
- tccli/services/ess/v20201111/examples.json +2 -2
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/gaap/gaap_client.py +61 -8
- tccli/services/gaap/v20180529/api.json +52 -0
- tccli/services/gaap/v20180529/examples.json +8 -0
- tccli/services/ims/v20201229/api.json +2 -2
- tccli/services/mariadb/v20170312/api.json +21 -11
- tccli/services/mmps/v20200710/api.json +3 -3
- tccli/services/monitor/v20180724/api.json +10 -1
- tccli/services/ocr/v20181119/api.json +41 -4
- tccli/services/ocr/v20181119/examples.json +2 -2
- tccli/services/organization/v20210331/api.json +2 -2
- tccli/services/scf/v20180416/api.json +10 -11
- tccli/services/scf/v20180416/examples.json +1 -1
- tccli/services/ssl/v20191205/api.json +63 -22
- tccli/services/ssl/v20191205/examples.json +4 -4
- tccli/services/tdmq/v20200217/api.json +22 -3
- tccli/services/tdmq/v20200217/examples.json +2 -2
- tccli/services/teo/v20220901/api.json +61 -6
- tccli/services/teo/v20220901/examples.json +6 -0
- tccli/services/vpc/v20170312/api.json +2164 -214
- tccli/services/vpc/v20170312/examples.json +154 -4
- tccli/services/vpc/vpc_client.py +1180 -226
- tccli/services/waf/v20180125/api.json +51 -91
- tccli/services/waf/v20180125/examples.json +0 -8
- tccli/services/waf/waf_client.py +0 -53
- tccli/services/wedata/v20210820/api.json +360 -0
- tccli/services/wedata/v20210820/examples.json +28 -0
- tccli/services/wedata/wedata_client.py +114 -8
- {tccli-3.0.1140.1.dist-info → tccli-3.0.1142.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1140.1.dist-info → tccli-3.0.1142.1.dist-info}/RECORD +44 -44
- {tccli-3.0.1140.1.dist-info → tccli-3.0.1142.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1140.1.dist-info → tccli-3.0.1142.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1140.1.dist-info → tccli-3.0.1142.1.dist-info}/license_files/LICENSE +0 -0
@@ -651,13 +651,6 @@
|
|
651
651
|
"output": "ImportIpAccessControlResponse",
|
652
652
|
"status": "online"
|
653
653
|
},
|
654
|
-
"ModifyAccessPeriod": {
|
655
|
-
"document": "本接口用于修改访问日志保存期限等字段信息",
|
656
|
-
"input": "ModifyAccessPeriodRequest",
|
657
|
-
"name": "修改访问日志保存期限等字段信息",
|
658
|
-
"output": "ModifyAccessPeriodResponse",
|
659
|
-
"status": "online"
|
660
|
-
},
|
661
654
|
"ModifyAntiFakeUrl": {
|
662
655
|
"document": "编辑防篡改url",
|
663
656
|
"input": "ModifyAntiFakeUrlRequest",
|
@@ -4803,7 +4796,7 @@
|
|
4803
4796
|
{
|
4804
4797
|
"disabled": false,
|
4805
4798
|
"document": "删除的域名",
|
4806
|
-
"example": "
|
4799
|
+
"example": "test.com",
|
4807
4800
|
"member": "string",
|
4808
4801
|
"name": "Domain",
|
4809
4802
|
"required": true,
|
@@ -4812,7 +4805,7 @@
|
|
4812
4805
|
{
|
4813
4806
|
"disabled": false,
|
4814
4807
|
"document": "删除的规则ID",
|
4815
|
-
"example": "
|
4808
|
+
"example": "1001",
|
4816
4809
|
"member": "string",
|
4817
4810
|
"name": "RuleId",
|
4818
4811
|
"required": true,
|
@@ -4821,7 +4814,7 @@
|
|
4821
4814
|
{
|
4822
4815
|
"disabled": false,
|
4823
4816
|
"document": "WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。",
|
4824
|
-
"example": "
|
4817
|
+
"example": "clb-waf",
|
4825
4818
|
"member": "string",
|
4826
4819
|
"name": "Edition",
|
4827
4820
|
"required": false,
|
@@ -4830,7 +4823,7 @@
|
|
4830
4823
|
{
|
4831
4824
|
"disabled": false,
|
4832
4825
|
"document": "批量删除的规则列表",
|
4833
|
-
"example": "
|
4826
|
+
"example": "[]",
|
4834
4827
|
"member": "DomainRuleId",
|
4835
4828
|
"name": "DomainRuleIdList",
|
4836
4829
|
"required": false,
|
@@ -4845,7 +4838,7 @@
|
|
4845
4838
|
{
|
4846
4839
|
"disabled": false,
|
4847
4840
|
"document": "操作的状态码,如果所有的资源操作成功则返回的是成功的状态码,如果有资源操作失败则需要解析Message的内容来查看哪个资源失败",
|
4848
|
-
"example": "
|
4841
|
+
"example": "{}",
|
4849
4842
|
"member": "ResponseCode",
|
4850
4843
|
"name": "Success",
|
4851
4844
|
"output_required": true,
|
@@ -5023,7 +5016,7 @@
|
|
5023
5016
|
{
|
5024
5017
|
"disabled": false,
|
5025
5018
|
"document": "域名",
|
5026
|
-
"example": "
|
5019
|
+
"example": "test.com",
|
5027
5020
|
"member": "string",
|
5028
5021
|
"name": "Domain",
|
5029
5022
|
"required": true,
|
@@ -5032,7 +5025,7 @@
|
|
5032
5025
|
{
|
5033
5026
|
"disabled": false,
|
5034
5027
|
"document": "删除的ip数组",
|
5035
|
-
"example": "
|
5028
|
+
"example": "[]",
|
5036
5029
|
"member": "string",
|
5037
5030
|
"name": "Items",
|
5038
5031
|
"required": true,
|
@@ -5083,7 +5076,7 @@
|
|
5083
5076
|
{
|
5084
5077
|
"disabled": false,
|
5085
5078
|
"document": "删除失败的条目\n注意:此字段可能返回 null,表示取不到有效值。",
|
5086
|
-
"example": "
|
5079
|
+
"example": "test",
|
5087
5080
|
"member": "string",
|
5088
5081
|
"name": "FailedItems",
|
5089
5082
|
"output_required": true,
|
@@ -5093,7 +5086,7 @@
|
|
5093
5086
|
{
|
5094
5087
|
"disabled": false,
|
5095
5088
|
"document": "删除失败的条目数\n注意:此字段可能返回 null,表示取不到有效值。",
|
5096
|
-
"example": "
|
5089
|
+
"example": "0",
|
5097
5090
|
"member": "int64",
|
5098
5091
|
"name": "FailedCount",
|
5099
5092
|
"output_required": true,
|
@@ -5221,7 +5214,7 @@
|
|
5221
5214
|
{
|
5222
5215
|
"disabled": false,
|
5223
5216
|
"document": "结果\n注意:此字段可能返回 null,表示取不到有效值。",
|
5224
|
-
"example": "
|
5217
|
+
"example": "\"\"",
|
5225
5218
|
"member": "string",
|
5226
5219
|
"name": "Data",
|
5227
5220
|
"output_required": true,
|
@@ -7113,7 +7106,7 @@
|
|
7113
7106
|
{
|
7114
7107
|
"disabled": false,
|
7115
7108
|
"document": "过滤数组,name可以是如下的值: RuleID,RuleName,Match",
|
7116
|
-
"example": "
|
7109
|
+
"example": "[]",
|
7117
7110
|
"member": "FiltersItemNew",
|
7118
7111
|
"name": "Filters",
|
7119
7112
|
"required": false,
|
@@ -7140,7 +7133,7 @@
|
|
7140
7133
|
{
|
7141
7134
|
"disabled": false,
|
7142
7135
|
"document": "查询的域名列表,访问控制页面不用传",
|
7143
|
-
"example": "
|
7136
|
+
"example": "[]",
|
7144
7137
|
"member": "string",
|
7145
7138
|
"name": "DomainList",
|
7146
7139
|
"required": false,
|
@@ -7155,7 +7148,7 @@
|
|
7155
7148
|
{
|
7156
7149
|
"disabled": false,
|
7157
7150
|
"document": "规则详情",
|
7158
|
-
"example": "
|
7151
|
+
"example": "[]",
|
7159
7152
|
"member": "DescribeCustomRulesRspRuleListItem",
|
7160
7153
|
"name": "RuleList",
|
7161
7154
|
"output_required": true,
|
@@ -7187,7 +7180,7 @@
|
|
7187
7180
|
{
|
7188
7181
|
"disabled": false,
|
7189
7182
|
"document": "动作类型",
|
7190
|
-
"example": "
|
7183
|
+
"example": "1",
|
7191
7184
|
"member": "string",
|
7192
7185
|
"name": "ActionType",
|
7193
7186
|
"output_required": true,
|
@@ -7197,7 +7190,7 @@
|
|
7197
7190
|
{
|
7198
7191
|
"disabled": false,
|
7199
7192
|
"document": "跳过的策略",
|
7200
|
-
"example": "
|
7193
|
+
"example": "\"\"",
|
7201
7194
|
"member": "string",
|
7202
7195
|
"name": "Bypass",
|
7203
7196
|
"output_required": true,
|
@@ -7207,7 +7200,7 @@
|
|
7207
7200
|
{
|
7208
7201
|
"disabled": false,
|
7209
7202
|
"document": "创建时间",
|
7210
|
-
"example": "
|
7203
|
+
"example": "2023-10-09T16:03:14+08:00",
|
7211
7204
|
"member": "string",
|
7212
7205
|
"name": "CreateTime",
|
7213
7206
|
"output_required": true,
|
@@ -7217,7 +7210,7 @@
|
|
7217
7210
|
{
|
7218
7211
|
"disabled": false,
|
7219
7212
|
"document": "过期时间",
|
7220
|
-
"example": "
|
7213
|
+
"example": "2023-10-09T16:03:14+08:00",
|
7221
7214
|
"member": "string",
|
7222
7215
|
"name": "ExpireTime",
|
7223
7216
|
"output_required": true,
|
@@ -7227,7 +7220,7 @@
|
|
7227
7220
|
{
|
7228
7221
|
"disabled": false,
|
7229
7222
|
"document": "策略名称",
|
7230
|
-
"example": "
|
7223
|
+
"example": "anti",
|
7231
7224
|
"member": "string",
|
7232
7225
|
"name": "Name",
|
7233
7226
|
"output_required": true,
|
@@ -7237,7 +7230,7 @@
|
|
7237
7230
|
{
|
7238
7231
|
"disabled": false,
|
7239
7232
|
"document": "重定向地址",
|
7240
|
-
"example": "
|
7233
|
+
"example": "/",
|
7241
7234
|
"member": "string",
|
7242
7235
|
"name": "Redirect",
|
7243
7236
|
"output_required": true,
|
@@ -7247,7 +7240,7 @@
|
|
7247
7240
|
{
|
7248
7241
|
"disabled": false,
|
7249
7242
|
"document": "策略ID",
|
7250
|
-
"example": "
|
7243
|
+
"example": "12211",
|
7251
7244
|
"member": "string",
|
7252
7245
|
"name": "RuleId",
|
7253
7246
|
"output_required": true,
|
@@ -7257,7 +7250,7 @@
|
|
7257
7250
|
{
|
7258
7251
|
"disabled": false,
|
7259
7252
|
"document": "优先级",
|
7260
|
-
"example": "
|
7253
|
+
"example": "12",
|
7261
7254
|
"member": "string",
|
7262
7255
|
"name": "SortId",
|
7263
7256
|
"output_required": true,
|
@@ -7267,7 +7260,7 @@
|
|
7267
7260
|
{
|
7268
7261
|
"disabled": false,
|
7269
7262
|
"document": "状态",
|
7270
|
-
"example": "
|
7263
|
+
"example": "0",
|
7271
7264
|
"member": "string",
|
7272
7265
|
"name": "Status",
|
7273
7266
|
"output_required": true,
|
@@ -7277,7 +7270,7 @@
|
|
7277
7270
|
{
|
7278
7271
|
"disabled": false,
|
7279
7272
|
"document": "策略详情",
|
7280
|
-
"example": "
|
7273
|
+
"example": "[]",
|
7281
7274
|
"member": "Strategy",
|
7282
7275
|
"name": "Strategies",
|
7283
7276
|
"output_required": true,
|
@@ -7287,7 +7280,7 @@
|
|
7287
7280
|
{
|
7288
7281
|
"disabled": false,
|
7289
7282
|
"document": "事件id\n注意:此字段可能返回 null,表示取不到有效值。",
|
7290
|
-
"example": "
|
7283
|
+
"example": "\"\"",
|
7291
7284
|
"member": "string",
|
7292
7285
|
"name": "EventId",
|
7293
7286
|
"output_required": true,
|
@@ -7327,7 +7320,7 @@
|
|
7327
7320
|
{
|
7328
7321
|
"disabled": false,
|
7329
7322
|
"document": "定时任务类型\n注意:此字段可能返回 null,表示取不到有效值。",
|
7330
|
-
"example": "
|
7323
|
+
"example": "TimedJob",
|
7331
7324
|
"member": "string",
|
7332
7325
|
"name": "JobType",
|
7333
7326
|
"output_required": false,
|
@@ -7337,7 +7330,7 @@
|
|
7337
7330
|
{
|
7338
7331
|
"disabled": false,
|
7339
7332
|
"document": "定时任务配置信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
7340
|
-
"example": "
|
7333
|
+
"example": "2023-10-09T16:03:14+08:00",
|
7341
7334
|
"member": "JobDateTime",
|
7342
7335
|
"name": "JobDateTime",
|
7343
7336
|
"output_required": false,
|
@@ -7347,7 +7340,7 @@
|
|
7347
7340
|
{
|
7348
7341
|
"disabled": false,
|
7349
7342
|
"document": "周期任务粒度\n注意:此字段可能返回 null,表示取不到有效值。",
|
7350
|
-
"example": "
|
7343
|
+
"example": "\"\"",
|
7351
7344
|
"member": "string",
|
7352
7345
|
"name": "CronType",
|
7353
7346
|
"output_required": false,
|
@@ -7357,7 +7350,7 @@
|
|
7357
7350
|
{
|
7358
7351
|
"disabled": false,
|
7359
7352
|
"document": "自定义标签,风控规则用,用来表示是内置规则还是用户自定义的\n注意:此字段可能返回 null,表示取不到有效值。",
|
7360
|
-
"example": "
|
7353
|
+
"example": "\"\"",
|
7361
7354
|
"member": "string",
|
7362
7355
|
"name": "Label",
|
7363
7356
|
"output_required": false,
|
@@ -7367,7 +7360,7 @@
|
|
7367
7360
|
{
|
7368
7361
|
"disabled": false,
|
7369
7362
|
"document": "拦截页面id\n注意:此字段可能返回 null,表示取不到有效值。",
|
7370
|
-
"example": "
|
7363
|
+
"example": "\"\"",
|
7371
7364
|
"member": "string",
|
7372
7365
|
"name": "PageId",
|
7373
7366
|
"output_required": false,
|
@@ -7377,7 +7370,7 @@
|
|
7377
7370
|
{
|
7378
7371
|
"disabled": false,
|
7379
7372
|
"document": "域名\n注意:此字段可能返回 null,表示取不到有效值。",
|
7380
|
-
"example": "
|
7373
|
+
"example": "test.com",
|
7381
7374
|
"member": "string",
|
7382
7375
|
"name": "Domain",
|
7383
7376
|
"output_required": false,
|
@@ -7677,10 +7670,10 @@
|
|
7677
7670
|
{
|
7678
7671
|
"disabled": false,
|
7679
7672
|
"document": "规则列表详情",
|
7680
|
-
"example": "
|
7673
|
+
"example": "[{Id:1 Type:\"命令注入攻击\" Level:\"正常\" Description:\"防护\" ModifyTime:\"2024-07-02 19:44:33\" AddTime:\"2023-04-27T22:32:49+08:00\"}]",
|
7681
7674
|
"member": "Rule",
|
7682
7675
|
"name": "Rules",
|
7683
|
-
"
|
7676
|
+
"output_required": true,
|
7684
7677
|
"type": "list",
|
7685
7678
|
"value_allowed_null": false
|
7686
7679
|
},
|
@@ -9737,7 +9730,7 @@
|
|
9737
9730
|
{
|
9738
9731
|
"disabled": false,
|
9739
9732
|
"document": "地域(标准的ap-格式)列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
9740
|
-
"example": "
|
9733
|
+
"example": "ap-guangzhou",
|
9741
9734
|
"member": "string",
|
9742
9735
|
"name": "Data",
|
9743
9736
|
"output_required": true,
|
@@ -9747,7 +9740,7 @@
|
|
9747
9740
|
{
|
9748
9741
|
"disabled": false,
|
9749
9742
|
"document": "包含详细属性的地域信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
9750
|
-
"example": "
|
9743
|
+
"example": "{Id:\"sh\" Text:\"上海\" Value:\"ap-shanghai\" Code:\"4\"} ",
|
9751
9744
|
"member": "ClbWafRegionItem",
|
9752
9745
|
"name": "RichDatas",
|
9753
9746
|
"output_required": false,
|
@@ -14158,42 +14151,6 @@
|
|
14158
14151
|
],
|
14159
14152
|
"usage": "both"
|
14160
14153
|
},
|
14161
|
-
"ModifyAccessPeriodRequest": {
|
14162
|
-
"document": "ModifyAccessPeriod请求参数结构体",
|
14163
|
-
"members": [
|
14164
|
-
{
|
14165
|
-
"disabled": false,
|
14166
|
-
"document": "访问日志保存期限,范围为[1, 180]",
|
14167
|
-
"example": "30",
|
14168
|
-
"member": "int64",
|
14169
|
-
"name": "Period",
|
14170
|
-
"required": true,
|
14171
|
-
"type": "int"
|
14172
|
-
},
|
14173
|
-
{
|
14174
|
-
"disabled": true,
|
14175
|
-
"document": "日志主题,新版本不需要再传",
|
14176
|
-
"example": "\"1ae37c76-df99-4e2b-998c-20f39eba6226\"",
|
14177
|
-
"member": "string",
|
14178
|
-
"name": "TopicId",
|
14179
|
-
"required": false,
|
14180
|
-
"type": "string"
|
14181
|
-
}
|
14182
|
-
],
|
14183
|
-
"type": "object"
|
14184
|
-
},
|
14185
|
-
"ModifyAccessPeriodResponse": {
|
14186
|
-
"document": "ModifyAccessPeriod返回参数结构体",
|
14187
|
-
"members": [
|
14188
|
-
{
|
14189
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
14190
|
-
"member": "string",
|
14191
|
-
"name": "RequestId",
|
14192
|
-
"type": "string"
|
14193
|
-
}
|
14194
|
-
],
|
14195
|
-
"type": "object"
|
14196
|
-
},
|
14197
14154
|
"ModifyAntiFakeUrlRequest": {
|
14198
14155
|
"document": "ModifyAntiFakeUrl请求参数结构体",
|
14199
14156
|
"members": [
|
@@ -14416,7 +14373,7 @@
|
|
14416
14373
|
{
|
14417
14374
|
"disabled": false,
|
14418
14375
|
"document": "开关状态",
|
14419
|
-
"example": "
|
14376
|
+
"example": "0",
|
14420
14377
|
"member": "uint64",
|
14421
14378
|
"name": "Status",
|
14422
14379
|
"required": true,
|
@@ -14425,7 +14382,7 @@
|
|
14425
14382
|
{
|
14426
14383
|
"disabled": false,
|
14427
14384
|
"document": "域名",
|
14428
|
-
"example": "
|
14385
|
+
"example": "test.com",
|
14429
14386
|
"member": "string",
|
14430
14387
|
"name": "Domain",
|
14431
14388
|
"required": false,
|
@@ -14434,7 +14391,7 @@
|
|
14434
14391
|
{
|
14435
14392
|
"disabled": false,
|
14436
14393
|
"document": "实例id",
|
14437
|
-
"example": "
|
14394
|
+
"example": "waf_0000001",
|
14438
14395
|
"member": "string",
|
14439
14396
|
"name": "InstanceId",
|
14440
14397
|
"required": false,
|
@@ -14443,7 +14400,7 @@
|
|
14443
14400
|
{
|
14444
14401
|
"disabled": false,
|
14445
14402
|
"document": "需要批量开启的实体列表",
|
14446
|
-
"example": "
|
14403
|
+
"example": "[]",
|
14447
14404
|
"member": "TargetEntity",
|
14448
14405
|
"name": "TargetList",
|
14449
14406
|
"required": false,
|
@@ -14461,24 +14418,27 @@
|
|
14461
14418
|
"example": "1",
|
14462
14419
|
"member": "int64",
|
14463
14420
|
"name": "Count",
|
14421
|
+
"output_required": true,
|
14464
14422
|
"type": "int",
|
14465
14423
|
"value_allowed_null": true
|
14466
14424
|
},
|
14467
14425
|
{
|
14468
14426
|
"disabled": false,
|
14469
14427
|
"document": "不支持开启的域名列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
14470
|
-
"example": "
|
14428
|
+
"example": "[]",
|
14471
14429
|
"member": "string",
|
14472
14430
|
"name": "UnSupportedList",
|
14431
|
+
"output_required": true,
|
14473
14432
|
"type": "list",
|
14474
14433
|
"value_allowed_null": true
|
14475
14434
|
},
|
14476
14435
|
{
|
14477
14436
|
"disabled": false,
|
14478
14437
|
"document": "开启/关闭失败的域名列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
14479
|
-
"example": "
|
14438
|
+
"example": "[]",
|
14480
14439
|
"member": "string",
|
14481
14440
|
"name": "FailDomainList",
|
14441
|
+
"output_required": true,
|
14482
14442
|
"type": "list",
|
14483
14443
|
"value_allowed_null": true
|
14484
14444
|
},
|
@@ -14533,7 +14493,7 @@
|
|
14533
14493
|
{
|
14534
14494
|
"disabled": false,
|
14535
14495
|
"document": "批量操作的api列表",
|
14536
|
-
"example": "
|
14496
|
+
"example": "[]",
|
14537
14497
|
"member": "ApiSecKey",
|
14538
14498
|
"name": "ApiNameList",
|
14539
14499
|
"required": false,
|
@@ -17586,20 +17546,20 @@
|
|
17586
17546
|
{
|
17587
17547
|
"disabled": false,
|
17588
17548
|
"document": "如果成功则返回Success,失败则返回云api定义的错误码",
|
17589
|
-
"example": "
|
17549
|
+
"example": "Success",
|
17590
17550
|
"member": "string",
|
17591
17551
|
"name": "Code",
|
17592
|
-
"
|
17552
|
+
"output_required": true,
|
17593
17553
|
"type": "string",
|
17594
17554
|
"value_allowed_null": false
|
17595
17555
|
},
|
17596
17556
|
{
|
17597
17557
|
"disabled": false,
|
17598
17558
|
"document": "如果成功则返回Success,失败则返回WAF定义的二级错误码",
|
17599
|
-
"example": "
|
17559
|
+
"example": "Success",
|
17600
17560
|
"member": "string",
|
17601
17561
|
"name": "Message",
|
17602
|
-
"
|
17562
|
+
"output_required": true,
|
17603
17563
|
"type": "string",
|
17604
17564
|
"value_allowed_null": false
|
17605
17565
|
}
|
@@ -18338,7 +18298,7 @@
|
|
18338
18298
|
{
|
18339
18299
|
"disabled": false,
|
18340
18300
|
"document": "匹配条件,returncode(响应码)、keywords(关键字)、information(敏感信息)",
|
18341
|
-
"example": "
|
18301
|
+
"example": "returncode",
|
18342
18302
|
"member": "string",
|
18343
18303
|
"name": "Field",
|
18344
18304
|
"required": true,
|
@@ -18347,7 +18307,7 @@
|
|
18347
18307
|
{
|
18348
18308
|
"disabled": false,
|
18349
18309
|
"document": "逻辑符号,固定取值为contains",
|
18350
|
-
"example": "
|
18310
|
+
"example": "contains",
|
18351
18311
|
"member": "string",
|
18352
18312
|
"name": "CompareFunc",
|
18353
18313
|
"required": true,
|
@@ -18356,7 +18316,7 @@
|
|
18356
18316
|
{
|
18357
18317
|
"disabled": false,
|
18358
18318
|
"document": "匹配内容。\n以下三个对应Field为information时可取的匹配内容:\nidcard(身份证)、phone(手机号)、bankcard(银行卡)。\n以下为对应Field为returncode时可取的匹配内容:\n400(状态码400)、403(状态码403)、404(状态码404)、4xx(其它4xx状态码)、500(状态码500)、501(状态码501)、502(状态码502)、504(状态码504)、5xx(其它5xx状态码)。\n当对应Field为keywords时由用户自己输入匹配内容。\n",
|
18359
|
-
"example": "
|
18319
|
+
"example": "test",
|
18360
18320
|
"member": "string",
|
18361
18321
|
"name": "Content",
|
18362
18322
|
"required": true,
|
@@ -802,14 +802,6 @@
|
|
802
802
|
"title": "导入IP黑白名单"
|
803
803
|
}
|
804
804
|
],
|
805
|
-
"ModifyAccessPeriod": [
|
806
|
-
{
|
807
|
-
"document": "",
|
808
|
-
"input": "POST / HTTP/1.1\nHost: waf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAccessPeriod\n<公共请求参数>\n\n{\n \"TopicId\": \"1ae37c76-df99-4e2b-998c-20f39eba6226\",\n \"Period\": 30\n}",
|
809
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"9b02bf9e-c89c-42c3-9ae1-685f968fa02d\"\n }\n}",
|
810
|
-
"title": "删除访问日志导出"
|
811
|
-
}
|
812
|
-
],
|
813
805
|
"ModifyAntiFakeUrl": [
|
814
806
|
{
|
815
807
|
"document": "",
|
tccli/services/waf/waf_client.py
CHANGED
@@ -2253,58 +2253,6 @@ def doGetAttackHistogram(args, parsed_globals):
|
|
2253
2253
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2254
2254
|
|
2255
2255
|
|
2256
|
-
def doModifyAccessPeriod(args, parsed_globals):
|
2257
|
-
g_param = parse_global_arg(parsed_globals)
|
2258
|
-
|
2259
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2260
|
-
cred = credential.CVMRoleCredential()
|
2261
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2262
|
-
cred = credential.STSAssumeRoleCredential(
|
2263
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2264
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2265
|
-
)
|
2266
|
-
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):
|
2267
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2268
|
-
else:
|
2269
|
-
cred = credential.Credential(
|
2270
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2271
|
-
)
|
2272
|
-
http_profile = HttpProfile(
|
2273
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2274
|
-
reqMethod="POST",
|
2275
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
2276
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2277
|
-
)
|
2278
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2279
|
-
if g_param[OptionsDefine.Language]:
|
2280
|
-
profile.language = g_param[OptionsDefine.Language]
|
2281
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2282
|
-
client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
|
2283
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
2284
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2285
|
-
model = models.ModifyAccessPeriodRequest()
|
2286
|
-
model.from_json_string(json.dumps(args))
|
2287
|
-
start_time = time.time()
|
2288
|
-
while True:
|
2289
|
-
rsp = client.ModifyAccessPeriod(model)
|
2290
|
-
result = rsp.to_json_string()
|
2291
|
-
try:
|
2292
|
-
json_obj = json.loads(result)
|
2293
|
-
except TypeError as e:
|
2294
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2295
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2296
|
-
break
|
2297
|
-
cur_time = time.time()
|
2298
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2299
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2300
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2301
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2302
|
-
else:
|
2303
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2304
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2305
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2306
|
-
|
2307
|
-
|
2308
2256
|
def doModifyAntiFakeUrlStatus(args, parsed_globals):
|
2309
2257
|
g_param = parse_global_arg(parsed_globals)
|
2310
2258
|
|
@@ -7455,7 +7403,6 @@ ACTION_MAP = {
|
|
7455
7403
|
"DescribeModuleStatus": doDescribeModuleStatus,
|
7456
7404
|
"UpsertIpAccessControl": doUpsertIpAccessControl,
|
7457
7405
|
"GetAttackHistogram": doGetAttackHistogram,
|
7458
|
-
"ModifyAccessPeriod": doModifyAccessPeriod,
|
7459
7406
|
"ModifyAntiFakeUrlStatus": doModifyAntiFakeUrlStatus,
|
7460
7407
|
"DescribeVipInfo": doDescribeVipInfo,
|
7461
7408
|
"DeleteHost": doDeleteHost,
|