tccli 3.0.897.1__py2.py3-none-any.whl → 3.0.898.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/cdn/v20180606/ModifyDomainConfig.md +88 -0
- tccli/examples/ckafka/v20190819/CreatePostPaidInstance.md +154 -0
- tccli/examples/cynosdb/v20190107/DescribeSupportProxyVersion.md +24 -0
- tccli/examples/ess/v20201111/CreateFlowApprovers.md +3 -1
- tccli/examples/ess/v20201111/DescribeThirdPartyAuthCode.md +1 -1
- tccli/examples/postgres/v20170312/CreateReadOnlyDBInstance.md +1 -1
- tccli/examples/postgres/v20170312/UpgradeDBInstanceKernelVersion.md +1 -1
- tccli/examples/sqlserver/v20180328/DescribeDBInstancesAttribute.md +6 -1
- tccli/examples/sqlserver/v20180328/DescribeDBs.md +1 -1
- tccli/examples/tdmq/v20200217/CreateCmqQueue.md +2 -2
- tccli/examples/tke/v20180525/CreateClusterEndpointVip.md +1 -1
- tccli/examples/trp/v20210515/CreateCodeBatch.md +11 -5
- tccli/examples/trp/v20210515/DescribeScanLogs.md +1 -1
- tccli/examples/trp/v20210515/DescribeTraceCodeById.md +16 -11
- tccli/examples/trp/v20210515/ModifyCodeBatch.md +3 -3
- tccli/services/cdn/cdn_client.py +57 -4
- tccli/services/cdn/v20180606/api.json +52 -0
- tccli/services/cdn/v20180606/examples.json +26 -0
- tccli/services/ckafka/ckafka_client.py +61 -8
- tccli/services/ckafka/v20190819/api.json +278 -0
- tccli/services/ckafka/v20190819/examples.json +20 -0
- tccli/services/cynosdb/cynosdb_client.py +53 -0
- tccli/services/cynosdb/v20190107/api.json +72 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/ess/v20201111/api.json +42 -11
- tccli/services/ess/v20201111/examples.json +3 -3
- tccli/services/essbasic/v20210526/api.json +27 -1
- tccli/services/postgres/v20170312/api.json +2 -31
- tccli/services/postgres/v20170312/examples.json +2 -2
- tccli/services/sqlserver/v20180328/api.json +72 -15
- tccli/services/sqlserver/v20180328/examples.json +3 -3
- tccli/services/tbaas/tbaas_client.py +4 -322
- tccli/services/tbaas/v20180416/api.json +108 -810
- tccli/services/tbaas/v20180416/examples.json +0 -48
- tccli/services/tdid/tdid_client.py +67 -1551
- tccli/services/tdid/v20210519/api.json +331 -3504
- tccli/services/tdid/v20210519/examples.json +0 -224
- tccli/services/tdmq/v20200217/api.json +2 -19
- tccli/services/tdmq/v20200217/examples.json +2 -2
- tccli/services/tione/v20211111/api.json +24 -2
- tccli/services/tke/v20180525/api.json +4 -6
- tccli/services/tke/v20180525/examples.json +2 -2
- tccli/services/trp/v20210515/api.json +285 -113
- tccli/services/trp/v20210515/examples.json +6 -6
- {tccli-3.0.897.1.dist-info → tccli-3.0.898.1.dist-info}/METADATA +2 -2
- {tccli-3.0.897.1.dist-info → tccli-3.0.898.1.dist-info}/RECORD +50 -47
- {tccli-3.0.897.1.dist-info → tccli-3.0.898.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.897.1.dist-info → tccli-3.0.898.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.897.1.dist-info → tccli-3.0.898.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.898.1'
|
@@ -0,0 +1,88 @@
|
|
1
|
+
**Example 1: 更新 HTTPS 服务器证书 ID(在 SSL 证书管理进行证书托管时自动生成)**
|
2
|
+
|
3
|
+
更新 HTTPS 服务器证书 ID(在 SSL 证书管理进行证书托管时自动生成)
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli cdn ModifyDomainConfig --cli-unfold-argument \
|
9
|
+
--Domain www.test.com \
|
10
|
+
--Route Https.CertInfo.CertId \
|
11
|
+
--Value {"update":"0VpOXiPz"}
|
12
|
+
```
|
13
|
+
|
14
|
+
Output:
|
15
|
+
```
|
16
|
+
{
|
17
|
+
"Response": {
|
18
|
+
"RequestId": "56a166ec-d784-4001-a850-7d62a5c07971"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
```
|
22
|
+
|
23
|
+
**Example 2: 更新域名回源建连超时时间**
|
24
|
+
|
25
|
+
更新域名回源建连超时时间
|
26
|
+
|
27
|
+
Input:
|
28
|
+
|
29
|
+
```
|
30
|
+
tccli cdn ModifyDomainConfig --cli-unfold-argument \
|
31
|
+
--Domain www.test.com \
|
32
|
+
--Route OriginPullTimeout.ConnectTimeout \
|
33
|
+
--Value {"update":10}
|
34
|
+
```
|
35
|
+
|
36
|
+
Output:
|
37
|
+
```
|
38
|
+
{
|
39
|
+
"Response": {
|
40
|
+
"RequestId": "23cd4005-496f-4bc4-87d8-ab348d5b0c11"
|
41
|
+
}
|
42
|
+
}
|
43
|
+
```
|
44
|
+
|
45
|
+
**Example 3: 更新域名回源超时配置**
|
46
|
+
|
47
|
+
更新域名回源超时配置
|
48
|
+
|
49
|
+
Input:
|
50
|
+
|
51
|
+
```
|
52
|
+
tccli cdn ModifyDomainConfig --cli-unfold-argument \
|
53
|
+
--Domain www.test.com \
|
54
|
+
--Route OriginPullTimeout \
|
55
|
+
--Value {"update":{"ConnectTimeout":10,"ReceiveTimeout":10}}
|
56
|
+
```
|
57
|
+
|
58
|
+
Output:
|
59
|
+
```
|
60
|
+
{
|
61
|
+
"Response": {
|
62
|
+
"RequestId": "23cd4005-496f-4bc4-87d8-ab348d5b0c21"
|
63
|
+
}
|
64
|
+
}
|
65
|
+
```
|
66
|
+
|
67
|
+
**Example 4: 更新域名源站配置**
|
68
|
+
|
69
|
+
更新域名源站配置
|
70
|
+
|
71
|
+
Input:
|
72
|
+
|
73
|
+
```
|
74
|
+
tccli cdn ModifyDomainConfig --cli-unfold-argument \
|
75
|
+
--Domain www.test.com \
|
76
|
+
--Route Origin.Origins \
|
77
|
+
--Value {"update":["1.1.1.1"]}
|
78
|
+
```
|
79
|
+
|
80
|
+
Output:
|
81
|
+
```
|
82
|
+
{
|
83
|
+
"Response": {
|
84
|
+
"RequestId": "eb029ee0-7e91-4a18-86f3-7fac952a446e"
|
85
|
+
}
|
86
|
+
}
|
87
|
+
```
|
88
|
+
|
@@ -0,0 +1,154 @@
|
|
1
|
+
**Example 1: 创建后付费专业版实例**
|
2
|
+
|
3
|
+
创建硬盘大小 200GB,峰值带宽 20MB/s 的专业版后付费实例
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli ckafka CreatePostPaidInstance --cli-unfold-argument \
|
9
|
+
--InstanceName test55 \
|
10
|
+
--VpcId vpc-rmcgxxxx \
|
11
|
+
--SubnetId subnet-mnzcxxxx \
|
12
|
+
--ZoneId 450001 \
|
13
|
+
--InstanceType 1 \
|
14
|
+
--KafkaVersion 1.1.1 \
|
15
|
+
--SpecificationsType profession \
|
16
|
+
--DiskSize 200 \
|
17
|
+
--BandWidth 20 \
|
18
|
+
--Partition 400 \
|
19
|
+
--DiskType CLOUD_BASIC \
|
20
|
+
--PublicNetworkMonthly 0
|
21
|
+
```
|
22
|
+
|
23
|
+
Output:
|
24
|
+
```
|
25
|
+
{
|
26
|
+
"Response": {
|
27
|
+
"RequestId": "323c3bbe-db79-48c3-9b76-63aacd65b169",
|
28
|
+
"Result": {
|
29
|
+
"Data": {
|
30
|
+
"DealNameInstanceIdMapping": [
|
31
|
+
{
|
32
|
+
"DealName": "20230608002033899990000",
|
33
|
+
"InstanceIdList": [
|
34
|
+
"ckafka-mom5xxxx"
|
35
|
+
]
|
36
|
+
}
|
37
|
+
],
|
38
|
+
"DealNames": [
|
39
|
+
"2023060800203389990000"
|
40
|
+
],
|
41
|
+
"FlowId": 0,
|
42
|
+
"InstanceId": "ckafka-mom5xxxx"
|
43
|
+
},
|
44
|
+
"ReturnCode": "0",
|
45
|
+
"ReturnMessage": "ok[apply ok]"
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
```
|
50
|
+
|
51
|
+
**Example 2: 批量创建后付费专业版实例**
|
52
|
+
|
53
|
+
同时创建三个后付费专业版实例
|
54
|
+
|
55
|
+
Input:
|
56
|
+
|
57
|
+
```
|
58
|
+
tccli ckafka CreatePostPaidInstance --cli-unfold-argument \
|
59
|
+
--InstanceName test58 \
|
60
|
+
--VpcId vpc-rmcg5cpf \
|
61
|
+
--SubnetId subnet-mnzcs7gk \
|
62
|
+
--KafkaVersion 2.4.2 \
|
63
|
+
--SpecificationsType profession \
|
64
|
+
--BandWidth 20 \
|
65
|
+
--DiskSize 200 \
|
66
|
+
--Partition 400 \
|
67
|
+
--TopicNum 200 \
|
68
|
+
--ZoneId 450001 \
|
69
|
+
--InstanceNum 3 \
|
70
|
+
--PublicNetworkMonthly 12
|
71
|
+
```
|
72
|
+
|
73
|
+
Output:
|
74
|
+
```
|
75
|
+
{
|
76
|
+
"Response": {
|
77
|
+
"RequestId": "cda79237-6424-482a-b2d2-97d4853b33b4",
|
78
|
+
"Result": {
|
79
|
+
"Data": {
|
80
|
+
"DealNameInstanceIdMapping": [
|
81
|
+
{
|
82
|
+
"DealName": "20230608002033915320000",
|
83
|
+
"InstanceIdList": [
|
84
|
+
"ckafka-bz4dxxxx",
|
85
|
+
"ckafka-o9gdxxxx",
|
86
|
+
"ckafka-aj5gxxxx"
|
87
|
+
]
|
88
|
+
}
|
89
|
+
],
|
90
|
+
"DealNames": [
|
91
|
+
"20230608002033915320000"
|
92
|
+
],
|
93
|
+
"FlowId": 0,
|
94
|
+
"InstanceId": "ckafka-bz4dxxxx"
|
95
|
+
},
|
96
|
+
"ReturnCode": "0",
|
97
|
+
"ReturnMessage": "ok[apply ok]"
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
```
|
102
|
+
|
103
|
+
**Example 3: 创建后付费多可用区专业版实例**
|
104
|
+
|
105
|
+
创建一个三可用区的专业版实例
|
106
|
+
|
107
|
+
Input:
|
108
|
+
|
109
|
+
```
|
110
|
+
tccli ckafka CreatePostPaidInstance --cli-unfold-argument \
|
111
|
+
--InstanceName test55 \
|
112
|
+
--VpcId vpc-rmcgxxxx \
|
113
|
+
--SubnetId subnet-mnzcxxxx \
|
114
|
+
--ZoneId 450001 \
|
115
|
+
--InstanceType 1 \
|
116
|
+
--KafkaVersion 1.1.1 \
|
117
|
+
--SpecificationsType profession \
|
118
|
+
--DiskSize 200 \
|
119
|
+
--BandWidth 20 \
|
120
|
+
--Partition 400 \
|
121
|
+
--DiskType CLOUD_BASIC \
|
122
|
+
--PublicNetworkMonthly 0 \
|
123
|
+
--MultiZoneFlag True \
|
124
|
+
--ZoneIds 450001 450002 450003
|
125
|
+
```
|
126
|
+
|
127
|
+
Output:
|
128
|
+
```
|
129
|
+
{
|
130
|
+
"Response": {
|
131
|
+
"RequestId": "323c3bbe-db79-48c3-9b76-63aacd65b169",
|
132
|
+
"Result": {
|
133
|
+
"Data": {
|
134
|
+
"DealNameInstanceIdMapping": [
|
135
|
+
{
|
136
|
+
"DealName": "20230608002033899990000",
|
137
|
+
"InstanceIdList": [
|
138
|
+
"ckafka-mom5xxxx"
|
139
|
+
]
|
140
|
+
}
|
141
|
+
],
|
142
|
+
"DealNames": [
|
143
|
+
"2023060800203389990000"
|
144
|
+
],
|
145
|
+
"FlowId": 0,
|
146
|
+
"InstanceId": "ckafka-mom5xxxx"
|
147
|
+
},
|
148
|
+
"ReturnCode": "0",
|
149
|
+
"ReturnMessage": "ok[apply ok]"
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
```
|
154
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
**Example 1: 查询支持的数据库代理版本**
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli cynosdb DescribeSupportProxyVersion --cli-unfold-argument \
|
9
|
+
--ClusterId xx
|
10
|
+
```
|
11
|
+
|
12
|
+
Output:
|
13
|
+
```
|
14
|
+
{
|
15
|
+
"Response": {
|
16
|
+
"SupportProxyVersions": [
|
17
|
+
"xx"
|
18
|
+
],
|
19
|
+
"CurrentProxyVersion": "0.0",
|
20
|
+
"RequestId": "xx"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
```
|
24
|
+
|
@@ -1,6 +1,6 @@
|
|
1
1
|
**Example 1: 查询实例mssql-j8kv137v的附属属性**
|
2
2
|
|
3
|
-
|
3
|
+
查询实例附属属性
|
4
4
|
|
5
5
|
Input:
|
6
6
|
|
@@ -21,6 +21,11 @@ Output:
|
|
21
21
|
"RegularBackupStrategy": "months",
|
22
22
|
"RegularBackupStartTime": "2022-10-10",
|
23
23
|
"EventSaveDays": 0,
|
24
|
+
"TDEConfig": {
|
25
|
+
"Encryption": "disable",
|
26
|
+
"CertificateAttribution": "self",
|
27
|
+
"QuoteUin": ""
|
28
|
+
},
|
24
29
|
"BlockedThreshold": 6
|
25
30
|
}
|
26
31
|
}
|
@@ -6,18 +6,24 @@ Input:
|
|
6
6
|
|
7
7
|
```
|
8
8
|
tccli trp CreateCodeBatch --cli-unfold-argument \
|
9
|
-
--
|
9
|
+
--MerchantId abc \
|
10
|
+
--ProductId abc \
|
10
11
|
--BatchType 1 \
|
11
|
-
--
|
12
|
-
--
|
12
|
+
--BatchId abc \
|
13
|
+
--Remark abc \
|
14
|
+
--MpTpl abc \
|
15
|
+
--CloneId abc \
|
16
|
+
--BatchCode abc \
|
17
|
+
--ValidDate abc \
|
18
|
+
--ProductionDate abc
|
13
19
|
```
|
14
20
|
|
15
21
|
Output:
|
16
22
|
```
|
17
23
|
{
|
18
24
|
"Response": {
|
19
|
-
"BatchId": "
|
20
|
-
"RequestId": "
|
25
|
+
"BatchId": "abc",
|
26
|
+
"RequestId": "abc"
|
21
27
|
}
|
22
28
|
}
|
23
29
|
```
|
@@ -14,19 +14,24 @@ Output:
|
|
14
14
|
{
|
15
15
|
"Response": {
|
16
16
|
"TraceCode": {
|
17
|
-
"
|
18
|
-
"UpdateTime": "xx",
|
19
|
-
"Code": "xx",
|
20
|
-
"MerchantName": "xx",
|
17
|
+
"Code": "abc",
|
21
18
|
"CorpId": 1,
|
22
|
-
"PackId": "
|
23
|
-
"
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"
|
19
|
+
"PackId": "abc",
|
20
|
+
"BatchId": "abc",
|
21
|
+
"MerchantId": "abc",
|
22
|
+
"ProductId": "abc",
|
23
|
+
"Status": 1,
|
24
|
+
"CreateTime": "abc",
|
25
|
+
"UpdateTime": "abc",
|
26
|
+
"MerchantName": "abc",
|
27
|
+
"ProductName": "abc",
|
28
|
+
"AgentId": 1,
|
29
|
+
"Level": 1
|
28
30
|
},
|
29
|
-
"
|
31
|
+
"CodePath": [
|
32
|
+
"abc"
|
33
|
+
],
|
34
|
+
"RequestId": "abc"
|
30
35
|
}
|
31
36
|
}
|
32
37
|
```
|
@@ -6,7 +6,7 @@ Input:
|
|
6
6
|
|
7
7
|
```
|
8
8
|
tccli trp ModifyCodeBatch --cli-unfold-argument \
|
9
|
-
--BatchId
|
9
|
+
--BatchId abc \
|
10
10
|
--Status 1
|
11
11
|
```
|
12
12
|
|
@@ -14,8 +14,8 @@ Output:
|
|
14
14
|
```
|
15
15
|
{
|
16
16
|
"Response": {
|
17
|
-
"BatchId": "
|
18
|
-
"RequestId": "
|
17
|
+
"BatchId": "abc",
|
18
|
+
"RequestId": "abc"
|
19
19
|
}
|
20
20
|
}
|
21
21
|
```
|
tccli/services/cdn/cdn_client.py
CHANGED
@@ -121,7 +121,7 @@ def doDescribeScdnConfig(args, parsed_globals):
|
|
121
121
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
122
|
|
123
123
|
|
124
|
-
def
|
124
|
+
def doModifyDomainConfig(args, parsed_globals):
|
125
125
|
g_param = parse_global_arg(parsed_globals)
|
126
126
|
|
127
127
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -150,11 +150,11 @@ def doListScdnTopBotData(args, parsed_globals):
|
|
150
150
|
client = mod.CdnClient(cred, g_param[OptionsDefine.Region], profile)
|
151
151
|
client._sdkVersion += ("_CLI_" + __version__)
|
152
152
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
153
|
-
model = models.
|
153
|
+
model = models.ModifyDomainConfigRequest()
|
154
154
|
model.from_json_string(json.dumps(args))
|
155
155
|
start_time = time.time()
|
156
156
|
while True:
|
157
|
-
rsp = client.
|
157
|
+
rsp = client.ModifyDomainConfig(model)
|
158
158
|
result = rsp.to_json_string()
|
159
159
|
try:
|
160
160
|
json_obj = json.loads(result)
|
@@ -1993,6 +1993,58 @@ def doDescribeImageConfig(args, parsed_globals):
|
|
1993
1993
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1994
1994
|
|
1995
1995
|
|
1996
|
+
def doListScdnTopBotData(args, parsed_globals):
|
1997
|
+
g_param = parse_global_arg(parsed_globals)
|
1998
|
+
|
1999
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2000
|
+
cred = credential.CVMRoleCredential()
|
2001
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2002
|
+
cred = credential.STSAssumeRoleCredential(
|
2003
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2004
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
2005
|
+
)
|
2006
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
2007
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2008
|
+
else:
|
2009
|
+
cred = credential.Credential(
|
2010
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2011
|
+
)
|
2012
|
+
http_profile = HttpProfile(
|
2013
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2014
|
+
reqMethod="POST",
|
2015
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2016
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2017
|
+
)
|
2018
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2019
|
+
if g_param[OptionsDefine.Language]:
|
2020
|
+
profile.language = g_param[OptionsDefine.Language]
|
2021
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2022
|
+
client = mod.CdnClient(cred, g_param[OptionsDefine.Region], profile)
|
2023
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2024
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2025
|
+
model = models.ListScdnTopBotDataRequest()
|
2026
|
+
model.from_json_string(json.dumps(args))
|
2027
|
+
start_time = time.time()
|
2028
|
+
while True:
|
2029
|
+
rsp = client.ListScdnTopBotData(model)
|
2030
|
+
result = rsp.to_json_string()
|
2031
|
+
try:
|
2032
|
+
json_obj = json.loads(result)
|
2033
|
+
except TypeError as e:
|
2034
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2035
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2036
|
+
break
|
2037
|
+
cur_time = time.time()
|
2038
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2039
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2040
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2041
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2042
|
+
else:
|
2043
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2044
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2045
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2046
|
+
|
2047
|
+
|
1996
2048
|
def doDescribeScdnTopData(args, parsed_globals):
|
1997
2049
|
g_param = parse_global_arg(parsed_globals)
|
1998
2050
|
|
@@ -4190,7 +4242,7 @@ MODELS_MAP = {
|
|
4190
4242
|
ACTION_MAP = {
|
4191
4243
|
"AddCLSTopicDomains": doAddCLSTopicDomains,
|
4192
4244
|
"DescribeScdnConfig": doDescribeScdnConfig,
|
4193
|
-
"
|
4245
|
+
"ModifyDomainConfig": doModifyDomainConfig,
|
4194
4246
|
"DescribeIpStatus": doDescribeIpStatus,
|
4195
4247
|
"DescribeMapInfo": doDescribeMapInfo,
|
4196
4248
|
"DeleteCdnDomain": doDeleteCdnDomain,
|
@@ -4226,6 +4278,7 @@ ACTION_MAP = {
|
|
4226
4278
|
"CreateScdnLogTask": doCreateScdnLogTask,
|
4227
4279
|
"DescribePushQuota": doDescribePushQuota,
|
4228
4280
|
"DescribeImageConfig": doDescribeImageConfig,
|
4281
|
+
"ListScdnTopBotData": doListScdnTopBotData,
|
4229
4282
|
"DescribeScdnTopData": doDescribeScdnTopData,
|
4230
4283
|
"StopCdnDomain": doStopCdnDomain,
|
4231
4284
|
"ListTopData": doListTopData,
|
@@ -462,6 +462,13 @@
|
|
462
462
|
"output": "ManageClsTopicDomainsResponse",
|
463
463
|
"status": "online"
|
464
464
|
},
|
465
|
+
"ModifyDomainConfig": {
|
466
|
+
"document": "ModifyDomainConfig 用于修改内容分发网络加速域名配置信息\n注意:\nRoute 字段,使用点分隔,最后一段称为叶子节点,非叶子节点配置保持不变;\nValue 字段,使用 json 进行序列化,其中固定 update 作为 key,配置路径值参考 https://cloud.tencent.com/document/product/228/41116 接口各配置项复杂类型,为配置路径对应复杂类型下的节点。\n云审计相关:接口的入参可能包含密钥等敏感信息,所以此接口的入参不会上报到云审计。",
|
467
|
+
"input": "ModifyDomainConfigRequest",
|
468
|
+
"name": "变更加速域名配置",
|
469
|
+
"output": "ModifyDomainConfigResponse",
|
470
|
+
"status": "online"
|
471
|
+
},
|
465
472
|
"ModifyPurgeFetchTaskStatus": {
|
466
473
|
"document": "ModifyPurgeFetchTaskStatus 用于上报定时刷新预热任务执行状态",
|
467
474
|
"input": "ModifyPurgeFetchTaskStatusRequest",
|
@@ -12725,6 +12732,51 @@
|
|
12725
12732
|
],
|
12726
12733
|
"usage": "both"
|
12727
12734
|
},
|
12735
|
+
"ModifyDomainConfigRequest": {
|
12736
|
+
"document": "ModifyDomainConfig请求参数结构体",
|
12737
|
+
"members": [
|
12738
|
+
{
|
12739
|
+
"disabled": false,
|
12740
|
+
"document": "域名",
|
12741
|
+
"example": "www.test.com",
|
12742
|
+
"member": "string",
|
12743
|
+
"name": "Domain",
|
12744
|
+
"required": true,
|
12745
|
+
"type": "string"
|
12746
|
+
},
|
12747
|
+
{
|
12748
|
+
"disabled": false,
|
12749
|
+
"document": "配置路径",
|
12750
|
+
"example": "Https.CertInfo.CertId",
|
12751
|
+
"member": "string",
|
12752
|
+
"name": "Route",
|
12753
|
+
"required": true,
|
12754
|
+
"type": "string"
|
12755
|
+
},
|
12756
|
+
{
|
12757
|
+
"disabled": false,
|
12758
|
+
"document": "配置路径值,使用 json 进行序列化,其中固定 update 作为 key",
|
12759
|
+
"example": "{\\\"update\\\":\\\"0VpOXiPz\\\"}",
|
12760
|
+
"member": "string",
|
12761
|
+
"name": "Value",
|
12762
|
+
"required": true,
|
12763
|
+
"type": "string"
|
12764
|
+
}
|
12765
|
+
],
|
12766
|
+
"type": "object"
|
12767
|
+
},
|
12768
|
+
"ModifyDomainConfigResponse": {
|
12769
|
+
"document": "ModifyDomainConfig返回参数结构体",
|
12770
|
+
"members": [
|
12771
|
+
{
|
12772
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
12773
|
+
"member": "string",
|
12774
|
+
"name": "RequestId",
|
12775
|
+
"type": "string"
|
12776
|
+
}
|
12777
|
+
],
|
12778
|
+
"type": "object"
|
12779
|
+
},
|
12728
12780
|
"ModifyPurgeFetchTaskStatusRequest": {
|
12729
12781
|
"document": "ModifyPurgeFetchTaskStatus请求参数结构体",
|
12730
12782
|
"members": [
|
@@ -528,6 +528,32 @@
|
|
528
528
|
"title": "管理日志主题下域名列表"
|
529
529
|
}
|
530
530
|
],
|
531
|
+
"ModifyDomainConfig": [
|
532
|
+
{
|
533
|
+
"document": "更新 HTTPS 服务器证书 ID(在 SSL 证书管理进行证书托管时自动生成)",
|
534
|
+
"input": "POST / HTTP/1.1\nHost: cdn.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDomainConfig\n<公共请求参数>\n\n{\n \"Domain\": \"www.test.com\",\n \"Route\": \"Https.CertInfo.CertId\",\n \"Value\": \"{\\\"update\\\":\\\"0VpOXiPz\\\"}\"\n}",
|
535
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"56a166ec-d784-4001-a850-7d62a5c07971\"\n }\n}",
|
536
|
+
"title": "更新 HTTPS 服务器证书 ID(在 SSL 证书管理进行证书托管时自动生成)"
|
537
|
+
},
|
538
|
+
{
|
539
|
+
"document": "更新域名回源建连超时时间",
|
540
|
+
"input": "POST / HTTP/1.1\nHost: cdn.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDomainConfig\n<公共请求参数>\n\n{\n \"Domain\": \"www.test.com\",\n \"Route\": \"OriginPullTimeout.ConnectTimeout\",\n \"Value\": \"{\\\"update\\\":10}\"\n}",
|
541
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"23cd4005-496f-4bc4-87d8-ab348d5b0c11\"\n }\n}",
|
542
|
+
"title": "更新域名回源建连超时时间"
|
543
|
+
},
|
544
|
+
{
|
545
|
+
"document": "更新域名回源超时配置",
|
546
|
+
"input": "POST / HTTP/1.1\nHost: cdn.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDomainConfig\n<公共请求参数>\n\n{\n \"Domain\": \"www.test.com\",\n \"Route\": \"OriginPullTimeout\",\n \"Value\": \"{\\\"update\\\":{\\\"ConnectTimeout\\\":10,\\\"ReceiveTimeout\\\":10}}\"\n}",
|
547
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"23cd4005-496f-4bc4-87d8-ab348d5b0c21\"\n }\n}",
|
548
|
+
"title": "更新域名回源超时配置"
|
549
|
+
},
|
550
|
+
{
|
551
|
+
"document": "更新域名源站配置",
|
552
|
+
"input": "POST / HTTP/1.1\nHost: cdn.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDomainConfig\n<公共请求参数>\n\n{\n \"Domain\": \"www.test.com\",\n \"Route\": \"Origin.Origins\",\n \"Value\": \"{\\\"update\\\":[\\\"1.1.1.1\\\"]}\"\n}",
|
553
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"eb029ee0-7e91-4a18-86f3-7fac952a446e\"\n }\n}",
|
554
|
+
"title": "更新域名源站配置"
|
555
|
+
}
|
556
|
+
],
|
531
557
|
"ModifyPurgeFetchTaskStatus": [
|
532
558
|
{
|
533
559
|
"document": "",
|