tccli 3.0.1005.1__py2.py3-none-any.whl → 3.0.1006.1__py2.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.
- tccli/__init__.py +1 -1
 - tccli/examples/cdb/v20170320/CloseAuditService.md +20 -0
 - tccli/examples/cdb/v20170320/CreateAuditRuleTemplate.md +31 -0
 - tccli/examples/cdb/v20170320/DeleteAuditRuleTemplates.md +20 -0
 - tccli/examples/cdb/v20170320/DeleteDatabase.md +21 -0
 - tccli/examples/cdb/v20170320/DescribeAuditInstanceList.md +51 -0
 - tccli/examples/cdb/v20170320/DescribeAuditRuleTemplateModifyHistory.md +70 -0
 - tccli/examples/cdb/v20170320/DescribeAuditRuleTemplates.md +61 -0
 - tccli/examples/cdb/v20170320/ModifyAuditRuleTemplates.md +21 -0
 - tccli/examples/cdb/v20170320/ModifyAuditService.md +23 -0
 - tccli/examples/cfg/v20210820/DescribeTaskPolicyTriggerLog.md +38 -0
 - tccli/examples/cfg/v20210820/TriggerPolicy.md +25 -0
 - tccli/examples/config/v20220802/ListAggregateConfigRules.md +79 -0
 - tccli/examples/config/v20220802/ListConfigRules.md +138 -0
 - tccli/examples/tdmq/v20200217/CreateProCluster.md +3 -3
 - tccli/examples/teo/v20220901/DescribeOverviewL7Data.md +4 -2
 - tccli/examples/teo/v20220901/DescribePrefetchTasks.md +2 -1
 - tccli/examples/teo/v20220901/DescribePurgeTasks.md +2 -1
 - tccli/examples/teo/v20220901/DescribeTimingL4Data.md +4 -1
 - tccli/examples/teo/v20220901/DescribeTimingL7AnalysisData.md +6 -3
 - tccli/examples/teo/v20220901/DescribeTimingL7CacheData.md +6 -3
 - tccli/examples/teo/v20220901/DescribeTopL7AnalysisData.md +6 -3
 - tccli/examples/teo/v20220901/DescribeTopL7CacheData.md +8 -4
 - tccli/examples/teo/v20220901/DownloadL4Logs.md +2 -1
 - tccli/examples/teo/v20220901/DownloadL7Logs.md +2 -1
 - tccli/examples/tke/v20180525/DescribeIPAMD.md +6 -3
 - tccli/examples/tse/v20201207/CloseWafProtection.md +21 -0
 - tccli/examples/tse/v20201207/CreateWafDomains.md +21 -0
 - tccli/examples/tse/v20201207/OpenWafProtection.md +21 -0
 - tccli/examples/vod/v20180717/DescribeTaskDetail.md +4 -0
 - tccli/examples/vrs/v20200824/GetVRSVoiceTypes.md +4 -2
 - tccli/services/__init__.py +3 -0
 - tccli/services/cdb/cdb_client.py +497 -20
 - tccli/services/cdb/v20170320/api.json +1174 -51
 - tccli/services/cdb/v20170320/examples.json +72 -0
 - tccli/services/cfg/cfg_client.py +106 -0
 - tccli/services/cfg/v20210820/api.json +199 -0
 - tccli/services/cfg/v20210820/examples.json +16 -0
 - tccli/services/config/__init__.py +4 -0
 - tccli/services/config/config_client.py +247 -0
 - tccli/services/config/v20220802/api.json +767 -0
 - tccli/services/config/v20220802/examples.json +21 -0
 - tccli/services/hai/v20230812/api.json +11 -0
 - tccli/services/tdmq/v20200217/api.json +50 -30
 - tccli/services/tdmq/v20200217/examples.json +2 -2
 - tccli/services/teo/v20220901/api.json +51 -40
 - tccli/services/teo/v20220901/examples.json +24 -24
 - tccli/services/tke/v20180525/api.json +18 -8
 - tccli/services/tke/v20180525/examples.json +2 -2
 - tccli/services/tse/tse_client.py +159 -0
 - tccli/services/tse/v20201207/api.json +147 -0
 - tccli/services/tse/v20201207/examples.json +24 -0
 - tccli/services/vod/v20180717/api.json +278 -24
 - tccli/services/vod/v20180717/examples.json +4 -4
 - tccli/services/vrs/v20200824/examples.json +1 -1
 - tccli/services/waf/v20180125/api.json +3 -3
 - {tccli-3.0.1005.1.dist-info → tccli-3.0.1006.1.dist-info}/METADATA +2 -2
 - {tccli-3.0.1005.1.dist-info → tccli-3.0.1006.1.dist-info}/RECORD +61 -41
 - {tccli-3.0.1005.1.dist-info → tccli-3.0.1006.1.dist-info}/WHEEL +0 -0
 - {tccli-3.0.1005.1.dist-info → tccli-3.0.1006.1.dist-info}/entry_points.txt +0 -0
 - {tccli-3.0.1005.1.dist-info → tccli-3.0.1006.1.dist-info}/license_files/LICENSE +0 -0
 
| 
         @@ -54,6 +54,14 @@ 
     | 
|
| 
       54 
54 
     | 
    
         
             
                    "title": "均衡RO组内实例的负载"
         
     | 
| 
       55 
55 
     | 
    
         
             
                  }
         
     | 
| 
       56 
56 
     | 
    
         
             
                ],
         
     | 
| 
      
 57 
     | 
    
         
            +
                "CloseAuditService": [
         
     | 
| 
      
 58 
     | 
    
         
            +
                  {
         
     | 
| 
      
 59 
     | 
    
         
            +
                    "document": "无",
         
     | 
| 
      
 60 
     | 
    
         
            +
                    "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CloseAuditService\n<公共请求参数>\n\n{\n    \"InstanceId\": \"cdb-6990cckk\"\n}",
         
     | 
| 
      
 61 
     | 
    
         
            +
                    "output": "{\n    \"Response\": {\n        \"RequestId\": \"43-12121-812w1221213-62usf9093\"\n    }\n}",
         
     | 
| 
      
 62 
     | 
    
         
            +
                    "title": "关闭审计"
         
     | 
| 
      
 63 
     | 
    
         
            +
                  }
         
     | 
| 
      
 64 
     | 
    
         
            +
                ],
         
     | 
| 
       57 
65 
     | 
    
         
             
                "CloseCDBProxy": [
         
     | 
| 
       58 
66 
     | 
    
         
             
                  {
         
     | 
| 
       59 
67 
     | 
    
         
             
                    "document": "",
         
     | 
| 
         @@ -116,6 +124,14 @@ 
     | 
|
| 
       116 
124 
     | 
    
         
             
                    "title": "创建审计规则 ( 规则审计 )"
         
     | 
| 
       117 
125 
     | 
    
         
             
                  }
         
     | 
| 
       118 
126 
     | 
    
         
             
                ],
         
     | 
