tccli 3.0.1014.1__py2.py3-none-any.whl → 3.0.1016.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 CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1014.1'
1
+ __version__ = '3.0.1016.1'
@@ -6,9 +6,9 @@ Input:
6
6
 
7
7
  ```
8
8
  tccli oceanus DeleteTableConfig --cli-unfold-argument \
9
+ --JobId cql-6ntmhryo \
9
10
  --DebugId 1 \
10
- --JobId cql-067opv7l \
11
- --TableName test
11
+ --TableName tabale_test
12
12
  ```
13
13
 
14
14
  Output:
@@ -1,21 +1,133 @@
1
- **Example 1: 查询集群列表**
2
-
1
+ **Example 1: 查询集群**
3
2
 
3
+ 查询集群
4
4
 
5
5
  Input:
6
6
 
7
7
  ```
8
8
  tccli oceanus DescribeClusters --cli-unfold-argument \
9
- --Limit 20
9
+ --ClusterIds cluster-5c42n3a5 \
10
+ --Limit 1 \
11
+ --WorkSpaceId space-53rqk422
10
12
  ```
11
13
 
12
14
  Output:
13
15
  ```
14
16
  {
15
17
  "Response": {
16
- "TotalCount": 11,
17
- "ClusterSet": [],
18
- "RequestId": "test"
18
+ "ClusterSet": [
19
+ {
20
+ "AppId": 1234567890,
21
+ "ArchGeneration": 2,
22
+ "AutoRenewFlag": 1,
23
+ "CCNs": [
24
+ {
25
+ "CcnId": "",
26
+ "SubnetId": "subnet-abcdefghijklmno",
27
+ "VpcId": "vpc-pqrstuvwxyz"
28
+ }
29
+ ],
30
+ "CLSLogName": "",
31
+ "CLSLogSet": "",
32
+ "CLSTopicId": "",
33
+ "CLSTopicName": "",
34
+ "ClusterId": "cluster-abcd1234",
35
+ "ClusterSessions": [
36
+ {
37
+ "AppId": 1234567890,
38
+ "ClusterGroupSerialId": "cluster-abcd1234",
39
+ "CreateTime": "2023-11-14 18:07:53",
40
+ "CreatorUin": "100012345678",
41
+ "CuNum": 3,
42
+ "FlinkVersion": "Flink-1.13",
43
+ "JobManagerCuSpec": 1,
44
+ "OwnerUin": "100098765432",
45
+ "Properties": [
46
+ {
47
+ "Key": "pipeline.max-parallelism",
48
+ "Value": "2048"
49
+ }
50
+ ],
51
+ "Region": "ap-guangzhou",
52
+ "Status": 1,
53
+ "TaskManagerCuSpec": 1,
54
+ "TaskManagerNum": 2,
55
+ "UpdateTime": "2023-11-14 18:09:02",
56
+ "WebUIUrl": "",
57
+ "Zone": "ap-guangzhou-7"
58
+ }
59
+ ],
60
+ "ClusterType": 0,
61
+ "Correlations": [
62
+ {
63
+ "ClusterGroupId": 1234,
64
+ "ClusterGroupSerialId": "cluster-abcd1234",
65
+ "ClusterName": "sample",
66
+ "ProjectId": 0,
67
+ "ProjectIdStr": "0",
68
+ "Status": 2,
69
+ "WorkSpaceId": "space-1234567890ap-guangzhou",
70
+ "WorkSpaceName": "Default"
71
+ }
72
+ ],
73
+ "CreateTime": "2023-08-15 17:18:08",
74
+ "CreatorUin": "100012345678",
75
+ "CuMem": 4,
76
+ "CuNum": 19,
77
+ "CustomizedDNSEnabled": 1,
78
+ "DefaultCOSBucket": "sample-gz-bucket-1234567890",
79
+ "DefaultLogCollectConf": "{\"LogCollectType\":2,\"Conf\":{\"ClsLogsetId\":\"cd9adbb5-6b7d-48d2-9870-77658959c7a4\",\"ClsTopicId\":\"80856bb3-0ef7-4e05-80eb-79ec283bb67d\",\"CosBucket\":\"\"}}",
80
+ "ExpireTime": "2023-12-04 15:10:29",
81
+ "FreeCu": 9,
82
+ "FreeCuNum": 9,
83
+ "IsNeedManageNode": 1,
84
+ "IsolatedTime": "-",
85
+ "Name": "sample",
86
+ "NetEnvironmentType": 1,
87
+ "Orders": [
88
+ {
89
+ "AutoRenewFlag": 1,
90
+ "ComputeCu": 19,
91
+ "OperateUin": "100098765432",
92
+ "OrderTime": "2023-11-04 01:57:54",
93
+ "Type": 2
94
+ }
95
+ ],
96
+ "OwnerUin": "100098765432",
97
+ "PayMode": 1,
98
+ "Region": "ap-guangzhou",
99
+ "Remark": "sample",
100
+ "RunningCu": 10,
101
+ "SecondsUntilExpiry": "1223380",
102
+ "SqlGateways": [],
103
+ "Status": 2,
104
+ "StatusDesc": "running",
105
+ "Tags": [
106
+ {
107
+ "TagKey": "tag1",
108
+ "TagValue": "value1"
109
+ },
110
+ {
111
+ "TagKey": "tag2",
112
+ "TagValue": "value2"
113
+ }
114
+ ],
115
+ "UpdateTime": "-",
116
+ "Version": {
117
+ "Flink": "Flink-1.13",
118
+ "SupportedFlink": [
119
+ "Flink-1.11",
120
+ "Flink-1.13",
121
+ "Flink-1.14",
122
+ "Flink-1.16"
123
+ ]
124
+ },
125
+ "WebUIType": 0,
126
+ "Zone": "ap-guangzhou-7"
127
+ }
128
+ ],
129
+ "RequestId": "24d0cbe8-9bd4-4356-bb95-74c5c4790877",
130
+ "TotalCount": 1
19
131
  }
20
132
  }
21
133
  ```
