tccli 3.0.1188.1__py2.py3-none-any.whl → 3.0.1189.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/aiart/aiart_client.py +53 -0
- tccli/services/aiart/v20221229/api.json +107 -0
- tccli/services/aiart/v20221229/examples.json +8 -0
- tccli/services/apm/v20210622/api.json +3 -1
- tccli/services/billing/v20180709/api.json +3 -0
- tccli/services/billing/v20180709/examples.json +1 -1
- tccli/services/cfg/v20210820/api.json +19 -4
- tccli/services/ckafka/v20190819/api.json +5 -5
- tccli/services/dcdb/dcdb_client.py +106 -0
- tccli/services/dcdb/v20180411/api.json +318 -0
- tccli/services/dcdb/v20180411/examples.json +28 -0
- tccli/services/dnspod/dnspod_client.py +53 -0
- tccli/services/dnspod/v20210323/api.json +118 -0
- tccli/services/dnspod/v20210323/examples.json +8 -0
- tccli/services/emr/emr_client.py +269 -4
- tccli/services/emr/v20190103/api.json +591 -0
- tccli/services/emr/v20190103/examples.json +46 -0
- tccli/services/es/es_client.py +53 -0
- tccli/services/es/v20180416/api.json +54 -0
- tccli/services/es/v20180416/examples.json +14 -0
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +120 -0
- tccli/services/essbasic/v20210526/examples.json +8 -0
- tccli/services/mariadb/mariadb_client.py +110 -4
- tccli/services/mariadb/v20170312/api.json +318 -0
- tccli/services/mariadb/v20170312/examples.json +16 -0
- tccli/services/ocr/v20181119/api.json +12 -2
- tccli/services/redis/redis_client.py +110 -4
- tccli/services/redis/v20180412/api.json +209 -0
- tccli/services/redis/v20180412/examples.json +16 -0
- tccli/services/teo/v20220901/api.json +14 -14
- tccli/services/tsf/v20180326/api.json +74 -29
- tccli/services/vdb/v20230616/api.json +491 -0
- tccli/services/vdb/v20230616/examples.json +46 -0
- tccli/services/vdb/vdb_client.py +265 -0
- tccli/services/vpc/v20170312/api.json +4 -4
- {tccli-3.0.1188.1.dist-info → tccli-3.0.1189.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1188.1.dist-info → tccli-3.0.1189.1.dist-info}/RECORD +44 -44
- {tccli-3.0.1188.1.dist-info → tccli-3.0.1189.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1188.1.dist-info → tccli-3.0.1189.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1188.1.dist-info → tccli-3.0.1189.1.dist-info}/license_files/LICENSE +0 -0
@@ -98,6 +98,13 @@
|
|
98
98
|
"output": "DescribeAccountsResponse",
|
99
99
|
"status": "online"
|
100
100
|
},
|
101
|
+
"DescribeBackupConfigs": {
|
102
|
+
"document": "本接口(DescribeBackupConfigs)用于查询数据库备份配置信息。",
|
103
|
+
"input": "DescribeBackupConfigsRequest",
|
104
|
+
"name": "查询云数据库备份配置信息",
|
105
|
+
"output": "DescribeBackupConfigsResponse",
|
106
|
+
"status": "online"
|
107
|
+
},
|
101
108
|
"DescribeBackupFiles": {
|
102
109
|
"document": "本接口(DescribeBackupFiles)用于查看备份文件列表。",
|
103
110
|
"input": "DescribeBackupFilesRequest",
|
@@ -392,6 +399,13 @@
|
|
392
399
|
"output": "ModifyAccountPrivilegesResponse",
|
393
400
|
"status": "online"
|
394
401
|
},
|
402
|
+
"ModifyBackupConfigs": {
|
403
|
+
"document": "本接口(ModifyBackupConfigs)用于修改数据库备份配置信息。\n\n1. 修改数据库超期备份配置,目前按年、按月、按日只支持一种,存在互斥关系,如当前策略按年备份,如果传入按月备份策略将会覆盖当前的按年备份策略,务必注意。",
|
404
|
+
"input": "ModifyBackupConfigsRequest",
|
405
|
+
"name": "修改云数据库备份配置信息",
|
406
|
+
"output": "ModifyBackupConfigsResponse",
|
407
|
+
"status": "online"
|
408
|
+
},
|
395
409
|
"ModifyDBEncryptAttributes": {
|
396
410
|
"document": "本接口(ModifyDBEncryptAttributes)用于修改实例数据加密。",
|
397
411
|
"input": "ModifyDBEncryptAttributesRequest",
|
@@ -678,6 +692,72 @@
|
|
678
692
|
],
|
679
693
|
"type": "object"
|
680
694
|
},
|
695
|
+
"BackupConfig": {
|
696
|
+
"document": "数据库超期备份配置",
|
697
|
+
"members": [
|
698
|
+
{
|
699
|
+
"disabled": false,
|
700
|
+
"document": "备份策略是否启用。",
|
701
|
+
"example": "true",
|
702
|
+
"member": "bool",
|
703
|
+
"name": "EnableBackupPolicy",
|
704
|
+
"output_required": true,
|
705
|
+
"type": "bool",
|
706
|
+
"value_allowed_null": false
|
707
|
+
},
|
708
|
+
{
|
709
|
+
"disabled": false,
|
710
|
+
"document": "超期保留开始日期,早于开始日期的超期备份不保留,格式:yyyy-mm-dd。",
|
711
|
+
"example": "2023-05-30",
|
712
|
+
"member": "string",
|
713
|
+
"name": "BeginDate",
|
714
|
+
"output_required": true,
|
715
|
+
"type": "string",
|
716
|
+
"value_allowed_null": false
|
717
|
+
},
|
718
|
+
{
|
719
|
+
"disabled": false,
|
720
|
+
"document": "超期备份保留时长,超出保留时间的超期备份将被删除,可填写1-3650整数。",
|
721
|
+
"example": "180",
|
722
|
+
"member": "int64",
|
723
|
+
"name": "MaxRetentionDays",
|
724
|
+
"output_required": true,
|
725
|
+
"type": "int",
|
726
|
+
"value_allowed_null": false
|
727
|
+
},
|
728
|
+
{
|
729
|
+
"disabled": false,
|
730
|
+
"document": "备份模式,可选择按年月周模式保存\n* 按年:annually\n* 按月:monthly\n* 按周:weekly",
|
731
|
+
"example": "monthly",
|
732
|
+
"member": "string",
|
733
|
+
"name": "Frequency",
|
734
|
+
"output_required": true,
|
735
|
+
"type": "string",
|
736
|
+
"value_allowed_null": false
|
737
|
+
},
|
738
|
+
{
|
739
|
+
"disabled": false,
|
740
|
+
"document": "Frequency等于weekly时生效。\n表示保留特定工作日备份。可选择周一到周日,支持多选,取星期英文:\n* 星期一 :Monday\n* 星期二 :Tuesday\n* 星期三:Wednesday\n* 星期四:Thursday\n* 星期五:Friday\n* 星期六:Saturday\n* 星期日:Sunday",
|
741
|
+
"example": "Monday",
|
742
|
+
"member": "string",
|
743
|
+
"name": "WeekDays",
|
744
|
+
"output_required": false,
|
745
|
+
"type": "list",
|
746
|
+
"value_allowed_null": false
|
747
|
+
},
|
748
|
+
{
|
749
|
+
"disabled": false,
|
750
|
+
"document": "保留备份个数,Frequency等于monthly或weekly时生效。\n备份模式选择按月时,可填写1-28整数;\n备份模式选择年时,可填写1-336整数。",
|
751
|
+
"example": "10",
|
752
|
+
"member": "int64",
|
753
|
+
"name": "BackupCount",
|
754
|
+
"output_required": false,
|
755
|
+
"type": "int",
|
756
|
+
"value_allowed_null": false
|
757
|
+
}
|
758
|
+
],
|
759
|
+
"usage": "out"
|
760
|
+
},
|
681
761
|
"BriefNodeInfo": {
|
682
762
|
"document": "描述分片DB节点信息",
|
683
763
|
"members": [
|
@@ -3605,6 +3685,103 @@
|
|
3605
3685
|
],
|
3606
3686
|
"type": "object"
|
3607
3687
|
},
|
3688
|
+
"DescribeBackupConfigsRequest": {
|
3689
|
+
"document": "DescribeBackupConfigs请求参数结构体",
|
3690
|
+
"members": [
|
3691
|
+
{
|
3692
|
+
"disabled": false,
|
3693
|
+
"document": "实例 ID,格式如:tdsqlshard-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。",
|
3694
|
+
"example": "tdsqlshard-c1nl9rpv",
|
3695
|
+
"member": "string",
|
3696
|
+
"name": "InstanceId",
|
3697
|
+
"required": true,
|
3698
|
+
"type": "string"
|
3699
|
+
}
|
3700
|
+
],
|
3701
|
+
"type": "object"
|
3702
|
+
},
|
3703
|
+
"DescribeBackupConfigsResponse": {
|
3704
|
+
"document": "DescribeBackupConfigs返回参数结构体",
|
3705
|
+
"members": [
|
3706
|
+
{
|
3707
|
+
"disabled": false,
|
3708
|
+
"document": "实例 ID。",
|
3709
|
+
"example": "tdsqlshard-c1nl9rpv",
|
3710
|
+
"member": "string",
|
3711
|
+
"name": "InstanceId",
|
3712
|
+
"output_required": true,
|
3713
|
+
"type": "string",
|
3714
|
+
"value_allowed_null": false
|
3715
|
+
},
|
3716
|
+
{
|
3717
|
+
"disabled": false,
|
3718
|
+
"document": "常规备份存储时长,范围[1, 3650]。",
|
3719
|
+
"example": "30",
|
3720
|
+
"member": "uint64",
|
3721
|
+
"name": "Days",
|
3722
|
+
"output_required": true,
|
3723
|
+
"type": "int",
|
3724
|
+
"value_allowed_null": false
|
3725
|
+
},
|
3726
|
+
{
|
3727
|
+
"disabled": false,
|
3728
|
+
"document": "每天备份执行的区间的开始时间,格式 mm:ss,形如 22:00。",
|
3729
|
+
"example": "03:00",
|
3730
|
+
"member": "string",
|
3731
|
+
"name": "StartBackupTime",
|
3732
|
+
"output_required": true,
|
3733
|
+
"type": "string",
|
3734
|
+
"value_allowed_null": false
|
3735
|
+
},
|
3736
|
+
{
|
3737
|
+
"disabled": false,
|
3738
|
+
"document": "每天备份执行的区间的结束时间,格式 mm:ss,形如 23:59。",
|
3739
|
+
"example": "05:59",
|
3740
|
+
"member": "string",
|
3741
|
+
"name": "EndBackupTime",
|
3742
|
+
"output_required": true,
|
3743
|
+
"type": "string",
|
3744
|
+
"value_allowed_null": false
|
3745
|
+
},
|
3746
|
+
{
|
3747
|
+
"disabled": false,
|
3748
|
+
"document": "执行备份周期,枚举值:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
|
3749
|
+
"example": "[Saturday, Sunday]",
|
3750
|
+
"member": "string",
|
3751
|
+
"name": "WeekDays",
|
3752
|
+
"output_required": true,
|
3753
|
+
"type": "list",
|
3754
|
+
"value_allowed_null": false
|
3755
|
+
},
|
3756
|
+
{
|
3757
|
+
"disabled": false,
|
3758
|
+
"document": "沉降到归档存储时长,-1表示关闭归档设置。",
|
3759
|
+
"example": "91",
|
3760
|
+
"member": "int64",
|
3761
|
+
"name": "ArchiveDays",
|
3762
|
+
"output_required": true,
|
3763
|
+
"type": "int",
|
3764
|
+
"value_allowed_null": false
|
3765
|
+
},
|
3766
|
+
{
|
3767
|
+
"disabled": false,
|
3768
|
+
"document": "超期备份配置。",
|
3769
|
+
"example": "无",
|
3770
|
+
"member": "BackupConfig",
|
3771
|
+
"name": "BackupConfigSet",
|
3772
|
+
"output_required": true,
|
3773
|
+
"type": "list",
|
3774
|
+
"value_allowed_null": false
|
3775
|
+
},
|
3776
|
+
{
|
3777
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3778
|
+
"member": "string",
|
3779
|
+
"name": "RequestId",
|
3780
|
+
"type": "string"
|
3781
|
+
}
|
3782
|
+
],
|
3783
|
+
"type": "object"
|
3784
|
+
},
|
3608
3785
|
"DescribeBackupFilesRequest": {
|
3609
3786
|
"document": "DescribeBackupFiles请求参数结构体",
|
3610
3787
|
"members": [
|
@@ -7141,6 +7318,87 @@
|
|
7141
7318
|
],
|
7142
7319
|
"type": "object"
|
7143
7320
|
},
|
7321
|
+
"ModifyBackupConfigsRequest": {
|
7322
|
+
"document": "ModifyBackupConfigs请求参数结构体",
|
7323
|
+
"members": [
|
7324
|
+
{
|
7325
|
+
"disabled": false,
|
7326
|
+
"document": "实例 ID,格式如:tdsqlshard-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。",
|
7327
|
+
"example": "tdsqlshard-c1nl9rpv",
|
7328
|
+
"member": "string",
|
7329
|
+
"name": "InstanceId",
|
7330
|
+
"required": true,
|
7331
|
+
"type": "string"
|
7332
|
+
},
|
7333
|
+
{
|
7334
|
+
"disabled": false,
|
7335
|
+
"document": "常规备份存储时长,范围[1, 3650]。",
|
7336
|
+
"example": "30",
|
7337
|
+
"member": "uint64",
|
7338
|
+
"name": "Days",
|
7339
|
+
"required": false,
|
7340
|
+
"type": "int"
|
7341
|
+
},
|
7342
|
+
{
|
7343
|
+
"disabled": false,
|
7344
|
+
"document": "每天备份执行的区间的开始时间,格式 mm:ss,形如 22:00。",
|
7345
|
+
"example": "03:00",
|
7346
|
+
"member": "string",
|
7347
|
+
"name": "StartBackupTime",
|
7348
|
+
"required": false,
|
7349
|
+
"type": "string"
|
7350
|
+
},
|
7351
|
+
{
|
7352
|
+
"disabled": false,
|
7353
|
+
"document": "每天备份执行的区间的结束时间,格式 mm:ss,形如 23:59。",
|
7354
|
+
"example": "05:59",
|
7355
|
+
"member": "string",
|
7356
|
+
"name": "EndBackupTime",
|
7357
|
+
"required": false,
|
7358
|
+
"type": "string"
|
7359
|
+
},
|
7360
|
+
{
|
7361
|
+
"disabled": false,
|
7362
|
+
"document": "执行备份周期,枚举值:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
|
7363
|
+
"example": "[Saturday, Sunday]",
|
7364
|
+
"member": "string",
|
7365
|
+
"name": "WeekDays",
|
7366
|
+
"required": false,
|
7367
|
+
"type": "list"
|
7368
|
+
},
|
7369
|
+
{
|
7370
|
+
"disabled": false,
|
7371
|
+
"document": "沉降到归档存储时长,-1表示关闭归档设置。",
|
7372
|
+
"example": "91",
|
7373
|
+
"member": "int64",
|
7374
|
+
"name": "ArchiveDays",
|
7375
|
+
"required": false,
|
7376
|
+
"type": "int"
|
7377
|
+
},
|
7378
|
+
{
|
7379
|
+
"disabled": false,
|
7380
|
+
"document": "超期备份配置。",
|
7381
|
+
"example": "无",
|
7382
|
+
"member": "NewBackupConfig",
|
7383
|
+
"name": "BackupConfigSet",
|
7384
|
+
"required": false,
|
7385
|
+
"type": "list"
|
7386
|
+
}
|
7387
|
+
],
|
7388
|
+
"type": "object"
|
7389
|
+
},
|
7390
|
+
"ModifyBackupConfigsResponse": {
|
7391
|
+
"document": "ModifyBackupConfigs返回参数结构体",
|
7392
|
+
"members": [
|
7393
|
+
{
|
7394
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7395
|
+
"member": "string",
|
7396
|
+
"name": "RequestId",
|
7397
|
+
"type": "string"
|
7398
|
+
}
|
7399
|
+
],
|
7400
|
+
"type": "object"
|
7401
|
+
},
|
7144
7402
|
"ModifyDBEncryptAttributesRequest": {
|
7145
7403
|
"document": "ModifyDBEncryptAttributes请求参数结构体",
|
7146
7404
|
"members": [
|
@@ -7624,6 +7882,66 @@
|
|
7624
7882
|
],
|
7625
7883
|
"type": "object"
|
7626
7884
|
},
|
7885
|
+
"NewBackupConfig": {
|
7886
|
+
"document": "数据库超期备份配置",
|
7887
|
+
"members": [
|
7888
|
+
{
|
7889
|
+
"disabled": false,
|
7890
|
+
"document": "备份策略是否启用。",
|
7891
|
+
"example": "true",
|
7892
|
+
"member": "bool",
|
7893
|
+
"name": "EnableBackupPolicy",
|
7894
|
+
"required": true,
|
7895
|
+
"type": "bool"
|
7896
|
+
},
|
7897
|
+
{
|
7898
|
+
"disabled": false,
|
7899
|
+
"document": "超期保留开始日期,早于开始日期的超期备份不保留,格式:yyyy-mm-dd。",
|
7900
|
+
"example": "2023-05-30",
|
7901
|
+
"member": "string",
|
7902
|
+
"name": "BeginDate",
|
7903
|
+
"required": true,
|
7904
|
+
"type": "string"
|
7905
|
+
},
|
7906
|
+
{
|
7907
|
+
"disabled": false,
|
7908
|
+
"document": "超期备份保留时长,超出保留时间的超期备份将被删除,可填写1-3650整数。",
|
7909
|
+
"example": "180",
|
7910
|
+
"member": "int64",
|
7911
|
+
"name": "MaxRetentionDays",
|
7912
|
+
"required": true,
|
7913
|
+
"type": "int"
|
7914
|
+
},
|
7915
|
+
{
|
7916
|
+
"disabled": false,
|
7917
|
+
"document": "备份模式,可选择按年月周模式保存\n* 按年:annually\n* 按月:monthly\n* 按周:weekly",
|
7918
|
+
"example": "monthly",
|
7919
|
+
"member": "string",
|
7920
|
+
"name": "Frequency",
|
7921
|
+
"required": true,
|
7922
|
+
"type": "string"
|
7923
|
+
},
|
7924
|
+
{
|
7925
|
+
"disabled": false,
|
7926
|
+
"document": "Frequency等于weekly时生效。\n表示保留特定工作日备份。可选择周一到周日,支持多选,取星期英文:\n* 星期一 :Monday\n* 星期二 :Tuesday\n* 星期三:Wednesday\n* 星期四:Thursday\n* 星期五:Friday\n* 星期六:Saturday\n* 星期日:Sunday",
|
7927
|
+
"example": "Monday",
|
7928
|
+
"member": "string",
|
7929
|
+
"name": "WeekDays",
|
7930
|
+
"required": false,
|
7931
|
+
"type": "list"
|
7932
|
+
},
|
7933
|
+
{
|
7934
|
+
"disabled": false,
|
7935
|
+
"document": "保留备份个数,Frequency等于monthly或weekly时生效。\n备份模式选择按月时,可填写1-28整数;\n备份模式选择年时,可填写1-336整数。",
|
7936
|
+
"example": "10",
|
7937
|
+
"member": "int64",
|
7938
|
+
"name": "BackupCount",
|
7939
|
+
"required": false,
|
7940
|
+
"type": "int"
|
7941
|
+
}
|
7942
|
+
],
|
7943
|
+
"usage": "in"
|
7944
|
+
},
|
7627
7945
|
"NodeInfo": {
|
7628
7946
|
"document": "描述DB节点信息",
|
7629
7947
|
"members": [
|
@@ -112,6 +112,20 @@
|
|
112
112
|
"title": "无"
|
113
113
|
}
|
114
114
|
],
|
115
|
+
"DescribeBackupConfigs": [
|
116
|
+
{
|
117
|
+
"document": "获取超期备份策略",
|
118
|
+
"input": "POST / HTTP/1.1\nHost: dcdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBackupConfigs\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsqlshard-6cmpk1rd\"\n}",
|
119
|
+
"output": "{\n \"Response\": {\n \"Days\": 30,\n \"StartBackupTime\": \"03:00\",\n \"EndBackupTime\": \"05:00\",\n \"WeekDays\": [\n \"Monday\",\n \"Sunday\"\n ],\n \"ArchiveDays\": 91,\n \"BackupConfigSet\": [\n {\n \"BackupCount\": 1,\n \"BeginDate\": \"2023-06-08\",\n \"EnableBackupPolicy\": true,\n \"Frequency\": \"monthly\",\n \"MaxRetentionDays\": 365,\n \"WeekDays\": []\n }\n ],\n \"InstanceId\": \"tdsqlshard-6cmpk1rd\",\n \"RequestId\": \"827d5b16-d464-4f43-af92-06c63d25375e\"\n }\n}",
|
120
|
+
"title": "示例"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"document": "示例1",
|
124
|
+
"input": "POST / HTTP/1.1\nHost: dcdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBackupConfigs\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsqlshard-2500dqmh\"\n}",
|
125
|
+
"output": "{\n \"Response\": {\n \"Days\": 30,\n \"StartBackupTime\": \"03:00\",\n \"EndBackupTime\": \"05:00\",\n \"WeekDays\": [\n \"Monday\",\n \"Sunday\"\n ],\n \"ArchiveDays\": 91,\n \"BackupConfigSet\": [\n {\n \"BackupCount\": 0,\n \"BeginDate\": \"2023-07-20\",\n \"EnableBackupPolicy\": true,\n \"Frequency\": \"weekly\",\n \"MaxRetentionDays\": 100,\n \"WeekDays\": [\n \"Monday\",\n \"Tuesday\"\n ]\n }\n ],\n \"InstanceId\": \"tdsqlshard-2500dqmh\",\n \"RequestId\": \"c4712e5d-78f3-4899-b8f4-0b6af5a17b77\"\n }\n}",
|
126
|
+
"title": "示例1"
|
127
|
+
}
|
128
|
+
],
|
115
129
|
"DescribeBackupFiles": [
|
116
130
|
{
|
117
131
|
"document": "",
|
@@ -448,6 +462,20 @@
|
|
448
462
|
"title": "修改云数据库实例账号的权限信息"
|
449
463
|
}
|
450
464
|
],
|
465
|
+
"ModifyBackupConfigs": [
|
466
|
+
{
|
467
|
+
"document": "近一年每个月保留一个备份",
|
468
|
+
"input": "POST / HTTP/1.1\nHost: dcdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyBackupConfigs\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsqlshard-6cmpk1rd\",\n \"BackupConfigSet\": [\n {\n \"EnableBackupPolicy\": true,\n \"BeginDate\": \"2023-06-08\",\n \"MaxRetentionDays\": 365,\n \"Frequency\": \"monthly\",\n \"BackupCount\": 1\n }\n ]\n}",
|
469
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a0495e38-cd59-420c-8f09-893207d28955\"\n }\n}",
|
470
|
+
"title": "示例"
|
471
|
+
},
|
472
|
+
{
|
473
|
+
"document": "按周保留备份",
|
474
|
+
"input": "POST / HTTP/1.1\nHost: dcdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyBackupConfigs\n<公共请求参数>\n\n{\n \"InstanceId\": \"tdsqlshard-2500dqmh\",\n \"BackupConfigSet\": [\n {\n \"EnableBackupPolicy\": true,\n \"BeginDate\": \"2023-07-20\",\n \"MaxRetentionDays\": 100,\n \"Frequency\": \"weekly\",\n \"WeekDays\": [\n \"Monday\",\n \"Tuesday\"\n ]\n }\n ]\n}",
|
475
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"45b034f3-1ace-45c7-b49e-1fca45f89d9e\"\n }\n}",
|
476
|
+
"title": "示例1"
|
477
|
+
}
|
478
|
+
],
|
451
479
|
"ModifyDBEncryptAttributes": [
|
452
480
|
{
|
453
481
|
"document": "用户开启实例的透明加密",
|
@@ -2617,6 +2617,58 @@ def doDescribeRecord(args, parsed_globals):
|
|
2617
2617
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2618
2618
|
|
2619
2619
|
|
2620
|
+
def doDescribeDomainShareUserList(args, parsed_globals):
|
2621
|
+
g_param = parse_global_arg(parsed_globals)
|
2622
|
+
|
2623
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2624
|
+
cred = credential.CVMRoleCredential()
|
2625
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2626
|
+
cred = credential.STSAssumeRoleCredential(
|
2627
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2628
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2629
|
+
)
|
2630
|
+
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):
|
2631
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2632
|
+
else:
|
2633
|
+
cred = credential.Credential(
|
2634
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2635
|
+
)
|
2636
|
+
http_profile = HttpProfile(
|
2637
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2638
|
+
reqMethod="POST",
|
2639
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2640
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2641
|
+
)
|
2642
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2643
|
+
if g_param[OptionsDefine.Language]:
|
2644
|
+
profile.language = g_param[OptionsDefine.Language]
|
2645
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2646
|
+
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
2647
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2648
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2649
|
+
model = models.DescribeDomainShareUserListRequest()
|
2650
|
+
model.from_json_string(json.dumps(args))
|
2651
|
+
start_time = time.time()
|
2652
|
+
while True:
|
2653
|
+
rsp = client.DescribeDomainShareUserList(model)
|
2654
|
+
result = rsp.to_json_string()
|
2655
|
+
try:
|
2656
|
+
json_obj = json.loads(result)
|
2657
|
+
except TypeError as e:
|
2658
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2659
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2660
|
+
break
|
2661
|
+
cur_time = time.time()
|
2662
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2663
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2664
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2665
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2666
|
+
else:
|
2667
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2668
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2669
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2670
|
+
|
2671
|
+
|
2620
2672
|
def doModifyDomainRemark(args, parsed_globals):
|
2621
2673
|
g_param = parse_global_arg(parsed_globals)
|
2622
2674
|
|
@@ -3926,6 +3978,7 @@ ACTION_MAP = {
|
|
3926
3978
|
"ModifyRecord": doModifyRecord,
|
3927
3979
|
"DescribeDomain": doDescribeDomain,
|
3928
3980
|
"DescribeRecord": doDescribeRecord,
|
3981
|
+
"DescribeDomainShareUserList": doDescribeDomainShareUserList,
|
3929
3982
|
"ModifyDomainRemark": doModifyDomainRemark,
|
3930
3983
|
"DescribeRecordExistExceptDefaultNS": doDescribeRecordExistExceptDefaultNS,
|
3931
3984
|
"ModifyDomainOwner": doModifyDomainOwner,
|
@@ -231,6 +231,13 @@
|
|
231
231
|
"output": "DescribeDomainShareInfoResponse",
|
232
232
|
"status": "online"
|
233
233
|
},
|
234
|
+
"DescribeDomainShareUserList": {
|
235
|
+
"document": "获取指定域名的已共享列表",
|
236
|
+
"input": "DescribeDomainShareUserListRequest",
|
237
|
+
"name": "获取指定域名的已共享列表",
|
238
|
+
"output": "DescribeDomainShareUserListResponse",
|
239
|
+
"status": "online"
|
240
|
+
},
|
234
241
|
"DescribeDomainWhois": {
|
235
242
|
"document": "获取域名Whois信息",
|
236
243
|
"input": "DescribeDomainWhoisRequest",
|
@@ -3531,6 +3538,51 @@
|
|
3531
3538
|
],
|
3532
3539
|
"type": "object"
|
3533
3540
|
},
|
3541
|
+
"DescribeDomainShareUserListRequest": {
|
3542
|
+
"document": "DescribeDomainShareUserList请求参数结构体",
|
3543
|
+
"members": [
|
3544
|
+
{
|
3545
|
+
"disabled": false,
|
3546
|
+
"document": "域名",
|
3547
|
+
"example": "dnspod.cn",
|
3548
|
+
"member": "string",
|
3549
|
+
"name": "Domain",
|
3550
|
+
"required": true,
|
3551
|
+
"type": "string"
|
3552
|
+
},
|
3553
|
+
{
|
3554
|
+
"disabled": false,
|
3555
|
+
"document": "域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId",
|
3556
|
+
"example": "61",
|
3557
|
+
"member": "uint64",
|
3558
|
+
"name": "DomainId",
|
3559
|
+
"required": false,
|
3560
|
+
"type": "int"
|
3561
|
+
}
|
3562
|
+
],
|
3563
|
+
"type": "object"
|
3564
|
+
},
|
3565
|
+
"DescribeDomainShareUserListResponse": {
|
3566
|
+
"document": "DescribeDomainShareUserList返回参数结构体",
|
3567
|
+
"members": [
|
3568
|
+
{
|
3569
|
+
"disabled": false,
|
3570
|
+
"document": "域名套餐信息",
|
3571
|
+
"example": "无",
|
3572
|
+
"member": "DomainShareUserInfo",
|
3573
|
+
"name": "DomainShareList",
|
3574
|
+
"type": "list",
|
3575
|
+
"value_allowed_null": false
|
3576
|
+
},
|
3577
|
+
{
|
3578
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3579
|
+
"member": "string",
|
3580
|
+
"name": "RequestId",
|
3581
|
+
"type": "string"
|
3582
|
+
}
|
3583
|
+
],
|
3584
|
+
"type": "object"
|
3585
|
+
},
|
3534
3586
|
"DescribeDomainWhoisRequest": {
|
3535
3587
|
"document": "DescribeDomainWhois请求参数结构体",
|
3536
3588
|
"members": [
|
@@ -5873,6 +5925,72 @@
|
|
5873
5925
|
],
|
5874
5926
|
"usage": "out"
|
5875
5927
|
},
|
5928
|
+
"DomainShareUserInfo": {
|
5929
|
+
"document": "域名共享信息",
|
5930
|
+
"members": [
|
5931
|
+
{
|
5932
|
+
"disabled": false,
|
5933
|
+
"document": "共享记录ID",
|
5934
|
+
"example": "21253",
|
5935
|
+
"member": "uint64",
|
5936
|
+
"name": "DomainShareId",
|
5937
|
+
"required": false,
|
5938
|
+
"type": "int",
|
5939
|
+
"value_allowed_null": false
|
5940
|
+
},
|
5941
|
+
{
|
5942
|
+
"disabled": false,
|
5943
|
+
"document": "共享模式。r-只读;w-可写;rw-可读写。\n注意:此字段可能返回 null,表示取不到有效值。",
|
5944
|
+
"example": "rw",
|
5945
|
+
"member": "string",
|
5946
|
+
"name": "Mode",
|
5947
|
+
"required": false,
|
5948
|
+
"type": "string",
|
5949
|
+
"value_allowed_null": true
|
5950
|
+
},
|
5951
|
+
{
|
5952
|
+
"disabled": false,
|
5953
|
+
"document": "共享到的用户昵称\n注意:此字段可能返回 null,表示取不到有效值。",
|
5954
|
+
"example": "张三",
|
5955
|
+
"member": "string",
|
5956
|
+
"name": "Nickname",
|
5957
|
+
"required": false,
|
5958
|
+
"type": "string",
|
5959
|
+
"value_allowed_null": true
|
5960
|
+
},
|
5961
|
+
{
|
5962
|
+
"disabled": false,
|
5963
|
+
"document": "共享到的用户UIN\n注意:此字段可能返回 null,表示取不到有效值。",
|
5964
|
+
"example": "700000283316",
|
5965
|
+
"member": "string",
|
5966
|
+
"name": "QCloudUIN",
|
5967
|
+
"required": false,
|
5968
|
+
"type": "string",
|
5969
|
+
"value_allowed_null": true
|
5970
|
+
},
|
5971
|
+
{
|
5972
|
+
"disabled": false,
|
5973
|
+
"document": "共享状态。enabled-有效;pause-无效。\n注意:此字段可能返回 null,表示取不到有效值。",
|
5974
|
+
"example": "enabled",
|
5975
|
+
"member": "string",
|
5976
|
+
"name": "Status",
|
5977
|
+
"required": false,
|
5978
|
+
"type": "string",
|
5979
|
+
"value_allowed_null": true
|
5980
|
+
},
|
5981
|
+
{
|
5982
|
+
"disabled": false,
|
5983
|
+
"document": "共享的子域名\n注意:此字段可能返回 null,表示取不到有效值。",
|
5984
|
+
"example": "api",
|
5985
|
+
"member": "string",
|
5986
|
+
"name": "SubDomain",
|
5987
|
+
"required": false,
|
5988
|
+
"type": "string",
|
5989
|
+
"value_allowed_null": true
|
5990
|
+
}
|
5991
|
+
],
|
5992
|
+
"usage": "out"
|
5993
|
+
},
|
5876
5994
|
"DownloadSnapshotRequest": {
|
5877
5995
|
"document": "DownloadSnapshot请求参数结构体",
|
5878
5996
|
"members": [
|
@@ -276,6 +276,14 @@
|
|
276
276
|
"title": "获取域名共享信息"
|
277
277
|
}
|
278
278
|
],
|
279
|
+
"DescribeDomainShareUserList": [
|
280
|
+
{
|
281
|
+
"document": "获取指定域名的已共享列表",
|
282
|
+
"input": "POST / HTTP/1.1\nHost: dnspod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDomainShareUserList\n<公共请求参数>\n\n{\n \"Domain\": \"example.com\"\n}",
|
283
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"1dbb40a1-8834-43e2-bae0-c5e2d0823944\",\n \"DomainShareList\": [\n {\n \"DomainShareId\": 21253,\n \"Mode\": \"rw\",\n \"Nickname\": \"我的测试环境企业\",\n \"QCloudUIN\": \"700000283316\",\n \"Status\": \"enabled\",\n \"SubDomain\": \"\"\n }\n ]\n }\n}",
|
284
|
+
"title": "获取指定域名的已共享列表"
|
285
|
+
}
|
286
|
+
],
|
279
287
|
"DescribeDomainWhois": [
|
280
288
|
{
|
281
289
|
"document": "获取域名Whois信息",
|