| 
      
 127 
     | 
    
         
            +
                "CreateAuditRuleTemplate": [
         
     | 
| 
      
 128 
     | 
    
         
            +
                  {
         
     | 
| 
      
 129 
     | 
    
         
            +
                    "document": "无",
         
     | 
| 
      
 130 
     | 
    
         
            +
                    "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAuditRuleTemplate\n<公共请求参数>\n\n{\n    \"RuleFilters\": [\n        {\n            \"Type\": \"host\",\n            \"Compare\": \"EQS\",\n            \"Value\": [\n                \"100.122.76.176\",\n                \"10.0.0.9\"\n            ]\n        },\n        {\n            \"Type\": \"user\",\n            \"Compare\": \"EQS\",\n            \"Value\": [\n                \"wy\",\n                \"test\"\n            ]\n        },\n        {\n            \"Type\": \"sqlType\",\n            \"Compare\": \"EQS\",\n            \"Value\": [\n                \"Update\",\n                \"Delete\"\n            ]\n        }\n    ],\n    \"RuleTemplateName\": \"test\",\n    \"Description\": \"用于测试的规则模板\"\n}",
         
     | 
| 
      
 131 
     | 
    
         
            +
                    "output": "{\n    \"Response\": {\n        \"RuleTemplateId\": \"cdb-rt-ws23fwu8\",\n        \"RequestId\": \"43-12121-812w1221213-62usf9093\"\n    }\n}",
         
     | 
| 
      
 132 
     | 
    
         
            +
                    "title": "创建审计规则模板"
         
     | 
| 
      
 133 
     | 
    
         
            +
                  }
         
     | 
| 
      
 134 
     | 
    
         
            +
                ],
         
     | 
| 
       119 
135 
     | 
    
         
             
                "CreateBackup": [
         
     | 
| 
       120 
136 
     | 
    
         
             
                  {
         
     | 
| 
       121 
137 
     | 
    
         
             
                    "document": "",
         
     | 
| 
         @@ -248,6 +264,14 @@ 
     | 
|
| 
       248 
264 
     | 
    
         
             
                    "title": "删除审计规则"
         
     | 
| 
       249 
265 
     | 
    
         
             
                  }
         
     | 
| 
       250 
266 
     | 
    
         
             
                ],
         
     | 
| 
      
 267 
     | 
    
         
            +
                "DeleteAuditRuleTemplates": [
         
     | 
| 
      
 268 
     | 
    
         
            +
                  {
         
     | 
| 
      
 269 
     | 
    
         
            +
                    "document": "无",
         
     | 
| 
      
 270 
     | 
    
         
            +
                    "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteAuditRuleTemplates\n<公共请求参数>\n\n{\n    \"RuleTemplateIds\": [\n        \"cdb-rt-ws23fwu8\"\n    ]\n}",
         
     | 
| 
      
 271 
     | 
    
         
            +
                    "output": "{\n    \"Response\": {\n        \"RequestId\": \"43-12121-812w1221213-62usf9093\"\n    }\n}",
         
     | 
| 
      
 272 
     | 
    
         
            +
                    "title": "删除审计规则模版"
         
     | 
| 
      
 273 
     | 
    
         
            +
                  }
         
     | 
| 
      
 274 
     | 
    
         
            +
                ],
         
     | 
| 
       251 
275 
     | 
    
         
             
                "DeleteBackup": [
         
     | 
| 
       252 
276 
     | 
    
         
             
                  {
         
     | 
| 
       253 
277 
     | 
    
         
             
                    "document": "",
         
     | 
| 
         @@ -256,6 +280,14 @@ 
     | 
|
| 
       256 
280 
     | 
    
         
             
                    "title": "删除云数据库备份"
         
     | 
| 
       257 
281 
     | 
    
         
             
                  }
         
     | 
| 
       258 
282 
     | 
    
         
             
                ],
         
     | 
| 
      
 283 
     | 
    
         
            +
                "DeleteDatabase": [
         
     | 
| 
      
 284 
     | 
    
         
            +
                  {
         
     | 
| 
      
 285 
     | 
    
         
            +
                    "document": "删除数据库",
         
     | 
| 
      
 286 
     | 
    
         
            +
                    "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteDatabase\n<公共请求参数>\n\n{\n    \"InstanceId\": \"cdb-ebefaxxx\",\n    \"DBName\": \"db_test1\"\n}",
         
     | 
| 
      
 287 
     | 
    
         
            +
                    "output": "{\n    \"Response\": {\n        \"RequestId\": \"8805d3d5-dca4-4be2-9625-fc900f1ca326\"\n    }\n}",
         
     | 
| 
      
 288 
     | 
    
         
            +
                    "title": "删除数据库"
         
     | 
| 
      
 289 
     | 
    
         
            +
                  }
         
     | 
| 
      
 290 
     | 
    
         
            +
                ],
         
     | 
| 
       259 
291 
     | 
    
         
             
                "DeleteDeployGroups": [
         
     | 
| 
       260 
292 
     | 
    
         
             
                  {
         
     | 
| 
       261 
293 
     | 
    
         
             
                    "document": "",
         
     | 
| 
         @@ -312,6 +344,14 @@ 
     | 
|
| 
       312 
344 
     | 
    
         
             
                    "title": "查询审计服务配置"
         
     | 
| 
       313 
345 
     | 
    
         
             
                  }
         
     | 
| 
       314 
346 
     | 
    
         
             
                ],
         
     | 
| 
      
 347 
     | 
    
         
            +
                "DescribeAuditInstanceList": [
         
     | 
| 
      
 348 
     | 
    
         
            +
                  {
         
     | 
| 
      
 349 
     | 
    
         
            +
                    "document": "无",
         
     | 
| 
      
 350 
     | 
    
         
            +
                    "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAuditInstanceList\n<公共请求参数>\n\n{\n    \"AuditMode\": 0,\n    \"Limit\": 1,\n    \"Filters\": [\n        {\n            \"Values\": [\n                \"cdb-euu5fkcj\"\n            ],\n            \"Name\": \"InstanceId\",\n            \"ExactMatch\": true\n        }\n    ],\n    \"AuditSwitch\": 0,\n    \"Offset\": 1\n}",
         
     | 
| 
      
 351 
     | 
    
         
            +
                    "output": "{\n    \"Response\": {\n        \"TotalCount\": 1,\n        \"RequestId\": \"43-12121-812w1221213-62usf9093\",\n        \"Items\": [\n            {\n                \"BillingAmount\": 0,\n                \"LowRealStorage\": 0,\n                \"InstanceId\": \"cdb-euu5fkcj\",\n                \"AuditTask\": 1,\n                \"CreateAt\": \"2022-03-02 10:09:08\",\n                \"AuditStatus\": \"1\",\n                \"LogExpireDay\": 1,\n                \"AuditAll\": true,\n                \"InstanceInfo\": {\n                    \"ProjectId\": 0,\n                    \"TagList\": [\n                        {\n                            \"TagKey\": \"test\",\n                            \"TagValue\": \"1\"\n                        }\n                    ]\n                },\n                \"HighRealStorage\": 0,\n                \"HighLogExpireDay\": 30,\n                \"LowLogExpireDay\": 7\n            }\n        ]\n    }\n}",
         
     | 
| 
      
 352 
     | 
    
         
            +
                    "title": "获取审计实例列表"
         
     | 
| 
      
 353 
     | 
    
         
            +
                  }
         
     | 
| 
      
 354 
     | 
    
         
            +
                ],
         
     | 
| 
       315 
355 
     | 
    
         
             
                "DescribeAuditLogFiles": [
         
     | 
| 
       316 
356 
     | 
    
         
             
                  {
         
     | 
| 
       317 
357 
     | 
    
         
             
                    "document": "",
         
     | 
| 
         @@ -348,6 +388,22 @@ 
     | 
|
| 
       348 
388 
     | 
    
         
             
                    "title": "查询审计策略"
         
     | 
| 
       349 
389 
     | 
    
         
             
                  }
         
     | 
| 
       350 
390 
     | 
    
         
             
                ],
         
     | 