@@ -0,0 +1,49 @@
1
+ **Example 1: 查询文件夹**
2
+
3
+ 查询文件夹
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli oceanus DescribeFolder --cli-unfold-argument \
9
+ --FolderId folder-bnjsm2sb \
10
+ --WorkSpaceId space-7rfcnslf \
11
+ --FolderType 1
12
+ ```
13
+
14
+ Output:
15
+ ```
16
+ {
17
+ "Response": {
18
+ "FolderId": "folder-bnjsm2sb",
19
+ "FolderName": "6.9_connector",
20
+ "FolderType": 1,
21
+ "ParentId": "root",
22
+ "RequestId": "3ca249e8-b742-4e97-856d-1fca5a95d6a5",
23
+ "SubFolderInfo": [
24
+ {
25
+ "FolderId": "folder-gbtcphg0",
26
+ "FolderName": "hive_catalog_config_311"
27
+ },
28
+ {
29
+ "FolderId": "folder-79b2dxuc",
30
+ "FolderName": "sql_server"
31
+ },
32
+ {
33
+ "FolderId": "folder-oc406jen",
34
+ "FolderName": "doris"
35
+ },
36
+ {
37
+ "FolderId": "folder-3ldo2w3g",
38
+ "FolderName": "mysql_cdc"
39
+ },
40
+ {
41
+ "FolderId": "folder-nodi86tq",
42
+ "FolderName": "kudu"
43
+ }
44
+ ],
45
+ "WorkSpaceId": "space-7rfcnslf"
46
+ }
47
+ }
48
+ ```
49
+
@@ -1,53 +1,57 @@
1
- **Example 1: 查询作业列表**
2
-
1
+ **Example 1: 查询作业**
3
2
 
3
+ 查询作业
4
4
 
5
5
  Input:
6
6
 
7
7
  ```
8
- tccli oceanus DescribeJobs --cli-unfold-argument ```
8
+ tccli oceanus DescribeJobs --cli-unfold-argument \
9
+ --Limit 1 \
10
+ --WorkSpaceId space-53rqk422
11
+ ```
9
12
 
10
13
  Output:
11
14
  ```
12
15
  {
13
16
  "Response": {
14
- "TotalCount": 1,
15
17
  "JobSet": [
16
18
  {
17
- "TotalRunMillis": 2264500,
18
- "Zone": "xx",
19
- "Remark": "xx",
20
- "FlinkVersion": "xx",
21
- "WebUIUrl": "xx",
22
- "Name": "xx",
23
- "Status": 4,
24
- "UpdateTime": "xx",
25
- "CreatorUin": "xx",
26
- "WorkSpaceName": "xx",
27
- "RunningCu": 0.0,
28
- "ClusterId": "xx",
29
- "JobId": "xx",
30
- "WorkSpaceId": "xx",
31
- "LastOpResult": "xx",
32
- "RunningCuNum": 1,
33
- "SchedulerType": 1,
34
- "JobType": 1,
19
+ "AppId": 1257048945,
20
+ "ClusterId": "cluster-5c43n3a5",
21
+ "ClusterName": "cluster-test",
22
+ "ClusterStatus": 2,
23
+ "CreateTime": "2023-11-20 15:19:57",
24
+ "CreatorUin": "100032489761",
35
25
  "CuMem": 4,
36
- "LatestJobConfigVersion": 2,
37
- "Region": "xx",
38
- "OwnerUin": "xx",
39
- "StopTime": "xx",
40
- "PublishedJobConfigVersion": 2,
41
- "StatusDesc": "xx",
42
- "ClusterName": "xx",
43
- "StartTime": "xx",
44
- "AppId": 1234567890,
45
- "ClusterStatus": 0,
46
- "CurrentRunMillis": 3201,
47
- "CreateTime": "xx"
26
+ "CurrentRunMillis": 0,
27
+ "FlinkVersion": "Flink-1.13",
28
+ "JobId": "cql-e92rh2pb",
29
+ "JobType": 1,
30
+ "LastOpResult": "",
31
+ "LatestJobConfigVersion": 0,
32
+ "Name": "create_job_test",
33
+ "OwnerUin": "100006376216",
34
+ "PublishedJobConfigVersion": -1,
35
+ "Region": "ap-guangzhou",
36
+ "Remark": "",
37
+ "RunningCu": 0,
38
+ "RunningCuNum": 0,
39
+ "SchedulerType": 2,
40
+ "StartTime": "-",
41
+ "Status": 1,
42
+ "StatusDesc": "create",
43
+ "StopTime": "-",
44
+ "Tags": null,
45
+ "TotalRunMillis": 0,
46
+ "UpdateTime": "2023-11-20 15:19:57",
47
+ "WebUIUrl": "",
48
+ "WorkSpaceId": "space-53rek422",
49
+ "WorkSpaceName": "name",
50
+ "Zone": "ap-guangzhou-7"
48
51
  }
49
52
  ],
50
- "RequestId": "xx"
53
+ "RequestId": "ac6a62a7-45f1-4066-963d-eabea0f2824d",
54
+ "TotalCount": 5
51
55
  }
52
56
  }
53
57
  ```
@@ -619,7 +619,7 @@
619
619
  },
620
620
  {
621
621
  "disabled": false,
622
- "document": "指标详细字段,可以传递传具体的指标也可以对指标进行聚合查询例如:\"avg(ping_time)\"代表整体时延(ms);不同的任务类型支持不同的field查询,以及聚合规则,详情可联系云拨测。",
622
+ "document": "指标详细字段,可以传递传具体的指标也可以对指标进行聚合查询例如:\"avg(ping_time)\"代表整体时延(ms);不同的任务类型支持不同的field查询,以及聚合规则,详情可见https://cloud.tencent.com/document/product/248/87584。",
623
623
  "example": "avg(ping_time)",
624
624
  "member": "string",
625
625
  "name": "Field",
@@ -608,7 +608,7 @@
608
608
  "members": [
609
609
  {
610
610
  "disabled": false,
611
- "document": "绑定的关系数组。",
611
+ "document": "绑定的关系数组。一次请求最多支持20个。",
612
612
  "example": "无",
613
613
  "member": "TargetGroupAssociation",
614
614
  "name": "Associations",
@@ -10890,8 +10890,7 @@
10890
10890
  "member": "string",
10891
10891
  "name": "LoadBalancerId",
10892
10892
  "required": true,
10893
- "type": "string",
10894
- "value_allowed_null": false
10893
+ "type": "string"
10895
10894
  },
10896
10895
  {
10897
10896
  "disabled": false,
@@ -10900,8 +10899,7 @@
10900
10899
  "member": "string",
10901
10900
  "name": "TargetGroupId",
10902
10901
  "required": true,
10903
- "type": "string",
10904
- "value_allowed_null": false
10902
+ "type": "string"
10905
10903
  },
10906
10904
  {
10907
10905
  "disabled": false,
@@ -10910,8 +10908,7 @@
10910
10908
  "member": "string",
10911
10909
  "name": "ListenerId",
10912
10910
  "required": false,
10913
- "type": "string",
10914
- "value_allowed_null": false
10911
+ "type": "string"
10915
10912
  },
10916
10913
  {
10917
10914
  "disabled": false,
@@ -10920,8 +10917,7 @@
10920
10917
  "member": "string",
10921
10918
  "name": "LocationId",
10922
10919
  "required": false,
10923
- "type": "string",
10924
- "value_allowed_null": false
10920
+ "type": "string"
10925
10921
  }
10926
10922
  ],
10927
10923
  "usage": "in"
@@ -5985,7 +5985,7 @@
5985
5985
  },
