tccli 3.0.1132.1__py2.py3-none-any.whl → 3.0.1134.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 (83) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apm/v20210622/api.json +1 -0
  3. tccli/services/apm/v20210622/examples.json +1 -1
  4. tccli/services/asr/v20190614/api.json +2 -2
  5. tccli/services/billing/v20180709/api.json +10 -0
  6. tccli/services/cam/v20190116/api.json +41 -12
  7. tccli/services/cdwch/v20200915/api.json +9 -9
  8. tccli/services/cdwch/v20200915/examples.json +1 -1
  9. tccli/services/cdwdoris/v20211228/api.json +18 -0
  10. tccli/services/cfw/v20190904/api.json +4 -4
  11. tccli/services/ckafka/v20190819/api.json +130 -74
  12. tccli/services/ckafka/v20190819/examples.json +17 -17
  13. tccli/services/cls/v20201016/api.json +1 -1
  14. tccli/services/cls/v20201016/examples.json +1 -1
  15. tccli/services/cmq/v20190304/api.json +53 -49
  16. tccli/services/cmq/v20190304/examples.json +2 -2
  17. tccli/services/cms/v20190321/api.json +2 -0
  18. tccli/services/cms/v20190321/examples.json +1 -1
  19. tccli/services/csip/v20221121/api.json +137 -42
  20. tccli/services/csip/v20221121/examples.json +4 -4
  21. tccli/services/cynosdb/cynosdb_client.py +57 -4
  22. tccli/services/cynosdb/v20190107/api.json +451 -0
  23. tccli/services/cynosdb/v20190107/examples.json +8 -0
  24. tccli/services/dlc/dlc_client.py +106 -0
  25. tccli/services/dlc/v20210125/api.json +181 -0
  26. tccli/services/dlc/v20210125/examples.json +16 -0
  27. tccli/services/dsgc/v20190723/api.json +65 -58
  28. tccli/services/dsgc/v20190723/examples.json +5 -5
  29. tccli/services/dts/dts_client.py +0 -53
  30. tccli/services/dts/v20180330/api.json +0 -98
  31. tccli/services/dts/v20180330/examples.json +0 -8
  32. tccli/services/eb/v20210416/examples.json +1 -1
  33. tccli/services/emr/v20190103/api.json +5 -5
  34. tccli/services/ess/ess_client.py +411 -305
  35. tccli/services/ess/v20201111/api.json +144 -0
  36. tccli/services/ess/v20201111/examples.json +16 -0
  37. tccli/services/essbasic/essbasic_client.py +110 -4
  38. tccli/services/essbasic/v20210526/api.json +139 -4
  39. tccli/services/essbasic/v20210526/examples.json +16 -0
  40. tccli/services/gaap/v20180529/api.json +1 -1
  41. tccli/services/gaap/v20180529/examples.json +0 -6
  42. tccli/services/iecp/v20210914/api.json +40 -40
  43. tccli/services/ims/v20201229/api.json +2 -2
  44. tccli/services/lke/lke_client.py +171 -12
  45. tccli/services/lke/v20231130/api.json +524 -0
  46. tccli/services/lke/v20231130/examples.json +24 -0
  47. tccli/services/mongodb/mongodb_client.py +57 -4
  48. tccli/services/mongodb/v20190725/api.json +96 -0
  49. tccli/services/mongodb/v20190725/examples.json +8 -0
  50. tccli/services/monitor/v20180724/api.json +47 -19
  51. tccli/services/monitor/v20180724/examples.json +4 -4
  52. tccli/services/mps/v20190612/api.json +57 -7
  53. tccli/services/mps/v20190612/examples.json +1 -1
  54. tccli/services/ocr/v20181119/api.json +373 -3
  55. tccli/services/organization/organization_client.py +118 -12
  56. tccli/services/organization/v20210331/api.json +68 -0
  57. tccli/services/organization/v20210331/examples.json +16 -0
  58. tccli/services/pts/v20210728/api.json +1 -1
  59. tccli/services/pts/v20210728/examples.json +1 -1
  60. tccli/services/rum/v20210622/api.json +2 -0
  61. tccli/services/rum/v20210622/examples.json +1 -1
  62. tccli/services/sms/v20210111/api.json +26 -26
  63. tccli/services/tcr/v20190924/api.json +13 -10
  64. tccli/services/tcr/v20190924/examples.json +2 -2
  65. tccli/services/tdmq/tdmq_client.py +443 -19
  66. tccli/services/tdmq/v20200217/api.json +570 -0
  67. tccli/services/tdmq/v20200217/examples.json +64 -0
  68. tccli/services/tke/tke_client.py +53 -0
  69. tccli/services/tke/v20180525/api.json +227 -41
  70. tccli/services/tke/v20180525/examples.json +26 -0
  71. tccli/services/trro/v20220325/api.json +6 -6
  72. tccli/services/trtc/v20190722/api.json +1 -1
  73. tccli/services/tse/v20201207/api.json +13 -2
  74. tccli/services/tsf/v20180326/api.json +47 -35
  75. tccli/services/tsf/v20180326/examples.json +4 -4
  76. tccli/services/waf/v20180125/api.json +65 -9
  77. tccli/services/waf/v20180125/examples.json +1 -1
  78. tccli/services/wedata/v20210820/api.json +30 -19
  79. {tccli-3.0.1132.1.dist-info → tccli-3.0.1134.1.dist-info}/METADATA +2 -2
  80. {tccli-3.0.1132.1.dist-info → tccli-3.0.1134.1.dist-info}/RECORD +83 -83
  81. {tccli-3.0.1132.1.dist-info → tccli-3.0.1134.1.dist-info}/WHEEL +0 -0
  82. {tccli-3.0.1132.1.dist-info → tccli-3.0.1134.1.dist-info}/entry_points.txt +0 -0
  83. {tccli-3.0.1132.1.dist-info → tccli-3.0.1134.1.dist-info}/license_files/LICENSE +0 -0