| 
      
 391 
     | 
    
         
            +
                "DescribeAuditRuleTemplateModifyHistory": [
         
     | 
| 
      
 392 
     | 
    
         
            +
                  {
         
     | 
| 
      
 393 
     | 
    
         
            +
                    "document": "",
         
     | 
| 
      
 394 
     | 
    
         
            +
                    "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRuleTemplateModifyHistory\n<公共请求参数>\n\n{\n    \"RuleTemplateIds\": [\n        \"cdb-art-8qx2kcr7\"\n    ],\n    \"StartTime\": \"2023-07-26 00:00:00\",\n    \"EndTime\": \"2023-07-27 00:00:00\",\n    \"Limit\": 10,\n    \"Offset\": 0,\n    \"Order\": \"DESC\"\n}",
         
     | 
| 
      
 395 
     | 
    
         
            +
                    "output": "{\n    \"Response\": {\n        \"TotalCount\": 1,\n        \"Items\": [\n            {\n                \"TaskId\": 1997098,\n                \"ModifyBeforeInfo\": {\n                    \"RuleTemplateId\": \"cdb-art-8qx2kcr7\",\n                    \"RuleTemplateName\": \"wy_test\",\n                    \"RuleFilters\": [\n                        {\n                            \"Type\": \"sqlType\",\n                            \"Compare\": \"EQS\",\n                            \"Value\": [\n                                \"DROP\"\n                            ]\n                        }\n                    ],\n                    \"AlarmLevel\": 1,\n                    \"AlarmPolicy\": 0,\n                    \"Description\": \"\"\n                },\n                \"ModifyAfterInfo\": {\n                    \"RuleTemplateId\": \"cdb-art-8qx2kcr7\",\n                    \"RuleTemplateName\": \"wy_test\",\n                    \"RuleFilters\": [\n                        {\n                            \"Type\": \"sqlType\",\n                            \"Compare\": \"EQS\",\n                            \"Value\": [\n                                \"DROP\",\n                                \"DELETE\"\n                            ]\n                        }\n                    ],\n                    \"AlarmLevel\": 2,\n                    \"AlarmPolicy\": 0,\n                    \"Description\": \"\"\n                },\n                \"AffectedInstances\": [\n                    \"cdb-nzg4gv35\",\n                    \"cdb-12y4cjjd\"\n                ],\n                \"Operator\": \"700000579947\",\n                \"UpdateTime\": \"2023-07-26 00:09:00\"\n            }\n        ],\n        \"RequestId\": \"186905b7-756c-4aae-a403-a40568aa5952\"\n    }\n}",
         
     | 
| 
      
 396 
     | 
    
         
            +
                    "title": "正确返回"
         
     | 
| 
      
 397 
     | 
    
         
            +
                  }
         
     | 
| 
      
 398 
     | 
    
         
            +
                ],
         
     | 
| 
      
 399 
     | 
    
         
            +
                "DescribeAuditRuleTemplates": [
         
     | 
| 
      
 400 
     | 
    
         
            +
                  {
         
     | 
| 
      
 401 
     | 
    
         
            +
                    "document": "无",
         
     | 
| 
      
 402 
     | 
    
         
            +
                    "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAuditRuleTemplates\n<公共请求参数>\n\n{\n    \"RuleTemplateNames\": [\n        \"template_test\"\n    ],\n    \"Limit\": 10,\n    \"Offset\": 0\n}",
         
     | 
| 
      
 403 
     | 
    
         
            +
                    "output": "{\n    \"Response\": {\n        \"Items\": [\n            {\n                \"CreateAt\": \"2022-12-06 00:54:01\",\n                \"Description\": \"all_template_des\",\n                \"RuleFilters\": [\n                    {\n                        \"Compare\": \"INC\",\n                        \"Type\": \"sqlType\",\n                        \"Value\": [\n                            \"ALTER\"\n                        ]\n                    },\n                    {\n                        \"Compare\": \"EQS\",\n                        \"Type\": \"host\",\n                        \"Value\": [\n                            \"10.0.0.2\"\n                        ]\n                    },\n                    {\n                        \"Compare\": \"NEQ\",\n                        \"Type\": \"user\",\n                        \"Value\": [\n                            \"test\"\n                        ]\n                    },\n                    {\n                        \"Compare\": \"INC\",\n                        \"Type\": \"dbName\",\n                        \"Value\": [\n                            \"test\"\n                        ]\n                    }\n                ],\n                \"RuleTemplateId\": \"cdb-art-lcpm4as3\",\n                \"RuleTemplateName\": \"template_test\"\n            }\n        ],\n        \"RequestId\": \"a19ebcfb-8b35-40f4-85ee-383109c9134b\",\n        \"TotalCount\": 1\n    }\n}",
         
     | 
| 
      
 404 
     | 
    
         
            +
                    "title": "查询审计规则模板信息"
         
     | 
| 
      
 405 
     | 
    
         
            +
                  }
         
     | 
| 
      
 406 
     | 
    
         
            +
                ],
         
     | 
| 
       351 
407 
     | 
    
         
             
                "DescribeAuditRules": [
         
     | 
| 
       352 
408 
     | 
    
         
             
                  {
         
     | 
| 
       353 
409 
     | 
    
         
             
                    "document": "",
         
     | 
| 
         @@ -866,6 +922,22 @@ 
     | 
|
| 
       866 
922 
     | 
    
         
             
                    "title": "修改审计规则"
         
     | 
| 
       867 
923 
     | 
    
         
             
                  }
         
     | 
| 
       868 
924 
     | 
    
         
             
                ],
         
     | 
| 
      
 925 
     | 
    
         
            +
                "ModifyAuditRuleTemplates": [
         
     | 
| 
      
 926 
     | 
    
         
            +
                  {
         
     | 
| 
      
 927 
     | 
    
         
            +
                    "document": "无",
         
     | 
| 
      
 928 
     | 
    
         
            +
                    "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAuditRuleTemplates\n<公共请求参数>\n\n{\n    \"RuleTemplateIds\": [\n        \"cdb-rt-ws23fwu8\"\n    ],\n    \"RuleTemplateName\": \"test\"\n}",
         
     | 
| 
      
 929 
     | 
    
         
            +
                    "output": "{\n    \"Response\": {\n        \"RequestId\": \"43-12121-812w1221213-62usf9093\"\n    }\n}",
         
     | 
| 
      
 930 
     | 
    
         
            +
                    "title": "修改审计规则模板"
         
     | 
| 
      
 931 
     | 
    
         
            +
                  }
         
     | 
| 
      
 932 
     | 
    
         
            +
                ],
         
     | 
| 
      
 933 
     | 
    
         
            +
                "ModifyAuditService": [
         
     | 
| 
      
 934 
     | 
    
         
            +
                  {
         
     | 
| 
      
 935 
     | 
    
         
            +
                    "document": "无",
         
     | 
| 
      
 936 
     | 
    
         
            +
                    "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAuditService\n<公共请求参数>\n\n{\n    \"InstanceId\": \"cdb-6990cckk\",\n    \"LogExpireDay\": 30,\n    \"HighLogExpireDay\": 7,\n    \"AuditAll\": true\n}",
         
     | 
| 
      
 937 
     | 
    
         
            +
                    "output": "{\n    \"Response\": {\n        \"RequestId\": \"43-12121-812w1221213-62usf9093\"\n    }\n}",
         
     | 
| 
      
 938 
     | 
    
         
            +
                    "title": "修改审计服务"
         
     | 
| 
      
 939 
     | 
    
         
            +
                  }
         
     | 
| 
      
 940 
     | 
    
         
            +
                ],
         
     | 