5986
5986
  {
5987
5987
  "disabled": false,
5988
- "document": "实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。",
5988
+ "document": "实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月</li><br><li>POSTPAID_BY_HOUR:按小时后付费</li><br><li>SPOTPAID:竞价付费</li><br>默认值:POSTPAID_BY_HOUR。",
5989
5989
  "example": "PREPAID",
5990
5990
  "member": "string",
5991
5991
  "name": "InstanceChargeType",
@@ -6057,7 +6057,7 @@
6057
6057
  },
6058
6058
  {
6059
6059
  "disabled": false,
6060
- "document": "实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>购买多台实例,如果指定模式串`{R:x}`,表示生成数字`[x, x+n-1]`,其中`n`表示购买实例的数量,例如`server_{R:3}`,购买1台时,实例显示名称为`server_3`;购买2台时,实例显示名称分别为`server_3`,`server_4`。支持指定多个模式串`{R:x}`。</li><li>购买多台实例,如果不指定模式串,则在实例显示名称添加后缀`1、2...n`,其中`n`表示购买实例的数量,例如`server_`,购买2台时,实例显示名称分别为`server_1`,`server_2`。</li><li>最多支持60个字符(包含模式串)。",
6060
+ "document": "实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>购买多台实例,如果指定模式串`{R:x}`,表示生成数字`[x, x+n-1]`,其中`n`表示购买实例的数量,例如`server_{R:3}`,购买1台时,实例显示名称为`server_3`;购买2台时,实例显示名称分别为`server_3`,`server_4`。支持指定多个模式串`{R:x}`。</li><li>购买多台实例,如果不指定模式串,则在实例显示名称添加后缀`1、2...n`,其中`n`表示购买实例的数量,例如`server_`,购买2台时,实例显示名称分别为`server_1`,`server_2`。</li><li>最多支持60个字符(包含模式串)。</li>",
6061
6061
  "example": "myInstance",
6062
6062
  "member": "string",
6063
6063
  "name": "InstanceName",
@@ -6102,7 +6102,7 @@
6102
6102
  },
6103
6103
  {
6104
6104
  "disabled": false,
6105
- "document": "云服务器的主机名。<br><li>点号(.)和短横线(-)不能作为 HostName 的首尾字符,不能连续使用。<br><li>Windows 实例:主机名字符长度为[2, 15],允许字母(不限制大小写)、数字和短横线(-)组成,不支持点号(.),不能全是数字。<br><li>其他类型(Linux 等)实例:主机名字符长度为[2, 30],允许支持多个点号,点之间为一段,每段允许字母(不限制大小写)、数字和短横线(-)组成。",
6105
+ "document": "云服务器的主机名。<br><li>点号(.)和短横线(-)不能作为 HostName 的首尾字符,不能连续使用。</li><br><li>Windows 实例:主机名字符长度为[2, 15],允许字母(不限制大小写)、数字和短横线(-)组成,不支持点号(.),不能全是数字。</li><br><li>其他类型(Linux 等)实例:主机名字符长度为[2, 30],允许支持多个点号,点之间为一段,每段允许字母(不限制大小写)、数字和短横线(-)组成。</li>",
6106
6106
  "example": "myHost",
6107
6107
  "member": "string",
6108
6108
  "name": "HostName",
@@ -525,13 +525,13 @@
525
525
  },
