tccli 3.0.832.1__py2.py3-none-any.whl → 3.0.834.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +0 -3
- tccli/services/autoscaling/v20180419/api.json +1 -27
- tccli/services/autoscaling/v20180419/examples.json +5 -5
- tccli/services/bpaas/v20181217/api.json +9 -20
- tccli/services/ccc/v20200210/api.json +8 -11
- tccli/services/ccc/v20200210/examples.json +4 -4
- tccli/services/clb/v20180317/api.json +19 -91
- tccli/services/cls/v20201016/api.json +11 -24
- tccli/services/cls/v20201016/examples.json +1 -1
- tccli/services/cvm/cvm_client.py +53 -0
- tccli/services/cvm/v20170312/api.json +368 -0
- tccli/services/cvm/v20170312/examples.json +8 -0
- tccli/services/cwp/v20180228/api.json +9 -0
- tccli/services/cwp/v20180228/examples.json +1 -1
- tccli/services/essbasic/essbasic_client.py +106 -0
- tccli/services/essbasic/v20210526/api.json +434 -0
- tccli/services/essbasic/v20210526/examples.json +16 -0
- tccli/services/gaap/v20180529/api.json +0 -5
- tccli/services/gaap/v20180529/examples.json +4 -4
- tccli/services/monitor/v20180724/api.json +49 -2
- tccli/services/monitor/v20180724/examples.json +9 -9
- tccli/services/mps/mps_client.py +53 -0
- tccli/services/mps/v20190612/api.json +307 -18
- tccli/services/mps/v20190612/examples.json +8 -0
- tccli/services/oceanus/v20190422/api.json +119 -49
- tccli/services/tcbr/v20220217/api.json +9 -12
- tccli/services/tcbr/v20220217/examples.json +8 -2
- tccli/services/tdmq/v20200217/api.json +38 -38
- tccli/services/tke/v20180525/api.json +17 -48
- tccli/services/tke/v20180525/examples.json +10 -10
- tccli/services/trtc/v20190722/api.json +88 -3
- tccli/services/vod/v20180717/api.json +0 -14
- tccli/services/vod/v20180717/examples.json +4 -4
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/vpc/v20170312/examples.json +1 -1
- tccli/services/wedata/v20210820/api.json +186 -40
- {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/METADATA +2 -2
- {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/RECORD +43 -45
- tccli/services/intlpartnersmgt/v20220928/api.json +0 -1054
- tccli/services/intlpartnersmgt/v20220928/examples.json +0 -93
- {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/LICENSE +0 -0
- {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/top_level.txt +0 -0
@@ -115,13 +115,13 @@
|
|
115
115
|
"CreatePrometheusAlertPolicy": [
|
116
116
|
{
|
117
117
|
"document": "新增告警",
|
118
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"AlertRule\": {\n \"Name\": \"xx\",\n \"Rules\": [\n {\n \"Describe\": \"xx\",\n \"Name\": \"xx\",\n \"For\": \"xx\",\n \"Labels\": [\n {}\n ],\n \"Rule\": \"xx\",\n \"Template\": \"xx\",\n \"Annotations\": [\n {}\n ]\n }\n ],\n \"Notification\": {\n \"AlertManager\": {\n \"Url\": \"xx\",\n \"ClusterId\": \"xx\",\n \"ClusterType\": \"xx\"\n },\n \"RepeatInterval\": \"xx\",\n \"WebHook\": \"xx\",\n \"Enabled\": true,\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"NotifyWay\": [\n \"xx\"\n ],\n \"ReceiverGroups\": [\n 1\n ],\n \"PhoneArriveNotice\": true,\n \"PhoneCircleTimes\": 0,\n \"TimeRangeStart\": \"xx\",\n \"Type\": \"xx\",\n \"TimeRangeEnd\": \"xx\"\n },\n \"TemplateId\": \"xx\",\n \"ClusterId\": \"xx\",\n \"UpdatedAt\": \"xx\",\n \"Id\": \"xx\"\n }\n}",
|
118
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"AlertRule\": {\n \"Name\": \"xx\",\n \"Rules\": [\n {\n \"Describe\": \"xx\",\n \"Name\": \"xx\",\n \"For\": \"xx\",\n \"Labels\": [\n {\n \"Name\": \"xx\",\n \"Value\": \"xx\"\n }\n ],\n \"Rule\": \"xx\",\n \"Template\": \"xx\",\n \"Annotations\": [\n {\n \"Name\": \"xx\",\n \"Value\": \"xx\"\n }\n ]\n }\n ],\n \"Notification\": {\n \"AlertManager\": {\n \"Url\": \"xx\",\n \"ClusterId\": \"xx\",\n \"ClusterType\": \"xx\"\n },\n \"RepeatInterval\": \"xx\",\n \"WebHook\": \"xx\",\n \"Enabled\": true,\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"NotifyWay\": [\n \"xx\"\n ],\n \"ReceiverGroups\": [\n 1\n ],\n \"PhoneArriveNotice\": true,\n \"PhoneCircleTimes\": 0,\n \"TimeRangeStart\": \"xx\",\n \"Type\": \"xx\",\n \"TimeRangeEnd\": \"xx\"\n },\n \"TemplateId\": \"xx\",\n \"ClusterId\": \"xx\",\n \"UpdatedAt\": \"xx\",\n \"Id\": \"xx\"\n }\n}",
|
119
119
|
"output": "{\n \"Response\": {\n \"Id\": \"xx\",\n \"RequestId\": \"xx\"\n }\n}",
|
120
120
|
"title": "新增告警"
|
121
121
|
},
|
122
122
|
{
|
123
123
|
"document": "添加告警策略,告警渠道为Alertmanager",
|
124
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"AlertRule\": {\n \"Name\": \"xx\",\n \"Rules\": [\n {\n \"Describe\": \"xx\",\n \"Name\": \"xx\",\n \"For\": \"xx\",\n \"Labels\": [\n {}\n ],\n \"Rule\": \"xx\",\n \"Template\": \"xx\",\n \"RuleState\": 0,\n \"Annotations\": [\n {}\n ]\n }\n ],\n \"Notification\": {\n \"AlertManager\": {\n \"Url\": \"xx\",\n \"ClusterId\": \"xx\",\n \"ClusterType\": \"xx\"\n },\n \"RepeatInterval\": \"xx\",\n \"WebHook\": \"xx\",\n \"Enabled\": true,\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"NotifyWay\": [\n \"xx\"\n ],\n \"ReceiverGroups\": [\n \"xx\"\n ],\n \"PhoneArriveNotice\": true,\n \"PhoneCircleTimes\": 0,\n \"TimeRangeStart\": \"xx\",\n \"Type\": \"xx\",\n \"TimeRangeEnd\": \"xx\"\n },\n \"TemplateId\": \"xx\",\n \"ClusterId\": \"xx\",\n \"UpdatedAt\": \"xx\",\n \"Id\": \"xx\"\n }\n}",
|
124
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"AlertRule\": {\n \"Name\": \"xx\",\n \"Rules\": [\n {\n \"Describe\": \"xx\",\n \"Name\": \"xx\",\n \"For\": \"xx\",\n \"Labels\": [\n {\n \"Name\": \"xx\",\n \"Value\": \"xx\"\n }\n ],\n \"Rule\": \"xx\",\n \"Template\": \"xx\",\n \"RuleState\": 0,\n \"Annotations\": [\n {\n \"Name\": \"xx\",\n \"Value\": \"xx\"\n }\n ]\n }\n ],\n \"Notification\": {\n \"AlertManager\": {\n \"Url\": \"xx\",\n \"ClusterId\": \"xx\",\n \"ClusterType\": \"xx\"\n },\n \"RepeatInterval\": \"xx\",\n \"WebHook\": \"xx\",\n \"Enabled\": true,\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"NotifyWay\": [\n \"xx\"\n ],\n \"ReceiverGroups\": [\n \"xx\"\n ],\n \"PhoneArriveNotice\": true,\n \"PhoneCircleTimes\": 0,\n \"TimeRangeStart\": \"xx\",\n \"Type\": \"xx\",\n \"TimeRangeEnd\": \"xx\"\n },\n \"TemplateId\": \"xx\",\n \"ClusterId\": \"xx\",\n \"UpdatedAt\": \"xx\",\n \"Id\": \"xx\"\n }\n}",
|
125
125
|
"output": "{\n \"Response\": {\n \"Id\": \"alert-xxx\",\n \"RequestId\": \"3dfe620f-11b8-4301-b279-1fdadedf7a59\"\n }\n}",
|
126
126
|
"title": "添加告警策略,告警渠道为Alertmanager"
|
127
127
|
}
|
@@ -135,7 +135,7 @@
|
|
135
135
|
},
|
136
136
|
{
|
137
137
|
"document": "关联eks集群",
|
138
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusClusterAgent\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"Agents\": [\n {\n \"EnableExternal\": true,\n \"Region\": \"xx\",\n \"ClusterId\": \"xx\",\n \"ClusterType\": \"xx\",\n \"NotInstallBasicScrape\": true,\n \"InClusterPodConfig\": {\n \"HostNet\": true,\n \"Tolerations\": [\n {\n \"Operator\": \"xx\",\n \"Effect\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"NodeSelector\": [\n {}\n ]\n },\n \"NotScrape\": true,\n \"ExternalLabels\": [\n {}\n ]\n }\n ]\n}",
|
138
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusClusterAgent\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"Agents\": [\n {\n \"EnableExternal\": true,\n \"Region\": \"xx\",\n \"ClusterId\": \"xx\",\n \"ClusterType\": \"xx\",\n \"NotInstallBasicScrape\": true,\n \"InClusterPodConfig\": {\n \"HostNet\": true,\n \"Tolerations\": [\n {\n \"Operator\": \"xx\",\n \"Effect\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"NodeSelector\": [\n {\n \"Name\": \"xx\",\n \"Value\": \"xx\"\n }\n ]\n },\n \"NotScrape\": true,\n \"ExternalLabels\": [\n {\n \"Name\": \"xx\",\n \"Value\": \"xx\"\n }\n ]\n }\n ]\n}",
|
139
139
|
"output": "{\n \"Response\": {\n \"RequestId\": \"xxx\"\n }\n}",
|
140
140
|
"title": "关联集群"
|
141
141
|
}
|
@@ -287,7 +287,7 @@
|
|
287
287
|
"DeletePrometheusClusterAgent": [
|
288
288
|
{
|
289
289
|
"document": "删除agent",
|
290
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeletePrometheusClusterAgent\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"Agents\": [\n {}\n ]\n}",
|
290
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeletePrometheusClusterAgent\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"Agents\": [\n {\n \"Describe\": \"xx\",\n \"ClusterId\": \"xx\",\n \"ClusterType\": \"xx\"\n }\n ]\n}",
|
291
291
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
292
292
|
"title": "删除agent"
|
293
293
|
}
|
@@ -650,7 +650,7 @@
|
|
650
650
|
{
|
651
651
|
"document": "告警列表",
|
652
652
|
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"Limit\": 1,\n \"Filters\": [\n {\n \"Type\": \"xx\",\n \"Key\": \"xx\",\n \"Value\": \"xx\"\n }\n ],\n \"Offset\": 1\n}",
|
653
|
-
"output": "{\n \"Response\": {\n \"AlertRules\": [\n {\n \"Name\": \"xx\",\n \"Rules\": [\n {\n \"Describe\": \"xx\",\n \"Name\": \"xx\",\n \"For\": \"xx\",\n \"Labels\": [\n {}\n ],\n \"Rule\": \"xx\",\n \"Template\": \"xx\",\n \"Annotations\": [\n {}\n ]\n }\n ],\n \"Notification\": {\n \"AlertManager\": {\n \"Url\": \"xx\",\n \"ClusterId\": \"xx\",\n \"ClusterType\": \"xx\"\n },\n \"RepeatInterval\": \"xx\",\n \"WebHook\": \"xx\",\n \"Enabled\": true,\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"NotifyWay\": [\n \"xx\"\n ],\n \"ReceiverGroups\": [\n 1\n ],\n \"PhoneArriveNotice\": true,\n \"PhoneCircleTimes\": 0,\n \"TimeRangeStart\": \"xx\",\n \"Type\": \"xx\",\n \"TimeRangeEnd\": \"xx\"\n },\n \"TemplateId\": \"xx\",\n \"ClusterId\": \"xx\",\n \"UpdatedAt\": \"xx\",\n \"Id\": \"xx\"\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"xx\"\n }\n}",
|
653
|
+
"output": "{\n \"Response\": {\n \"AlertRules\": [\n {\n \"Name\": \"xx\",\n \"Rules\": [\n {\n \"Describe\": \"xx\",\n \"Name\": \"xx\",\n \"For\": \"xx\",\n \"Labels\": [\n {\n \"Name\": \"xx\",\n \"Value\": \"xx\"\n }\n ],\n \"Rule\": \"xx\",\n \"Template\": \"xx\",\n \"Annotations\": [\n {\n \"Name\": \"xx\",\n \"Value\": \"xx\"\n }\n ]\n }\n ],\n \"Notification\": {\n \"AlertManager\": {\n \"Url\": \"xx\",\n \"ClusterId\": \"xx\",\n \"ClusterType\": \"xx\"\n },\n \"RepeatInterval\": \"xx\",\n \"WebHook\": \"xx\",\n \"Enabled\": true,\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"NotifyWay\": [\n \"xx\"\n ],\n \"ReceiverGroups\": [\n 1\n ],\n \"PhoneArriveNotice\": true,\n \"PhoneCircleTimes\": 0,\n \"TimeRangeStart\": \"xx\",\n \"Type\": \"xx\",\n \"TimeRangeEnd\": \"xx\"\n },\n \"TemplateId\": \"xx\",\n \"ClusterId\": \"xx\",\n \"UpdatedAt\": \"xx\",\n \"Id\": \"xx\"\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"xx\"\n }\n}",
|
654
654
|
"title": "告警列表"
|
655
655
|
}
|
656
656
|
],
|
@@ -658,7 +658,7 @@
|
|
658
658
|
{
|
659
659
|
"document": "拉取agent信息",
|
660
660
|
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusClusterAgents\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"Limit\": 1,\n \"Offset\": 1\n}",
|
661
|
-
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Agents\": [\n {\n \"Status\": \"xx\",\n \"ClusterName\": \"xx\",\n \"ExternalLabels\": [\n {}\n ],\n \"ClusterId\": \"xx\",\n \"ClusterType\": \"xx\",\n \"Region\": \"xx\",\n \"VpcId\": \"xx\",\n \"FailedReason\": \"xx\"\n }\n ],\n \"RequestId\": \"xx\"\n }\n}",
|
661
|
+
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Agents\": [\n {\n \"Status\": \"xx\",\n \"ClusterName\": \"xx\",\n \"ExternalLabels\": [\n {\n \"Name\": \"xx\",\n \"Value\": \"xx\"\n }\n ],\n \"ClusterId\": \"xx\",\n \"ClusterType\": \"xx\",\n \"Region\": \"xx\",\n \"VpcId\": \"xx\",\n \"FailedReason\": \"xx\"\n }\n ],\n \"RequestId\": \"xx\"\n }\n}",
|
662
662
|
"title": "拉取agent信息"
|
663
663
|
}
|
664
664
|
],
|
@@ -768,7 +768,7 @@
|
|
768
768
|
{
|
769
769
|
"document": "拉取模板列表",
|
770
770
|
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusTemp\n<公共请求参数>\n\n{\n \"Limit\": 1,\n \"Filters\": [\n {\n \"Type\": \"xx\",\n \"Key\": \"xx\",\n \"Value\": \"xx\"\n }\n ],\n \"Offset\": 1\n}",
|
771
|
-
"output": "{\n \"Response\": {\n \"Templates\": [\n {\n \"UpdateTime\": \"xx\",\n \"RecordRules\": [\n {\n \"Config\": \"xx\",\n \"Name\": \"xx\",\n \"TemplateId\": \"xx\"\n }\n ],\n \"Version\": \"xx\",\n \"Name\": \"xx\",\n \"Level\": \"xx\",\n \"Describe\": \"xx\",\n \"TargetsTotal\": 0,\n \"RawJobs\": [\n {\n \"Config\": \"xx\",\n \"Name\": \"xx\",\n \"TemplateId\": \"xx\"\n }\n ],\n \"PodMonitors\": [\n {\n \"Config\": \"xx\",\n \"Name\": \"xx\",\n \"TemplateId\": \"xx\"\n }\n ],\n \"TemplateId\": \"xx\",\n \"AlertDetailRules\": [\n {\n \"Name\": \"xx\",\n \"Rules\": [\n {\n \"Describe\": \"xx\",\n \"Name\": \"xx\",\n \"For\": \"xx\",\n \"Labels\": [\n {}\n ],\n \"Rule\": \"xx\",\n \"Template\": \"xx\",\n \"Annotations\": [\n {}\n ]\n }\n ],\n \"Notification\": {\n \"AlertManager\": {\n \"Url\": \"xx\",\n \"ClusterId\": \"xx\",\n \"ClusterType\": \"xx\"\n },\n \"RepeatInterval\": \"xx\",\n \"WebHook\": \"xx\",\n \"Enabled\": true,\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"NotifyWay\": [\n \"xx\"\n ],\n \"ReceiverGroups\": [\n \"xx\"\n ],\n \"PhoneArriveNotice\": true,\n \"PhoneCircleTimes\": 0,\n \"TimeRangeStart\": \"xx\",\n \"Type\": \"xx\",\n \"TimeRangeEnd\": \"xx\"\n },\n \"TemplateId\": \"xx\",\n \"ClusterId\": \"xx\",\n \"UpdatedAt\": \"xx\",\n \"Id\": \"xx\"\n }\n ],\n \"IsDefault\": true,\n \"ServiceMonitors\": [\n {\n \"Config\": \"xx\",\n \"Name\": \"xx\",\n \"TemplateId\": \"xx\"\n }\n ]\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"xx\"\n }\n}",
|
771
|
+
"output": "{\n \"Response\": {\n \"Templates\": [\n {\n \"UpdateTime\": \"xx\",\n \"RecordRules\": [\n {\n \"Config\": \"xx\",\n \"Name\": \"xx\",\n \"TemplateId\": \"xx\"\n }\n ],\n \"Version\": \"xx\",\n \"Name\": \"xx\",\n \"Level\": \"xx\",\n \"Describe\": \"xx\",\n \"TargetsTotal\": 0,\n \"RawJobs\": [\n {\n \"Config\": \"xx\",\n \"Name\": \"xx\",\n \"TemplateId\": \"xx\"\n }\n ],\n \"PodMonitors\": [\n {\n \"Config\": \"xx\",\n \"Name\": \"xx\",\n \"TemplateId\": \"xx\"\n }\n ],\n \"TemplateId\": \"xx\",\n \"AlertDetailRules\": [\n {\n \"Name\": \"xx\",\n \"Rules\": [\n {\n \"Describe\": \"xx\",\n \"Name\": \"xx\",\n \"For\": \"xx\",\n \"Labels\": [\n {\n \"Name\": \"xx\",\n \"Value\": \"xx\"\n }\n ],\n \"Rule\": \"xx\",\n \"Template\": \"xx\",\n \"Annotations\": [\n {\n \"Name\": \"xx\",\n \"Value\": \"xx\"\n }\n ]\n }\n ],\n \"Notification\": {\n \"AlertManager\": {\n \"Url\": \"xx\",\n \"ClusterId\": \"xx\",\n \"ClusterType\": \"xx\"\n },\n \"RepeatInterval\": \"xx\",\n \"WebHook\": \"xx\",\n \"Enabled\": true,\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"NotifyWay\": [\n \"xx\"\n ],\n \"ReceiverGroups\": [\n \"xx\"\n ],\n \"PhoneArriveNotice\": true,\n \"PhoneCircleTimes\": 0,\n \"TimeRangeStart\": \"xx\",\n \"Type\": \"xx\",\n \"TimeRangeEnd\": \"xx\"\n },\n \"TemplateId\": \"xx\",\n \"ClusterId\": \"xx\",\n \"UpdatedAt\": \"xx\",\n \"Id\": \"xx\"\n }\n ],\n \"IsDefault\": true,\n \"ServiceMonitors\": [\n {\n \"Config\": \"xx\",\n \"Name\": \"xx\",\n \"TemplateId\": \"xx\"\n }\n ]\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"xx\"\n }\n}",
|
772
772
|
"title": "拉取模板列表"
|
773
773
|
}
|
774
774
|
],
|
@@ -963,7 +963,7 @@
|
|
963
963
|
"ModifyPrometheusAgentExternalLabels": [
|
964
964
|
{
|
965
965
|
"document": "修改label",
|
966
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyPrometheusAgentExternalLabels\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"ExternalLabels\": [\n {}\n ],\n \"ClusterId\": \"xx\"\n}",
|
966
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyPrometheusAgentExternalLabels\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"ExternalLabels\": [\n {\n \"Name\": \"xx\",\n \"Value\": \"xx\"\n }\n ],\n \"ClusterId\": \"xx\"\n}",
|
967
967
|
"output": "{\n \"Response\": {\n \"RequestId\": \"xx\"\n }\n}",
|
968
968
|
"title": "修改label"
|
969
969
|
}
|
@@ -971,7 +971,7 @@
|
|
971
971
|
"ModifyPrometheusAlertPolicy": [
|
972
972
|
{
|
973
973
|
"document": "修改告警",
|
974
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyPrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"AlertRule\": {\n \"Name\": \"xx\",\n \"Rules\": [\n {\n \"Describe\": \"xx\",\n \"Name\": \"xx\",\n \"For\": \"xx\",\n \"Labels\": [\n {}\n ],\n \"Rule\": \"xx\",\n \"Template\": \"xx\",\n \"Annotations\": [\n {}\n ]\n }\n ],\n \"Notification\": {\n \"AlertManager\": {\n \"Url\": \"xx\",\n \"ClusterId\": \"xx\",\n \"ClusterType\": \"xx\"\n },\n \"RepeatInterval\": \"xx\",\n \"WebHook\": \"xx\",\n \"Enabled\": true,\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"NotifyWay\": [\n \"xx\"\n ],\n \"ReceiverGroups\": [\n 1\n ],\n \"PhoneArriveNotice\": true,\n \"PhoneCircleTimes\": 0,\n \"TimeRangeStart\": \"xx\",\n \"Type\": \"xx\",\n \"TimeRangeEnd\": \"xx\"\n },\n \"TemplateId\": \"xx\",\n \"ClusterId\": \"xx\",\n \"UpdatedAt\": \"xx\",\n \"Id\": \"xx\"\n }\n}",
|
974
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyPrometheusAlertPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"AlertRule\": {\n \"Name\": \"xx\",\n \"Rules\": [\n {\n \"Describe\": \"xx\",\n \"Name\": \"xx\",\n \"For\": \"xx\",\n \"Labels\": [\n {\n \"Name\": \"xx\",\n \"Value\": \"xx\"\n }\n ],\n \"Rule\": \"xx\",\n \"Template\": \"xx\",\n \"Annotations\": [\n {\n \"Name\": \"xx\",\n \"Value\": \"xx\"\n }\n ]\n }\n ],\n \"Notification\": {\n \"AlertManager\": {\n \"Url\": \"xx\",\n \"ClusterId\": \"xx\",\n \"ClusterType\": \"xx\"\n },\n \"RepeatInterval\": \"xx\",\n \"WebHook\": \"xx\",\n \"Enabled\": true,\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"NotifyWay\": [\n \"xx\"\n ],\n \"ReceiverGroups\": [\n 1\n ],\n \"PhoneArriveNotice\": true,\n \"PhoneCircleTimes\": 0,\n \"TimeRangeStart\": \"xx\",\n \"Type\": \"xx\",\n \"TimeRangeEnd\": \"xx\"\n },\n \"TemplateId\": \"xx\",\n \"ClusterId\": \"xx\",\n \"UpdatedAt\": \"xx\",\n \"Id\": \"xx\"\n }\n}",
|
975
975
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
976
976
|
"title": "修改告警"
|
977
977
|
}
|
tccli/services/mps/mps_client.py
CHANGED
@@ -3813,6 +3813,58 @@ def doDescribeImageSpriteTemplates(args, parsed_globals):
|
|
3813
3813
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3814
3814
|
|
3815
3815
|
|
3816
|
+
def doWithdrawsWatermark(args, parsed_globals):
|
3817
|
+
g_param = parse_global_arg(parsed_globals)
|
3818
|
+
|
3819
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3820
|
+
cred = credential.CVMRoleCredential()
|
3821
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3822
|
+
cred = credential.STSAssumeRoleCredential(
|
3823
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3824
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
3825
|
+
)
|
3826
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
3827
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3828
|
+
else:
|
3829
|
+
cred = credential.Credential(
|
3830
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3831
|
+
)
|
3832
|
+
http_profile = HttpProfile(
|
3833
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3834
|
+
reqMethod="POST",
|
3835
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3836
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3837
|
+
)
|
3838
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3839
|
+
if g_param[OptionsDefine.Language]:
|
3840
|
+
profile.language = g_param[OptionsDefine.Language]
|
3841
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3842
|
+
client = mod.MpsClient(cred, g_param[OptionsDefine.Region], profile)
|
3843
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3844
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3845
|
+
model = models.WithdrawsWatermarkRequest()
|
3846
|
+
model.from_json_string(json.dumps(args))
|
3847
|
+
start_time = time.time()
|
3848
|
+
while True:
|
3849
|
+
rsp = client.WithdrawsWatermark(model)
|
3850
|
+
result = rsp.to_json_string()
|
3851
|
+
try:
|
3852
|
+
json_obj = json.loads(result)
|
3853
|
+
except TypeError as e:
|
3854
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3855
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3856
|
+
break
|
3857
|
+
cur_time = time.time()
|
3858
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3859
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3860
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3861
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3862
|
+
else:
|
3863
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3864
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3865
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3866
|
+
|
3867
|
+
|
3816
3868
|
def doDeleteContentReviewTemplate(args, parsed_globals):
|
3817
3869
|
g_param = parse_global_arg(parsed_globals)
|
3818
3870
|
|
@@ -4417,6 +4469,7 @@ ACTION_MAP = {
|
|
4417
4469
|
"ModifyWordSample": doModifyWordSample,
|
4418
4470
|
"ModifyAdaptiveDynamicStreamingTemplate": doModifyAdaptiveDynamicStreamingTemplate,
|
4419
4471
|
"DescribeImageSpriteTemplates": doDescribeImageSpriteTemplates,
|
4472
|
+
"WithdrawsWatermark": doWithdrawsWatermark,
|
4420
4473
|
"DeleteContentReviewTemplate": doDeleteContentReviewTemplate,
|
4421
4474
|
"CreatePersonSample": doCreatePersonSample,
|
4422
4475
|
"ProcessLiveStream": doProcessLiveStream,
|