tccli 3.0.1325.1__py2.py3-none-any.whl → 3.0.1327.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/services/ams/v20201229/api.json +9 -9
- tccli/services/cdb/v20170320/api.json +9 -9
- tccli/services/cdc/v20201214/api.json +5 -5
- tccli/services/cfs/v20190719/api.json +19 -19
- tccli/services/cfs/v20190719/examples.json +2 -2
- tccli/services/clb/clb_client.py +53 -0
- tccli/services/clb/v20180317/api.json +100 -0
- tccli/services/clb/v20180317/examples.json +8 -0
- tccli/services/cme/v20191029/api.json +16 -19
- tccli/services/cme/v20191029/examples.json +12 -12
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +51 -0
- tccli/services/dlc/v20210125/examples.json +8 -0
- tccli/services/domain/v20180808/api.json +1 -1
- tccli/services/emr/v20190103/api.json +29 -0
- tccli/services/es/es_client.py +4 -57
- tccli/services/es/v20250101/api.json +0 -207
- tccli/services/es/v20250101/examples.json +0 -8
- tccli/services/ess/v20201111/api.json +4 -4
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/gs/gs_client.py +269 -4
- tccli/services/gs/v20191118/api.json +412 -7
- tccli/services/gs/v20191118/examples.json +42 -2
- tccli/services/hai/v20230812/api.json +5 -5
- tccli/services/lke/lke_client.py +0 -53
- tccli/services/lke/v20231130/api.json +0 -113
- tccli/services/lke/v20231130/examples.json +0 -8
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/lowcode/v20210108/api.json +60 -0
- tccli/services/monitor/monitor_client.py +170 -11
- tccli/services/monitor/v20180724/api.json +205 -1
- tccli/services/monitor/v20180724/examples.json +24 -0
- tccli/services/mrs/v20200910/api.json +4 -4
- tccli/services/oceanus/v20190422/api.json +15 -5
- tccli/services/oceanus/v20190422/examples.json +8 -2
- tccli/services/postgres/postgres_client.py +0 -53
- tccli/services/postgres/v20170312/api.json +0 -235
- tccli/services/postgres/v20170312/examples.json +0 -8
- tccli/services/privatedns/privatedns_client.py +53 -0
- tccli/services/privatedns/v20201028/api.json +180 -1
- tccli/services/privatedns/v20201028/examples.json +8 -0
- tccli/services/pts/v20210728/api.json +18 -0
- tccli/services/redis/v20180412/api.json +1 -1
- tccli/services/tcss/v20201101/api.json +190 -32
- tccli/services/tcss/v20201101/examples.json +6 -6
- tccli/services/tms/v20201229/api.json +2 -2
- tccli/services/tms/v20201229/examples.json +1 -1
- tccli/services/vm/v20210922/api.json +13 -13
- tccli/services/vm/v20210922/examples.json +2 -2
- tccli/services/vpc/v20170312/api.json +2 -2
- {tccli-3.0.1325.1.dist-info → tccli-3.0.1327.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1325.1.dist-info → tccli-3.0.1327.1.dist-info}/RECORD +56 -56
- {tccli-3.0.1325.1.dist-info → tccli-3.0.1327.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1325.1.dist-info → tccli-3.0.1327.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1325.1.dist-info → tccli-3.0.1327.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1327.1'
|
@@ -1009,7 +1009,7 @@
|
|
1009
1009
|
{
|
1010
1010
|
"disabled": false,
|
1011
1011
|
"document": "该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。\n注意:此字段可能返回 null,表示取不到有效值。",
|
1012
|
-
"example": "
|
1012
|
+
"example": "无",
|
1013
1013
|
"member": "TaskLabel",
|
1014
1014
|
"name": "Labels",
|
1015
1015
|
"output_required": true,
|
@@ -1019,7 +1019,7 @@
|
|
1019
1019
|
{
|
1020
1020
|
"disabled": false,
|
1021
1021
|
"document": "该字段用于返回审核服务的媒体内容信息,主要包括传入文件类型和访问地址。\n注意:此字段可能返回 null,表示取不到有效值。",
|
1022
|
-
"example": "
|
1022
|
+
"example": "无",
|
1023
1023
|
"member": "InputInfo",
|
1024
1024
|
"name": "InputInfo",
|
1025
1025
|
"output_required": true,
|
@@ -1039,7 +1039,7 @@
|
|
1039
1039
|
{
|
1040
1040
|
"disabled": false,
|
1041
1041
|
"document": "该字段用于返回音频片段的审核结果,主要包括开始时间和音频审核的相应结果。<br>具体输出内容请参见AudioSegments及AudioResult数据结构的详细描述。\n注意:此字段可能返回 null,表示取不到有效值。",
|
1042
|
-
"example": "
|
1042
|
+
"example": "无",
|
1043
1043
|
"member": "AudioSegments",
|
1044
1044
|
"name": "AudioSegments",
|
1045
1045
|
"output_required": true,
|
@@ -1099,7 +1099,7 @@
|
|
1099
1099
|
{
|
1100
1100
|
"disabled": false,
|
1101
1101
|
"document": "媒体信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
1102
|
-
"example": "
|
1102
|
+
"example": "无",
|
1103
1103
|
"member": "MediaInfo",
|
1104
1104
|
"name": "MediaInfo",
|
1105
1105
|
"output_required": false,
|
@@ -1121,7 +1121,7 @@
|
|
1121
1121
|
{
|
1122
1122
|
"disabled": false,
|
1123
1123
|
"document": "该参数表示任务列表每页展示的任务条数,**默认值为10**(每页展示10条任务)。",
|
1124
|
-
"example": "
|
1124
|
+
"example": "10",
|
1125
1125
|
"member": "int64",
|
1126
1126
|
"name": "Limit",
|
1127
1127
|
"required": false,
|
@@ -1139,7 +1139,7 @@
|
|
1139
1139
|
{
|
1140
1140
|
"disabled": false,
|
1141
1141
|
"document": "该参数表示翻页时使用的Token信息,由系统自动生成,并在翻页时向下一个生成的页面传递此参数,以方便快速翻页功能的实现。当到最后一页时,该字段为空。",
|
1142
|
-
"example": "
|
1142
|
+
"example": ".aCQX6qOnIv0SuMLH",
|
1143
1143
|
"member": "string",
|
1144
1144
|
"name": "PageToken",
|
1145
1145
|
"required": false,
|
@@ -1148,7 +1148,7 @@
|
|
1148
1148
|
{
|
1149
1149
|
"disabled": false,
|
1150
1150
|
"document": "该参数表示任务列表的开始时间,格式为ISO8601标准的时间戳。**默认值为最近3天**,若传入该参数,则在这一时间到EndTime之间的任务将会被筛选出来。<br>备注:该参数与Filter共同起到任务筛选作用,二者作用无先后顺序。",
|
1151
|
-
"example": "
|
1151
|
+
"example": "2025-05-12T00:00:00+08:00",
|
1152
1152
|
"member": "datetime_iso",
|
1153
1153
|
"name": "StartTime",
|
1154
1154
|
"required": false,
|
@@ -1157,7 +1157,7 @@
|
|
1157
1157
|
{
|
1158
1158
|
"disabled": false,
|
1159
1159
|
"document": "该参数表示任务列表的结束时间,格式为ISO8601标准的时间戳。**默认值为空**,若传入该参数,则在这StartTime到这一时间之间的任务将会被筛选出来。<br>备注:该参数与Filter共同起到任务筛选作用,二者作用无先后顺序。",
|
1160
|
-
"example": "
|
1160
|
+
"example": "2025-05-13T23:59:59+08:00",
|
1161
1161
|
"member": "datetime_iso",
|
1162
1162
|
"name": "EndTime",
|
1163
1163
|
"required": false,
|
@@ -1172,7 +1172,7 @@
|
|
1172
1172
|
{
|
1173
1173
|
"disabled": false,
|
1174
1174
|
"document": "该字段用于返回当前查询的任务总量,格式为int字符串。\n注意:此字段可能返回 null,表示取不到有效值。",
|
1175
|
-
"example": "
|
1175
|
+
"example": "468",
|
1176
1176
|
"member": "string",
|
1177
1177
|
"name": "Total",
|
1178
1178
|
"output_required": true,
|
@@ -13911,7 +13911,7 @@
|
|
13911
13911
|
{
|
13912
13912
|
"disabled": false,
|
13913
13913
|
"document": "操作类型",
|
13914
|
-
"example": "
|
13914
|
+
"example": "extend、reduce、extend_failed",
|
13915
13915
|
"member": "string",
|
13916
13916
|
"name": "OperationType",
|
13917
13917
|
"output_required": false,
|
@@ -13930,8 +13930,8 @@
|
|
13930
13930
|
},
|
13931
13931
|
{
|
13932
13932
|
"disabled": false,
|
13933
|
-
"document": "
|
13934
|
-
"example": "
|
13933
|
+
"document": "扩容开始时间\n说明:此项显示的格式是 int 类型的 unix 时间戳",
|
13934
|
+
"example": "1748590523",
|
13935
13935
|
"member": "int64",
|
13936
13936
|
"name": "StartTime",
|
13937
13937
|
"output_required": false,
|
@@ -13940,8 +13940,8 @@
|
|
13940
13940
|
},
|
13941
13941
|
{
|
13942
13942
|
"disabled": false,
|
13943
|
-
"document": "
|
13944
|
-
"example": "
|
13943
|
+
"document": "扩容结束时间\n说明:此项显示的格式是 int 类型的 unix 时间戳",
|
13944
|
+
"example": "1748590526",
|
13945
13945
|
"member": "int64",
|
13946
13946
|
"name": "EndTime",
|
13947
13947
|
"output_required": false,
|
@@ -13951,7 +13951,7 @@
|
|
13951
13951
|
{
|
13952
13952
|
"disabled": false,
|
13953
13953
|
"document": "扩容前核数",
|
13954
|
-
"example": "
|
13954
|
+
"example": "2",
|
13955
13955
|
"member": "int64",
|
13956
13956
|
"name": "OldCpu",
|
13957
13957
|
"output_required": false,
|
@@ -13961,7 +13961,7 @@
|
|
13961
13961
|
{
|
13962
13962
|
"disabled": false,
|
13963
13963
|
"document": "扩容后核数",
|
13964
|
-
"example": "
|
13964
|
+
"example": "4",
|
13965
13965
|
"member": "int64",
|
13966
13966
|
"name": "NewCpu",
|
13967
13967
|
"output_required": false,
|
@@ -13971,7 +13971,7 @@
|
|
13971
13971
|
{
|
13972
13972
|
"disabled": false,
|
13973
13973
|
"document": "增减的cpu数",
|
13974
|
-
"example": "
|
13974
|
+
"example": "2",
|
13975
13975
|
"member": "int64",
|
13976
13976
|
"name": "ExtendCPUNum",
|
13977
13977
|
"output_required": false,
|
@@ -13981,7 +13981,7 @@
|
|
13981
13981
|
{
|
13982
13982
|
"disabled": false,
|
13983
13983
|
"document": "extend_failed操作上报",
|
13984
|
-
"example": "
|
13984
|
+
"example": "后端资源不足",
|
13985
13985
|
"member": "string",
|
13986
13986
|
"name": "Error",
|
13987
13987
|
"output_required": false,
|
@@ -940,7 +940,7 @@
|
|
940
940
|
"value_allowed_null": false
|
941
941
|
},
|
942
942
|
{
|
943
|
-
"disabled":
|
943
|
+
"disabled": true,
|
944
944
|
"document": "专用集群类型id(移到下一层级,已经废弃,后续将删除)",
|
945
945
|
"example": "dctype-00000000",
|
946
946
|
"member": "string",
|
@@ -950,7 +950,7 @@
|
|
950
950
|
"value_allowed_null": false
|
951
951
|
},
|
952
952
|
{
|
953
|
-
"disabled":
|
953
|
+
"disabled": true,
|
954
954
|
"document": "支持的存储类型列表(移到下一层级,已经废弃,后续将删除)",
|
955
955
|
"example": "[\"SSD\"]",
|
956
956
|
"member": "string",
|
@@ -960,7 +960,7 @@
|
|
960
960
|
"value_allowed_null": false
|
961
961
|
},
|
962
962
|
{
|
963
|
-
"disabled":
|
963
|
+
"disabled": true,
|
964
964
|
"document": "支持的上连交换机的链路传输速率(GiB)(移到下一层级,已经废弃,后续将删除)",
|
965
965
|
"example": "[10,25,40,100]",
|
966
966
|
"member": "int64",
|
@@ -970,7 +970,7 @@
|
|
970
970
|
"value_allowed_null": false
|
971
971
|
},
|
972
972
|
{
|
973
|
-
"disabled":
|
973
|
+
"disabled": true,
|
974
974
|
"document": "支持的实例族列表(移到下一层级,已经废弃,后续将删除)",
|
975
975
|
"example": "[\"SA5t\"]",
|
976
976
|
"member": "string",
|
@@ -2606,7 +2606,7 @@
|
|
2606
2606
|
"document": "CDC宿主机的详细信息",
|
2607
2607
|
"members": [
|
2608
2608
|
{
|
2609
|
-
"disabled":
|
2609
|
+
"disabled": true,
|
2610
2610
|
"document": "宿主机IP(废弃)",
|
2611
2611
|
"example": "10.1.1.1",
|
2612
2612
|
"member": "string",
|
@@ -50,7 +50,7 @@
|
|
50
50
|
"status": "online"
|
51
51
|
},
|
52
52
|
"CreateMigrationTask": {
|
53
|
-
"document": "
|
53
|
+
"document": "用于创建迁移任务。",
|
54
54
|
"input": "CreateMigrationTaskRequest",
|
55
55
|
"name": "创建迁移任务",
|
56
56
|
"output": "CreateMigrationTaskResponse",
|
@@ -92,7 +92,7 @@
|
|
92
92
|
"status": "online"
|
93
93
|
},
|
94
94
|
"DeleteMigrationTask": {
|
95
|
-
"document": "
|
95
|
+
"document": "用于删除迁移任务。不支持删除等待中、创建中、运行中、取消中、终止中状态的任务。",
|
96
96
|
"input": "DeleteMigrationTaskRequest",
|
97
97
|
"name": "删除迁移任务",
|
98
98
|
"output": "DeleteMigrationTaskResponse",
|
@@ -127,7 +127,7 @@
|
|
127
127
|
"status": "online"
|
128
128
|
},
|
129
129
|
"DescribeBucketList": {
|
130
|
-
"document": "
|
130
|
+
"document": "用于获取数据源桶列表。",
|
131
131
|
"input": "DescribeBucketListRequest",
|
132
132
|
"name": "获取对象存储桶列表",
|
133
133
|
"output": "DescribeBucketListResponse",
|
@@ -239,7 +239,7 @@
|
|
239
239
|
"status": "online"
|
240
240
|
},
|
241
241
|
"StopMigrationTask": {
|
242
|
-
"document": "
|
242
|
+
"document": "用于终止迁移任务,可以终止等待中、运行中状态的任务。",
|
243
243
|
"input": "StopMigrationTaskRequest",
|
244
244
|
"name": "终止迁移任务",
|
245
245
|
"output": "StopMigrationTaskResponse",
|
@@ -697,7 +697,7 @@
|
|
697
697
|
"members": [
|
698
698
|
{
|
699
699
|
"disabled": false,
|
700
|
-
"document": "
|
700
|
+
"document": "需要解绑的文件系统ID列表,用\",\" 分割,文件系统ID,通过查询文件系统列表获取;[DescribeCfsFileSystems](https://cloud.tencent.com/document/product/582/38170)",
|
701
701
|
"example": "asp-xx",
|
702
702
|
"member": "string",
|
703
703
|
"name": "AutoSnapshotPolicyId",
|
@@ -706,7 +706,7 @@
|
|
706
706
|
},
|
707
707
|
{
|
708
708
|
"disabled": false,
|
709
|
-
"document": "
|
709
|
+
"document": "解绑的快照策略ID,可以通过[DescribeAutoSnapshotPolicies](https://cloud.tencent.com/document/api/582/80208) 查询获取",
|
710
710
|
"example": "cfs-abc,cfs-bdc.",
|
711
711
|
"member": "string",
|
712
712
|
"name": "FileSystemIds",
|
@@ -747,7 +747,7 @@
|
|
747
747
|
"example": "name",
|
748
748
|
"member": "string",
|
749
749
|
"name": "Name",
|
750
|
-
"
|
750
|
+
"output_required": true,
|
751
751
|
"type": "string",
|
752
752
|
"value_allowed_null": false
|
753
753
|
},
|
@@ -757,7 +757,7 @@
|
|
757
757
|
"example": "region",
|
758
758
|
"member": "string",
|
759
759
|
"name": "Region",
|
760
|
-
"
|
760
|
+
"output_required": true,
|
761
761
|
"type": "string",
|
762
762
|
"value_allowed_null": true
|
763
763
|
}
|
@@ -1440,7 +1440,7 @@
|
|
1440
1440
|
{
|
1441
1441
|
"disabled": false,
|
1442
1442
|
"document": "数据源账号的SecretId",
|
1443
|
-
"example": "
|
1443
|
+
"example": "secretid",
|
1444
1444
|
"member": "string",
|
1445
1445
|
"name": "SrcSecretId",
|
1446
1446
|
"required": true,
|
@@ -1449,7 +1449,7 @@
|
|
1449
1449
|
{
|
1450
1450
|
"disabled": false,
|
1451
1451
|
"document": "数据源账号的SecretKey",
|
1452
|
-
"example": "
|
1452
|
+
"example": "secretkey",
|
1453
1453
|
"member": "string",
|
1454
1454
|
"name": "SrcSecretKey",
|
1455
1455
|
"required": true,
|
@@ -2042,8 +2042,8 @@
|
|
2042
2042
|
},
|
2043
2043
|
{
|
2044
2044
|
"disabled": false,
|
2045
|
-
"document": "数据源账号的SecretId
|
2046
|
-
"example": "
|
2045
|
+
"document": "数据源账号的SecretId",
|
2046
|
+
"example": "secretid",
|
2047
2047
|
"member": "string",
|
2048
2048
|
"name": "SrcSecretId",
|
2049
2049
|
"required": true,
|
@@ -2052,7 +2052,7 @@
|
|
2052
2052
|
{
|
2053
2053
|
"disabled": false,
|
2054
2054
|
"document": "数据源账号的SecretKey",
|
2055
|
-
"example": "
|
2055
|
+
"example": "secretkey",
|
2056
2056
|
"member": "string",
|
2057
2057
|
"name": "SrcSecretKey",
|
2058
2058
|
"required": true,
|
@@ -2409,7 +2409,7 @@
|
|
2409
2409
|
},
|
2410
2410
|
{
|
2411
2411
|
"disabled": false,
|
2412
|
-
"document": "过滤条件。\n<br>SnapshotId - Array of String - 是否必填:否 -(过滤条件)按快照ID过滤。\n<br>SnapshotName - Array of String - 是否必填:否 -(过滤条件)按照快照名称过滤。\n<br>FileSystemId - Array of String - 是否必填:否 -(过滤条件)按文件系统ID过滤。\n<br>FsName - Array of String - 是否必填:否 -(过滤条件)按文件系统名过滤。\n<br>Status - Array of String - 是否必填:否 -(过滤条件)按照快照状态过滤\n(creating:表示创建中 | available
|
2412
|
+
"document": "过滤条件。\n<br>SnapshotId - Array of String - 是否必填:否 -(过滤条件)按快照ID过滤。\n<br>SnapshotName - Array of String - 是否必填:否 -(过滤条件)按照快照名称过滤。\n<br>FileSystemId - Array of String - 是否必填:否 -(过滤条件)按文件系统ID过滤。\n<br>FsName - Array of String - 是否必填:否 -(过滤条件)按文件系统名过滤。\n<br>Status - Array of String - 是否必填:否 -(过滤条件)按照快照状态过滤\n(creating:表示创建中 | available:表示可用。rollbacking_new:表示由快照创建新文件系统中| create-failed 创建失败)\n<br>tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键进行过滤。\n<br>tag:tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。",
|
2413
2413
|
"example": "无",
|
2414
2414
|
"member": "Filter",
|
2415
2415
|
"name": "Filters",
|
@@ -3307,7 +3307,7 @@
|
|
3307
3307
|
},
|
3308
3308
|
{
|
3309
3309
|
"disabled": false,
|
3310
|
-
"document": "迁移状态。0: 已完成;1:
|
3310
|
+
"document": "迁移状态。0: 已完成;1: 创建中;2: 运行中;3: 终止中;4: 已终止;5: 创建失败;6: 运行失败;7: 结束中;8: 删除中;9: 等待中",
|
3311
3311
|
"example": "0",
|
3312
3312
|
"member": "uint64",
|
3313
3313
|
"name": "Status",
|
@@ -4204,7 +4204,7 @@
|
|
4204
4204
|
"members": [
|
4205
4205
|
{
|
4206
4206
|
"disabled": false,
|
4207
|
-
"document": "
|
4207
|
+
"document": "迁移任务Id",
|
4208
4208
|
"example": "cfsmigrate-xxxxx",
|
4209
4209
|
"member": "string",
|
4210
4210
|
"name": "TaskId",
|
@@ -4220,7 +4220,7 @@
|
|
4220
4220
|
{
|
4221
4221
|
"disabled": false,
|
4222
4222
|
"document": "迁移任务Id",
|
4223
|
-
"example": "
|
4223
|
+
"example": "cfsmigrate-xxxxxxxx",
|
4224
4224
|
"member": "string",
|
4225
4225
|
"name": "TaskId",
|
4226
4226
|
"output_required": true,
|
@@ -4229,8 +4229,8 @@
|
|
4229
4229
|
},
|
4230
4230
|
{
|
4231
4231
|
"disabled": false,
|
4232
|
-
"document": "迁移状态。0: 已完成;1:
|
4233
|
-
"example": "
|
4232
|
+
"document": "迁移状态。0: 已完成;1: 创建中;2: 运行中;3: 终止中;4: 已终止;5: 创建失败;6: 运行失败;7: 结束中;8: 删除中;9: 等待中",
|
4233
|
+
"example": "3",
|
4234
4234
|
"member": "uint64",
|
4235
4235
|
"name": "Status",
|
4236
4236
|
"output_required": true,
|
@@ -59,7 +59,7 @@
|
|
59
59
|
"CreateMigrationTask": [
|
60
60
|
{
|
61
61
|
"document": "用于创建数据迁移任务",
|
62
|
-
"input": "POST / HTTP/1.1\nHost: cfs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateMigrationTask\n<公共请求参数>\n\n{\n \"BucketRegion\": \"ap-nanjing\",\n \"SrcService\": \"COS\",\n \"CoverType\":
|
62
|
+
"input": "POST / HTTP/1.1\nHost: cfs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateMigrationTask\n<公共请求参数>\n\n{\n \"BucketRegion\": \"ap-nanjing\",\n \"SrcService\": \"COS\",\n \"CoverType\": 1,\n \"SrcSecretKey\": \"*****************************\",\n \"BucketPath\": \"cos/\",\n \"MigrationMode\": 0,\n \"FileSystemId\": \"cfs-8dd58fd7\",\n \"BucketName\": \"test-1-1256238147\",\n \"FsPath\": \"/test/\",\n \"MigrationType\": 0,\n \"TaskName\": \"migrate1\",\n \"SrcSecretId\": \"**************************************************\",\n \"FsName\": \"oldfs\"\n}",
|
63
63
|
"output": "{\n \"Response\": {\n \"TaskId\": \"cfsmigrate-dfe9b1f2\",\n \"RequestId\": \"91cd4a08-a105-4c59-b229-82f0fs7363b8\"\n }\n}",
|
64
64
|
"title": "创建迁移任务"
|
65
65
|
}
|
@@ -282,7 +282,7 @@
|
|
282
282
|
{
|
283
283
|
"document": "用于终止迁移任务",
|
284
284
|
"input": "POST / HTTP/1.1\nHost: cfs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StopMigrationTask\n<公共请求参数>\n\n{\n \"TaskId\": \"cfsmigrate-29de0e87\"\n}",
|
285
|
-
"output": "{\n \"Response\": {\n \"TaskId\": \"cfsmigrate-29de0e87\",\n \"Status\":
|
285
|
+
"output": "{\n \"Response\": {\n \"TaskId\": \"cfsmigrate-29de0e87\",\n \"Status\": 3,\n \"RequestId\": \"eff7c5d9-c8c4-401a-deda-2108d3cc8b76\"\n }\n}",
|
286
286
|
"title": "终止迁移任务"
|
287
287
|
}
|
288
288
|
],
|
tccli/services/clb/clb_client.py
CHANGED
@@ -4229,6 +4229,58 @@ def doCreateListener(args, parsed_globals):
|
|
4229
4229
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4230
4230
|
|
4231
4231
|
|
4232
|
+
def doDescribeLBOperateProtect(args, parsed_globals):
|
4233
|
+
g_param = parse_global_arg(parsed_globals)
|
4234
|
+
|
4235
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4236
|
+
cred = credential.CVMRoleCredential()
|
4237
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4238
|
+
cred = credential.STSAssumeRoleCredential(
|
4239
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4240
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4241
|
+
)
|
4242
|
+
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):
|
4243
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4244
|
+
else:
|
4245
|
+
cred = credential.Credential(
|
4246
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4247
|
+
)
|
4248
|
+
http_profile = HttpProfile(
|
4249
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4250
|
+
reqMethod="POST",
|
4251
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4252
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4253
|
+
)
|
4254
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4255
|
+
if g_param[OptionsDefine.Language]:
|
4256
|
+
profile.language = g_param[OptionsDefine.Language]
|
4257
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4258
|
+
client = mod.ClbClient(cred, g_param[OptionsDefine.Region], profile)
|
4259
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4260
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4261
|
+
model = models.DescribeLBOperateProtectRequest()
|
4262
|
+
model.from_json_string(json.dumps(args))
|
4263
|
+
start_time = time.time()
|
4264
|
+
while True:
|
4265
|
+
rsp = client.DescribeLBOperateProtect(model)
|
4266
|
+
result = rsp.to_json_string()
|
4267
|
+
try:
|
4268
|
+
json_obj = json.loads(result)
|
4269
|
+
except TypeError as e:
|
4270
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4271
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4272
|
+
break
|
4273
|
+
cur_time = time.time()
|
4274
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4275
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4276
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4277
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4278
|
+
else:
|
4279
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4280
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4281
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4282
|
+
|
4283
|
+
|
4232
4284
|
def doDescribeClsLogSet(args, parsed_globals):
|
4233
4285
|
g_param = parse_global_arg(parsed_globals)
|
4234
4286
|
|
@@ -4841,6 +4893,7 @@ ACTION_MAP = {
|
|
4841
4893
|
"DescribeBlockIPList": doDescribeBlockIPList,
|
4842
4894
|
"DescribeClassicalLBTargets": doDescribeClassicalLBTargets,
|
4843
4895
|
"CreateListener": doCreateListener,
|
4896
|
+
"DescribeLBOperateProtect": doDescribeLBOperateProtect,
|
4844
4897
|
"DescribeClsLogSet": doDescribeClsLogSet,
|
4845
4898
|
"ModifyTargetWeight": doModifyTargetWeight,
|
4846
4899
|
"CreateTargetGroup": doCreateTargetGroup,
|
@@ -294,6 +294,13 @@
|
|
294
294
|
"output": "DescribeLBListenersResponse",
|
295
295
|
"status": "online"
|
296
296
|
},
|
297
|
+
"DescribeLBOperateProtect": {
|
298
|
+
"document": "查询负载均衡的操作保护信息。",
|
299
|
+
"input": "DescribeLBOperateProtectRequest",
|
300
|
+
"name": "查询负载均衡操作保护",
|
301
|
+
"output": "DescribeLBOperateProtectResponse",
|
302
|
+
"status": "online"
|
303
|
+
},
|
297
304
|
"DescribeListeners": {
|
298
305
|
"document": "DescribeListeners 接口可根据负载均衡器 ID、监听器的协议或端口作为过滤条件获取监听器列表。如果不指定任何过滤条件,则返回该负载均衡实例下的所有监听器。",
|
299
306
|
"input": "DescribeListenersRequest",
|
@@ -5101,6 +5108,43 @@
|
|
5101
5108
|
],
|
5102
5109
|
"type": "object"
|
5103
5110
|
},
|
5111
|
+
"DescribeLBOperateProtectRequest": {
|
5112
|
+
"document": "DescribeLBOperateProtect请求参数结构体",
|
5113
|
+
"members": [
|
5114
|
+
{
|
5115
|
+
"disabled": false,
|
5116
|
+
"document": "负载均衡实例ID。",
|
5117
|
+
"example": "lb-ol9l5wxx",
|
5118
|
+
"member": "string",
|
5119
|
+
"name": "LoadBalancerIds",
|
5120
|
+
"required": true,
|
5121
|
+
"type": "list"
|
5122
|
+
}
|
5123
|
+
],
|
5124
|
+
"type": "object"
|
5125
|
+
},
|
5126
|
+
"DescribeLBOperateProtectResponse": {
|
5127
|
+
"document": "DescribeLBOperateProtect返回参数结构体",
|
5128
|
+
"members": [
|
5129
|
+
{
|
5130
|
+
"disabled": false,
|
5131
|
+
"document": "返回的负载均衡操作保护信息数组。",
|
5132
|
+
"example": "无",
|
5133
|
+
"member": "LBOperateProtectInfo",
|
5134
|
+
"name": "LoadBalancerSet",
|
5135
|
+
"required": true,
|
5136
|
+
"type": "list",
|
5137
|
+
"value_allowed_null": false
|
5138
|
+
},
|
5139
|
+
{
|
5140
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
5141
|
+
"member": "string",
|
5142
|
+
"name": "RequestId",
|
5143
|
+
"type": "string"
|
5144
|
+
}
|
5145
|
+
],
|
5146
|
+
"type": "object"
|
5147
|
+
},
|
5104
5148
|
"DescribeListenersRequest": {
|
5105
5149
|
"document": "DescribeListeners请求参数结构体",
|
5106
5150
|
"members": [
|
@@ -7095,6 +7139,62 @@
|
|
7095
7139
|
],
|
7096
7140
|
"usage": "out"
|
7097
7141
|
},
|
7142
|
+
"LBOperateProtectInfo": {
|
7143
|
+
"document": "负载均衡的操作保护信息",
|
7144
|
+
"members": [
|
7145
|
+
{
|
7146
|
+
"disabled": false,
|
7147
|
+
"document": "负载均衡实例 ID。",
|
7148
|
+
"example": "lb-gfz73nxx",
|
7149
|
+
"member": "string",
|
7150
|
+
"name": "LoadBalancerId",
|
7151
|
+
"required": true,
|
7152
|
+
"type": "string",
|
7153
|
+
"value_allowed_null": false
|
7154
|
+
},
|
7155
|
+
{
|
7156
|
+
"disabled": false,
|
7157
|
+
"document": "保护状态,true:表示开启了操作保护,false:表示未开启操作保护。",
|
7158
|
+
"example": "true",
|
7159
|
+
"member": "bool",
|
7160
|
+
"name": "ProtectState",
|
7161
|
+
"required": true,
|
7162
|
+
"type": "bool",
|
7163
|
+
"value_allowed_null": false
|
7164
|
+
},
|
7165
|
+
{
|
7166
|
+
"disabled": false,
|
7167
|
+
"document": "操作保护的设置uin。\n注意:此字段可能返回 null,表示取不到有效值。",
|
7168
|
+
"example": "1235450",
|
7169
|
+
"member": "string",
|
7170
|
+
"name": "OperatorUin",
|
7171
|
+
"required": true,
|
7172
|
+
"type": "string",
|
7173
|
+
"value_allowed_null": true
|
7174
|
+
},
|
7175
|
+
{
|
7176
|
+
"disabled": false,
|
7177
|
+
"document": "设置操作保护时的描述信息。\n注意:此字段可能返回 null,表示取不到有效值。",
|
7178
|
+
"example": "x",
|
7179
|
+
"member": "string",
|
7180
|
+
"name": "Description",
|
7181
|
+
"required": true,
|
7182
|
+
"type": "string",
|
7183
|
+
"value_allowed_null": true
|
7184
|
+
},
|
7185
|
+
{
|
7186
|
+
"disabled": false,
|
7187
|
+
"document": "最后修改时间。\n注意:此字段可能返回 null,表示取不到有效值。",
|
7188
|
+
"example": "2021-09-09 15:00:00",
|
7189
|
+
"member": "string",
|
7190
|
+
"name": "ModifyTime",
|
7191
|
+
"required": true,
|
7192
|
+
"type": "string",
|
7193
|
+
"value_allowed_null": true
|
7194
|
+
}
|
7195
|
+
],
|
7196
|
+
"usage": "out"
|
7197
|
+
},
|
7098
7198
|
"LbRsItem": {
|
7099
7199
|
"document": "查询类型",
|
7100
7200
|
"members": [
|
@@ -384,6 +384,14 @@
|
|
384
384
|
"title": "查询云主机绑定的负载均衡"
|
385
385
|
}
|
386
386
|
],
|
387
|
+
"DescribeLBOperateProtect": [
|
388
|
+
{
|
389
|
+
"document": "",
|
390
|
+
"input": "https://clb.tencentcloudapi.com/?Action=DescribeLBOperateProtect\n&LoadBalancerIds.0=lb-rbw529fz\n&<公共请求参数>",
|
391
|
+
"output": "{\n \"Response\": {\n \"LoadBalancerSet\": [\n {\n \"LoadBalancerId\": \"lb-rbw529fz\",\n \"ProtectState\": true,\n \"OperatorUin\": \"125674504xx\",\n \"Description\": \"CLB Operate Protect\",\n \"ModifyTime\": \"2021-09-08 15:54:46\"\n }\n ],\n \"RequestId\": \"63d7d5d7-523a-4c5e-bda2-ec953ed5ace4\"\n }\n}",
|
392
|
+
"title": "查询负载均衡的操作保护信息"
|
393
|
+
}
|
394
|
+
],
|
387
395
|
"DescribeListeners": [
|
388
396
|
{
|
389
397
|
"document": "",
|