526
526
  {
527
527
  "document": "实例所在位置为上海二区,付费模式为包年包月,购买一个月,到期自动续费,镜像ID为:img-pmqg1cw7,选择机型为:64C256G标准型(S5.16XLARGE256),50G大小高性能云系统盘,挂载100G大小高性能云数据盘,私有网络,公网付费模式为流量按小时后付费,外网带宽上限10Mbps,分配公网IP,实例命名为QCLOUD-TEST,设置登录密码未Qcloud@TestApi123++,安装云监控云安全,购买数量为1台。",
528
- "input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRunInstances\n<公共请求参数>\n\n{\n \"SystemDisk\": {\n \"DiskSize\": \"50\",\n \"DiskType\": \"CLOUD_PREMIUM\"\n },\n \"InstanceCount\": \"1\",\n \"Placement\": {\n \"Zone\": \"ap-shanghai-2\"\n },\n \"LoginSettings\": {\n \"Password\": \"Qcloud@TestApi123++\"\n },\n \"ImageId\": \"img-pmqg1cw7\",\n \"InstanceChargeType\": \"PREPAID\",\n \"EnhancedService\": {\n \"SecurityService\": {\n \"Enabled\": true\n },\n \"MonitorService\": {\n \"Enabled\": true\n }\n },\n \"InternetAccessible\": {\n \"PublicIpAssigned\": true,\n \"InternetChargeType\": \"TRAFFIC_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": \"10\"\n },\n \"InstanceChargePrepaid\": {\n \"RenewFlag\": \"NOTIFY_AND_AUTO_RENEW\",\n \"Period\": \"1\"\n },\n \"InstanceName\": \"QCLOUD-TEST\",\n \"InstanceType\": \"S5.16XLARGE256\",\n \"DataDisks\": [\n {\n \"DiskSize\": \"100\",\n \"DiskType\": \"CLOUD_PREMIUM\"\n }\n ]\n}",
528
+ "input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRunInstances\n<公共请求参数>\n\n{\n \"SystemDisk\": {\n \"DiskSize\": 50,\n \"DiskType\": \"CLOUD_PREMIUM\"\n },\n \"InstanceCount\": 1,\n \"Placement\": {\n \"Zone\": \"ap-shanghai-2\"\n },\n \"LoginSettings\": {\n \"Password\": \"Qcloud@TestApi123++\"\n },\n \"ImageId\": \"img-pmqg1cw7\",\n \"InstanceChargeType\": \"PREPAID\",\n \"EnhancedService\": {\n \"SecurityService\": {\n \"Enabled\": true\n },\n \"MonitorService\": {\n \"Enabled\": true\n }\n },\n \"InternetAccessible\": {\n \"PublicIpAssigned\": true,\n \"InternetChargeType\": \"TRAFFIC_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": 10\n },\n \"InstanceChargePrepaid\": {\n \"RenewFlag\": \"NOTIFY_AND_AUTO_RENEW\",\n \"Period\": 1\n },\n \"InstanceName\": \"QCLOUD-TEST\",\n \"InstanceType\": \"S5.16XLARGE256\",\n \"DataDisks\": [\n {\n \"DiskSize\": 100,\n \"DiskType\": \"CLOUD_PREMIUM\"\n }\n ]\n}",
529
529
  "output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"DiscountPrice\": 1804.9,\n \"OriginalPriceThreeYear\": 0.0,\n \"DiscountOneYear\": 0.0,\n \"UnitPrice\": 0.0,\n \"UnitPriceThirdStep\": 0.0,\n \"OriginalPriceFiveYear\": 0.0,\n \"Discount\": 0.0,\n \"DiscountFiveYear\": 0.0,\n \"UnitPriceDiscountThirdStep\": 0.0,\n \"UnitPriceSecondStep\": 0.0,\n \"OriginalPrice\": 8884.5,\n \"DiscountThreeYear\": 0.0,\n \"UnitPriceDiscountSecondStep\": 0.0,\n \"UnitPriceDiscount\": 0.0,\n \"DiscountPriceFiveYear\": 0.0,\n \"OriginalPriceOneYear\": 0.0,\n \"ChargeUnit\": \"HOUR\",\n \"DiscountPriceThreeYear\": 0.0,\n \"DiscountPriceOneYear\": 0.0\n },\n \"BandwidthPrice\": {\n \"DiscountPrice\": 0.0,\n \"OriginalPriceThreeYear\": 0.0,\n \"DiscountOneYear\": 0.0,\n \"UnitPrice\": 0.8,\n \"UnitPriceThirdStep\": 0.0,\n \"OriginalPriceFiveYear\": 0.0,\n \"Discount\": 0.0,\n \"DiscountFiveYear\": 0.0,\n \"UnitPriceDiscountThirdStep\": 0.0,\n \"UnitPriceSecondStep\": 0.0,\n \"OriginalPrice\": 0.0,\n \"DiscountThreeYear\": 0.0,\n \"UnitPriceDiscountSecondStep\": 0.0,\n \"UnitPriceDiscount\": 0.52,\n \"DiscountPriceFiveYear\": 0.0,\n \"OriginalPriceOneYear\": 0.0,\n \"ChargeUnit\": \"HOUR\",\n \"DiscountPriceThreeYear\": 0.0,\n \"DiscountPriceOneYear\": 0.0\n }\n },\n \"RequestId\": \"65b9edac-bca6-496b-a404-29f503b32495\"\n }\n}",
530
530
  "title": "包年包月实例购买询价"
531
531
  },