| 
       869 
941 
     | 
    
         
             
                "ModifyAutoRenewFlag": [
         
     | 
| 
       870 
942 
     | 
    
         
             
                  {
         
     | 
| 
       871 
943 
     | 
    
         
             
                    "document": "",
         
     | 
    
        tccli/services/cfg/cfg_client.py
    CHANGED
    
    | 
         @@ -225,6 +225,58 @@ def doDescribeTemplateList(args, parsed_globals): 
     | 
|
| 
       225 
225 
     | 
    
         
             
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         
     | 
| 
       226 
226 
     | 
    
         | 
| 
       227 
227 
     | 
    
         | 
| 
      
 228 
     | 
    
         
            +
            def doTriggerPolicy(args, parsed_globals):
         
     | 
| 
      
 229 
     | 
    
         
            +
                g_param = parse_global_arg(parsed_globals)
         
     | 
| 
      
 230 
     | 
    
         
            +
             
     | 
| 
      
 231 
     | 
    
         
            +
                if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
         
     | 
| 
      
 232 
     | 
    
         
            +
                    cred = credential.CVMRoleCredential()
         
     | 
| 
      
 233 
     | 
    
         
            +
                elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
         
     | 
| 
      
 234 
     | 
    
         
            +
                    cred = credential.STSAssumeRoleCredential(
         
     | 
| 
      
 235 
     | 
    
         
            +
                        g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
         
     | 
| 
      
 236 
     | 
    
         
            +
                        g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
         
     | 
| 
      
 237 
     | 
    
         
            +
                    )
         
     | 
| 
      
 238 
     | 
    
         
            +
                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):
         
     | 
| 
      
 239 
     | 
    
         
            +
                    cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
         
     | 
| 
      
 240 
     | 
    
         
            +
                else:
         
     | 
| 
      
 241 
     | 
    
         
            +
                    cred = credential.Credential(
         
     | 
| 
      
 242 
     | 
    
         
            +
                        g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
         
     | 
| 
      
 243 
     | 
    
         
            +
                    )
         
     | 
| 
      
 244 
     | 
    
         
            +
                http_profile = HttpProfile(
         
     | 
| 
      
 245 
     | 
    
         
            +
                    reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
         
     | 
| 
      
 246 
     | 
    
         
            +
                    reqMethod="POST",
         
     | 
| 
      
 247 
     | 
    
         
            +
                    endpoint=g_param[OptionsDefine.Endpoint],
         
     | 
| 
      
 248 
     | 
    
         
            +
                    proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
         
     | 
| 
      
 249 
     | 
    
         
            +
                )
         
     | 
| 
      
 250 
     | 
    
         
            +
                profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
         
     | 
| 
      
 251 
     | 
    
         
            +
                if g_param[OptionsDefine.Language]:
         
     | 
| 
      
 252 
     | 
    
         
            +
                    profile.language = g_param[OptionsDefine.Language]
         
     | 
| 
      
 253 
     | 
    
         
            +
                mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
         
     | 
| 
      
 254 
     | 
    
         
            +
                client = mod.CfgClient(cred, g_param[OptionsDefine.Region], profile)
         
     | 
| 
      
 255 
     | 
    
         
            +
                client._sdkVersion += ("_CLI_" + __version__)
         
     | 
| 
      
 256 
     | 
    
         
            +
                models = MODELS_MAP[g_param[OptionsDefine.Version]]
         
     | 
| 
      
 257 
     | 
    
         
            +
                model = models.TriggerPolicyRequest()
         
     | 
| 
      
 258 
     | 
    
         
            +
                model.from_json_string(json.dumps(args))
         
     | 
| 
      
 259 
     | 
    
         
            +
                start_time = time.time()
         
     | 
| 
      
 260 
     | 
    
         
            +
                while True:
         
     | 
| 
      
 261 
     | 
    
         
            +
                    rsp = client.TriggerPolicy(model)
         
     | 
| 
      
 262 
     | 
    
         
            +
                    result = rsp.to_json_string()
         
     | 
| 
      
 263 
     | 
    
         
            +
                    try:
         
     | 
| 
      
 264 
     | 
    
         
            +
                        json_obj = json.loads(result)
         
     | 
| 
      
 265 
     | 
    
         
            +
                    except TypeError as e:
         
     | 
| 
      
 266 
     | 
    
         
            +
                        json_obj = json.loads(result.decode('utf-8'))  # python3.3
         
     | 
| 
      
 267 
     | 
    
         
            +
                    if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
         
     | 
| 
      
 268 
     | 
    
         
            +
                        break
         
     | 
| 
      
 269 
     | 
    
         
            +
                    cur_time = time.time()
         
     | 
| 
      
 270 
     | 
    
         
            +
                    if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
         
     | 
| 
      
 271 
     | 
    
         
            +
                        raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
         
     | 
| 
      
 272 
     | 
    
         
            +
                        (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
         
     | 
| 
      
 273 
     | 
    
         
            +
                        search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
         
     | 
| 
      
 274 
     | 
    
         
            +
                    else:
         
     | 
| 
      
 275 
     | 
    
         
            +
                        print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
         
     | 
| 
      
 276 
     | 
    
         
            +
                    time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
         
     | 
| 
      
 277 
     | 
    
         
            +
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         
     | 
| 
      
 278 
     | 
    
         
            +
             
     | 
| 
      
 279 
     | 
    
         
            +
             
     | 
| 
       228 
280 
     | 
    
         
             
            def doDescribeTaskList(args, parsed_globals):
         
     | 
| 
       229 
281 
     | 
    
         
             
                g_param = parse_global_arg(parsed_globals)
         
     | 
| 
       230 
282 
     | 
    
         | 
| 
         @@ -277,6 +329,58 @@ def doDescribeTaskList(args, parsed_globals): 
     | 
|
| 
       277 
329 
     | 
    
         
             
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         
     | 
| 
       278 
330 
     | 
    
         | 
| 
       279 
331 
     | 
    
         | 
| 
      
 332 
     | 
    
         
            +
            def doDescribeTaskPolicyTriggerLog(args, parsed_globals):
         
     | 
| 
      
 333 
     | 
    
         
            +
                g_param = parse_global_arg(parsed_globals)
         
     | 
| 
      
 334 
     | 
    
         
            +
             
     | 
| 
      
 335 
     | 
    
         
            +
                if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
         
     | 
| 
      
 336 
     | 
    
         
            +
                    cred = credential.CVMRoleCredential()
         
     | 
| 
      
 337 
     | 
    
         
            +
                elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
         
     | 
| 
      
 338 
     | 
    
         
            +
                    cred = credential.STSAssumeRoleCredential(
         
     | 
| 
      
 339 
     | 
    
         
            +
                        g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
         
     | 
| 
      
 340 
     | 
    
         
            +
                        g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
         
     | 
| 
      
 341 
     | 
    
         
            +
                    )
         
     | 
| 
      
 342 
     | 
    
         
            +
                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):
         
     | 
| 
      
 343 
     | 
    
         
            +
                    cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
         
     | 
| 
      
 344 
     | 
    
         
            +
                else:
         
     | 
| 
      
 345 
     | 
    
         
            +
                    cred = credential.Credential(
         
     | 
| 
      
 346 
     | 
    
         
            +
                        g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
         
     | 
| 
      
 347 
     | 
    
         
            +
                    )
         
     | 
| 
      
 348 
     | 
    
         
            +
                http_profile = HttpProfile(
         
     | 
| 
      
 349 
     | 
    
         
            +
                    reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
         
     | 
| 
      
 350 
     | 
    
         
            +
                    reqMethod="POST",
         
     | 
| 
      
 351 
     | 
    
         
            +
                    endpoint=g_param[OptionsDefine.Endpoint],
         
     | 
| 
      
 352 
     | 
    
         
            +
                    proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
         
     | 
| 
      
 353 
     | 
    
         
            +
                )
         
     | 
| 
      
 354 
     | 
    
         
            +
                profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
         
     | 
| 
      
 355 
     | 
    
         
            +
                if g_param[OptionsDefine.Language]:
         
     | 
| 
      
 356 
     | 
    
         
            +
                    profile.language = g_param[OptionsDefine.Language]
         
     | 
| 
      
 357 
     | 
    
         
            +
                mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
         
     | 
| 
      
 358 
     | 
    
         
            +
                client = mod.CfgClient(cred, g_param[OptionsDefine.Region], profile)
         
     | 
| 
      
 359 
     | 
    
         
            +
                client._sdkVersion += ("_CLI_" + __version__)
         
     | 
| 
      
 360 
     | 
    
         
            +
                models = MODELS_MAP[g_param[OptionsDefine.Version]]
         
     | 
| 
      
 361 
     | 
    
         
            +
                model = models.DescribeTaskPolicyTriggerLogRequest()
         
     | 
| 
      
 362 
     | 
    
         
            +
                model.from_json_string(json.dumps(args))
         
     | 
| 
      
 363 
     | 
    
         
            +
                start_time = time.time()
         
     | 
| 
      
 364 
     | 
    
         
            +
                while True:
         
     | 
| 
      
 365 
     | 
    
         
            +
                    rsp = client.DescribeTaskPolicyTriggerLog(model)
         
     | 
| 
      
 366 
     | 
    
         
            +
                    result = rsp.to_json_string()
         
     | 
| 
      
 367 
     | 
    
         
            +
                    try:
         
     | 
| 
      
 368 
     | 
    
         
            +
                        json_obj = json.loads(result)
         
     | 
| 
      
 369 
     | 
    
         
            +
                    except TypeError as e:
         
     | 
| 
      
 370 
     | 
    
         
            +
                        json_obj = json.loads(result.decode('utf-8'))  # python3.3
         
     | 
| 
      
 371 
     | 
    
         
            +
                    if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
         
     | 
| 
      
 372 
     | 
    
         
            +
                        break
         
     | 
| 
      
 373 
     | 
    
         
            +
                    cur_time = time.time()
         
     | 
| 
      
 374 
     | 
    
         
            +
                    if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
         
     | 
| 
      
 375 
     | 
    
         
            +
                        raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
         
     | 
| 
      
 376 
     | 
    
         
            +
                        (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
         
     | 
| 
      
 377 
     | 
    
         
            +
                        search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
         
     | 
| 
      
 378 
     | 
    
         
            +
                    else:
         
     | 
| 
      
 379 
     | 
    
         
            +
                        print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
         
     | 
| 
      
 380 
     | 
    
         
            +
                    time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
         
     | 
| 
      
 381 
     | 
    
         
            +
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         
     | 
| 
      
 382 
     | 
    
         
            +
             
     | 
| 
      
 383 
     | 
    
         
            +
             
     | 
| 
       280 
384 
     | 
    
         
             
            def doDescribeTaskExecuteLogs(args, parsed_globals):
         
     | 
| 
       281 
385 
     | 
    
         
             
                g_param = parse_global_arg(parsed_globals)
         
     | 
| 
       282 
386 
     | 
    
         | 
| 
         @@ -552,7 +656,9 @@ ACTION_MAP = { 
     | 
|
| 
       552 
656 
     | 
    
         
             
                "DescribeTemplate": doDescribeTemplate,
         
     | 
| 
       553 
657 
     | 
    
         
             
                "ExecuteTaskInstance": doExecuteTaskInstance,
         
     | 
| 
       554 
658 
     | 
    
         
             
                "DescribeTemplateList": doDescribeTemplateList,
         
     | 
| 
      
 659 
     | 
    
         
            +
                "TriggerPolicy": doTriggerPolicy,
         
     | 
| 
       555 
660 
     | 
    
         
             
                "DescribeTaskList": doDescribeTaskList,
         
     | 
| 
      
 661 
     | 
    
         
            +
                "DescribeTaskPolicyTriggerLog": doDescribeTaskPolicyTriggerLog,
         
     | 
| 
       556 
662 
     | 
    
         
             
                "DescribeTaskExecuteLogs": doDescribeTaskExecuteLogs,
         
     | 
| 
       557 
663 
     | 
    
         
             
                "DescribeTask": doDescribeTask,
         
     | 
| 
       558 
664 
     | 
    
         
             
                "ModifyTaskRunStatus": doModifyTaskRunStatus,
         
     | 
| 
         @@ -35,6 +35,13 @@ 
     | 
|
| 
       35 
35 
     | 
    
         
             
                  "output": "DescribeTaskListResponse",
         
     | 
| 
       36 
36 
     | 
    
         
             
                  "status": "online"
         
     | 
| 
       37 
37 
     | 
    
         
             
                },
         
     | 
| 
      
 38 
     | 
    
         
            +
                "DescribeTaskPolicyTriggerLog": {
         
     | 
| 
      
 39 
     | 
    
         
            +
                  "document": "获取护栏触发日志",
         
     | 
| 
      
 40 
     | 
    
         
            +
                  "input": "DescribeTaskPolicyTriggerLogRequest",
         
     | 
| 
      
 41 
     | 
    
         
            +
                  "name": "获取护栏触发日志",
         
     | 
| 
      
 42 
     | 
    
         
            +
                  "output": "DescribeTaskPolicyTriggerLogResponse",
         
     | 
| 
      
 43 
     | 
    
         
            +
                  "status": "online"
         
     | 
| 
      
 44 
     | 
    
         
            +
                },
         
     | 
| 
       38 
45 
     | 
    
         
             
                "DescribeTemplate": {
         
     | 
| 
       39 
46 
     | 
    
         
             
                  "document": "查询经验库",
         
     | 
| 
       40 
47 
     | 
    
         
             
                  "input": "DescribeTemplateRequest",
         
     | 
| 
         @@ -69,6 +76,13 @@ 
     | 
|
| 
       69 
76 
     | 
    
         
             
                  "name": "修改任务运行状态",
         
     | 
| 
       70 
77 
     | 
    
         
             
                  "output": "ModifyTaskRunStatusResponse",
         
     | 
| 
       71 
78 
     | 
    
         
             
                  "status": "online"
         
     | 
| 
      
 79 
     | 
    
         
            +
                },
         
     | 
| 
      
 80 
     | 
    
         
            +
                "TriggerPolicy": {
         
     | 
| 
      
 81 
     | 
    
         
            +
                  "document": "用于触发混沌演练护栏(类型为触发和恢复2种)",
         
     | 
| 
      
 82 
     | 
    
         
            +
                  "input": "TriggerPolicyRequest",
         
     | 
| 
      
 83 
     | 
    
         
            +
                  "name": "触发护栏策略",
         
     | 
| 
      
 84 
     | 
    
         
            +
                  "output": "TriggerPolicyResponse",
         
     | 
| 
      
 85 
     | 
    
         
            +
                  "status": "online"
         
     | 
| 
       72 
86 
     | 
    
         
             
                }
         
     | 
| 
       73 
87 
     | 
    
         
             
              },
         
     | 
| 
       74 
88 
     | 
    
         
             
              "metadata": {
         
     | 
| 
         @@ -484,6 +498,61 @@ 
     | 
|
| 
       484 
498 
     | 
    
         
             
                  ],
         
     | 
| 
       485 
499 
     | 
    
         
             
                  "type": "object"
         
     | 
| 
       486 
500 
     | 
    
         
             
                },
         
     | 