@@ -3093,7 +3093,7 @@
3093
3093
  {
3094
3094
  "disabled": false,
3095
3095
  "document": "pcmgrId\n注意:此字段可能返回 null,表示取不到有效值。",
3096
- "example": "",
3096
+ "example": "abcd",
3097
3097
  "member": "string",
3098
3098
  "name": "PCMGRId",
3099
3099
  "output_required": true,
@@ -3103,7 +3103,7 @@
3103
3103
  {
3104
3104
  "disabled": false,
3105
3105
  "document": "报告id\n注意:此字段可能返回 null,表示取不到有效值。",
3106
- "example": "",
3106
+ "example": "rpt-xxxxx",
3107
3107
  "member": "string",
3108
3108
  "name": "LogId",
3109
3109
  "output_required": false,
@@ -3113,7 +3113,7 @@
3113
3113
  {
3114
3114
  "disabled": false,
3115
3115
  "document": "任务id\n注意:此字段可能返回 null,表示取不到有效值。",
3116
- "example": "",
3116
+ "example": "rmis-xxx",
3117
3117
  "member": "string",
3118
3118
  "name": "TaskId",
3119
3119
  "output_required": false,
@@ -3123,7 +3123,7 @@
3123
3123
  {
3124
3124
  "disabled": false,
3125
3125
  "document": "漏洞标签\n注意:此字段可能返回 null,表示取不到有效值。",
3126
- "example": "必修",
3126
+ "example": "[]",
3127
3127
  "member": "string",
3128
3128
  "name": "VulTag",
3129
3129
  "output_required": false,
@@ -3133,7 +3133,7 @@
3133
3133
  {
3134
3134
  "disabled": false,
3135
3135
  "document": "漏洞披露时间\n注意:此字段可能返回 null,表示取不到有效值。",
3136
- "example": "",
3136
+ "example": "2020-01-01 00:00:00",
3137
3137
  "member": "string",
3138
3138
  "name": "DisclosureTime",
3139
3139
  "output_required": false,
@@ -3143,7 +3143,7 @@
3143
3143
  {
3144
3144
  "disabled": false,
3145
3145
  "document": "攻击热度\n注意:此字段可能返回 null,表示取不到有效值。",
3146
- "example": "",
3146
+ "example": "0",
3147
3147
  "member": "uint64",
3148
3148
  "name": "AttackHeat",
3149
3149
  "output_required": false,
@@ -3153,7 +3153,7 @@
3153
3153
  {
3154
3154
  "disabled": false,
3155
3155
  "document": "是否必修漏洞1是,0不是\n注意:此字段可能返回 null,表示取不到有效值。",
3156
- "example": "",
3156
+ "example": "0",
3157
3157
  "member": "int64",
3158
3158
  "name": "IsSuggest",
3159
3159
  "output_required": false,
@@ -3163,7 +3163,7 @@
3163
3163
  {
3164
3164
  "disabled": false,
3165
3165
  "document": "处置任务ID\n注意:此字段可能返回 null,表示取不到有效值。",
3166
- "example": "",
3166
+ "example": "abcd",
3167
3167
  "member": "string",
3168
3168
  "name": "HandleTaskId",
3169
3169
  "output_required": false,
@@ -3173,7 +3173,7 @@
3173
3173
  {
3174
3174
  "disabled": false,
3175
3175
  "document": "引擎来源\n注意:此字段可能返回 null,表示取不到有效值。",
3176
- "example": "nsfocus_vul",
3176
+ "example": "vss",
3177
3177
  "member": "string",
3178
3178
  "name": "EngineSource",
3179
3179
  "output_required": false,
@@ -3183,12 +3183,32 @@
3183
3183
  {
3184
3184
  "disabled": false,
3185
3185
  "document": "新的漏洞风险id(同全网漏洞表的riskid)\n注意:此字段可能返回 null,表示取不到有效值。",
3186
- "example": "",
3186
+ "example": "abcd",
3187
3187
  "member": "string",
3188
3188
  "name": "VulRiskId",
3189
3189
  "output_required": false,
3190
3190
  "type": "string",
3191
3191
  "value_allowed_null": true
3192
+ },
3193
+ {
3194
+ "disabled": false,
3195
+ "document": "新版漏洞id\n注意:此字段可能返回 null,表示取不到有效值。",
3196
+ "example": "TVD-xxx",
3197
+ "member": "string",
3198
+ "name": "TvdID",
3199
+ "output_required": false,
3200
+ "type": "string",
3201
+ "value_allowed_null": true
3202
+ },
3203
+ {
3204
+ "disabled": false,
3205
+ "document": "是否可以一键体检,1-可以,0-不可以\n注意:此字段可能返回 null,表示取不到有效值。",
3206
+ "example": "0",
3207
+ "member": "uint64",
3208
+ "name": "IsOneClick",
3209
+ "output_required": false,
3210
+ "type": "int",
3211
+ "value_allowed_null": true
3192
3212
  }
3193
3213
  ],
3194
3214
  "usage": "out"
@@ -4310,6 +4330,28 @@
4310
4330
  "required": false,
4311
4331
  "type": "float",
4312
4332
  "value_allowed_null": true
4333
+ },
4334
+ {
4335
+ "disabled": false,
4336
+ "document": "cvm真正所属的appid\n注意:此字段可能返回 null,表示取不到有效值。",
4337
+ "example": "无",
4338
+ "member": "int64",
4339
+ "name": "RealAppid",
4340
+ "output_required": false,
4341
+ "required": false,
4342
+ "type": "int",
4343
+ "value_allowed_null": true
4344
+ },
4345
+ {
4346
+ "disabled": false,
4347
+ "document": "云资产类型:0:腾讯云,1:aws,2:azure\n注意:此字段可能返回 null,表示取不到有效值。",
4348
+ "example": "0",
4349
+ "member": "int64",
4350
+ "name": "CloudType",
4351
+ "output_required": false,
4352
+ "required": false,
4353
+ "type": "int",
4354
+ "value_allowed_null": true
4313
4355
  }
4314
4356
  ],
4315
4357
  "usage": "both"
@@ -4462,6 +4504,15 @@
4462
4504
  "required": true,
4463
4505
  "type": "list"
4464
4506
  },
4507
+ {
4508
+ "disabled": false,
4509
+ "document": "集团账号的成员id",
4510
+ "example": "[]{\"mem-6wfo0fzks3\",\"mem-85fo0fzks4\"}",
4511
+ "member": "string",
4512
+ "name": "MemberId",
4513
+ "required": false,
4514
+ "type": "list"
4515
+ },
4465
4516
  {
4466
4517
  "disabled": false,
4467
4518
  "document": "资产标签",
@@ -4520,7 +4571,7 @@
4520
4571
  {
4521
4572
  "disabled": false,
4522
4573
  "document": "扫描项目;port/poc/weakpass/webcontent/configrisk/exposedserver",
4523
- "example": "",
4574
+ "example": "[port]",
4524
4575
  "member": "string",
4525
4576
  "name": "ScanItem",
4526
4577
  "required": true,
@@ -4547,7 +4598,7 @@
4547
4598
  {
4548
4599
  "disabled": false,
4549
4600
  "document": "扫描资产信息列表",
4550
- "example": "",
4601
+ "example": "[]",
4551
4602
  "member": "TaskAssetObject",
4552
4603
  "name": "Assets",
4553
4604
  "required": false,
@@ -4556,7 +4607,7 @@
4556
4607
  {
4557
4608
  "disabled": false,
4558
4609
  "document": "扫描计划详情",
4559
- "example": "",
4610
+ "example": "0 0 0 */1 * * *",
4560
4611
  "member": "string",
4561
4612
  "name": "ScanPlanContent",
4562
4613
  "required": false,
@@ -4565,7 +4616,7 @@
4565
4616
  {
4566
4617
  "disabled": false,
4567
4618
  "document": "ip/域名/url数组",
4568
- "example": "",
4619
+ "example": "[1.1.1.1]",
4569
4620
  "member": "string",
4570
4621
  "name": "SelfDefiningAssets",
4571
4622
  "required": false,
@@ -4583,7 +4634,7 @@
4583
4634
  {
4584
4635
  "disabled": false,
4585
4636
  "document": "高级配置",
4586
- "example": "",
4637
+ "example": "{}",
4587
4638
  "member": "TaskAdvanceCFG",
4588
4639
  "name": "TaskAdvanceCFG",
4589
4640
  "required": false,
@@ -4601,11 +4652,20 @@
4601
4652
  {
4602
4653
  "disabled": false,
4603
4654
  "document": "资产标签",
4604
- "example": "",
4655
+ "example": "{}",
4605
4656
  "member": "AssetTag",
4606
4657
  "name": "Tags",
4607
4658
  "required": false,
4608
4659
  "type": "object"
4660
+ },
4661
+ {
4662
+ "disabled": false,
4663
+ "document": "任务完成回调webhook地址",
4664
+ "example": "https://abc.xyz",
4665
+ "member": "string",
4666
+ "name": "FinishWebHook",
4667
+ "required": false,
4668
+ "type": "string"
4609
4669
  }
4610
4670
  ],
4611
4671
  "type": "object"
@@ -5093,6 +5153,15 @@
5093
5153
  "DeleteDomainAndIpRequest": {
5094
5154
  "document": "DeleteDomainAndIp请求参数结构体",
5095
5155
  "members": [
5156
+ {
5157
+ "disabled": false,
5158
+ "document": "集团账号的成员id",
5159
+ "example": "[]{\"mem-6wfo0fzks3\",\"mem-85fo0fzks4\"}",
5160
+ "member": "string",
5161
+ "name": "MemberId",
5162
+ "required": false,
5163
+ "type": "list"
5164
+ },
5096
5165
  {
5097
5166
  "disabled": false,
5098
5167
  "document": "-",
@@ -9397,7 +9466,7 @@
9397
9466
  {
9398
9467
  "disabled": false,
9399
9468
  "document": "扫描项目;port/poc/weakpass/webcontent/configrisk",
9400
- "example": "",
9469
+ "example": "[port]",
9401
9470
  "member": "string",
9402
9471
  "name": "ScanItem",
9403
9472
  "required": true,
@@ -9415,7 +9484,7 @@
9415
9484
  {
9416
9485
  "disabled": false,
9417
9486
  "document": "要修改的任务id",
9418
- "example": "",
9487
+ "example": "rmis-abcd",
9419
9488
  "member": "string",
9420
9489
  "name": "TaskId",
9421
9490
  "required": true,
@@ -9433,7 +9502,7 @@
9433
9502
  {
9434
9503
  "disabled": false,
9435
9504
  "document": "扫描资产信息列表",
9436
- "example": "",
9505
+ "example": "[]",
9437
9506
  "member": "TaskAssetObject",
9438
9507
  "name": "Assets",
9439
9508
  "required": false,
@@ -9442,7 +9511,7 @@
9442
9511
  {
9443
9512
  "disabled": false,
9444
9513
  "document": "扫描计划详情",
9445
- "example": "",
9514
+ "example": "0 0 0 */1 * * *",
9446
9515
  "member": "string",
9447
9516
  "name": "ScanPlanContent",
9448
9517
  "required": false,
@@ -9451,7 +9520,7 @@
9451
9520
  {
9452
9521
  "disabled": false,
9453
9522
  "document": "ip/域名/url数组",
9454
- "example": "",
9523
+ "example": "[1.1.1.1]",
9455
9524
  "member": "string",
9456
9525
  "name": "SelfDefiningAssets",
9457
9526
  "required": false,
@@ -9460,7 +9529,7 @@
9460
9529
  {
9461
9530
  "disabled": false,
9462
9531
  "document": "高级配置",
9463
- "example": "",
9532
+ "example": "{}",
9464
9533
  "member": "TaskAdvanceCFG",
9465
9534
  "name": "TaskAdvanceCFG",
9466
9535
  "required": false,
@@ -9469,11 +9538,20 @@
9469
9538
  {
9470
9539
  "disabled": false,
9471
9540
  "document": "体检模式,0-标准模式,1-快速模式,2-高级模式,默认标准模式",
9472
- "example": "",
9541
+ "example": "{}",
9473
9542
  "member": "int64",
9474
9543
  "name": "TaskMode",
9475
9544
  "required": false,
9476
9545
  "type": "int"
9546
+ },
9547
+ {
9548
+ "disabled": false,
9549
+ "document": "任务完成回调webhook地址",
9550
+ "example": "https://abc.xyz",
9551
+ "member": "string",
9552
+ "name": "FinishWebHook",
9553
+ "required": false,
9554
+ "type": "string"
9477
9555
  }
9478
9556
  ],
9479
9557
  "type": "object"
@@ -10372,12 +10450,11 @@
10372
10450
  {
10373
10451
  "disabled": false,
10374
10452
  "document": "日志Id列表",
10375
- "example": "xx",
10453
+ "example": "abcd",
10376
10454
  "member": "string",
10377
10455
  "name": "TaskLogList",
10378
10456
  "required": true,
10379
- "type": "list",
10380
- "value_allowed_null": true
10457
+ "type": "list"
10381
10458
  }
10382
10459
  ],
10383
10460
  "usage": "in"
@@ -12046,12 +12123,11 @@
12046
12123
  {
12047
12124
  "disabled": false,
12048
12125
  "document": "检测项ID",
12049
- "example": "xx",
12126
+ "example": "50",
12050
12127
  "member": "int64",
12051
12128
  "name": "CheckItemId",
12052
12129
  "required": true,
12053
- "type": "int",
12054
- "value_allowed_null": true
12130
+ "type": "int"
12055
12131
  },
12056
12132
  {
12057
12133
  "disabled": false,
@@ -12060,8 +12136,7 @@
12060
12136
  "member": "int64",
12061
12137
  "name": "Enable",
12062
12138
  "required": true,
12063
- "type": "int",
12064
- "value_allowed_null": true
12139
+ "type": "int"
12065
12140
  }
12066
12141
  ],
12067
12142
  "usage": "in"
@@ -12072,7 +12147,7 @@
12072
12147
  {
12073
12148
  "disabled": false,
12074
12149
  "document": "任务ID",
12075
- "example": "x",
12150
+ "example": "abcd",
12076
12151
  "member": "string",
12077
12152
  "name": "TaskId",
12078
12153
  "required": true,
@@ -13052,7 +13127,7 @@
13052
13127
  {
13053
13128
  "disabled": false,
13054
13129
  "document": "CVSS评分\n注意:此字段可能返回 null,表示取不到有效值。",
13055
- "example": "",
13130
+ "example": "8.0",
13056
13131
  "member": "float",
13057
13132
  "name": "CVSS",
13058
13133
  "output_required": false,
@@ -13062,7 +13137,7 @@
13062
13137
  {
13063
13138
  "disabled": false,
13064
13139
  "document": "PCMGRId\n注意:此字段可能返回 null,表示取不到有效值。",
13065
- "example": "",
13140
+ "example": "abcd",
13066
13141
  "member": "string",
13067
13142
  "name": "PCMGRId",
13068
13143
  "output_required": false,
@@ -13072,7 +13147,7 @@
13072
13147
  {
13073
13148
  "disabled": false,
13074
13149
  "document": "漏洞标签。搜索时应急 必修传参VulTag=SuggestRepair/EMGCVul\n注意:此字段可能返回 null,表示取不到有效值。",
13075
- "example": "",
13150
+ "example": "[]",
13076
13151
  "member": "string",
13077
13152
  "name": "VulTag",
13078
13153
  "output_required": false,
@@ -13082,7 +13157,7 @@
13082
13157
  {
13083
13158
  "disabled": false,
13084
13159
  "document": "漏洞披露时间\n注意:此字段可能返回 null,表示取不到有效值。",
13085
- "example": "",
13160
+ "example": "2020-01-01 00:00:00",
13086
13161
  "member": "string",
13087
13162
  "name": "DisclosureTime",
13088
13163
  "output_required": false,
@@ -13092,7 +13167,7 @@
13092
13167
  {
13093
13168
  "disabled": false,
13094
13169
  "document": "攻击热度\n注意:此字段可能返回 null,表示取不到有效值。",
13095
- "example": "",
13170
+ "example": "0",
13096
13171
  "member": "uint64",
13097
13172
  "name": "AttackHeat",
13098
13173
  "output_required": false,
@@ -13101,8 +13176,8 @@
13101
13176
  },
13102
13177
  {
13103
13178
  "disabled": false,
13104
- "document": "是否必修漏洞1是,0不是\n注意:此字段可能返回 null,表示取不到有效值。",
13105
- "example": "",
13179
+ "document": "是否必修漏洞,1-是,0-不是\n注意:此字段可能返回 null,表示取不到有效值。",
13180
+ "example": "1",
13106
13181
  "member": "int64",
13107
13182
  "name": "IsSuggest",
13108
13183
  "output_required": false,
@@ -13112,7 +13187,7 @@
13112
13187
  {
13113
13188
  "disabled": false,
13114
13189
  "document": "处置任务id\n注意:此字段可能返回 null,表示取不到有效值。",
13115
- "example": "",
13190
+ "example": "abcd",
13116
13191
  "member": "string",
13117
13192
  "name": "HandleTaskId",
13118
13193
  "output_required": false,
@@ -13122,7 +13197,7 @@
13122
13197
  {
13123
13198
  "disabled": false,
13124
13199
  "document": "引擎来源\n注意:此字段可能返回 null,表示取不到有效值。",
13125
- "example": "nsfocus_vul",
13200
+ "example": "vss",
13126
13201
  "member": "string",
13127
13202
  "name": "EngineSource",
13128
13203
  "output_required": false,
@@ -13132,12 +13207,32 @@
13132
13207
  {
13133
13208
  "disabled": false,
13134
13209
  "document": "新的漏洞风险id\n注意:此字段可能返回 null,表示取不到有效值。",
13135
- "example": "",
13210
+ "example": "abc",
13136
13211
  "member": "string",
13137
13212
  "name": "VulRiskId",
13138
13213
  "output_required": false,
13139
13214
  "type": "string",
13140
13215
  "value_allowed_null": true
13216
+ },
13217
+ {
13218
+ "disabled": false,
13219
+ "document": "新版漏洞id\n注意:此字段可能返回 null,表示取不到有效值。",
13220
+ "example": "TVD-xxx",
13221
+ "member": "string",
13222
+ "name": "TvdID",
13223
+ "output_required": false,
13224
+ "type": "string",
13225
+ "value_allowed_null": true
13226
+ },
13227
+ {
13228
+ "disabled": false,
13229
+ "document": "是否可以一键体检,1-可以,0-不可以\n注意:此字段可能返回 null,表示取不到有效值。",
13230
+ "example": "0",
13231
+ "member": "uint64",
13232
+ "name": "IsOneClick",
13233
+ "output_required": false,
13234
+ "type": "int",
13235
+ "value_allowed_null": true
13141
13236
  }
13142
13237
  ],
13143
13238
  "usage": "out"
@@ -11,7 +11,7 @@
11
11
  "CreateDomainAndIp": [
12
12
  {
13
13
  "document": "",
14
- "input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDomainAndIp\n<公共请求参数>\n\n{\n \"Content\": [\n \"abc\"\n ],\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ]\n}",
14
+ "input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDomainAndIp\n<公共请求参数>\n\n{\n \"MemberId\": [\n \"abc\"\n ],\n \"Content\": [\n \"abc\"\n ],\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ]\n}",
15
15
  "output": "{\n \"Response\": {\n \"Data\": 0,\n \"RequestId\": \"abc\"\n }\n}",
16
16
  "title": "添加资产"
17
17
  }
@@ -27,7 +27,7 @@
27
27
  "DeleteDomainAndIp": [
28
28
  {
29
29
  "document": "删除公网IP/域名",
30
- "input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteDomainAndIp\n<公共请求参数>\n\n{\n \"Content\": [\n {\n \"Asset\": \"abc\"\n }\n ],\n \"RetainPath\": 0,\n \"IgnoreAsset\": 0,\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"Type\": \"abc\"\n}",
30
+ "input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteDomainAndIp\n<公共请求参数>\n\n{\n \"MemberId\": [\n \"abc\"\n ],\n \"Content\": [\n {\n \"Asset\": \"abc\"\n }\n ],\n \"RetainPath\": 0,\n \"IgnoreAsset\": 0,\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"Type\": \"abc\"\n}",
31
31
  "output": "{\n \"Response\": {\n \"Data\": 0,\n \"RequestId\": \"abc\"\n }\n}",
32
32
  "title": "删除公网IP/域名"
33
33
  }
@@ -35,8 +35,8 @@
35
35
  "DeleteRiskScanTask": [
36
36
  {
37
37
  "document": "删除风险中心扫描任务",
38
- "input": "{\n \"MemberId\": [\n \"xx\"\n ],\n \"TaskIdList\": [\n {\n \"TaskId\": \"xx\",\n \"TargetAppId\": \"xx\"\n }\n ]\n}",
39
- "output": "{\n \"Response\": {\n \"RequestId\": \"xx\"\n }\n}",
38
+ "input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRiskScanTask\n<公共请求参数>\n\n{\n \"MemberId\": [\n \"mem-abcd\"\n ],\n \"TaskIdList\": [\n {\n \"TaskId\": \"abcd\"\n }\n ]\n}",
39
+ "output": "{\n \"Response\": {\n \"RequestId\": \"abcd\"\n }\n}",
40
40
  "title": "删除风险中心扫描任务"
41
41
  }
42
42
  ],
@@ -693,7 +693,7 @@ def doCreateAuditLogFile(args, parsed_globals):
693
693
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
694
 
695
695
 
696
- def doSwitchClusterVpc(args, parsed_globals):
696
+ def doRenewClusters(args, parsed_globals):
697
697
  g_param = parse_global_arg(parsed_globals)
698
698
 
699
699
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -722,11 +722,11 @@ def doSwitchClusterVpc(args, parsed_globals):
722
722
  client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
723
723
  client._sdkVersion += ("_CLI_" + __version__)
724
724
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
725
- model = models.SwitchClusterVpcRequest()
725
+ model = models.RenewClustersRequest()
726
726
  model.from_json_string(json.dumps(args))
727
727
  start_time = time.time()
728
728
  while True:
729
- rsp = client.SwitchClusterVpc(model)
729
+ rsp = client.RenewClusters(model)
730
730
  result = rsp.to_json_string()
731
731
  try:
732
732
  json_obj = json.loads(result)
@@ -5425,6 +5425,58 @@ def doModifyAccountDescription(args, parsed_globals):
5425
5425
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5426
5426
 
5427
5427
 
5428
+ def doSwitchClusterVpc(args, parsed_globals):
5429
+ g_param = parse_global_arg(parsed_globals)
5430
+
5431
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5432
+ cred = credential.CVMRoleCredential()
5433
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5434
+ cred = credential.STSAssumeRoleCredential(
5435
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5436
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5437
+ )
5438
+ 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):
5439
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5440
+ else:
5441
+ cred = credential.Credential(
5442
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5443
+ )
5444
+ http_profile = HttpProfile(
5445
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5446
+ reqMethod="POST",
5447
+ endpoint=g_param[OptionsDefine.Endpoint],
5448
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5449
+ )
5450
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5451
+ if g_param[OptionsDefine.Language]:
5452
+ profile.language = g_param[OptionsDefine.Language]
5453
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5454
+ client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
5455
+ client._sdkVersion += ("_CLI_" + __version__)
5456
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5457
+ model = models.SwitchClusterVpcRequest()
5458
+ model.from_json_string(json.dumps(args))
5459
+ start_time = time.time()
5460
+ while True:
5461
+ rsp = client.SwitchClusterVpc(model)
5462
+ result = rsp.to_json_string()
5463
+ try:
5464
+ json_obj = json.loads(result)
5465
+ except TypeError as e:
5466
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5467
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5468
+ break
5469
+ cur_time = time.time()
5470
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5471
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5472
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5473
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5474
+ else:
5475
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5476
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5477
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5478
+
5479
+
5428
5480
  def doCreateClusterDatabase(args, parsed_globals):
5429
5481
  g_param = parse_global_arg(parsed_globals)
5430
5482
 
@@ -7373,7 +7425,7 @@ ACTION_MAP = {
7373
7425
  "DescribeResourcePackageList": doDescribeResourcePackageList,
7374
7426
  "DescribeSupportProxyVersion": doDescribeSupportProxyVersion,
7375
7427
  "CreateAuditLogFile": doCreateAuditLogFile,
7376
- "SwitchClusterVpc": doSwitchClusterVpc,
7428
+ "RenewClusters": doRenewClusters,
7377
7429
  "CloseProxy": doCloseProxy,
7378
7430
  "DescribeProxySpecs": doDescribeProxySpecs,
7379
7431
  "DescribeClusterDetail": doDescribeClusterDetail,
@@ -7464,6 +7516,7 @@ ACTION_MAP = {
7464
7516
  "StopCLSDelivery": doStopCLSDelivery,
7465
7517
  "DescribeBackupList": doDescribeBackupList,
7466
7518
  "ModifyAccountDescription": doModifyAccountDescription,
7519
+ "SwitchClusterVpc": doSwitchClusterVpc,
7467
7520
  "CreateClusterDatabase": doCreateClusterDatabase,
7468
7521
  "ModifyResourcePackageName": doModifyResourcePackageName,
7469
7522
  "DeleteAuditLogFile": doDeleteAuditLogFile,