532
532
  {
533
533
  "document": "实例所在位置为上海二区,付费模式为按小时后付费,镜像ID为:img-pmqg1cw7,选择机型为:64C256G标准型(S5.16XLARGE256),50G大小高性能云系统盘,挂载100G大小高性能云数据盘,私有网络,公网付费模式为流量按小时后付费,外网带宽上限10Mbps,分配公网IP,实例命名为QCLOUD-TEST,设置登录密码未Qcloud@TestApi123++,安装云监控云安全,购买数量为1台。",
534
- "input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRunInstances\n<公共请求参数>\n\n{\n \"SystemDisk\": {\n \"DiskSize\": \"50\",\n \"DiskType\": \"CLOUD_PREMIUM\"\n },\n \"InstanceCount\": \"1\",\n \"Placement\": {\n \"Zone\": \"ap-shanghai-2\"\n },\n \"LoginSettings\": {\n \"Password\": \"Qcloud@TestApi123++\"\n },\n \"ImageId\": \"img-pmqg1cw7\",\n \"InstanceChargeType\": \"POSTPAID_BY_HOUR\",\n \"EnhancedService\": {\n \"SecurityService\": {\n \"Enabled\": true\n },\n \"MonitorService\": {\n \"Enabled\": true\n }\n },\n \"InternetAccessible\": {\n \"PublicIpAssigned\": true,\n \"InternetChargeType\": \"TRAFFIC_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": \"10\"\n },\n \"InstanceName\": \"QCLOUD-TEST\",\n \"InstanceType\": \"S5.16XLARGE256\",\n \"DataDisks\": [\n {\n \"DiskSize\": \"100\",\n \"DiskType\": \"CLOUD_PREMIUM\"\n }\n ]\n}",
534
+ "input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRunInstances\n<公共请求参数>\n\n{\n \"SystemDisk\": {\n \"DiskSize\": 50,\n \"DiskType\": \"CLOUD_PREMIUM\"\n },\n \"InstanceCount\": 1,\n \"Placement\": {\n \"Zone\": \"ap-shanghai-2\"\n },\n \"LoginSettings\": {\n \"Password\": \"Qcloud@TestApi123++\"\n },\n \"ImageId\": \"img-pmqg1cw7\",\n \"InstanceChargeType\": \"POSTPAID_BY_HOUR\",\n \"EnhancedService\": {\n \"SecurityService\": {\n \"Enabled\": true\n },\n \"MonitorService\": {\n \"Enabled\": true\n }\n },\n \"InternetAccessible\": {\n \"PublicIpAssigned\": true,\n \"InternetChargeType\": \"TRAFFIC_POSTPAID_BY_HOUR\",\n \"InternetMaxBandwidthOut\": \"10\"\n },\n \"InstanceName\": \"QCLOUD-TEST\",\n \"InstanceType\": \"S5.16XLARGE256\",\n \"DataDisks\": [\n {\n \"DiskSize\": 100,\n \"DiskType\": \"CLOUD_PREMIUM\"\n }\n ]\n}",
535
535
  "output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"DiscountPrice\": 0.0,\n \"OriginalPriceThreeYear\": 0.0,\n \"DiscountOneYear\": 0.0,\n \"UnitPrice\": 16.09,\n \"UnitPriceThirdStep\": 16.09,\n \"OriginalPriceFiveYear\": 0.0,\n \"Discount\": 0.0,\n \"DiscountFiveYear\": 0.0,\n \"UnitPriceDiscountThirdStep\": 3.33,\n \"UnitPriceSecondStep\": 16.09,\n \"OriginalPrice\": 0.0,\n \"DiscountThreeYear\": 0.0,\n \"UnitPriceDiscountSecondStep\": 3.33,\n \"UnitPriceDiscount\": 3.33,\n \"DiscountPriceFiveYear\": 0.0,\n \"OriginalPriceOneYear\": 0.0,\n \"ChargeUnit\": \"HOUR\",\n \"DiscountPriceThreeYear\": 0.0,\n \"DiscountPriceOneYear\": 0.0\n },\n \"BandwidthPrice\": {\n \"DiscountPrice\": 0.0,\n \"OriginalPriceThreeYear\": 0.0,\n \"DiscountOneYear\": 0.0,\n \"UnitPrice\": 0.8,\n \"UnitPriceThirdStep\": 0.0,\n \"OriginalPriceFiveYear\": 0.0,\n \"Discount\": 0.0,\n \"DiscountFiveYear\": 0.0,\n \"UnitPriceDiscountThirdStep\": 0.0,\n \"UnitPriceSecondStep\": 0.0,\n \"OriginalPrice\": 0.0,\n \"DiscountThreeYear\": 0.0,\n \"UnitPriceDiscountSecondStep\": 0.0,\n \"UnitPriceDiscount\": 0.52,\n \"DiscountPriceFiveYear\": 0.0,\n \"OriginalPriceOneYear\": 0.0,\n \"ChargeUnit\": \"xx\",\n \"DiscountPriceThreeYear\": 0.0,\n \"DiscountPriceOneYear\": 0.0\n }\n },\n \"RequestId\": \"65b9edac-bca6-496b-a404-29f503b32495\"\n }\n}",
536
536
  "title": "按小时后付费实例购买询价"
537
537
  }