| 
      
 501 
     | 
    
         
            +
                "DescribeTaskPolicyTriggerLogRequest": {
         
     | 
| 
      
 502 
     | 
    
         
            +
                  "document": "DescribeTaskPolicyTriggerLog请求参数结构体",
         
     | 
| 
      
 503 
     | 
    
         
            +
                  "members": [
         
     | 
| 
      
 504 
     | 
    
         
            +
                    {
         
     | 
| 
      
 505 
     | 
    
         
            +
                      "disabled": false,
         
     | 
| 
      
 506 
     | 
    
         
            +
                      "document": "演练ID",
         
     | 
| 
      
 507 
     | 
    
         
            +
                      "example": "1111",
         
     | 
| 
      
 508 
     | 
    
         
            +
                      "member": "int64",
         
     | 
| 
      
 509 
     | 
    
         
            +
                      "name": "TaskId",
         
     | 
| 
      
 510 
     | 
    
         
            +
                      "required": true,
         
     | 
| 
      
 511 
     | 
    
         
            +
                      "type": "int"
         
     | 
| 
      
 512 
     | 
    
         
            +
                    },
         
     | 
| 
      
 513 
     | 
    
         
            +
                    {
         
     | 
| 
      
 514 
     | 
    
         
            +
                      "disabled": false,
         
     | 
| 
      
 515 
     | 
    
         
            +
                      "document": "页码",
         
     | 
| 
      
 516 
     | 
    
         
            +
                      "example": "1",
         
     | 
| 
      
 517 
     | 
    
         
            +
                      "member": "int64",
         
     | 
| 
      
 518 
     | 
    
         
            +
                      "name": "Page",
         
     | 
| 
      
 519 
     | 
    
         
            +
                      "required": true,
         
     | 
| 
      
 520 
     | 
    
         
            +
                      "type": "int"
         
     | 
| 
      
 521 
     | 
    
         
            +
                    },
         
     | 
| 
      
 522 
     | 
    
         
            +
                    {
         
     | 
| 
      
 523 
     | 
    
         
            +
                      "disabled": false,
         
     | 
| 
      
 524 
     | 
    
         
            +
                      "document": "页数量",
         
     | 
| 
      
 525 
     | 
    
         
            +
                      "example": "24",
         
     | 
| 
      
 526 
     | 
    
         
            +
                      "member": "int64",
         
     | 
| 
      
 527 
     | 
    
         
            +
                      "name": "PageSize",
         
     | 
| 
      
 528 
     | 
    
         
            +
                      "required": true,
         
     | 
| 
      
 529 
     | 
    
         
            +
                      "type": "int"
         
     | 
| 
      
 530 
     | 
    
         
            +
                    }
         
     | 
| 
      
 531 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 532 
     | 
    
         
            +
                  "type": "object"
         
     | 
| 
      
 533 
     | 
    
         
            +
                },
         
     | 
| 
      
 534 
     | 
    
         
            +
                "DescribeTaskPolicyTriggerLogResponse": {
         
     | 
| 
      
 535 
     | 
    
         
            +
                  "document": "DescribeTaskPolicyTriggerLog返回参数结构体",
         
     | 
| 
      
 536 
     | 
    
         
            +
                  "members": [
         
     | 
| 
      
 537 
     | 
    
         
            +
                    {
         
     | 
| 
      
 538 
     | 
    
         
            +
                      "disabled": false,
         
     | 
| 
      
 539 
     | 
    
         
            +
                      "document": "触发日志\n注意:此字段可能返回 null,表示取不到有效值。",
         
     | 
| 
      
 540 
     | 
    
         
            +
                      "example": "无",
         
     | 
| 
      
 541 
     | 
    
         
            +
                      "member": "PolicyTriggerLog",
         
     | 
| 
      
 542 
     | 
    
         
            +
                      "name": "TriggerLogs",
         
     | 
| 
      
 543 
     | 
    
         
            +
                      "output_required": false,
         
     | 
| 
      
 544 
     | 
    
         
            +
                      "type": "list",
         
     | 
| 
      
 545 
     | 
    
         
            +
                      "value_allowed_null": true
         
     | 
| 
      
 546 
     | 
    
         
            +
                    },
         
     | 
| 
      
 547 
     | 
    
         
            +
                    {
         
     | 
| 
      
 548 
     | 
    
         
            +
                      "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
         
     | 
| 
      
 549 
     | 
    
         
            +
                      "member": "string",
         
     | 
| 
      
 550 
     | 
    
         
            +
                      "name": "RequestId",
         
     | 
| 
      
 551 
     | 
    
         
            +
                      "type": "string"
         
     | 
| 
      
 552 
     | 
    
         
            +
                    }
         
     | 
| 
      
 553 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 554 
     | 
    
         
            +
                  "type": "object"
         
     | 
| 
      
 555 
     | 
    
         
            +
                },
         
     | 
| 
       487 
556 
     | 
    
         
             
                "DescribeTaskRequest": {
         
     | 
| 
       488 
557 
     | 
    
         
             
                  "document": "DescribeTask请求参数结构体",
         
     | 
| 
       489 
558 
     | 
    
         
             
                  "members": [
         
     | 
| 
         @@ -840,6 +909,62 @@ 
     | 
|
| 
       840 
909 
     | 
    
         
             
                  ],
         
     | 
| 
       841 
910 
     | 
    
         
             
                  "type": "object"
         
     | 
| 
       842 
911 
     | 
    
         
             
                },
         
     | 
| 
      
 912 
     | 
    
         
            +
                "PolicyTriggerLog": {
         
     | 
| 
      
 913 
     | 
    
         
            +
                  "document": "护栏策略触发日志",
         
     | 
| 
      
 914 
     | 
    
         
            +
                  "members": [
         
     | 
| 
      
 915 
     | 
    
         
            +
                    {
         
     | 
| 
      
 916 
     | 
    
         
            +
                      "disabled": false,
         
     | 
| 
      
 917 
     | 
    
         
            +
                      "document": "演练ID\n注意:此字段可能返回 null,表示取不到有效值。",
         
     | 
| 
      
 918 
     | 
    
         
            +
                      "example": "111",
         
     | 
| 
      
 919 
     | 
    
         
            +
                      "member": "int64",
         
     | 
| 
      
 920 
     | 
    
         
            +
                      "name": "TaskId",
         
     | 
| 
      
 921 
     | 
    
         
            +
                      "output_required": false,
         
     | 
| 
      
 922 
     | 
    
         
            +
                      "type": "int",
         
     | 
| 
      
 923 
     | 
    
         
            +
                      "value_allowed_null": true
         
     | 
| 
      
 924 
     | 
    
         
            +
                    },
         
     | 
| 
      
 925 
     | 
    
         
            +
                    {
         
     | 
| 
      
 926 
     | 
    
         
            +
                      "disabled": false,
         
     | 
| 
      
 927 
     | 
    
         
            +
                      "document": "名称\n注意:此字段可能返回 null,表示取不到有效值。",
         
     | 
| 
      
 928 
     | 
    
         
            +
                      "example": "cpu告警",
         
     | 
| 
      
 929 
     | 
    
         
            +
                      "member": "string",
         
     | 
| 
      
 930 
     | 
    
         
            +
                      "name": "Name",
         
     | 
| 
      
 931 
     | 
    
         
            +
                      "output_required": false,
         
     | 
| 
      
 932 
     | 
    
         
            +
                      "type": "string",
         
     | 
| 
      
 933 
     | 
    
         
            +
                      "value_allowed_null": true
         
     | 
| 
      
 934 
     | 
    
         
            +
                    },
         
     | 
| 
      
 935 
     | 
    
         
            +
                    {
         
     | 
| 
      
 936 
     | 
    
         
            +
                      "disabled": false,
         
     | 
| 
      
 937 
     | 
    
         
            +
                      "document": "类型,0--触发,1--恢复\n注意:此字段可能返回 null,表示取不到有效值。",
         
     | 
| 
      
 938 
     | 
    
         
            +
                      "example": "1",
         
     | 
| 
      
 939 
     | 
    
         
            +
                      "member": "int64",
         
     | 
| 
      
 940 
     | 
    
         
            +
                      "name": "TriggerType",
         
     | 
| 
      
 941 
     | 
    
         
            +
                      "output_required": false,
         
     | 
| 
      
 942 
     | 
    
         
            +
                      "type": "int",
         
     | 
| 
      
 943 
     | 
    
         
            +
                      "value_allowed_null": true
         
     | 
| 
      
 944 
     | 
    
         
            +
                    },
         
     | 
| 
      
 945 
     | 
    
         
            +
                    {
         
     | 
| 
      
 946 
     | 
    
         
            +
                      "disabled": false,
         
     | 
| 
      
 947 
     | 
    
         
            +
                      "document": "内容\n注意:此字段可能返回 null,表示取不到有效值。",
         
     | 
| 
      
 948 
     | 
    
         
            +
                      "example": "内容",
         
     | 
| 
      
 949 
     | 
    
         
            +
                      "member": "string",
         
     | 
| 
      
 950 
     | 
    
         
            +
                      "name": "Content",
         
     | 
| 
      
 951 
     | 
    
         
            +
                      "output_required": false,
         
     | 
| 
      
 952 
     | 
    
         
            +
                      "type": "string",
         
     | 
| 
      
 953 
     | 
    
         
            +
                      "value_allowed_null": true
         
     | 
| 
      
 954 
     | 
    
         
            +
                    },
         
     | 
| 
      
 955 
     | 
    
         
            +
                    {
         
     | 
| 
      
 956 
     | 
    
         
            +
                      "disabled": false,
         
     | 
| 
      
 957 
     | 
    
         
            +
                      "document": "触发时间\n注意:此字段可能返回 null,表示取不到有效值。",
         
     | 
| 
      
 958 
     | 
    
         
            +
                      "example": "2022-02-22",
         
     | 
| 
      
 959 
     | 
    
         
            +
                      "member": "string",
         
     | 
| 
      
 960 
     | 
    
         
            +
                      "name": "CreatTime",
         
     | 
| 
      
 961 
     | 
    
         
            +
                      "output_required": false,
         
     | 
| 
      
 962 
     | 
    
         
            +
                      "type": "string",
         
     | 
| 
      
 963 
     | 
    
         
            +
                      "value_allowed_null": true
         
     | 
| 
      
 964 
     | 
    
         
            +
                    }
         
     | 
| 
      
 965 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 966 
     | 
    
         
            +
                  "usage": "out"
         
     | 
| 
      
 967 
     | 
    
         
            +
                },
         
     | 
| 
       843 
968 
     | 
    
         
             
                "TagWithCreate": {
         
     | 
| 
       844 
969 
     | 
    
         
             
                  "document": "用于传入创建、编辑标签",
         
     | 
| 
       845 
970 
     | 
    
         
             
                  "members": [
         
     | 
| 
         @@ -2777,6 +2902,80 @@ 
     | 
|
| 
       2777 
2902 
     | 
    
         
             
                    }
         
     | 
| 
       2778 
2903 
     | 
    
         
             
                  ],
         
     | 
| 
       2779 
2904 
     | 
    
         
             
                  "usage": "out"
         
     | 
| 
      
 2905 
     | 
    
         
            +
                },
         
     | 
| 
      
 2906 
     | 
    
         
            +
                "TriggerPolicyRequest": {
         
     | 
| 
      
 2907 
     | 
    
         
            +
                  "document": "TriggerPolicy请求参数结构体",
         
     | 
| 
      
 2908 
     | 
    
         
            +
                  "members": [
         
     | 
| 
      
 2909 
     | 
    
         
            +
                    {
         
     | 
| 
      
 2910 
     | 
    
         
            +
                      "disabled": false,
         
     | 
| 
      
 2911 
     | 
    
         
            +
                      "document": "混沌演练ID\n",
         
     | 
| 
      
 2912 
     | 
    
         
            +
                      "example": "无",
         
     | 
| 
      
 2913 
     | 
    
         
            +
                      "member": "int64",
         
     | 
| 
      
 2914 
     | 
    
         
            +
                      "name": "TaskId",
         
     | 
| 
      
 2915 
     | 
    
         
            +
                      "required": true,
         
     | 
| 
      
 2916 
     | 
    
         
            +
                      "type": "int"
         
     | 
| 
      
 2917 
     | 
    
         
            +
                    },
         
     | 
| 
      
 2918 
     | 
    
         
            +
                    {
         
     | 
| 
      
 2919 
     | 
    
         
            +
                      "disabled": false,
         
     | 
| 
      
 2920 
     | 
    
         
            +
                      "document": "名称",
         
     | 
| 
      
 2921 
     | 
    
         
            +
                      "example": "cpu告警",
         
     | 
| 
      
 2922 
     | 
    
         
            +
                      "member": "string",
         
     | 
| 
      
 2923 
     | 
    
         
            +
                      "name": "Name",
         
     | 
| 
      
 2924 
     | 
    
         
            +
                      "required": true,
         
     | 
| 
      
 2925 
     | 
    
         
            +
                      "type": "string"
         
     | 
| 
      
 2926 
     | 
    
         
            +
                    },
         
     | 
| 
      
 2927 
     | 
    
         
            +
                    {
         
     | 
| 
      
 2928 
     | 
    
         
            +
                      "disabled": false,
         
     | 
| 
      
 2929 
     | 
    
         
            +
                      "document": "触发内容",
         
     | 
| 
      
 2930 
     | 
    
         
            +
                      "example": "触发CPU利用率>80%",
         
     | 
| 
      
 2931 
     | 
    
         
            +
                      "member": "string",
         
     | 
| 
      
 2932 
     | 
    
         
            +
                      "name": "Content",
         
     | 
| 
      
 2933 
     | 
    
         
            +
                      "required": true,
         
     | 
| 
      
 2934 
     | 
    
         
            +
                      "type": "string"
         
     | 
| 
      
 2935 
     | 
    
         
            +
                    },
         
     | 
| 
      
 2936 
     | 
    
         
            +
                    {
         
     | 
| 
      
 2937 
     | 
    
         
            +
                      "disabled": false,
         
     | 
| 
      
 2938 
     | 
    
         
            +
                      "document": "触发类型,0--触发;1--恢复",
         
     | 
| 
      
 2939 
     | 
    
         
            +
                      "example": "0",
         
     | 
| 
      
 2940 
     | 
    
         
            +
                      "member": "int64",
         
     | 
| 
      
 2941 
     | 
    
         
            +
                      "name": "TriggerType",
         
     | 
| 
      
 2942 
     | 
    
         
            +
                      "required": true,
         
     | 
| 
      
 2943 
     | 
    
         
            +
                      "type": "int"
         
     | 
| 
      
 2944 
     | 
    
         
            +
                    }
         
     | 
| 
      
 2945 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 2946 
     | 
    
         
            +
                  "type": "object"
         
     | 
| 
      
 2947 
     | 
    
         
            +
                },
         
     | 
| 
      
 2948 
     | 
    
         
            +
                "TriggerPolicyResponse": {
         
     | 
| 
      
 2949 
     | 
    
         
            +
                  "document": "TriggerPolicy返回参数结构体",
         
     | 
| 
      
 2950 
     | 
    
         
            +
                  "members": [
         
     | 
| 
      
 2951 
     | 
    
         
            +
                    {
         
     | 
| 
      
 2952 
     | 
    
         
            +
                      "disabled": false,
         
     | 
| 
      
 2953 
     | 
    
         
            +
                      "document": "演练ID",
         
     | 
| 
      
 2954 
     | 
    
         
            +
                      "example": "11",
         
     | 
| 
      
 2955 
     | 
    
         
            +
                      "member": "int64",
         
     | 
| 
      
 2956 
     | 
    
         
            +
                      "name": "TaskId",
         
     | 
| 
      
 2957 
     | 
    
         
            +
                      "output_required": true,
         
     | 
| 
      
 2958 
     | 
    
         
            +
                      "type": "int",
         
     | 
| 
      
 2959 
     | 
    
         
            +
                      "value_allowed_null": false
         
     | 
| 
      
 2960 
     | 
    
         
            +
                    },
         
     | 
| 
      
 2961 
     | 
    
         
            +
                    {
         
     | 
| 
      
 2962 
     | 
    
         
            +
                      "disabled": false,
         
     | 
| 
      
 2963 
     | 
    
         
            +
                      "document": "是否触发成功",
         
     | 
| 
      
 2964 
     | 
    
         
            +
                      "example": "true",
         
     | 
| 
      
 2965 
     | 
    
         
            +
                      "member": "bool",
         
     | 
| 
      
 2966 
     | 
    
         
            +
                      "name": "Success",
         
     | 
| 
      
 2967 
     | 
    
         
            +
                      "output_required": true,
         
     | 
| 
      
 2968 
     | 
    
         
            +
                      "type": "bool",
         
     | 
| 
      
 2969 
     | 
    
         
            +
                      "value_allowed_null": false
         
     | 
| 
      
 2970 
     | 
    
         
            +
                    },
         
     | 
| 
      
 2971 
     | 
    
         
            +
                    {
         
     | 
| 
      
 2972 
     | 
    
         
            +
                      "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
         
     | 
| 
      
 2973 
     | 
    
         
            +
                      "member": "string",
         
     | 
| 
      
 2974 
     | 
    
         
            +
                      "name": "RequestId",
         
     | 
| 
      
 2975 
     | 
    
         
            +
                      "type": "string"
         
     | 
| 
      
 2976 
     | 
    
         
            +
                    }
         
     | 
| 
      
 2977 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 2978 
     | 
    
         
            +
                  "type": "object"
         
     | 
| 
       2780 
2979 
     | 
    
         
             
                }
         
     | 
| 
       2781 
2980 
     | 
    
         
             
              },
         
     | 
| 
       2782 
2981 
     | 
    
         
             
              "version": "1.0"
         
     | 
| 
         @@ -46,6 +46,14 @@ 
     | 
|
| 
       46 
46 
     | 
    
         
             
                    "title": "查询演练列表(含预检状态信息)"
         
     | 
| 
       47 
47 
     | 
    
         
             
                  }
         
     | 
| 
       48 
48 
     | 
    
         
             
                ],
         
     | 
| 
      
 49 
     | 
    
         
            +
                "DescribeTaskPolicyTriggerLog": [
         
     | 
| 
      
 50 
     | 
    
         
            +
                  {
         
     | 
| 
      
 51 
     | 
    
         
            +
                    "document": "1",
         
     | 
| 
      
 52 
     | 
    
         
            +
                    "input": "POST / HTTP/1.1\nHost: cfg.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskPolicyTriggerLog\n<公共请求参数>\n\n{\n    \"TaskId\": 5491,\n    \"Page\": 1,\n    \"PageSize\": 11\n}",
         
     | 
| 
      
 53 
     | 
    
         
            +
                    "output": "{\n    \"Response\": {\n        \"RequestId\": \"1bba6839-682a-4123-9728-ec3fc141235b\",\n        \"TriggerLogs\": [\n            {\n                \"Content\": \"触发护栏测试内容-恢复i\",\n                \"CreatTime\": \"2023-11-14 12:51:33\",\n                \"Name\": \"触发护栏测试-恢复\",\n                \"TaskId\": 5491,\n                \"TriggerType\": 1\n            },\n            {\n                \"Content\": \"触发护栏测试内容\",\n                \"CreatTime\": \"2023-11-14 12:37:20\",\n                \"Name\": \"触发护栏测试\",\n                \"TaskId\": 5491,\n                \"TriggerType\": 0\n            }\n        ]\n    }\n}",
         
     | 
| 
      
 54 
     | 
    
         
            +
                    "title": "1"
         
     | 
| 
      
 55 
     | 
    
         
            +
                  }
         
     | 
| 
      
 56 
     | 
    
         
            +
                ],
         
     | 
| 
       49 
57 
     | 
    
         
             
                "DescribeTemplate": [
         
     | 
| 
       50 
58 
     | 
    
         
             
                  {
         
     | 
| 
       51 
59 
     | 
    
         
             
                    "document": "查询经验",
         
     | 
| 
         @@ -97,6 +105,14 @@ 
     | 
|
| 
       97 
105 
     | 
    
         
             
                    "output": "{\n    \"Response\": {\n        \"RequestId\": \"8e9a0777-ff96-4020-8aec-6802d8103689\"\n    }\n}",
         
     | 
| 
       98 
106 
     | 
    
         
             
                    "title": "示例1"
         
     | 
| 
       99 
107 
     | 
    
         
             
                  }
         
     | 
| 
      
 108 
     | 
    
         
            +
                ],
         
     | 
| 
      
 109 
     | 
    
         
            +
                "TriggerPolicy": [
         
     | 
| 
      
 110 
     | 
    
         
            +
                  {
         
     | 
| 
      
 111 
     | 
    
         
            +
                    "document": "1",
         
     | 
| 
      
 112 
     | 
    
         
            +
                    "input": "POST / HTTP/1.1\nHost: cfg.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: TriggerPolicy\n<公共请求参数>\n\n{\n    \"TaskId\": 5491,\n    \"Name\": \"触发护栏测试\",\n    \"Content\": \"触发护栏测试内容\",\n    \"TriggerType\": 0\n}",
         
     | 
| 
      
 113 
     | 
    
         
            +
                    "output": "{\n    \"Response\": {\n        \"RequestId\": \"1050e4e3-ef1a-4e2f-b100-c68dfd38fc75\",\n        \"Success\": true,\n        \"TaskId\": 5491\n    }\n}",
         
     | 
| 
      
 114 
     | 
    
         
            +
                    "title": "1"
         
     | 
| 
      
 115 
     | 
    
         
            +
                  }
         
     | 
| 
       100 
116 
     | 
    
         
             
                ]
         
     | 
| 
       101 
117 
     | 
    
         
             
              },
         
     | 
| 
       102 
118 
     | 
    
         
             
              "version": "1.0"
         
     |