tccli 3.0.1125.1__py2.py3-none-any.whl → 3.0.1127.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/billing/v20180709/api.json +2 -2
- tccli/services/cam/cam_client.py +110 -57
- tccli/services/cam/v20190116/api.json +128 -0
- tccli/services/cam/v20190116/examples.json +8 -0
- tccli/services/cat/v20180409/api.json +10 -0
- tccli/services/cds/v20180420/api.json +2 -2
- tccli/services/cls/v20201016/api.json +19 -0
- tccli/services/domain/v20180808/api.json +702 -40
- tccli/services/domain/v20180808/examples.json +13 -13
- tccli/services/emr/v20190103/api.json +20 -0
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/iotexplorer/v20190423/api.json +31 -23
- tccli/services/iotexplorer/v20190423/examples.json +4 -4
- tccli/services/mongodb/mongodb_client.py +212 -0
- tccli/services/mongodb/v20190725/api.json +322 -0
- tccli/services/mongodb/v20190725/examples.json +32 -0
- tccli/services/monitor/v20180724/api.json +1 -0
- tccli/services/monitor/v20180724/examples.json +2 -2
- tccli/services/postgres/v20170312/api.json +11 -11
- tccli/services/redis/redis_client.py +53 -0
- tccli/services/redis/v20180412/api.json +151 -0
- tccli/services/redis/v20180412/examples.json +8 -0
- tccli/services/teo/teo_client.py +216 -4
- tccli/services/teo/v20220901/api.json +375 -0
- tccli/services/teo/v20220901/examples.json +32 -0
- tccli/services/tmt/v20180321/api.json +5 -4
- tccli/services/trtc/v20190722/api.json +1 -1
- tccli/services/tse/tse_client.py +53 -0
- tccli/services/tse/v20201207/api.json +43 -0
- tccli/services/tse/v20201207/examples.json +8 -0
- {tccli-3.0.1125.1.dist-info → tccli-3.0.1127.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1125.1.dist-info → tccli-3.0.1127.1.dist-info}/RECORD +36 -36
- {tccli-3.0.1125.1.dist-info → tccli-3.0.1127.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1125.1.dist-info → tccli-3.0.1127.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1125.1.dist-info → tccli-3.0.1127.1.dist-info}/license_files/LICENSE +0 -0
@@ -70,6 +70,13 @@
|
|
70
70
|
"output": "DescribeBackupDownloadTaskResponse",
|
71
71
|
"status": "online"
|
72
72
|
},
|
73
|
+
"DescribeBackupRules": {
|
74
|
+
"document": "本接口(DescribeBackupRules)用于获取实例自动备份配置信息。",
|
75
|
+
"input": "DescribeBackupRulesRequest",
|
76
|
+
"name": "获取云数据库实例自动备份配置",
|
77
|
+
"output": "DescribeBackupRulesResponse",
|
78
|
+
"status": "online"
|
79
|
+
},
|
73
80
|
"DescribeClientConnections": {
|
74
81
|
"document": "本接口(DescribeClientConnections)用于查询实例客户端连接信息,包括连接 IP 和连接数量。",
|
75
82
|
"input": "DescribeClientConnectionsRequest",
|
@@ -147,6 +154,20 @@
|
|
147
154
|
"output": "DescribeSpecInfoResponse",
|
148
155
|
"status": "online"
|
149
156
|
},
|
157
|
+
"DescribeTransparentDataEncryptionStatus": {
|
158
|
+
"document": "获取实例透明加密的开启状态",
|
159
|
+
"input": "DescribeTransparentDataEncryptionStatusRequest",
|
160
|
+
"name": "获取实例透明加密的开启状态",
|
161
|
+
"output": "DescribeTransparentDataEncryptionStatusResponse",
|
162
|
+
"status": "online"
|
163
|
+
},
|
164
|
+
"EnableTransparentDataEncryption": {
|
165
|
+
"document": "本接口(EnableTransparentDataEncryption)用于开启云数据库 MongoDB 的透明加密能力。",
|
166
|
+
"input": "EnableTransparentDataEncryptionRequest",
|
167
|
+
"name": "开启实例数据透明加密",
|
168
|
+
"output": "EnableTransparentDataEncryptionResponse",
|
169
|
+
"status": "online"
|
170
|
+
},
|
150
171
|
"FlashBackDBInstance": {
|
151
172
|
"document": "该接口用于发起按 Key 闪回任务,依据数据的闪回 Key(默认为 id)对数据进行极速回档,快速恢复业务。\n**说明:按 Key 闪回于2023年09月11日正式进行公测,在此期间,该接口仅对公测用户开放。**",
|
152
173
|
"input": "FlashBackDBInstanceRequest",
|
@@ -252,6 +273,13 @@
|
|
252
273
|
"output": "SetAccountUserPrivilegeResponse",
|
253
274
|
"status": "online"
|
254
275
|
},
|
276
|
+
"SetBackupRules": {
|
277
|
+
"document": "本接口(SetBackupRules)用于设置 MongoDB 云数据库的自动备份规则。",
|
278
|
+
"input": "SetBackupRulesRequest",
|
279
|
+
"name": "设置云数据库实例的自动备份规则",
|
280
|
+
"output": "SetBackupRulesResponse",
|
281
|
+
"status": "online"
|
282
|
+
},
|
255
283
|
"SetInstanceMaintenance": {
|
256
284
|
"document": "本接口(SetInstanceMaintenance ) 用于设置实例维护时间窗。",
|
257
285
|
"input": "SetInstanceMaintenanceRequest",
|
@@ -1802,6 +1830,63 @@
|
|
1802
1830
|
],
|
1803
1831
|
"type": "object"
|
1804
1832
|
},
|
1833
|
+
"DescribeBackupRulesRequest": {
|
1834
|
+
"document": "DescribeBackupRules请求参数结构体",
|
1835
|
+
"members": [
|
1836
|
+
{
|
1837
|
+
"disabled": false,
|
1838
|
+
"document": "指定实例ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。",
|
1839
|
+
"example": "cmgo-7pjedvz7",
|
1840
|
+
"member": "string",
|
1841
|
+
"name": "InstanceId",
|
1842
|
+
"required": true,
|
1843
|
+
"type": "string"
|
1844
|
+
}
|
1845
|
+
],
|
1846
|
+
"type": "object"
|
1847
|
+
},
|
1848
|
+
"DescribeBackupRulesResponse": {
|
1849
|
+
"document": "DescribeBackupRules返回参数结构体",
|
1850
|
+
"members": [
|
1851
|
+
{
|
1852
|
+
"disabled": false,
|
1853
|
+
"document": "备份数据保留期限。单位为:天。",
|
1854
|
+
"example": "7",
|
1855
|
+
"member": "uint64",
|
1856
|
+
"name": "BackupSaveTime",
|
1857
|
+
"output_required": true,
|
1858
|
+
"type": "int",
|
1859
|
+
"value_allowed_null": false
|
1860
|
+
},
|
1861
|
+
{
|
1862
|
+
"disabled": false,
|
1863
|
+
"document": "自动备份开始时间。",
|
1864
|
+
"example": "1",
|
1865
|
+
"member": "uint64",
|
1866
|
+
"name": "BackupTime",
|
1867
|
+
"output_required": true,
|
1868
|
+
"type": "int",
|
1869
|
+
"value_allowed_null": false
|
1870
|
+
},
|
1871
|
+
{
|
1872
|
+
"disabled": false,
|
1873
|
+
"document": "备份方式。\n- 0:逻辑备份。\n- 1:物理备份。",
|
1874
|
+
"example": "1",
|
1875
|
+
"member": "uint64",
|
1876
|
+
"name": "BackupMethod",
|
1877
|
+
"output_required": true,
|
1878
|
+
"type": "int",
|
1879
|
+
"value_allowed_null": false
|
1880
|
+
},
|
1881
|
+
{
|
1882
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1883
|
+
"member": "string",
|
1884
|
+
"name": "RequestId",
|
1885
|
+
"type": "string"
|
1886
|
+
}
|
1887
|
+
],
|
1888
|
+
"type": "object"
|
1889
|
+
},
|
1805
1890
|
"DescribeClientConnectionsRequest": {
|
1806
1891
|
"document": "DescribeClientConnections请求参数结构体",
|
1807
1892
|
"members": [
|
@@ -2759,6 +2844,108 @@
|
|
2759
2844
|
],
|
2760
2845
|
"type": "object"
|
2761
2846
|
},
|
2847
|
+
"DescribeTransparentDataEncryptionStatusRequest": {
|
2848
|
+
"document": "DescribeTransparentDataEncryptionStatus请求参数结构体",
|
2849
|
+
"members": [
|
2850
|
+
{
|
2851
|
+
"disabled": false,
|
2852
|
+
"document": "指定实例 ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。",
|
2853
|
+
"example": "\"cmgo-jyjcw8yv\"",
|
2854
|
+
"member": "string",
|
2855
|
+
"name": "InstanceId",
|
2856
|
+
"required": true,
|
2857
|
+
"type": "string"
|
2858
|
+
}
|
2859
|
+
],
|
2860
|
+
"type": "object"
|
2861
|
+
},
|
2862
|
+
"DescribeTransparentDataEncryptionStatusResponse": {
|
2863
|
+
"document": "DescribeTransparentDataEncryptionStatus返回参数结构体",
|
2864
|
+
"members": [
|
2865
|
+
{
|
2866
|
+
"disabled": false,
|
2867
|
+
"document": "表示是否开启了透明加密。 \n- close:未开启。\n- open:已开启。",
|
2868
|
+
"example": "open或close",
|
2869
|
+
"member": "string",
|
2870
|
+
"name": "TransparentDataEncryptionStatus",
|
2871
|
+
"output_required": false,
|
2872
|
+
"type": "string",
|
2873
|
+
"value_allowed_null": false
|
2874
|
+
},
|
2875
|
+
{
|
2876
|
+
"disabled": false,
|
2877
|
+
"document": "已绑定的密钥列表,如未绑定,返回null。\n注意:此字段可能返回 null,表示取不到有效值。",
|
2878
|
+
"example": "无",
|
2879
|
+
"member": "KMSInfoDetail",
|
2880
|
+
"name": "KeyInfoList",
|
2881
|
+
"output_required": false,
|
2882
|
+
"type": "list",
|
2883
|
+
"value_allowed_null": true
|
2884
|
+
},
|
2885
|
+
{
|
2886
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2887
|
+
"member": "string",
|
2888
|
+
"name": "RequestId",
|
2889
|
+
"type": "string"
|
2890
|
+
}
|
2891
|
+
],
|
2892
|
+
"type": "object"
|
2893
|
+
},
|
2894
|
+
"EnableTransparentDataEncryptionRequest": {
|
2895
|
+
"document": "EnableTransparentDataEncryption请求参数结构体",
|
2896
|
+
"members": [
|
2897
|
+
{
|
2898
|
+
"disabled": false,
|
2899
|
+
"document": "实例 ID,例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。目前支持通用版本包含:4.4、5.0,云盘版暂不支持。",
|
2900
|
+
"example": "cmgo-p8vnipr5",
|
2901
|
+
"member": "string",
|
2902
|
+
"name": "InstanceId",
|
2903
|
+
"required": true,
|
2904
|
+
"type": "string"
|
2905
|
+
},
|
2906
|
+
{
|
2907
|
+
"disabled": false,
|
2908
|
+
"document": " [密钥管理系统(Key Management Service,KMS)](https://cloud.tencent.com/document/product/573/18809)服务所在地域,例如 ap-shanghai。",
|
2909
|
+
"example": "无",
|
2910
|
+
"member": "string",
|
2911
|
+
"name": "KmsRegion",
|
2912
|
+
"required": true,
|
2913
|
+
"type": "string"
|
2914
|
+
},
|
2915
|
+
{
|
2916
|
+
"disabled": false,
|
2917
|
+
"document": "密钥 ID。若不设置该参数,不指定具体的密钥 ID,由腾讯云自动生成密钥。",
|
2918
|
+
"example": "无",
|
2919
|
+
"member": "string",
|
2920
|
+
"name": "KeyId",
|
2921
|
+
"required": false,
|
2922
|
+
"type": "string"
|
2923
|
+
}
|
2924
|
+
],
|
2925
|
+
"type": "object"
|
2926
|
+
},
|
2927
|
+
"EnableTransparentDataEncryptionResponse": {
|
2928
|
+
"document": "EnableTransparentDataEncryption返回参数结构体",
|
2929
|
+
"members": [
|
2930
|
+
{
|
2931
|
+
"disabled": false,
|
2932
|
+
"document": "开启透明加密的异步流程id,用于查询流程状态。",
|
2933
|
+
"example": "无",
|
2934
|
+
"member": "int64",
|
2935
|
+
"name": "FlowId",
|
2936
|
+
"output_required": false,
|
2937
|
+
"type": "int",
|
2938
|
+
"value_allowed_null": false
|
2939
|
+
},
|
2940
|
+
{
|
2941
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2942
|
+
"member": "string",
|
2943
|
+
"name": "RequestId",
|
2944
|
+
"type": "string"
|
2945
|
+
}
|
2946
|
+
],
|
2947
|
+
"type": "object"
|
2948
|
+
},
|
2762
2949
|
"FBKeyValue": {
|
2763
2950
|
"document": "按key回档,用于筛选数据的键值对",
|
2764
2951
|
"members": [
|
@@ -4142,6 +4329,78 @@
|
|
4142
4329
|
],
|
4143
4330
|
"type": "object"
|
4144
4331
|
},
|
4332
|
+
"KMSInfoDetail": {
|
4333
|
+
"document": "KMS密钥信息",
|
4334
|
+
"members": [
|
4335
|
+
{
|
4336
|
+
"disabled": false,
|
4337
|
+
"document": "主密钥 ID。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4338
|
+
"example": "无",
|
4339
|
+
"member": "string",
|
4340
|
+
"name": "KeyId",
|
4341
|
+
"output_required": false,
|
4342
|
+
"required": false,
|
4343
|
+
"type": "string",
|
4344
|
+
"value_allowed_null": true
|
4345
|
+
},
|
4346
|
+
{
|
4347
|
+
"disabled": false,
|
4348
|
+
"document": "主密钥名称。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4349
|
+
"example": "无",
|
4350
|
+
"member": "string",
|
4351
|
+
"name": "KeyName",
|
4352
|
+
"output_required": false,
|
4353
|
+
"required": false,
|
4354
|
+
"type": "string",
|
4355
|
+
"value_allowed_null": true
|
4356
|
+
},
|
4357
|
+
{
|
4358
|
+
"disabled": false,
|
4359
|
+
"document": "实例与密钥绑定时间。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4360
|
+
"example": "无",
|
4361
|
+
"member": "string",
|
4362
|
+
"name": "CreateTime",
|
4363
|
+
"output_required": false,
|
4364
|
+
"required": false,
|
4365
|
+
"type": "string",
|
4366
|
+
"value_allowed_null": true
|
4367
|
+
},
|
4368
|
+
{
|
4369
|
+
"disabled": false,
|
4370
|
+
"document": "密钥状态。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4371
|
+
"example": "无",
|
4372
|
+
"member": "string",
|
4373
|
+
"name": "Status",
|
4374
|
+
"output_required": false,
|
4375
|
+
"required": false,
|
4376
|
+
"type": "string",
|
4377
|
+
"value_allowed_null": true
|
4378
|
+
},
|
4379
|
+
{
|
4380
|
+
"disabled": false,
|
4381
|
+
"document": "密钥用途。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4382
|
+
"example": "无",
|
4383
|
+
"member": "string",
|
4384
|
+
"name": "KeyUsage",
|
4385
|
+
"output_required": false,
|
4386
|
+
"required": false,
|
4387
|
+
"type": "string",
|
4388
|
+
"value_allowed_null": true
|
4389
|
+
},
|
4390
|
+
{
|
4391
|
+
"disabled": false,
|
4392
|
+
"document": "密钥来源。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4393
|
+
"example": "无",
|
4394
|
+
"member": "string",
|
4395
|
+
"name": "KeyOrigin",
|
4396
|
+
"output_required": false,
|
4397
|
+
"required": false,
|
4398
|
+
"type": "string",
|
4399
|
+
"value_allowed_null": true
|
4400
|
+
}
|
4401
|
+
],
|
4402
|
+
"usage": "both"
|
4403
|
+
},
|
4145
4404
|
"KillOpsRequest": {
|
4146
4405
|
"document": "KillOps请求参数结构体",
|
4147
4406
|
"members": [
|
@@ -5045,6 +5304,69 @@
|
|
5045
5304
|
],
|
5046
5305
|
"type": "object"
|
5047
5306
|
},
|
5307
|
+
"SetBackupRulesRequest": {
|
5308
|
+
"document": "SetBackupRules请求参数结构体",
|
5309
|
+
"members": [
|
5310
|
+
{
|
5311
|
+
"disabled": false,
|
5312
|
+
"document": "实例 ID,例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。",
|
5313
|
+
"example": "cmgo-p8vnipr5",
|
5314
|
+
"member": "string",
|
5315
|
+
"name": "InstanceId",
|
5316
|
+
"required": true,
|
5317
|
+
"type": "string"
|
5318
|
+
},
|
5319
|
+
{
|
5320
|
+
"disabled": false,
|
5321
|
+
"document": "设置自动备份方式。- 0:逻辑备份。- 1:物理备份。-3:快照备份(仅云盘版支持)。",
|
5322
|
+
"example": "1",
|
5323
|
+
"member": "uint64",
|
5324
|
+
"name": "BackupMethod",
|
5325
|
+
"required": true,
|
5326
|
+
"type": "int"
|
5327
|
+
},
|
5328
|
+
{
|
5329
|
+
"disabled": false,
|
5330
|
+
"document": "设置自动备份开始时间。取值范围为:[0,23],例如:该参数设置为2,表示02:00开始备份。",
|
5331
|
+
"example": "2",
|
5332
|
+
"member": "uint64",
|
5333
|
+
"name": "BackupTime",
|
5334
|
+
"required": true,
|
5335
|
+
"type": "int"
|
5336
|
+
},
|
5337
|
+
{
|
5338
|
+
"disabled": false,
|
5339
|
+
"document": "设置自动备份发生错误时,是否发送失败告警。\n- true:发送。\n- false:不发送。",
|
5340
|
+
"example": "true",
|
5341
|
+
"member": "bool",
|
5342
|
+
"name": "Notify",
|
5343
|
+
"required": false,
|
5344
|
+
"type": "bool"
|
5345
|
+
},
|
5346
|
+
{
|
5347
|
+
"disabled": false,
|
5348
|
+
"document": "指定备份数据保存天数。默认为 7 天,支持设置为7、30、90、180、365。",
|
5349
|
+
"example": "7",
|
5350
|
+
"member": "uint64",
|
5351
|
+
"name": "BackupRetentionPeriod",
|
5352
|
+
"required": false,
|
5353
|
+
"type": "int"
|
5354
|
+
}
|
5355
|
+
],
|
5356
|
+
"type": "object"
|
5357
|
+
},
|
5358
|
+
"SetBackupRulesResponse": {
|
5359
|
+
"document": "SetBackupRules返回参数结构体",
|
5360
|
+
"members": [
|
5361
|
+
{
|
5362
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
5363
|
+
"member": "string",
|
5364
|
+
"name": "RequestId",
|
5365
|
+
"type": "string"
|
5366
|
+
}
|
5367
|
+
],
|
5368
|
+
"type": "object"
|
5369
|
+
},
|
5048
5370
|
"SetInstanceMaintenanceRequest": {
|
5049
5371
|
"document": "SetInstanceMaintenance请求参数结构体",
|
5050
5372
|
"members": [
|
@@ -80,6 +80,14 @@
|
|
80
80
|
"title": "查询备份下载任务"
|
81
81
|
}
|
82
82
|
],
|
83
|
+
"DescribeBackupRules": [
|
84
|
+
{
|
85
|
+
"document": "查询实例的自动备份规则信息",
|
86
|
+
"input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBackupRules\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-9d0p****\"\n}",
|
87
|
+
"output": "{\n \"Response\": {\n \"BackupMethod\": 0,\n \"BackupSaveTime\": 7,\n \"BackupTime\": 1,\n \"RequestId\": \"07ec4290-d682-11ed-aa06-f56fb86dae78\"\n }\n}",
|
88
|
+
"title": "查询实例的自动备份规则信息"
|
89
|
+
}
|
90
|
+
],
|
83
91
|
"DescribeClientConnections": [
|
84
92
|
{
|
85
93
|
"document": "查询云数据库实例的客户端连接情况",
|
@@ -168,6 +176,22 @@
|
|
168
176
|
"title": "查询云数据库售卖"
|
169
177
|
}
|
170
178
|
],
|
179
|
+
"DescribeTransparentDataEncryptionStatus": [
|
180
|
+
{
|
181
|
+
"document": "",
|
182
|
+
"input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTransparentDataEncryptionStatus\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-igjysqkr\"\n}",
|
183
|
+
"output": "{\n \"Response\": {\n \"TransparentDataEncryptionStatus\": \"open\",\n \"KeyInfoList\": [\n {\n \"KeyId\": \"abc\",\n \"KeyName\": \"abc\",\n \"CreateTime\": \"abc\",\n \"Status\": \"abc\",\n \"KeyUsage\": \"abc\",\n \"KeyOrigin\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
184
|
+
"title": "获取当前实例是否已开启数据加密"
|
185
|
+
}
|
186
|
+
],
|
187
|
+
"EnableTransparentDataEncryption": [
|
188
|
+
{
|
189
|
+
"document": "",
|
190
|
+
"input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableTransparentDataEncryption\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-igjysqkr\",\n \"KmsRegion\": \"ap-guangzhou\",\n \"KeyId\": \"abcabc\"\n}",
|
191
|
+
"output": "{\n \"Response\": {\n \"FlowId\": 0,\n \"RequestId\": \"abcd\"\n }\n}",
|
192
|
+
"title": "开启实例数据透明加密"
|
193
|
+
}
|
194
|
+
],
|
171
195
|
"FlashBackDBInstance": [
|
172
196
|
{
|
173
197
|
"document": "",
|
@@ -300,6 +324,14 @@
|
|
300
324
|
"title": "为当前实例设置账号权限"
|
301
325
|
}
|
302
326
|
],
|
327
|
+
"SetBackupRules": [
|
328
|
+
{
|
329
|
+
"document": "",
|
330
|
+
"input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SetBackupRules\n<公共请求参数>\n\n{\n \"InstanceId\": \"cmgo-abcede\",\n \"BackupTime\": 22,\n \"BackupMethod\": 1,\n \"BackupRetentionPeriod\": 7,\n \"Notify\": true\n}",
|
331
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"58f3a6a0-2330-11ef-ad75-7139c2c3f68c\"\n }\n}",
|
332
|
+
"title": "设置实例的自动备份规则"
|
333
|
+
}
|
334
|
+
],
|
303
335
|
"SetInstanceMaintenance": [
|
304
336
|
{
|
305
337
|
"document": "修改实例维护时间窗口",
|
@@ -706,7 +706,7 @@
|
|
706
706
|
{
|
707
707
|
"document": "列出 Grafana 告警通道",
|
708
708
|
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGrafanaNotificationChannels\n<公共请求参数>\n\n{\n \"InstanceId\": \"grafana-12345678\",\n \"ChannelState\": 0,\n \"Limit\": 0,\n \"Offset\": 0,\n \"ChannelName\": \"test\",\n \"ChannelIDs\": [\n \"nchannel-abcd1234\"\n ]\n}",
|
709
|
-
"output": "{\n \"Response\": {\n \"NotificationChannelSet\": [\n {\n \"ChannelId\": \"
|
709
|
+
"output": "{\n \"Response\": {\n \"NotificationChannelSet\": [\n {\n \"ChannelId\": \"abc\",\n \"ChannelName\": \"abc\",\n \"Receivers\": [\n \"abc\"\n ],\n \"CreatedAt\": \"2020-09-22T00:00:00+00:00\",\n \"UpdatedAt\": \"2020-09-22T00:00:00+00:00\",\n \"OrgId\": \"abc\",\n \"ExtraOrgIds\": [\n \"abc\"\n ],\n \"OrgIds\": [\n \"abc\"\n ],\n \"OrganizationIds\": [\n \"abc\"\n ]\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
710
710
|
"title": "列出 Grafana 告警通道"
|
711
711
|
}
|
712
712
|
],
|
@@ -1311,7 +1311,7 @@
|
|
1311
1311
|
"UpdateDNSConfig": [
|
1312
1312
|
{
|
1313
1313
|
"document": "更新 Grafana 的 DNS 配置",
|
1314
|
-
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateDNSConfig\n<公共请求参数>\n\n{\n \"InstanceId\": \"grafana-12345678\",\n \"NameServers\": [\n \"
|
1314
|
+
"input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateDNSConfig\n<公共请求参数>\n\n{\n \"InstanceId\": \"grafana-12345678\",\n \"NameServers\": [\n \"1.1.1.1\"\n ]\n}",
|
1315
1315
|
"output": "{\n \"Response\": {\n \"RequestId\": \"fpllngzieyoh54e1244ols7k2hh3gdny\"\n }\n}",
|
1316
1316
|
"title": "更新 Grafana 的 DNS 配置"
|
1317
1317
|
}
|
@@ -2967,8 +2967,8 @@
|
|
2967
2967
|
},
|
2968
2968
|
{
|
2969
2969
|
"disabled": false,
|
2970
|
-
"document": "私有网络ID,形如vpc-
|
2971
|
-
"example": "vpc-
|
2970
|
+
"document": "私有网络ID,形如vpc-e6w23k31。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcs](https://cloud.tencent.com/document/api/215/15778) ,从接口返回中的unVpcId字段获取。",
|
2971
|
+
"example": "vpc-e6w23k31",
|
2972
2972
|
"member": "string",
|
2973
2973
|
"name": "VpcId",
|
2974
2974
|
"output_required": true,
|
@@ -2977,8 +2977,8 @@
|
|
2977
2977
|
},
|
2978
2978
|
{
|
2979
2979
|
"disabled": false,
|
2980
|
-
"document": "私有网络子网ID,形如subnet-
|
2981
|
-
"example": "subnet-
|
2980
|
+
"document": "私有网络子网ID,形如subnet-51lcif9y。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。",
|
2981
|
+
"example": "subnet-51lcif9y",
|
2982
2982
|
"member": "string",
|
2983
2983
|
"name": "SubnetId",
|
2984
2984
|
"output_required": true,
|
@@ -2988,7 +2988,7 @@
|
|
2988
2988
|
{
|
2989
2989
|
"disabled": false,
|
2990
2990
|
"document": "实例ID。",
|
2991
|
-
"example": "postgres-
|
2991
|
+
"example": "postgres-7lzldndx",
|
2992
2992
|
"member": "string",
|
2993
2993
|
"name": "DBInstanceId",
|
2994
2994
|
"output_required": true,
|
@@ -2998,7 +2998,7 @@
|
|
2998
2998
|
{
|
2999
2999
|
"disabled": false,
|
3000
3000
|
"document": "实例名称。",
|
3001
|
-
"example": "
|
3001
|
+
"example": "数据库名称",
|
3002
3002
|
"member": "string",
|
3003
3003
|
"name": "DBInstanceName",
|
3004
3004
|
"output_required": true,
|
@@ -3238,7 +3238,7 @@
|
|
3238
3238
|
{
|
3239
3239
|
"disabled": false,
|
3240
3240
|
"document": "主实例信息,仅在实例为只读实例时返回。\n注意:此字段可能返回 null,表示取不到有效值。",
|
3241
|
-
"example": "postgres-
|
3241
|
+
"example": "postgres-7lzldndx",
|
3242
3242
|
"member": "string",
|
3243
3243
|
"name": "MasterDBInstanceId",
|
3244
3244
|
"output_required": true,
|
@@ -4188,7 +4188,7 @@
|
|
4188
4188
|
{
|
4189
4189
|
"disabled": false,
|
4190
4190
|
"document": "按照一个或者多个过滤条件进行查询,目前支持的过滤条件有:\ndb-instance-id:按照实例ID过滤,类型为string。\ndb-instance-name:按照实例名过滤,类型为string。\ndb-instance-ip:按照实例私有网络IP地址过滤,类型为string。",
|
4191
|
-
"example": "
|
4191
|
+
"example": "[ { \"Values\": [ \"postgres-2uepfuz1\" ], \"Name\": \"db-instance-id\" } ]",
|
4192
4192
|
"member": "Filter",
|
4193
4193
|
"name": "Filters",
|
4194
4194
|
"required": false,
|
@@ -4221,10 +4221,10 @@
|
|
4221
4221
|
{
|
4222
4222
|
"disabled": false,
|
4223
4223
|
"document": "备份统计信息列表。",
|
4224
|
-
"example": "
|
4224
|
+
"example": "[ { \"AutoBaseBackupCount\": 3, \"AutoBaseBackupSize\": 3535342436352, \"DBInstanceId\": \"postgres-lsw5y0bp\", \"LogBackupCount\": 2, \"LogBackupSize\": 167792640, \"ManualBaseBackupCount\": 1, \"ManualBaseBackupSize\": 1178447478784, \"TotalBackupCount\": 6, \"TotalBackupSize\": 4713957707776 } ]",
|
4225
4225
|
"member": "BackupSummary",
|
4226
4226
|
"name": "BackupSummarySet",
|
4227
|
-
"
|
4227
|
+
"output_required": true,
|
4228
4228
|
"type": "list",
|
4229
4229
|
"value_allowed_null": false
|
4230
4230
|
},
|
@@ -4234,7 +4234,7 @@
|
|
4234
4234
|
"example": "10",
|
4235
4235
|
"member": "uint64",
|
4236
4236
|
"name": "TotalCount",
|
4237
|
-
"
|
4237
|
+
"output_required": true,
|
4238
4238
|
"type": "int",
|
4239
4239
|
"value_allowed_null": false
|
4240
4240
|
},
|
@@ -797,6 +797,58 @@ def doDescribeInstanceSecurityGroup(args, parsed_globals):
|
|
797
797
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
798
798
|
|
799
799
|
|
800
|
+
def doDescribeBackupDetail(args, parsed_globals):
|
801
|
+
g_param = parse_global_arg(parsed_globals)
|
802
|
+
|
803
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
804
|
+
cred = credential.CVMRoleCredential()
|
805
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
806
|
+
cred = credential.STSAssumeRoleCredential(
|
807
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
808
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
809
|
+
)
|
810
|
+
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):
|
811
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
812
|
+
else:
|
813
|
+
cred = credential.Credential(
|
814
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
815
|
+
)
|
816
|
+
http_profile = HttpProfile(
|
817
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
818
|
+
reqMethod="POST",
|
819
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
820
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
821
|
+
)
|
822
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
823
|
+
if g_param[OptionsDefine.Language]:
|
824
|
+
profile.language = g_param[OptionsDefine.Language]
|
825
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
826
|
+
client = mod.RedisClient(cred, g_param[OptionsDefine.Region], profile)
|
827
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
828
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
829
|
+
model = models.DescribeBackupDetailRequest()
|
830
|
+
model.from_json_string(json.dumps(args))
|
831
|
+
start_time = time.time()
|
832
|
+
while True:
|
833
|
+
rsp = client.DescribeBackupDetail(model)
|
834
|
+
result = rsp.to_json_string()
|
835
|
+
try:
|
836
|
+
json_obj = json.loads(result)
|
837
|
+
except TypeError as e:
|
838
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
839
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
840
|
+
break
|
841
|
+
cur_time = time.time()
|
842
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
843
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
844
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
845
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
846
|
+
else:
|
847
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
848
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
849
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
|
+
|
851
|
+
|
800
852
|
def doUpgradeVersionToMultiAvailabilityZones(args, parsed_globals):
|
801
853
|
g_param = parse_global_arg(parsed_globals)
|
802
854
|
|
@@ -5087,6 +5139,7 @@ ACTION_MAP = {
|
|
5087
5139
|
"ModifyBackupDownloadRestriction": doModifyBackupDownloadRestriction,
|
5088
5140
|
"DescribeParamTemplates": doDescribeParamTemplates,
|
5089
5141
|
"DescribeInstanceSecurityGroup": doDescribeInstanceSecurityGroup,
|
5142
|
+
"DescribeBackupDetail": doDescribeBackupDetail,
|
5090
5143
|
"UpgradeVersionToMultiAvailabilityZones": doUpgradeVersionToMultiAvailabilityZones,
|
5091
5144
|
"ModifyInstanceParams": doModifyInstanceParams,
|
5092
5145
|
"ClearInstance": doClearInstance,
|