@@ -141,7 +141,7 @@
141
141
  "status": "online"
142
142
  },
143
143
  "ChannelCreatePrepareFlow": {
144
- "document": "通过此接口指定合同、签署人、填写控件等信息,生成嵌入式链接,此链接可以嵌入到其他网页或者直接打开,打开后进入发起页面。在此页面上,合同信息和签署人信息均不可更改。\n\n注意:\n1. **仅支持模板**发起\n2. 只支持PC浏览器操作使用\n\n嵌入的页面样式如下:\n![image](https://qcloudimg.tencent-cloud.cn/raw/b2ae013fb4d747891dd3815bbe897208.png)",
144
+ "document": "通过此接口指定合同、签署人、填写控件等信息,生成嵌入式链接,此链接可以嵌入到其他网页或者直接打开,打开后进入发起页面。在此页面上,合同信息和签署人信息均不可更改。\n\n注意:\n1. 只支持PC浏览器操作使用\n\n嵌入的页面样式如下:\n![image](https://qcloudimg.tencent-cloud.cn/raw/b2ae013fb4d747891dd3815bbe897208.png)",
145
145
  "input": "ChannelCreatePrepareFlowRequest",
146
146
  "name": "获取发起合同嵌入链接",
147
147
  "output": "ChannelCreatePrepareFlowResponse",
@@ -729,7 +729,7 @@
729
729
  "status": "online"
730
730
  },
731
731
  "GetMonitorData": {
732
- "document": "获取云产品的监控数据。此接口不适用于拉取容器服务监控数据,如需拉取容器服务监控数据,请使用[根据维度条件查询监控数据](https://cloud.tencent.com/document/product/248/51845)接口。\n传入产品的命名空间、对象维度描述和监控指标即可获得相应的监控数据。\n接口调用限制:单请求最多可支持批量拉取10个实例的监控数据,单请求的数据点数限制为1440个。\n若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。\n\n>?\n>- 2022年9月1日起,云监控开始对GetMonitorData接口计费。每个主账号每月可获得100万次免费请求额度,超过免费额度后如需继续调用接口需要开通 [API请求按量付费](https://buy.cloud.tencent.com/APIRequestBuy)。计费规则可查看[API计费文档](https://cloud.tencent.com/document/product/248/77914)。",
732
+ "document": "获取云产品的监控数据。此接口不适用于拉取容器服务监控数据,如需拉取容器服务监控数据,请使用[根据维度条件查询监控数据](https://cloud.tencent.com/document/product/248/51845)接口。\n传入产品的命名空间、对象维度描述和监控指标即可获得相应的监控数据。\n接口调用限制:单请求最多可支持批量拉取10个实例的监控数据,单请求的数据点数限制为1440个。\n若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。\n\n>?\n>- 2022年9月1日起,腾讯云可观测平台开始对GetMonitorData接口计费。每个主账号每月可获得100万次免费请求额度,超过免费额度后如需继续调用接口需要开通 [API请求按量付费](https://buy.cloud.tencent.com/APIRequestBuy)。计费规则可查看[API计费文档](https://cloud.tencent.com/document/product/248/77914)。",
733
733
  "input": "GetMonitorDataRequest",
734
734
  "name": "拉取指标监控数据",
735
735
  "output": "GetMonitorDataResponse",
@@ -12627,6 +12627,7 @@
12627
12627
  "example": "300",
12628
12628
  "member": "uint64",
12629
12629
  "name": "Period",
12630
+ "output_required": true,
12630
12631
  "type": "int",
12631
12632
  "value_allowed_null": false
12632
12633
  },
@@ -12636,6 +12637,7 @@
12636
12637
  "example": "CPUUsage",
12637
12638
  "member": "string",
12638
12639
  "name": "MetricName",
12640
+ "output_required": true,
12639
12641
  "type": "string",
12640
12642
  "value_allowed_null": false
