tccli 3.0.1048.1__py2.py3-none-any.whl → 3.0.1050.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/examples/antiddos/v20200309/DescribeBGPIPL7Rules.md +87 -0
- tccli/examples/ckafka/v20190819/DescribeGroup.md +6 -5
- tccli/examples/csip/v20221121/ModifyOrganizationAccountStatus.md +21 -0
- tccli/examples/csip/v20221121/ModifyRiskCenterScanTask.md +41 -0
- tccli/examples/cynosdb/v20190107/AddInstances.md +2 -2
- tccli/examples/cynosdb/v20190107/DescribeClusterInstanceGrps.md +235 -79
- tccli/examples/cynosdb/v20190107/DescribeClusterParams.md +3 -1
- tccli/examples/cynosdb/v20190107/DescribeClusterPasswordComplexity.md +18 -6
- tccli/examples/cynosdb/v20190107/DescribeInstances.md +63 -55
- tccli/examples/cynosdb/v20190107/DescribeParamTemplateDetail.md +3 -1
- tccli/examples/cynosdb/v20190107/ModifyVipVport.md +3 -3
- tccli/examples/essbasic/v20210526/ChannelCreatePrepareFlow.md +2 -2
- tccli/examples/hunyuan/v20230901/ChatPro.md +76 -0
- tccli/examples/hunyuan/v20230901/ChatStd.md +37 -0
- tccli/examples/live/v20180801/DescribeLiveTranscodeTemplates.md +8 -8
- tccli/examples/oceanus/v20190422/CopyJobs.md +11 -20
- tccli/examples/redis/v20180412/CreateInstanceAccount.md +7 -6
- tccli/examples/teo/v20220901/DescribeDefaultCertificates.md +2 -1
- tccli/examples/tke/v20180525/ForwardApplicationRequestV3.md +2 -2
- tccli/examples/trocket/v20230308/CreateMQTTInsPublicEndpoint.md +26 -0
- tccli/examples/trocket/v20230308/CreateMQTTInstance.md +31 -0
- tccli/examples/trocket/v20230308/CreateMQTTTopic.md +25 -0
- tccli/examples/trocket/v20230308/CreateMQTTUser.md +27 -0
- tccli/examples/trocket/v20230308/DeleteMQTTInsPublicEndpoint.md +22 -0
- tccli/examples/trocket/v20230308/DeleteMQTTInstance.md +22 -0
- tccli/examples/trocket/v20230308/DeleteMQTTTopic.md +23 -0
- tccli/examples/trocket/v20230308/DeleteMQTTUser.md +23 -0
- tccli/examples/trocket/v20230308/DescribeMQTTClient.md +82 -0
- tccli/examples/trocket/v20230308/DescribeMQTTInsPublicEndpoints.md +26 -0
- tccli/examples/trocket/v20230308/DescribeMQTTInsVPCEndpoints.md +40 -0
- tccli/examples/trocket/v20230308/DescribeMQTTInstance.md +34 -0
- tccli/examples/trocket/v20230308/DescribeMQTTInstanceCert.md +25 -0
- tccli/examples/trocket/v20230308/DescribeMQTTInstanceList.md +176 -0
- tccli/examples/trocket/v20230308/DescribeMQTTMessage.md +83 -0
- tccli/examples/trocket/v20230308/DescribeMQTTMessageList.md +54 -0
- tccli/examples/trocket/v20230308/DescribeMQTTProductSKUList.md +94 -0
- tccli/examples/trocket/v20230308/DescribeMQTTTopic.md +27 -0
- tccli/examples/trocket/v20230308/DescribeMQTTTopicList.md +127 -0
- tccli/examples/trocket/v20230308/DescribeMQTTUserList.md +36 -0
- tccli/examples/trocket/v20230308/ModifyMQTTInsPublicEndpoint.md +26 -0
- tccli/examples/trocket/v20230308/ModifyMQTTInstance.md +24 -0
- tccli/examples/trocket/v20230308/ModifyMQTTInstanceCertBinding.md +24 -0
- tccli/examples/trocket/v20230308/ModifyMQTTTopic.md +24 -0
- tccli/examples/trocket/v20230308/ModifyMQTTUser.md +26 -0
- tccli/examples/wedata/v20210820/DeleteProjectUsers.md +36 -0
- tccli/services/antiddos/antiddos_client.py +53 -0
- tccli/services/antiddos/v20200309/api.json +439 -0
- tccli/services/antiddos/v20200309/examples.json +8 -0
- tccli/services/cfg/v20210820/api.json +21 -10
- tccli/services/ckafka/v20190819/api.json +6 -5
- tccli/services/ckafka/v20190819/examples.json +1 -1
- tccli/services/cls/v20201016/api.json +48 -19
- tccli/services/csip/csip_client.py +106 -0
- tccli/services/csip/v20221121/api.json +188 -0
- tccli/services/csip/v20221121/examples.json +16 -0
- tccli/services/cynosdb/v20190107/api.json +415 -87
- tccli/services/cynosdb/v20190107/examples.json +12 -12
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/hunyuan/v20230901/api.json +2 -2
- tccli/services/hunyuan/v20230901/examples.json +18 -0
- tccli/services/live/v20180801/api.json +13 -3
- tccli/services/live/v20180801/examples.json +1 -1
- tccli/services/oceanus/v20190422/api.json +32 -3
- tccli/services/oceanus/v20190422/examples.json +1 -1
- tccli/services/privatedns/v20201028/api.json +29 -19
- tccli/services/redis/v20180412/api.json +13 -10
- tccli/services/redis/v20180412/examples.json +2 -2
- tccli/services/ssl/ssl_client.py +0 -53
- tccli/services/ssl/v20191205/api.json +0 -99
- tccli/services/ssl/v20191205/examples.json +0 -8
- tccli/services/teo/v20220901/api.json +14 -3
- tccli/services/teo/v20220901/examples.json +1 -1
- tccli/services/tke/v20180525/api.json +26 -22
- tccli/services/tke/v20180525/examples.json +1 -1
- tccli/services/trocket/trocket_client.py +1377 -52
- tccli/services/trocket/v20230308/api.json +2946 -502
- tccli/services/trocket/v20230308/examples.json +212 -0
- tccli/services/ump/v20200918/api.json +2 -2
- tccli/services/wedata/v20210820/api.json +24 -0
- tccli/services/wedata/v20210820/examples.json +14 -0
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1048.1.dist-info → tccli-3.0.1050.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1048.1.dist-info → tccli-3.0.1050.1.dist-info}/RECORD +88 -59
- {tccli-3.0.1048.1.dist-info → tccli-3.0.1050.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1048.1.dist-info → tccli-3.0.1050.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1048.1.dist-info → tccli-3.0.1050.1.dist-info}/license_files/LICENSE +0 -0
@@ -1981,7 +1981,7 @@
|
|
1981
1981
|
"example": "1782",
|
1982
1982
|
"member": "string",
|
1983
1983
|
"name": "ZoneId",
|
1984
|
-
"
|
1984
|
+
"output_required": true,
|
1985
1985
|
"type": "string",
|
1986
1986
|
"value_allowed_null": false
|
1987
1987
|
},
|
@@ -1991,7 +1991,7 @@
|
|
1991
1991
|
"example": "444353877",
|
1992
1992
|
"member": "int64",
|
1993
1993
|
"name": "OwnerUin",
|
1994
|
-
"
|
1994
|
+
"output_required": true,
|
1995
1995
|
"type": "int",
|
1996
1996
|
"value_allowed_null": false
|
1997
1997
|
},
|
@@ -2001,7 +2001,7 @@
|
|
2001
2001
|
"example": "test.com",
|
2002
2002
|
"member": "string",
|
2003
2003
|
"name": "Domain",
|
2004
|
-
"
|
2004
|
+
"output_required": true,
|
2005
2005
|
"type": "string",
|
2006
2006
|
"value_allowed_null": false
|
2007
2007
|
},
|
@@ -2011,7 +2011,7 @@
|
|
2011
2011
|
"example": "2020-12-26 18:51:20",
|
2012
2012
|
"member": "datetime",
|
2013
2013
|
"name": "CreatedOn",
|
2014
|
-
"
|
2014
|
+
"output_required": true,
|
2015
2015
|
"type": "string",
|
2016
2016
|
"value_allowed_null": false
|
2017
2017
|
},
|
@@ -2021,7 +2021,7 @@
|
|
2021
2021
|
"example": "2020-12-26 18:51:20",
|
2022
2022
|
"member": "datetime",
|
2023
2023
|
"name": "UpdatedOn",
|
2024
|
-
"
|
2024
|
+
"output_required": true,
|
2025
2025
|
"type": "string",
|
2026
2026
|
"value_allowed_null": false
|
2027
2027
|
},
|
@@ -2031,7 +2031,7 @@
|
|
2031
2031
|
"example": "0",
|
2032
2032
|
"member": "int64",
|
2033
2033
|
"name": "RecordCount",
|
2034
|
-
"
|
2034
|
+
"output_required": true,
|
2035
2035
|
"type": "int",
|
2036
2036
|
"value_allowed_null": false
|
2037
2037
|
},
|
@@ -2041,7 +2041,7 @@
|
|
2041
2041
|
"example": "备注",
|
2042
2042
|
"member": "string",
|
2043
2043
|
"name": "Remark",
|
2044
|
-
"
|
2044
|
+
"output_required": true,
|
2045
2045
|
"type": "string",
|
2046
2046
|
"value_allowed_null": true
|
2047
2047
|
},
|
@@ -2051,17 +2051,17 @@
|
|
2051
2051
|
"example": "[]",
|
2052
2052
|
"member": "VpcInfo",
|
2053
2053
|
"name": "VpcSet",
|
2054
|
-
"
|
2054
|
+
"output_required": true,
|
2055
2055
|
"type": "list",
|
2056
2056
|
"value_allowed_null": false
|
2057
2057
|
},
|
2058
2058
|
{
|
2059
2059
|
"disabled": false,
|
2060
|
-
"document": "
|
2060
|
+
"document": "私有域绑定VPC状态,未关联vpc:SUSPEND,已关联VPC:ENABLED\n,关联VPC失败:FAILED",
|
2061
2061
|
"example": "ENABLED",
|
2062
2062
|
"member": "string",
|
2063
2063
|
"name": "Status",
|
2064
|
-
"
|
2064
|
+
"output_required": true,
|
2065
2065
|
"type": "string",
|
2066
2066
|
"value_allowed_null": false
|
2067
2067
|
},
|
@@ -2071,7 +2071,7 @@
|
|
2071
2071
|
"example": "DISABLED",
|
2072
2072
|
"member": "string",
|
2073
2073
|
"name": "DnsForwardStatus",
|
2074
|
-
"
|
2074
|
+
"output_required": true,
|
2075
2075
|
"type": "string",
|
2076
2076
|
"value_allowed_null": false
|
2077
2077
|
},
|
@@ -2081,7 +2081,7 @@
|
|
2081
2081
|
"example": "[{TagKey: \"testtag\", TagValue: \"testtag\"}]",
|
2082
2082
|
"member": "TagInfo",
|
2083
2083
|
"name": "Tags",
|
2084
|
-
"
|
2084
|
+
"output_required": true,
|
2085
2085
|
"type": "list",
|
2086
2086
|
"value_allowed_null": false
|
2087
2087
|
},
|
@@ -2091,7 +2091,7 @@
|
|
2091
2091
|
"example": "无",
|
2092
2092
|
"member": "AccountVpcInfoOutput",
|
2093
2093
|
"name": "AccountVpcSet",
|
2094
|
-
"
|
2094
|
+
"output_required": true,
|
2095
2095
|
"type": "list",
|
2096
2096
|
"value_allowed_null": true
|
2097
2097
|
},
|
@@ -2101,7 +2101,7 @@
|
|
2101
2101
|
"example": "false",
|
2102
2102
|
"member": "bool",
|
2103
2103
|
"name": "IsCustomTld",
|
2104
|
-
"
|
2104
|
+
"output_required": true,
|
2105
2105
|
"type": "bool",
|
2106
2106
|
"value_allowed_null": true
|
2107
2107
|
},
|
@@ -2111,7 +2111,7 @@
|
|
2111
2111
|
"example": "DISABLED",
|
2112
2112
|
"member": "string",
|
2113
2113
|
"name": "CnameSpeedupStatus",
|
2114
|
-
"
|
2114
|
+
"output_required": true,
|
2115
2115
|
"type": "string",
|
2116
2116
|
"value_allowed_null": false
|
2117
2117
|
},
|
@@ -2121,7 +2121,7 @@
|
|
2121
2121
|
"example": "转发规则名",
|
2122
2122
|
"member": "string",
|
2123
2123
|
"name": "ForwardRuleName",
|
2124
|
-
"
|
2124
|
+
"output_required": true,
|
2125
2125
|
"type": "string",
|
2126
2126
|
"value_allowed_null": true
|
2127
2127
|
},
|
@@ -2131,7 +2131,7 @@
|
|
2131
2131
|
"example": "DOWN",
|
2132
2132
|
"member": "string",
|
2133
2133
|
"name": "ForwardRuleType",
|
2134
|
-
"
|
2134
|
+
"output_required": true,
|
2135
2135
|
"type": "string",
|
2136
2136
|
"value_allowed_null": true
|
2137
2137
|
},
|
@@ -2141,7 +2141,7 @@
|
|
2141
2141
|
"example": "10.0.23.41:53,10.0.23.42:53,",
|
2142
2142
|
"member": "string",
|
2143
2143
|
"name": "ForwardAddress",
|
2144
|
-
"
|
2144
|
+
"output_required": true,
|
2145
2145
|
"type": "string",
|
2146
2146
|
"value_allowed_null": true
|
2147
2147
|
},
|
@@ -2151,9 +2151,19 @@
|
|
2151
2151
|
"example": "终端节点名",
|
2152
2152
|
"member": "string",
|
2153
2153
|
"name": "EndPointName",
|
2154
|
-
"
|
2154
|
+
"output_required": true,
|
2155
2155
|
"type": "string",
|
2156
2156
|
"value_allowed_null": true
|
2157
|
+
},
|
2158
|
+
{
|
2159
|
+
"disabled": false,
|
2160
|
+
"document": "已删除的vpc\n注意:此字段可能返回 null,表示取不到有效值。",
|
2161
|
+
"example": "[]",
|
2162
|
+
"member": "VpcInfo",
|
2163
|
+
"name": "DeletedVpcSet",
|
2164
|
+
"output_required": false,
|
2165
|
+
"type": "list",
|
2166
|
+
"value_allowed_null": true
|
2157
2167
|
}
|
2158
2168
|
],
|
2159
2169
|
"usage": "out"
|
@@ -78,7 +78,7 @@
|
|
78
78
|
"status": "online"
|
79
79
|
},
|
80
80
|
"CreateInstanceAccount": {
|
81
|
-
"document": "
|
81
|
+
"document": "该接口(CreateInstanceAccount)用于自定义访问实例的账号。",
|
82
82
|
"input": "CreateInstanceAccountRequest",
|
83
83
|
"name": "创建实例子账号",
|
84
84
|
"output": "CreateInstanceAccountResponse",
|
@@ -1619,7 +1619,7 @@
|
|
1619
1619
|
"members": [
|
1620
1620
|
{
|
1621
1621
|
"disabled": false,
|
1622
|
-
"document": "实例ID",
|
1622
|
+
"document": "实例 ID。",
|
1623
1623
|
"example": "crs-5a4py64p",
|
1624
1624
|
"member": "string",
|
1625
1625
|
"name": "InstanceId",
|
@@ -1628,7 +1628,7 @@
|
|
1628
1628
|
},
|
1629
1629
|
{
|
1630
1630
|
"disabled": false,
|
1631
|
-
"document": "
|
1631
|
+
"document": "自定义访问数据库的名称。\n- 仅由字母、数字、下划线、中划线组成。\n- 长度不能大于32位。",
|
1632
1632
|
"example": "test",
|
1633
1633
|
"member": "string",
|
1634
1634
|
"name": "AccountName",
|
@@ -1637,7 +1637,7 @@
|
|
1637
1637
|
},
|
1638
1638
|
{
|
1639
1639
|
"disabled": false,
|
1640
|
-
"document": "
|
1640
|
+
"document": "设置自定义账号的密码。密码复杂度要求如下:\n- 字符个数为[8,32]。\n- 至少包含小写字母、大写字母、数字和字符 ()`~!@#$%^&*-+=_|{}[]:;<>,.?/ 中的两种。\n- 不能以\"/\"开头。\n",
|
1641
1641
|
"example": "1234567aA",
|
1642
1642
|
"member": "string",
|
1643
1643
|
"name": "AccountPassword",
|
@@ -1646,7 +1646,7 @@
|
|
1646
1646
|
},
|
1647
1647
|
{
|
1648
1648
|
"disabled": false,
|
1649
|
-
"document": "
|
1649
|
+
"document": "指定账号的读请求路由分发至主节点或副本节点。未开启副本只读,不支持选择副本节点。\n- master:主节点\n- replication:副本节点",
|
1650
1650
|
"example": "[\"master\"]",
|
1651
1651
|
"member": "string",
|
1652
1652
|
"name": "ReadonlyPolicy",
|
@@ -1655,7 +1655,7 @@
|
|
1655
1655
|
},
|
1656
1656
|
{
|
1657
1657
|
"disabled": false,
|
1658
|
-
"document": "
|
1658
|
+
"document": "账户读写权限,支持选择只读与读写权限。\n- r:只读\n- rw: 读写权限",
|
1659
1659
|
"example": "rw",
|
1660
1660
|
"member": "string",
|
1661
1661
|
"name": "Privilege",
|
@@ -1664,7 +1664,7 @@
|
|
1664
1664
|
},
|
1665
1665
|
{
|
1666
1666
|
"disabled": false,
|
1667
|
-
"document": "
|
1667
|
+
"document": "子账号描述信息,长度[0,64] 字节,支持中文。",
|
1668
1668
|
"example": "\"\"",
|
1669
1669
|
"member": "string",
|
1670
1670
|
"name": "Remark",
|
@@ -1683,7 +1683,7 @@
|
|
1683
1683
|
"example": "123456",
|
1684
1684
|
"member": "int64",
|
1685
1685
|
"name": "TaskId",
|
1686
|
-
"
|
1686
|
+
"output_required": true,
|
1687
1687
|
"type": "int",
|
1688
1688
|
"value_allowed_null": false
|
1689
1689
|
},
|
@@ -2731,7 +2731,7 @@
|
|
2731
2731
|
{
|
2732
2732
|
"disabled": false,
|
2733
2733
|
"document": "数据库引擎名称,本接口取值:redis。",
|
2734
|
-
"example": "
|
2734
|
+
"example": "redis",
|
2735
2735
|
"member": "string",
|
2736
2736
|
"name": "Product",
|
2737
2737
|
"required": true,
|
@@ -2740,7 +2740,7 @@
|
|
2740
2740
|
{
|
2741
2741
|
"disabled": false,
|
2742
2742
|
"document": "指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。\n",
|
2743
|
-
"example": "
|
2743
|
+
"example": "crs-eb2w7dto",
|
2744
2744
|
"member": "string",
|
2745
2745
|
"name": "InstanceId",
|
2746
2746
|
"required": true,
|
@@ -2758,6 +2758,7 @@
|
|
2758
2758
|
"example": "无",
|
2759
2759
|
"member": "SecurityGroup",
|
2760
2760
|
"name": "Groups",
|
2761
|
+
"output_required": true,
|
2761
2762
|
"type": "list",
|
2762
2763
|
"value_allowed_null": false
|
2763
2764
|
},
|
@@ -2767,6 +2768,7 @@
|
|
2767
2768
|
"example": "10.10.0.1",
|
2768
2769
|
"member": "string",
|
2769
2770
|
"name": "VIP",
|
2771
|
+
"output_required": true,
|
2770
2772
|
"type": "string",
|
2771
2773
|
"value_allowed_null": false
|
2772
2774
|
},
|
@@ -2776,6 +2778,7 @@
|
|
2776
2778
|
"example": "6379",
|
2777
2779
|
"member": "string",
|
2778
2780
|
"name": "VPort",
|
2781
|
+
"output_required": true,
|
2779
2782
|
"type": "string",
|
2780
2783
|
"value_allowed_null": false
|
2781
2784
|
},
|
@@ -91,8 +91,8 @@
|
|
91
91
|
"CreateInstanceAccount": [
|
92
92
|
{
|
93
93
|
"document": "",
|
94
|
-
"input": "https://redis.tencentcloudapi.com/?Action=CreateInstanceAccount\n&InstanceId=crs-
|
95
|
-
"output": "{\n \"Response\": {\n \"TaskId\":
|
94
|
+
"input": "https://redis.tencentcloudapi.com/?Action=CreateInstanceAccount\n&InstanceId=crs-evst****\n&AccountName=redis_dev\n&AccountPassword=c1evuh****\n&ReadonlyPolicy.0=master\n&Privilege=rw\n&Remark=\"开发账号\"\n&<公共请求参数>",
|
95
|
+
"output": "{\n \"Response\": {\n \"TaskId\": 114805324,\n \"RequestId\": \"2cd067fd-71db-4d8f-b0ac-4e83********\"\n }\n}",
|
96
96
|
"title": "请求示例"
|
97
97
|
}
|
98
98
|
],
|
tccli/services/ssl/ssl_client.py
CHANGED
@@ -1681,58 +1681,6 @@ def doDeployCertificateRecordRollback(args, parsed_globals):
|
|
1681
1681
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1682
1682
|
|
1683
1683
|
|
1684
|
-
def doHostCertificate(args, parsed_globals):
|
1685
|
-
g_param = parse_global_arg(parsed_globals)
|
1686
|
-
|
1687
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1688
|
-
cred = credential.CVMRoleCredential()
|
1689
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1690
|
-
cred = credential.STSAssumeRoleCredential(
|
1691
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1692
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1693
|
-
)
|
1694
|
-
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):
|
1695
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1696
|
-
else:
|
1697
|
-
cred = credential.Credential(
|
1698
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1699
|
-
)
|
1700
|
-
http_profile = HttpProfile(
|
1701
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1702
|
-
reqMethod="POST",
|
1703
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
1704
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1705
|
-
)
|
1706
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1707
|
-
if g_param[OptionsDefine.Language]:
|
1708
|
-
profile.language = g_param[OptionsDefine.Language]
|
1709
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1710
|
-
client = mod.SslClient(cred, g_param[OptionsDefine.Region], profile)
|
1711
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
1712
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1713
|
-
model = models.HostCertificateRequest()
|
1714
|
-
model.from_json_string(json.dumps(args))
|
1715
|
-
start_time = time.time()
|
1716
|
-
while True:
|
1717
|
-
rsp = client.HostCertificate(model)
|
1718
|
-
result = rsp.to_json_string()
|
1719
|
-
try:
|
1720
|
-
json_obj = json.loads(result)
|
1721
|
-
except TypeError as e:
|
1722
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1723
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1724
|
-
break
|
1725
|
-
cur_time = time.time()
|
1726
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1727
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1728
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1729
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1730
|
-
else:
|
1731
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1732
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1733
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1734
|
-
|
1735
|
-
|
1736
1684
|
def doDeployCertificateRecordRetry(args, parsed_globals):
|
1737
1685
|
g_param = parse_global_arg(parsed_globals)
|
1738
1686
|
|
@@ -3024,7 +2972,6 @@ ACTION_MAP = {
|
|
3024
2972
|
"DescribeManagerDetail": doDescribeManagerDetail,
|
3025
2973
|
"DescribeHostDeployRecordDetail": doDescribeHostDeployRecordDetail,
|
3026
2974
|
"DeployCertificateRecordRollback": doDeployCertificateRecordRollback,
|
3027
|
-
"HostCertificate": doHostCertificate,
|
3028
2975
|
"DeployCertificateRecordRetry": doDeployCertificateRecordRetry,
|
3029
2976
|
"DescribeCertificateBindResourceTaskResult": doDescribeCertificateBindResourceTaskResult,
|
3030
2977
|
"CancelAuditCertificate": doCancelAuditCertificate,
|
@@ -287,13 +287,6 @@
|
|
287
287
|
"output": "DownloadCertificateResponse",
|
288
288
|
"status": "online"
|
289
289
|
},
|
290
|
-
"HostCertificate": {
|
291
|
-
"document": "证书托管接口已重构, 旧接口预下线, 近30天无请求\n\n云资源托管",
|
292
|
-
"input": "HostCertificateRequest",
|
293
|
-
"name": "云资源托管",
|
294
|
-
"output": "HostCertificateResponse",
|
295
|
-
"status": "deprecated"
|
296
|
-
},
|
297
290
|
"ModifyCertificateAlias": {
|
298
291
|
"document": "用户传入证书id和备注来修改证书备注。",
|
299
292
|
"input": "ModifyCertificateAliasRequest",
|
@@ -850,52 +843,6 @@
|
|
850
843
|
],
|
851
844
|
"usage": "out"
|
852
845
|
},
|
853
|
-
"CertHostingInfo": {
|
854
|
-
"document": "云资源配置详情",
|
855
|
-
"members": [
|
856
|
-
{
|
857
|
-
"disabled": false,
|
858
|
-
"document": "证书ID",
|
859
|
-
"example": "无",
|
860
|
-
"member": "string",
|
861
|
-
"name": "CertId",
|
862
|
-
"required": true,
|
863
|
-
"type": "string",
|
864
|
-
"value_allowed_null": false
|
865
|
-
},
|
866
|
-
{
|
867
|
-
"disabled": false,
|
868
|
-
"document": "已替换的新证书ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
869
|
-
"example": "无",
|
870
|
-
"member": "string",
|
871
|
-
"name": "RenewCertId",
|
872
|
-
"required": true,
|
873
|
-
"type": "string",
|
874
|
-
"value_allowed_null": true
|
875
|
-
},
|
876
|
-
{
|
877
|
-
"disabled": false,
|
878
|
-
"document": "云资源托管 ,CDN或CLB:部分开启,CDN,CLB:已开启,null:未开启托管\n注意:此字段可能返回 null,表示取不到有效值。",
|
879
|
-
"example": "无",
|
880
|
-
"member": "string",
|
881
|
-
"name": "ResourceType",
|
882
|
-
"required": true,
|
883
|
-
"type": "string",
|
884
|
-
"value_allowed_null": true
|
885
|
-
},
|
886
|
-
{
|
887
|
-
"disabled": false,
|
888
|
-
"document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
889
|
-
"example": "2021-05-16T09:06:24",
|
890
|
-
"member": "string",
|
891
|
-
"name": "CreateTime",
|
892
|
-
"required": true,
|
893
|
-
"type": "string",
|
894
|
-
"value_allowed_null": true
|
895
|
-
}
|
896
|
-
],
|
897
|
-
"usage": "out"
|
898
|
-
},
|
899
846
|
"CertTaskId": {
|
900
847
|
"document": "证书异步任务ID",
|
901
848
|
"members": [
|
@@ -6581,52 +6528,6 @@
|
|
6581
6528
|
],
|
6582
6529
|
"usage": "out"
|
6583
6530
|
},
|
6584
|
-
"HostCertificateRequest": {
|
6585
|
-
"document": "HostCertificate请求参数结构体",
|
6586
|
-
"members": [
|
6587
|
-
{
|
6588
|
-
"disabled": false,
|
6589
|
-
"document": "证书ID",
|
6590
|
-
"example": "无",
|
6591
|
-
"member": "string",
|
6592
|
-
"name": "CertificateId",
|
6593
|
-
"required": true,
|
6594
|
-
"type": "string"
|
6595
|
-
},
|
6596
|
-
{
|
6597
|
-
"disabled": false,
|
6598
|
-
"document": "资源类型:目前仅限于CLB,CDN",
|
6599
|
-
"example": "无",
|
6600
|
-
"member": "string",
|
6601
|
-
"name": "ResourceType",
|
6602
|
-
"required": false,
|
6603
|
-
"type": "list"
|
6604
|
-
}
|
6605
|
-
],
|
6606
|
-
"type": "object"
|
6607
|
-
},
|
6608
|
-
"HostCertificateResponse": {
|
6609
|
-
"document": "HostCertificate返回参数结构体",
|
6610
|
-
"members": [
|
6611
|
-
{
|
6612
|
-
"disabled": false,
|
6613
|
-
"document": "云资源配置详情",
|
6614
|
-
"example": "无",
|
6615
|
-
"member": "CertHostingInfo",
|
6616
|
-
"name": "CertHostingInfo",
|
6617
|
-
"output_required": true,
|
6618
|
-
"type": "object",
|
6619
|
-
"value_allowed_null": false
|
6620
|
-
},
|
6621
|
-
{
|
6622
|
-
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
6623
|
-
"member": "string",
|
6624
|
-
"name": "RequestId",
|
6625
|
-
"type": "string"
|
6626
|
-
}
|
6627
|
-
],
|
6628
|
-
"type": "object"
|
6629
|
-
},
|
6630
6531
|
"LighthouseInstanceDetail": {
|
6631
6532
|
"document": "Lighthouse实例",
|
6632
6533
|
"members": [
|
@@ -334,14 +334,6 @@
|
|
334
334
|
"title": "下载证书"
|
335
335
|
}
|
336
336
|
],
|
337
|
-
"HostCertificate": [
|
338
|
-
{
|
339
|
-
"document": "",
|
340
|
-
"input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: HostCertificate\n<公共请求参数>\n\n{\n \"ResourceType\": [\n \"CDN\"\n ],\n \"CertificateId\": \"ahsgjahs\"\n}",
|
341
|
-
"output": "{\n \"Response\": {\n \"CertHostingInfo\": {\n \"CertId\": \"lw0LEZmv\",\n \"ResourceType\": \"CDN,CLB\",\n \"RenewCertId\": null,\n \"CreateTime\": \"2021-05-16T09:06:24.000000Z\"\n },\n \"RequestId\": \"5ca56-1eca6-5678-9754-2bda0\"\n }\n}",
|
342
|
-
"title": "返回"
|
343
|
-
}
|
344
|
-
],
|
345
337
|
"ModifyCertificateAlias": [
|
346
338
|
{
|
347
339
|
"document": "",
|
@@ -5434,13 +5434,22 @@
|
|
5434
5434
|
"DescribeDefaultCertificatesRequest": {
|
5435
5435
|
"document": "DescribeDefaultCertificates请求参数结构体",
|
5436
5436
|
"members": [
|
5437
|
+
{
|
5438
|
+
"disabled": false,
|
5439
|
+
"document": "站点 ID。",
|
5440
|
+
"example": "zone-xxx",
|
5441
|
+
"member": "string",
|
5442
|
+
"name": "ZoneId",
|
5443
|
+
"required": false,
|
5444
|
+
"type": "string"
|
5445
|
+
},
|
5437
5446
|
{
|
5438
5447
|
"disabled": false,
|
5439
5448
|
"document": "过滤条件,Filters.Values的上限为5。详细的过滤条件如下:\n<li>zone-id<br> 按照【<strong>站点ID</strong>】进行过滤。站点ID形如:zone-xxx。<br> 类型:String<br> 必选:是 </li>",
|
5440
5449
|
"example": "无",
|
5441
5450
|
"member": "Filter",
|
5442
5451
|
"name": "Filters",
|
5443
|
-
"required":
|
5452
|
+
"required": false,
|
5444
5453
|
"type": "list"
|
5445
5454
|
},
|
5446
5455
|
{
|
@@ -5473,7 +5482,7 @@
|
|
5473
5482
|
"example": "1",
|
5474
5483
|
"member": "int64",
|
5475
5484
|
"name": "TotalCount",
|
5476
|
-
"
|
5485
|
+
"output_required": true,
|
5477
5486
|
"type": "int",
|
5478
5487
|
"value_allowed_null": false
|
5479
5488
|
},
|
@@ -5483,7 +5492,7 @@
|
|
5483
5492
|
"example": "无",
|
5484
5493
|
"member": "DefaultServerCertInfo",
|
5485
5494
|
"name": "DefaultServerCertInfo",
|
5486
|
-
"
|
5495
|
+
"output_required": true,
|
5487
5496
|
"type": "list",
|
5488
5497
|
"value_allowed_null": false
|
5489
5498
|
},
|
@@ -8484,6 +8493,7 @@
|
|
8484
8493
|
"example": "无",
|
8485
8494
|
"member": "AscriptionInfo",
|
8486
8495
|
"name": "Ascription",
|
8496
|
+
"output_required": true,
|
8487
8497
|
"type": "object",
|
8488
8498
|
"value_allowed_null": false
|
8489
8499
|
},
|
@@ -8493,6 +8503,7 @@
|
|
8493
8503
|
"example": "无",
|
8494
8504
|
"member": "FileAscriptionInfo",
|
8495
8505
|
"name": "FileAscription",
|
8506
|
+
"output_required": true,
|
8496
8507
|
"type": "object",
|
8497
8508
|
"value_allowed_null": false
|
8498
8509
|
},
|
@@ -390,7 +390,7 @@
|
|
390
390
|
{
|
391
391
|
"document": "",
|
392
392
|
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDefaultCertificates\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"zone-id\",\n \"Values\": [\n \"zone-fafcasdf\"\n ]\n }\n ]\n}",
|
393
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"084d5612-67a7-4aca-aac9-827aa3662b2d\",\n \"DefaultServerCertInfo\": [\n {\n \"Status\": \"deployed\",\n \"CertId\": \"teo-285inl1otbtd\",\n \"SubjectAltName\": [\n \"*.test.com\",\n \"test.com\"\n ],\n \"EffectiveTime\": \"2020-09-22T00:00:00+00:00\",\n \"CommonName\": \"test.com\",\n \"ExpireTime\": \"2020-09-22T00:00:00+00:00\",\n \"Alias\": \"EdgeOne default\",\n \"Message\": \"\",\n \"Type\": \"default\"\n }\n ]\n }\n}",
|
393
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"084d5612-67a7-4aca-aac9-827aa3662b2d\",\n \"DefaultServerCertInfo\": [\n {\n \"Status\": \"deployed\",\n \"CertId\": \"teo-285inl1otbtd\",\n \"SubjectAltName\": [\n \"*.test.com\",\n \"test.com\"\n ],\n \"EffectiveTime\": \"2020-09-22T00:00:00+00:00\",\n \"CommonName\": \"test.com\",\n \"ExpireTime\": \"2020-09-22T00:00:00+00:00\",\n \"Alias\": \"EdgeOne default\",\n \"Message\": \"\",\n \"Type\": \"default\",\n \"SignAlgo\": \"RSA 2048\"\n }\n ]\n }\n}",
|
394
394
|
"title": "获取默认证书"
|
395
395
|
}
|
396
396
|
],
|