tccli 3.0.1215.1__py2.py3-none-any.whl → 3.0.1217.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/argparser.py +1 -1
- tccli/command.py +2 -2
- tccli/configure.py +46 -1
- tccli/credentials.py +25 -0
- tccli/main.py +6 -2
- tccli/plugins/sso/__init__.py +61 -0
- tccli/plugins/sso/configs.py +4 -0
- tccli/plugins/sso/configure.py +45 -0
- tccli/plugins/sso/login.py +144 -0
- tccli/plugins/sso/logout.py +21 -0
- tccli/plugins/sso/terminal.py +161 -0
- tccli/plugins/sso/texts.py +40 -0
- tccli/services/__init__.py +6 -3
- tccli/services/acp/v20220105/api.json +7 -7
- tccli/services/acp/v20220105/examples.json +2 -2
- tccli/services/aiart/v20221229/api.json +29 -29
- tccli/services/aiart/v20221229/examples.json +8 -8
- tccli/services/apigateway/v20180808/api.json +18 -17
- tccli/services/apigateway/v20180808/examples.json +12 -12
- tccli/services/apm/v20210622/api.json +118 -4
- tccli/services/asr/v20190614/api.json +21 -20
- tccli/services/asr/v20190614/examples.json +13 -13
- tccli/services/autoscaling/v20180419/api.json +371 -309
- tccli/services/autoscaling/v20180419/examples.json +17 -17
- tccli/services/batch/v20170312/api.json +7 -7
- tccli/services/bda/v20200324/api.json +39 -31
- tccli/services/bda/v20200324/examples.json +9 -9
- tccli/services/bh/__init__.py +4 -0
- tccli/services/bh/bh_client.py +3428 -0
- tccli/services/bh/v20230418/api.json +8180 -0
- tccli/services/bh/v20230418/examples.json +519 -0
- tccli/services/bi/v20220105/api.json +80 -4
- tccli/services/bi/v20220105/examples.json +1 -1
- tccli/services/billing/billing_client.py +53 -0
- tccli/services/billing/v20180709/api.json +330 -24
- tccli/services/billing/v20180709/examples.json +8 -0
- tccli/services/bsca/v20210811/api.json +223 -18
- tccli/services/bsca/v20210811/examples.json +4 -4
- tccli/services/btoe/v20210514/api.json +4 -4
- tccli/services/btoe/v20210514/examples.json +2 -2
- tccli/services/ca/v20230228/api.json +60 -0
- tccli/services/cam/v20190116/api.json +11 -11
- tccli/services/cat/v20180409/api.json +9 -0
- tccli/services/cbs/v20170312/api.json +200 -188
- tccli/services/cbs/v20170312/examples.json +4 -4
- tccli/services/ccc/ccc_client.py +53 -0
- tccli/services/ccc/v20200210/api.json +541 -325
- tccli/services/ccc/v20200210/examples.json +26 -18
- tccli/services/cdb/cdb_client.py +13 -13
- tccli/services/cdb/v20170320/api.json +308 -274
- tccli/services/cdb/v20170320/examples.json +38 -38
- tccli/services/cdc/v20201214/api.json +283 -270
- tccli/services/cdc/v20201214/examples.json +26 -26
- tccli/services/cdn/v20180606/api.json +5 -3
- tccli/services/cds/v20180420/api.json +82 -76
- tccli/services/cds/v20180420/examples.json +1 -1
- tccli/services/cdwch/v20200915/api.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +54 -4
- tccli/services/cdz/v20221123/api.json +41 -5
- tccli/services/cfg/v20210820/api.json +31 -0
- tccli/services/cfs/v20190719/api.json +89 -1
- tccli/services/cfs/v20190719/examples.json +1 -1
- tccli/services/cfw/cfw_client.py +0 -53
- tccli/services/cfw/v20190904/api.json +1895 -2011
- tccli/services/cfw/v20190904/examples.json +175 -171
- tccli/services/ciam/v20220331/api.json +316 -315
- tccli/services/ciam/v20220331/examples.json +49 -49
- tccli/services/ckafka/v20190819/api.json +104 -75
- tccli/services/clb/v20180317/api.json +48 -26
- tccli/services/clb/v20180317/examples.json +1 -1
- tccli/services/cloudapp/v20220530/api.json +5 -1
- tccli/services/cloudaudit/cloudaudit_client.py +30 -30
- tccli/services/cloudaudit/v20190319/api.json +254 -211
- tccli/services/cloudaudit/v20190319/examples.json +19 -19
- tccli/services/cloudstudio/v20230508/api.json +38 -37
- tccli/services/cloudstudio/v20230508/examples.json +4 -4
- tccli/services/cls/cls_client.py +216 -4
- tccli/services/cls/v20201016/api.json +935 -147
- tccli/services/cls/v20201016/examples.json +43 -5
- tccli/services/csip/v20221121/api.json +2566 -2386
- tccli/services/csip/v20221121/examples.json +108 -108
- tccli/services/cvm/v20170312/api.json +191 -112
- tccli/services/cvm/v20170312/examples.json +2 -2
- tccli/services/cwp/cwp_client.py +4 -110
- tccli/services/cwp/v20180228/api.json +6498 -6252
- tccli/services/cwp/v20180228/examples.json +372 -412
- tccli/services/cynosdb/v20190107/api.json +170 -110
- tccli/services/cynosdb/v20190107/examples.json +91 -91
- tccli/services/dasb/v20191018/api.json +859 -637
- tccli/services/dasb/v20191018/examples.json +101 -101
- tccli/services/dcdb/dcdb_client.py +114 -61
- tccli/services/dcdb/v20180411/api.json +141 -7
- tccli/services/dcdb/v20180411/examples.json +32 -0
- tccli/services/dlc/v20210125/api.json +21 -11
- tccli/services/dnspod/dnspod_client.py +417 -46
- tccli/services/dnspod/v20210323/api.json +751 -30
- tccli/services/dnspod/v20210323/examples.json +62 -0
- tccli/services/domain/v20180808/api.json +3 -3
- tccli/services/domain/v20180808/examples.json +3 -3
- tccli/services/dts/v20211206/api.json +4 -4
- tccli/services/eb/v20210416/api.json +15 -15
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/ecm/v20190719/api.json +2 -2
- tccli/services/emr/v20190103/api.json +339 -114
- tccli/services/emr/v20190103/examples.json +64 -82
- tccli/services/es/es_client.py +249 -37
- tccli/services/es/v20180416/api.json +550 -0
- tccli/services/es/v20180416/examples.json +33 -1
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +192 -38
- tccli/services/ess/v20201111/examples.json +35 -9
- tccli/services/essbasic/essbasic_client.py +106 -0
- tccli/services/essbasic/v20210526/api.json +287 -60
- tccli/services/essbasic/v20210526/examples.json +58 -18
- tccli/services/facefusion/v20181201/api.json +47 -45
- tccli/services/facefusion/v20181201/examples.json +2 -2
- tccli/services/facefusion/v20220927/api.json +54 -48
- tccli/services/facefusion/v20220927/examples.json +5 -5
- tccli/services/faceid/v20180301/api.json +497 -496
- tccli/services/faceid/v20180301/examples.json +219 -101
- tccli/services/fmu/v20191213/api.json +59 -67
- tccli/services/fmu/v20191213/examples.json +22 -22
- tccli/services/ft/v20200304/api.json +53 -57
- tccli/services/ft/v20200304/examples.json +14 -14
- tccli/services/gaap/v20180529/api.json +44 -26
- tccli/services/gaap/v20180529/examples.json +24 -30
- tccli/services/gme/v20180711/api.json +21 -11
- tccli/services/gme/v20180711/examples.json +1 -1
- tccli/services/hai/v20230812/api.json +116 -9
- tccli/services/hai/v20230812/examples.json +4 -4
- tccli/services/hunyuan/hunyuan_client.py +436 -12
- tccli/services/hunyuan/v20230901/api.json +1482 -118
- tccli/services/hunyuan/v20230901/examples.json +82 -18
- tccli/services/iai/v20180301/api.json +23 -19
- tccli/services/iai/v20180301/examples.json +2 -2
- tccli/services/iai/v20200303/api.json +530 -511
- tccli/services/iai/v20200303/examples.json +116 -86
- tccli/services/ig/__init__.py +4 -0
- tccli/services/ig/ig_client.py +195 -0
- tccli/services/ig/v20210518/api.json +83 -0
- tccli/services/ig/v20210518/examples.json +13 -0
- tccli/services/ioa/ioa_client.py +53 -0
- tccli/services/ioa/v20220601/api.json +662 -413
- tccli/services/ioa/v20220601/examples.json +24 -10
- tccli/services/iotexplorer/v20190423/api.json +73 -13
- tccli/services/iotexplorer/v20190423/examples.json +3 -3
- tccli/services/iotvideo/iotvideo_client.py +106 -0
- tccli/services/iotvideo/v20191126/api.json +256 -24
- tccli/services/iotvideo/v20191126/examples.json +19 -3
- tccli/services/iotvideo/v20201215/api.json +1 -1
- tccli/services/iotvideo/v20201215/examples.json +1 -1
- tccli/services/iotvideo/v20211125/api.json +1 -1
- tccli/services/iotvideo/v20211125/examples.json +2 -2
- tccli/services/iss/iss_client.py +69 -122
- tccli/services/iss/v20230517/api.json +10 -54
- tccli/services/iss/v20230517/examples.json +0 -14
- tccli/services/kms/v20190118/api.json +301 -268
- tccli/services/kms/v20190118/examples.json +45 -51
- tccli/services/lcic/lcic_client.py +159 -0
- tccli/services/lcic/v20220817/api.json +273 -1
- tccli/services/lcic/v20220817/examples.json +24 -0
- tccli/services/lighthouse/v20200324/api.json +56 -0
- tccli/services/live/live_client.py +159 -0
- tccli/services/live/v20180801/api.json +279 -9
- tccli/services/live/v20180801/examples.json +24 -0
- tccli/services/lke/v20231130/api.json +17 -17
- tccli/services/lke/v20231130/examples.json +19 -25
- tccli/services/mariadb/v20170312/api.json +7 -7
- tccli/services/market/v20191010/api.json +3 -3
- tccli/services/market/v20191010/examples.json +2 -2
- tccli/services/mmps/v20200710/api.json +47 -47
- tccli/services/mmps/v20200710/examples.json +3 -3
- tccli/services/mongodb/v20190725/api.json +10 -12
- tccli/services/monitor/v20180724/api.json +46 -19
- tccli/services/mps/v20190612/api.json +282 -5
- tccli/services/mps/v20190612/examples.json +25 -1
- tccli/services/mqtt/v20240516/api.json +2 -2
- tccli/services/mrs/v20200910/api.json +72 -34
- tccli/services/mrs/v20200910/examples.json +2 -2
- tccli/services/ms/v20180408/api.json +535 -506
- tccli/services/ms/v20180408/examples.json +25 -25
- tccli/services/oceanus/v20190422/api.json +130 -0
- tccli/services/ocr/ocr_client.py +232 -20
- tccli/services/ocr/v20181119/api.json +2263 -758
- tccli/services/ocr/v20181119/examples.json +200 -180
- tccli/services/omics/v20221128/api.json +614 -553
- tccli/services/omics/v20221128/examples.json +9 -9
- tccli/services/organization/organization_client.py +352 -34
- tccli/services/organization/v20210331/api.json +464 -4
- tccli/services/organization/v20210331/examples.json +49 -1
- tccli/services/partners/v20180321/api.json +244 -234
- tccli/services/partners/v20180321/examples.json +19 -19
- tccli/services/privatedns/privatedns_client.py +428 -4
- tccli/services/privatedns/v20201028/api.json +815 -11
- tccli/services/privatedns/v20201028/examples.json +64 -0
- tccli/services/pts/v20210728/api.json +18 -0
- tccli/services/pts/v20210728/examples.json +1 -1
- tccli/services/rce/rce_client.py +53 -0
- tccli/services/rce/v20201103/api.json +146 -0
- tccli/services/rce/v20201103/examples.json +8 -0
- tccli/services/redis/v20180412/api.json +42 -42
- tccli/services/redis/v20180412/examples.json +19 -19
- tccli/services/region/v20220627/api.json +1 -1
- tccli/services/rum/v20210622/api.json +9 -0
- tccli/services/scf/scf_client.py +269 -4
- tccli/services/scf/v20180416/api.json +569 -15
- tccli/services/scf/v20180416/examples.json +47 -1
- tccli/services/smop/v20201203/api.json +46 -42
- tccli/services/smop/v20201203/examples.json +2 -2
- tccli/services/soe/v20180724/api.json +10 -10
- tccli/services/sqlserver/v20180328/api.json +21 -8
- tccli/services/sqlserver/v20180328/examples.json +5 -5
- tccli/services/ssl/v20191205/api.json +98 -5
- tccli/services/ssm/v20190923/api.json +292 -231
- tccli/services/ssm/v20190923/examples.json +42 -42
- tccli/services/tat/v20201028/api.json +124 -122
- tccli/services/tat/v20201028/examples.json +24 -30
- tccli/services/tchd/v20230306/api.json +5 -5
- tccli/services/tchd/v20230306/examples.json +3 -3
- tccli/services/tcr/v20190924/api.json +1 -1
- tccli/services/tcr/v20190924/examples.json +1 -1
- tccli/services/tcss/v20201101/api.json +1984 -1437
- tccli/services/tcss/v20201101/examples.json +350 -368
- tccli/services/tdmq/v20200217/api.json +603 -464
- tccli/services/tdmq/v20200217/examples.json +105 -105
- tccli/services/tds/v20220801/api.json +4 -4
- tccli/services/tem/v20210701/api.json +429 -372
- tccli/services/tem/v20210701/examples.json +85 -85
- tccli/services/teo/teo_client.py +277 -12
- tccli/services/teo/v20220901/api.json +1029 -124
- tccli/services/teo/v20220901/examples.json +84 -8
- tccli/services/thpc/v20230321/api.json +5 -5
- tccli/services/tke/tke_client.py +270 -58
- tccli/services/tke/v20180525/api.json +79 -27
- tccli/services/tke/v20180525/examples.json +9 -1
- tccli/services/tke/v20220501/api.json +176 -0
- tccli/services/tke/v20220501/examples.json +24 -0
- tccli/services/tms/tms_client.py +4 -57
- tccli/services/tms/v20201229/api.json +0 -354
- tccli/services/tms/v20201229/examples.json +0 -8
- tccli/services/tmt/v20180321/api.json +38 -8
- tccli/services/trp/v20210515/api.json +86 -74
- tccli/services/trp/v20210515/examples.json +65 -65
- tccli/services/trro/v20220325/api.json +72 -71
- tccli/services/trro/v20220325/examples.json +8 -8
- tccli/services/trtc/trtc_client.py +8 -61
- tccli/services/trtc/v20190722/api.json +293 -52
- tccli/services/trtc/v20190722/examples.json +3 -11
- tccli/services/tse/tse_client.py +110 -4
- tccli/services/tse/v20201207/api.json +122 -7
- tccli/services/tse/v20201207/examples.json +25 -9
- tccli/services/vclm/v20240523/api.json +225 -82
- tccli/services/vclm/v20240523/examples.json +13 -19
- tccli/services/vod/v20180717/api.json +431 -4
- tccli/services/vod/v20180717/examples.json +25 -5
- tccli/services/vod/v20240718/api.json +11 -11
- tccli/services/vod/v20240718/examples.json +4 -4
- tccli/services/vod/vod_client.py +53 -0
- tccli/services/vpc/v20170312/api.json +1195 -892
- tccli/services/vpc/v20170312/examples.json +84 -68
- tccli/services/vpc/vpc_client.py +168 -62
- tccli/services/waf/v20180125/api.json +2611 -2187
- tccli/services/waf/v20180125/examples.json +224 -284
- tccli/services/waf/waf_client.py +225 -119
- tccli/services/wav/v20210129/api.json +48 -48
- tccli/services/wav/v20210129/examples.json +4 -4
- tccli/services/wedata/v20210820/api.json +1595 -25
- tccli/services/wedata/v20210820/examples.json +44 -4
- tccli/services/wedata/wedata_client.py +265 -0
- tccli/services/weilingwith/v20230427/api.json +6 -6
- tccli/services/weilingwith/v20230427/examples.json +3 -3
- tccli/sso.py +229 -0
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/METADATA +6 -2
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/RECORD +278 -265
- tccli/services/cr/__init__.py +0 -4
- tccli/services/cr/cr_client.py +0 -1626
- tccli/services/cr/v20180321/api.json +0 -2829
- tccli/services/cr/v20180321/examples.json +0 -235
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/tse/tse_client.py
CHANGED
@@ -173,6 +173,58 @@ def doDescribeCloudNativeAPIGatewayServiceRateLimit(args, parsed_globals):
|
|
173
173
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
174
|
|
175
175
|
|
176
|
+
def doModifyCloudNativeAPIGatewayCertificate(args, parsed_globals):
|
177
|
+
g_param = parse_global_arg(parsed_globals)
|
178
|
+
|
179
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
180
|
+
cred = credential.CVMRoleCredential()
|
181
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
182
|
+
cred = credential.STSAssumeRoleCredential(
|
183
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
184
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
185
|
+
)
|
186
|
+
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):
|
187
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
188
|
+
else:
|
189
|
+
cred = credential.Credential(
|
190
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
191
|
+
)
|
192
|
+
http_profile = HttpProfile(
|
193
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
194
|
+
reqMethod="POST",
|
195
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
196
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
197
|
+
)
|
198
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
199
|
+
if g_param[OptionsDefine.Language]:
|
200
|
+
profile.language = g_param[OptionsDefine.Language]
|
201
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
202
|
+
client = mod.TseClient(cred, g_param[OptionsDefine.Region], profile)
|
203
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
204
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
205
|
+
model = models.ModifyCloudNativeAPIGatewayCertificateRequest()
|
206
|
+
model.from_json_string(json.dumps(args))
|
207
|
+
start_time = time.time()
|
208
|
+
while True:
|
209
|
+
rsp = client.ModifyCloudNativeAPIGatewayCertificate(model)
|
210
|
+
result = rsp.to_json_string()
|
211
|
+
try:
|
212
|
+
json_obj = json.loads(result)
|
213
|
+
except TypeError as e:
|
214
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
215
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
216
|
+
break
|
217
|
+
cur_time = time.time()
|
218
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
219
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
220
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
221
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
222
|
+
else:
|
223
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
224
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
225
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
|
+
|
227
|
+
|
176
228
|
def doDeleteCloudNativeAPIGatewayPublicNetwork(args, parsed_globals):
|
177
229
|
g_param = parse_global_arg(parsed_globals)
|
178
230
|
|
@@ -1629,7 +1681,7 @@ def doModifyAutoScalerResourceStrategy(args, parsed_globals):
|
|
1629
1681
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1630
1682
|
|
1631
1683
|
|
1632
|
-
def
|
1684
|
+
def doDescribeInstanceTagInfos(args, parsed_globals):
|
1633
1685
|
g_param = parse_global_arg(parsed_globals)
|
1634
1686
|
|
1635
1687
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1658,11 +1710,11 @@ def doModifyCloudNativeAPIGatewayCertificate(args, parsed_globals):
|
|
1658
1710
|
client = mod.TseClient(cred, g_param[OptionsDefine.Region], profile)
|
1659
1711
|
client._sdkVersion += ("_CLI_" + __version__)
|
1660
1712
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1661
|
-
model = models.
|
1713
|
+
model = models.DescribeInstanceTagInfosRequest()
|
1662
1714
|
model.from_json_string(json.dumps(args))
|
1663
1715
|
start_time = time.time()
|
1664
1716
|
while True:
|
1665
|
-
rsp = client.
|
1717
|
+
rsp = client.DescribeInstanceTagInfos(model)
|
1666
1718
|
result = rsp.to_json_string()
|
1667
1719
|
try:
|
1668
1720
|
json_obj = json.loads(result)
|
@@ -3189,6 +3241,58 @@ def doDeleteGovernanceServices(args, parsed_globals):
|
|
3189
3241
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3190
3242
|
|
3191
3243
|
|
3244
|
+
def doRestartSREInstance(args, parsed_globals):
|
3245
|
+
g_param = parse_global_arg(parsed_globals)
|
3246
|
+
|
3247
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3248
|
+
cred = credential.CVMRoleCredential()
|
3249
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3250
|
+
cred = credential.STSAssumeRoleCredential(
|
3251
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3252
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3253
|
+
)
|
3254
|
+
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):
|
3255
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3256
|
+
else:
|
3257
|
+
cred = credential.Credential(
|
3258
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3259
|
+
)
|
3260
|
+
http_profile = HttpProfile(
|
3261
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3262
|
+
reqMethod="POST",
|
3263
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3264
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3265
|
+
)
|
3266
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3267
|
+
if g_param[OptionsDefine.Language]:
|
3268
|
+
profile.language = g_param[OptionsDefine.Language]
|
3269
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3270
|
+
client = mod.TseClient(cred, g_param[OptionsDefine.Region], profile)
|
3271
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3272
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3273
|
+
model = models.RestartSREInstanceRequest()
|
3274
|
+
model.from_json_string(json.dumps(args))
|
3275
|
+
start_time = time.time()
|
3276
|
+
while True:
|
3277
|
+
rsp = client.RestartSREInstance(model)
|
3278
|
+
result = rsp.to_json_string()
|
3279
|
+
try:
|
3280
|
+
json_obj = json.loads(result)
|
3281
|
+
except TypeError as e:
|
3282
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3283
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3284
|
+
break
|
3285
|
+
cur_time = time.time()
|
3286
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3287
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3288
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3289
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3290
|
+
else:
|
3291
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3292
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3293
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3294
|
+
|
3295
|
+
|
3192
3296
|
def doCreateGovernanceAlias(args, parsed_globals):
|
3193
3297
|
g_param = parse_global_arg(parsed_globals)
|
3194
3298
|
|
@@ -5855,6 +5959,7 @@ ACTION_MAP = {
|
|
5855
5959
|
"DescribeOneCloudNativeAPIGatewayService": doDescribeOneCloudNativeAPIGatewayService,
|
5856
5960
|
"UpdateEngineInternetAccess": doUpdateEngineInternetAccess,
|
5857
5961
|
"DescribeCloudNativeAPIGatewayServiceRateLimit": doDescribeCloudNativeAPIGatewayServiceRateLimit,
|
5962
|
+
"ModifyCloudNativeAPIGatewayCertificate": doModifyCloudNativeAPIGatewayCertificate,
|
5858
5963
|
"DeleteCloudNativeAPIGatewayPublicNetwork": doDeleteCloudNativeAPIGatewayPublicNetwork,
|
5859
5964
|
"DescribeGovernanceAliases": doDescribeGovernanceAliases,
|
5860
5965
|
"DeleteConfigFileGroup": doDeleteConfigFileGroup,
|
@@ -5883,7 +5988,7 @@ ACTION_MAP = {
|
|
5883
5988
|
"DescribeZookeeperServerInterfaces": doDescribeZookeeperServerInterfaces,
|
5884
5989
|
"DeleteConfigFiles": doDeleteConfigFiles,
|
5885
5990
|
"ModifyAutoScalerResourceStrategy": doModifyAutoScalerResourceStrategy,
|
5886
|
-
"
|
5991
|
+
"DescribeInstanceTagInfos": doDescribeInstanceTagInfos,
|
5887
5992
|
"PublishConfigFiles": doPublishConfigFiles,
|
5888
5993
|
"DescribeConfigFile": doDescribeConfigFile,
|
5889
5994
|
"DescribeConfigFileReleases": doDescribeConfigFileReleases,
|
@@ -5913,6 +6018,7 @@ ACTION_MAP = {
|
|
5913
6018
|
"DescribeCloudNativeAPIGatewayCertificates": doDescribeCloudNativeAPIGatewayCertificates,
|
5914
6019
|
"ModifyCloudNativeAPIGatewayServiceRateLimit": doModifyCloudNativeAPIGatewayServiceRateLimit,
|
5915
6020
|
"DeleteGovernanceServices": doDeleteGovernanceServices,
|
6021
|
+
"RestartSREInstance": doRestartSREInstance,
|
5916
6022
|
"CreateGovernanceAlias": doCreateGovernanceAlias,
|
5917
6023
|
"DescribeGovernanceInstances": doDescribeGovernanceInstances,
|
5918
6024
|
"DescribeGovernanceServices": doDescribeGovernanceServices,
|
@@ -497,6 +497,13 @@
|
|
497
497
|
"output": "DescribeGovernanceServicesResponse",
|
498
498
|
"status": "online"
|
499
499
|
},
|
500
|
+
"DescribeInstanceTagInfos": {
|
501
|
+
"document": "查看实例的标签信息",
|
502
|
+
"input": "DescribeInstanceTagInfosRequest",
|
503
|
+
"name": "查看实例的标签信息",
|
504
|
+
"output": "DescribeInstanceTagInfosResponse",
|
505
|
+
"status": "online"
|
506
|
+
},
|
500
507
|
"DescribeNacosReplicas": {
|
501
508
|
"document": "查询Nacos类型引擎实例副本信息",
|
502
509
|
"input": "DescribeNacosReplicasRequest",
|
@@ -735,6 +742,13 @@
|
|
735
742
|
"output": "PublishConfigFilesResponse",
|
736
743
|
"status": "online"
|
737
744
|
},
|
745
|
+
"RestartSREInstance": {
|
746
|
+
"document": "重启微服务引擎实例",
|
747
|
+
"input": "RestartSREInstanceRequest",
|
748
|
+
"name": "重启微服务引擎实例",
|
749
|
+
"output": "RestartSREInstanceResponse",
|
750
|
+
"status": "online"
|
751
|
+
},
|
738
752
|
"RollbackConfigFileReleases": {
|
739
753
|
"document": "回滚配置发布",
|
740
754
|
"input": "RollbackConfigFileReleasesRequest",
|
@@ -3660,7 +3674,7 @@
|
|
3660
3674
|
{
|
3661
3675
|
"disabled": false,
|
3662
3676
|
"document": "绑定的域名",
|
3663
|
-
"example": "[\"
|
3677
|
+
"example": "[\"tencent.com\"]",
|
3664
3678
|
"member": "string",
|
3665
3679
|
"name": "BindDomains",
|
3666
3680
|
"required": true,
|
@@ -3678,7 +3692,7 @@
|
|
3678
3692
|
{
|
3679
3693
|
"disabled": false,
|
3680
3694
|
"document": "证书名称",
|
3681
|
-
"example": "
|
3695
|
+
"example": "tencent.com",
|
3682
3696
|
"member": "string",
|
3683
3697
|
"name": "Name",
|
3684
3698
|
"required": false,
|
@@ -4321,7 +4335,7 @@
|
|
4321
4335
|
{
|
4322
4336
|
"disabled": false,
|
4323
4337
|
"document": "请求路径",
|
4324
|
-
"example": "/",
|
4338
|
+
"example": "/v1/users",
|
4325
4339
|
"member": "string",
|
4326
4340
|
"name": "Path",
|
4327
4341
|
"required": false,
|
@@ -8715,6 +8729,53 @@
|
|
8715
8729
|
],
|
8716
8730
|
"usage": "out"
|
8717
8731
|
},
|
8732
|
+
"DescribeInstanceTagInfosRequest": {
|
8733
|
+
"document": "DescribeInstanceTagInfos请求参数结构体",
|
8734
|
+
"members": [
|
8735
|
+
{
|
8736
|
+
"disabled": false,
|
8737
|
+
"document": "实例ID",
|
8738
|
+
"example": "ins-xxxxxx",
|
8739
|
+
"member": "string",
|
8740
|
+
"name": "InstanceId",
|
8741
|
+
"required": true,
|
8742
|
+
"type": "string"
|
8743
|
+
}
|
8744
|
+
],
|
8745
|
+
"type": "object"
|
8746
|
+
},
|
8747
|
+
"DescribeInstanceTagInfosResponse": {
|
8748
|
+
"document": "DescribeInstanceTagInfos返回参数结构体",
|
8749
|
+
"members": [
|
8750
|
+
{
|
8751
|
+
"disabled": false,
|
8752
|
+
"document": "实例ID",
|
8753
|
+
"example": "ins-xxxx",
|
8754
|
+
"member": "string",
|
8755
|
+
"name": "InstanceId",
|
8756
|
+
"output_required": true,
|
8757
|
+
"type": "string",
|
8758
|
+
"value_allowed_null": false
|
8759
|
+
},
|
8760
|
+
{
|
8761
|
+
"disabled": false,
|
8762
|
+
"document": "实例标签集合",
|
8763
|
+
"example": "无",
|
8764
|
+
"member": "InstanceTagInfo",
|
8765
|
+
"name": "TagInfos",
|
8766
|
+
"output_required": true,
|
8767
|
+
"type": "list",
|
8768
|
+
"value_allowed_null": false
|
8769
|
+
},
|
8770
|
+
{
|
8771
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
8772
|
+
"member": "string",
|
8773
|
+
"name": "RequestId",
|
8774
|
+
"type": "string"
|
8775
|
+
}
|
8776
|
+
],
|
8777
|
+
"type": "object"
|
8778
|
+
},
|
8718
8779
|
"DescribeNacosReplicasRequest": {
|
8719
8780
|
"document": "DescribeNacosReplicas请求参数结构体",
|
8720
8781
|
"members": [
|
@@ -13400,7 +13461,7 @@
|
|
13400
13461
|
{
|
13401
13462
|
"disabled": false,
|
13402
13463
|
"document": "四层匹配的目的端口\t",
|
13403
|
-
"example": "
|
13464
|
+
"example": "8000",
|
13404
13465
|
"member": "uint64",
|
13405
13466
|
"name": "DestinationPorts",
|
13406
13467
|
"required": false,
|
@@ -13553,7 +13614,7 @@
|
|
13553
13614
|
{
|
13554
13615
|
"disabled": false,
|
13555
13616
|
"document": "请求路径",
|
13556
|
-
"example": "/",
|
13617
|
+
"example": "/v1/users",
|
13557
13618
|
"member": "string",
|
13558
13619
|
"name": "Path",
|
13559
13620
|
"required": false,
|
@@ -14808,6 +14869,60 @@
|
|
14808
14869
|
],
|
14809
14870
|
"usage": "both"
|
14810
14871
|
},
|
14872
|
+
"RestartSREInstanceRequest": {
|
14873
|
+
"document": "RestartSREInstance请求参数结构体",
|
14874
|
+
"members": [
|
14875
|
+
{
|
14876
|
+
"disabled": false,
|
14877
|
+
"document": "微服务引擎实例Id",
|
14878
|
+
"example": "sre-12345678",
|
14879
|
+
"member": "string",
|
14880
|
+
"name": "InstanceId",
|
14881
|
+
"required": true,
|
14882
|
+
"type": "string"
|
14883
|
+
},
|
14884
|
+
{
|
14885
|
+
"disabled": false,
|
14886
|
+
"document": "重启的环境类型(PROD,DEV,UAT等)",
|
14887
|
+
"example": "[\"PROD\",\"DEV\"]",
|
14888
|
+
"member": "string",
|
14889
|
+
"name": "EnvTypes",
|
14890
|
+
"required": false,
|
14891
|
+
"type": "list"
|
14892
|
+
},
|
14893
|
+
{
|
14894
|
+
"disabled": false,
|
14895
|
+
"document": "指定需要重启的实例节点(当前仅支持zk单节点重启)",
|
14896
|
+
"example": "zookeeper-0",
|
14897
|
+
"member": "string",
|
14898
|
+
"name": "NodeName",
|
14899
|
+
"required": false,
|
14900
|
+
"type": "string"
|
14901
|
+
}
|
14902
|
+
],
|
14903
|
+
"type": "object"
|
14904
|
+
},
|
14905
|
+
"RestartSREInstanceResponse": {
|
14906
|
+
"document": "RestartSREInstance返回参数结构体",
|
14907
|
+
"members": [
|
14908
|
+
{
|
14909
|
+
"disabled": false,
|
14910
|
+
"document": "任务ID",
|
14911
|
+
"example": "task-123456",
|
14912
|
+
"member": "string",
|
14913
|
+
"name": "TaskId",
|
14914
|
+
"type": "string",
|
14915
|
+
"value_allowed_null": false
|
14916
|
+
},
|
14917
|
+
{
|
14918
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
14919
|
+
"member": "string",
|
14920
|
+
"name": "RequestId",
|
14921
|
+
"type": "string"
|
14922
|
+
}
|
14923
|
+
],
|
14924
|
+
"type": "object"
|
14925
|
+
},
|
14811
14926
|
"RollbackConfigFileReleasesRequest": {
|
14812
14927
|
"document": "RollbackConfigFileReleases请求参数结构体",
|
14813
14928
|
"members": [
|
@@ -15622,7 +15737,7 @@
|
|
15622
15737
|
{
|
15623
15738
|
"disabled": false,
|
15624
15739
|
"document": "绑定的域名列表",
|
15625
|
-
"example": "[\"
|
15740
|
+
"example": "[\"tencent.com\"]",
|
15626
15741
|
"member": "string",
|
15627
15742
|
"name": "BindDomains",
|
15628
15743
|
"required": true,
|
@@ -15631,7 +15746,7 @@
|
|
15631
15746
|
{
|
15632
15747
|
"disabled": false,
|
15633
15748
|
"document": "证书名称",
|
15634
|
-
"example": "
|
15749
|
+
"example": "tencent.com",
|
15635
15750
|
"member": "string",
|
15636
15751
|
"name": "Name",
|
15637
15752
|
"required": false,
|
@@ -27,15 +27,15 @@
|
|
27
27
|
"CreateCloudNativeAPIGateway": [
|
28
28
|
{
|
29
29
|
"document": "创建云原生API网关实例",
|
30
|
-
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudNativeAPIGateway\n<公共请求参数>\n\n{\n \"Name\": \"
|
31
|
-
"output": "{\n \"Response\": {\n \"Result\": {\n \"GatewayId\": \"
|
30
|
+
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudNativeAPIGateway\n<公共请求参数>\n\n{\n \"Name\": \"gateway-prod\",\n \"Type\": \"kong\",\n \"GatewayVersion\": \"2.5.1\",\n \"NodeConfig\": {\n \"Specification\": \"1c2g\",\n \"Number\": 2\n },\n \"VpcConfig\": {\n \"VpcId\": \"vpc-59cag821\",\n \"SubnetId\": \"subnet-8tzp8uz1\"\n },\n \"Description\": \"公网入口网关,现网环境\",\n \"Tags\": [\n {\n \"TagKey\": \"env\",\n \"TagValue\": \"prod\"\n }\n ],\n \"EnableCls\": false,\n \"FeatureVersion\": \"STANDARD\",\n \"InternetMaxBandwidthOut\": 1,\n \"EngineRegion\": \"ap-guangzhou\",\n \"IngressClassName\": \"kong\",\n \"TradeType\": 0,\n \"InternetConfig\": {\n \"InternetAddressVersion\": \"IPV4\",\n \"InternetPayMode\": \"TRAFFIC\",\n \"InternetMaxBandwidthOut\": 1,\n \"Description\": \"公网负载均衡\",\n \"SlaType\": \"clb.c2.medium\",\n \"MultiZoneFlag\": true,\n \"MasterZoneId\": \"ap-guangzhou-3\",\n \"SlaveZoneId\": \"ap-guangzhou-4\"\n }\n}",
|
31
|
+
"output": "{\n \"Response\": {\n \"Result\": {\n \"GatewayId\": \"gateway-dde03755\",\n \"Status\": \"Creating\",\n \"TaskId\": \"task-b2c41103\"\n },\n \"RequestId\": \"a02f30b2-6e3d-4efb-9883-1b11b8fa7df2\"\n }\n}",
|
32
32
|
"title": "创建云原生API网关实例"
|
33
33
|
}
|
34
34
|
],
|
35
35
|
"CreateCloudNativeAPIGatewayCanaryRule": [
|
36
36
|
{
|
37
37
|
"document": "创建灰度规则",
|
38
|
-
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudNativeAPIGatewayCanaryRule\n<公共请求参数>\n\n{\n \"GatewayId\": \"gateway-18f786a\",\n \"ServiceId\": \"6abf620f-c6b9-4440-b90c-56c165225cfc\",\n \"CanaryRule\": {\n \"Priority\": 10,\n \"Enabled\": true,\n \"ConditionList\": [\n {\n \"Type\": \"query\",\n \"Key\": \"
|
38
|
+
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudNativeAPIGatewayCanaryRule\n<公共请求参数>\n\n{\n \"GatewayId\": \"gateway-18f786a\",\n \"ServiceId\": \"6abf620f-c6b9-4440-b90c-56c165225cfc\",\n \"CanaryRule\": {\n \"Priority\": 10,\n \"Enabled\": true,\n \"ConditionList\": [\n {\n \"Type\": \"query\",\n \"Key\": \"app\",\n \"Operator\": \"==\",\n \"Value\": \"learn\"\n }\n ],\n \"BalancedServiceList\": [\n {\n \"ServiceID\": \"6abf620f-c6b9-4440-b90c-56c165225cf\",\n \"ServiceName\": \"svc1\",\n \"UpstreamName\": \"ups1\",\n \"Percent\": 100\n }\n ]\n }\n}",
|
39
39
|
"output": "{\n \"Response\": {\n \"RequestId\": \"741e4e82-371d-48de-a843-867c69ff114d\"\n }\n}",
|
40
40
|
"title": "创建灰度规则"
|
41
41
|
}
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"CreateCloudNativeAPIGatewayCertificate": [
|
44
44
|
{
|
45
45
|
"document": "创建云原生网关证书",
|
46
|
-
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudNativeAPIGatewayCertificate\n<公共请求参数>\n\n{\n \"GatewayId\": \"gateway-9abf3b79\",\n \"Name\": \"
|
46
|
+
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudNativeAPIGatewayCertificate\n<公共请求参数>\n\n{\n \"GatewayId\": \"gateway-9abf3b79\",\n \"Name\": \"tencent.com\",\n \"BindDomains\": [\n \"tencent.com\"\n ],\n \"CertId\": \"12412rew43-5fdsf35\"\n}",
|
47
47
|
"output": "{\n \"Response\": {\n \"RequestId\": \"741e4e82-371d-48de-a843-867c69ff114d\"\n }\n}",
|
48
48
|
"title": "创建云原生网关证书"
|
49
49
|
}
|
@@ -51,15 +51,15 @@
|
|
51
51
|
"CreateCloudNativeAPIGatewayPublicNetwork": [
|
52
52
|
{
|
53
53
|
"document": "创建公网网络配置",
|
54
|
-
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudNativeAPIGatewayPublicNetwork\n<公共请求参数>\n\n{\n \"GatewayId\": \"abc\",\n \"GroupId\": \"abc\",\n \"InternetConfig\": {\n \"InternetAddressVersion\": \"
|
55
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
54
|
+
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudNativeAPIGatewayPublicNetwork\n<公共请求参数>\n\n{\n \"GatewayId\": \"abc\",\n \"GroupId\": \"abc\",\n \"InternetConfig\": {\n \"InternetAddressVersion\": \"IPV4\",\n \"InternetPayMode\": \"TRAFFIC\",\n \"InternetMaxBandwidthOut\": 1,\n \"Description\": \"公网负载均衡\",\n \"SlaType\": \"clb.c4.small\"\n }\n}",
|
55
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a02f30b2-6e3d-4efb-9883-1b11b8fa7df2\"\n }\n}",
|
56
56
|
"title": "创建公网网络配置"
|
57
57
|
}
|
58
58
|
],
|
59
59
|
"CreateCloudNativeAPIGatewayRoute": [
|
60
60
|
{
|
61
61
|
"document": "创建云原生网关路由",
|
62
|
-
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudNativeAPIGatewayRoute\n<公共请求参数>\n\n{\n \"GatewayId\": \"gateway-9abf3b79\",\n \"ServiceID\": \"service-demo\",\n \"RouteName\": \"route-demo\",\n \"Methods\": [\n \"GET\",\n \"POST\"\n ],\n \"Hosts\": [\n \"www.baidu.com\"\n ],\n \"Paths\": [\n \"
|
62
|
+
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudNativeAPIGatewayRoute\n<公共请求参数>\n\n{\n \"GatewayId\": \"gateway-9abf3b79\",\n \"ServiceID\": \"service-demo\",\n \"RouteName\": \"route-demo\",\n \"Methods\": [\n \"GET\",\n \"POST\"\n ],\n \"Hosts\": [\n \"www.baidu.com\"\n ],\n \"Paths\": [\n \"/v1/users\"\n ],\n \"PreserveHost\": true,\n \"StripPath\": false,\n \"HttpsRedirectStatusCode\": 308\n}",
|
63
63
|
"output": "{\n \"Response\": {\n \"RequestId\": \"741e4e82-371d-48de-a843-867c69ff114d\"\n }\n}",
|
64
64
|
"title": "创建云原生网关路由"
|
65
65
|
}
|
@@ -75,7 +75,7 @@
|
|
75
75
|
"CreateCloudNativeAPIGatewayService": [
|
76
76
|
{
|
77
77
|
"document": "创建云原生网关服务",
|
78
|
-
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudNativeAPIGatewayService\n<公共请求参数>\n\n{\n \"GatewayId\": \"gateway-9abf3b79\",\n \"Name\": \"
|
78
|
+
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudNativeAPIGatewayService\n<公共请求参数>\n\n{\n \"GatewayId\": \"gateway-9abf3b79\",\n \"Name\": \"user-service\",\n \"Protocol\": \"http\",\n \"Path\": \"/v1/users\",\n \"Timeout\": 5000,\n \"Retries\": 3,\n \"UpstreamType\": \"HostIP\",\n \"UpstreamInfo\": {\n \"Host\": \"8.8.8.8\",\n \"Port\": 60\n }\n}",
|
79
79
|
"output": "{\n \"Response\": {\n \"RequestId\": \"741e4e82-371d-48de-a843-867c69ff114d\"\n }\n}",
|
80
80
|
"title": "创建云原生网关服务"
|
81
81
|
}
|
@@ -83,7 +83,7 @@
|
|
83
83
|
"CreateCloudNativeAPIGatewayServiceRateLimit": [
|
84
84
|
{
|
85
85
|
"document": "创建云原生网关限流插件(服务)",
|
86
|
-
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudNativeAPIGatewayServiceRateLimit\n<公共请求参数>\n\n{\n \"GatewayId\": \"
|
86
|
+
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudNativeAPIGatewayServiceRateLimit\n<公共请求参数>\n\n{\n \"GatewayId\": \"gateway-dde037x1\",\n \"Name\": \"公网接入网关\",\n \"LimitDetail\": {\n \"Enabled\": true,\n \"QpsThresholds\": [\n {\n \"Unit\": \"second\",\n \"Max\": 10\n }\n ],\n \"Path\": \"/v1/users\",\n \"Header\": \"X-Api-Version\",\n \"LimitBy\": \"header\",\n \"ExternalRedis\": {\n \"RedisHost\": \"192.168.2.162\",\n \"RedisPassword\": \"tse@tencent\",\n \"RedisPort\": 6379,\n \"RedisTimeout\": 10\n },\n \"Policy\": \"redis\",\n \"RateLimitResponse\": {\n \"Body\": \"too many requests\",\n \"Headers\": [\n {\n \"Key\": \"app\",\n \"Value\": \"kong\"\n }\n ],\n \"HttpStatus\": 429\n },\n \"RateLimitResponseUrl\": \"http://192.168.2.165/downgrade\",\n \"ResponseType\": \"default\",\n \"HideClientHeaders\": true,\n \"IsDelay\": true,\n \"LineUpTime\": 10\n }\n}",
|
87
87
|
"output": "{\n \"Response\": {\n \"RequestId\": \"741e4e82-371d-48de-a843-867c69ff114d\"\n }\n}",
|
88
88
|
"title": "创建云原生网关限流插件(服务)"
|
89
89
|
}
|
@@ -574,6 +574,14 @@
|
|
574
574
|
"title": "查询治理中心服务列表"
|
575
575
|
}
|
576
576
|
],
|
577
|
+
"DescribeInstanceTagInfos": [
|
578
|
+
{
|
579
|
+
"document": "",
|
580
|
+
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstanceTagInfos\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}",
|
581
|
+
"output": "{\n \"Response\": {\n \"InstanceId\": \"abc\",\n \"TagInfos\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
582
|
+
"title": "查看实例标签信息"
|
583
|
+
}
|
584
|
+
],
|
577
585
|
"DescribeNacosReplicas": [
|
578
586
|
{
|
579
587
|
"document": "查询Nacos类型引擎实例副本信息",
|
@@ -846,6 +854,14 @@
|
|
846
854
|
"title": "发布配置文件"
|
847
855
|
}
|
848
856
|
],
|
857
|
+
"RestartSREInstance": [
|
858
|
+
{
|
859
|
+
"document": "RestartSREInstance",
|
860
|
+
"input": "https://tse.tencentcloudapi.com/?Action=RestartSREInstance\n&InstanceId=sre-12345678\n&<公共请求参数>",
|
861
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5d996e05507e42d5970cd2e25ed5267a\",\n \"TaskId\": \"task-123456\"\n }\n}",
|
862
|
+
"title": "RestartSREInstance"
|
863
|
+
}
|
864
|
+
],
|
849
865
|
"RollbackConfigFileReleases": [
|
850
866
|
{
|
851
867
|
"document": "回滚配置",
|