12641
12643
  },
@@ -12645,6 +12647,7 @@
12645
12647
  "example": "无",
12646
12648
  "member": "DataPoint",
12647
12649
  "name": "DataPoints",
12650
+ "output_required": true,
12648
12651
  "type": "list",
12649
12652
  "value_allowed_null": false
12650
12653
  },
@@ -12654,6 +12657,7 @@
12654
12657
  "example": "2019-03-24T10:50:00+08:00",
12655
12658
  "member": "datetime_iso",
12656
12659
  "name": "StartTime",
12660
+ "output_required": true,
12657
12661
  "type": "string",
12658
12662
  "value_allowed_null": false
12659
12663
  },
@@ -12663,6 +12667,7 @@
12663
12667
  "example": "2019-03-24T20:50:00+08:00",
12664
12668
  "member": "datetime_iso",
12665
12669
  "name": "EndTime",
12670
+ "output_required": true,
12666
12671
  "type": "string",
12667
12672
  "value_allowed_null": false
12668
12673
  },
@@ -12672,6 +12677,7 @@
12672
12677
  "example": "无",
12673
12678
  "member": "string",
12674
12679
  "name": "Msg",
12680
+ "output_required": true,
12675
12681
  "type": "string",
12676
12682
  "value_allowed_null": false
12677
12683
  },
@@ -14420,7 +14426,7 @@
14420
14426
  {
14421
14427
  "disabled": false,
14422
14428
  "document": "告警策略触发任务列表,空数据代表解绑",
14423
- "example": " { \"Type\": \"AS\", \"TaskConfig\": \"{\\\"Region\\\":\\\"ap-guangzhou\\\",\\\"Group\\\":\\\"asg-0zhspjx\\\",\\\"Policy\\\":\\\"asp-ganig28\\\"}\" } ]",
14429
+ "example": " { \"Type\": \"AS\", \"TaskConfig\": \"{\\\"Region\\\":\\\"ap-guangzhou\\\",\\\"Group\\\":\\\"asg-0zhspjx\\\",\\\"Policy\\\":\\\"asp-ganig28\\\"}\" } ",
14424
14430
  "member": "AlarmPolicyTriggerTask",
14425
14431
  "name": "TriggerTasks",
14426
14432
  "required": false,
@@ -433,6 +433,58 @@ def doCreateJob(args, parsed_globals):
433
433
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
434
434
 
435
435
 
436
+ def doDescribeFolder(args, parsed_globals):
437
+ g_param = parse_global_arg(parsed_globals)
438
+
439
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
440
+ cred = credential.CVMRoleCredential()
441
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
442
+ cred = credential.STSAssumeRoleCredential(
443
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
444
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
445
+ )
446
+ 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):
447
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
448
+ else:
449
+ cred = credential.Credential(
450
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
451
+ )
452
+ http_profile = HttpProfile(
453
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
454
+ reqMethod="POST",
455
+ endpoint=g_param[OptionsDefine.Endpoint],
456
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
457
+ )
458
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
459
+ if g_param[OptionsDefine.Language]:
460
+ profile.language = g_param[OptionsDefine.Language]
461
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
462
+ client = mod.OceanusClient(cred, g_param[OptionsDefine.Region], profile)
463
+ client._sdkVersion += ("_CLI_" + __version__)
464
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
465
+ model = models.DescribeFolderRequest()
466
+ model.from_json_string(json.dumps(args))
467
+ start_time = time.time()
468
+ while True:
469
+ rsp = client.DescribeFolder(model)
470
+ result = rsp.to_json_string()
471
+ try:
472
+ json_obj = json.loads(result)
473
+ except TypeError as e:
474
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
475
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
476
+ break
477
+ cur_time = time.time()
478
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
479
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
480
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
481
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
482
+ else:
483
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
484
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
485
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
486
+
487
+
436
488
  def doDescribeResourceConfigs(args, parsed_globals):
437
489
  g_param = parse_global_arg(parsed_globals)
438
490
 
@@ -1856,6 +1908,7 @@ ACTION_MAP = {
1856
1908
  "CreateWorkSpace": doCreateWorkSpace,
1857
1909
  "CreateResourceConfig": doCreateResourceConfig,
1858
1910
  "CreateJob": doCreateJob,
1911
+ "DescribeFolder": doDescribeFolder,
1859
1912
  "DescribeResourceConfigs": doDescribeResourceConfigs,
1860
1913
  "ModifyFolder": doModifyFolder,
1861
1914
  "DescribeJobSavepoint": doDescribeJobSavepoint,