tccli 3.0.1083.1__py2.py3-none-any.whl → 3.0.1085.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/aiart/v20221229/QueryTextToImageProJob.md +30 -0
- tccli/examples/aiart/v20221229/SubmitTextToImageProJob.md +22 -0
- tccli/examples/billing/v20180709/DescribeCostDetail.md +36 -33
- tccli/examples/billing/v20180709/DescribeCostSummaryByProject.md +25 -80
- tccli/examples/billing/v20180709/DescribeCostSummaryByRegion.md +23 -14
- tccli/examples/billing/v20180709/DescribeCostSummaryByResource.md +53 -27
- tccli/examples/ccc/v20200210/CreateCompanyApply.md +36 -0
- tccli/examples/ccc/v20200210/DescribeCompanyList.md +33 -0
- tccli/examples/ccc/v20200210/ModifyCompanyApply.md +36 -0
- tccli/examples/cdb/v20170320/CreateCloneInstance.md +5 -5
- tccli/examples/ckafka/v20190819/CreateInstancePost.md +9 -6
- tccli/examples/ckafka/v20190819/CreatePrometheus.md +29 -0
- tccli/examples/ckafka/v20190819/DescribeGroupInfo.md +2 -2
- tccli/examples/ckafka/v20190819/DescribePrometheus.md +25 -0
- tccli/examples/ckafka/v20190819/ModifyAclRule.md +1 -1
- tccli/examples/cynosdb/v20190107/RollbackToNewCluster.md +62 -0
- tccli/examples/dlc/v20210125/QueryTaskCostDetail.md +20 -0
- tccli/examples/ess/v20201111/CreateFlowApprovers.md +34 -0
- tccli/examples/ess/v20201111/CreateFlowGroupByFiles.md +168 -0
- tccli/examples/ess/v20201111/CreateFlowGroupByTemplates.md +98 -0
- tccli/examples/ess/v20201111/CreateSchemeUrl.md +31 -3
- tccli/examples/essbasic/v20210526/ChannelCreateFlowApprovers.md +41 -0
- tccli/examples/essbasic/v20210526/ChannelCreateFlowGroupByFiles.md +171 -0
- tccli/examples/essbasic/v20210526/ChannelCreateFlowGroupByTemplates.md +92 -0
- tccli/examples/essbasic/v20210526/ChannelCreateReleaseFlow.md +1 -1
- tccli/examples/essbasic/v20210526/CreateSignUrls.md +52 -0
- tccli/examples/faceid/v20180301/GetFaceIdResult.md +4 -4
- tccli/examples/faceid/v20180301/GetFaceIdRiskInfo.md +26 -0
- tccli/examples/faceid/v20180301/GetFaceidRiskInfoToken.md +22 -0
- tccli/examples/iotexplorer/v20190423/BindCloudStorageUser.md +22 -0
- tccli/examples/iotexplorer/v20190423/CreateIotVideoCloudStorage.md +22 -0
- tccli/examples/iotexplorer/v20190423/DeleteCloudStorageEvent.md +26 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorage.md +27 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageDate.md +24 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageEvents.md +87 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageMultiThumbnail.md +28 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageOrder.md +25 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStoragePackageConsumeDetails.md +21 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStoragePackageConsumeStats.md +44 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageStreamData.md +24 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageThumbnail.md +24 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageThumbnailList.md +28 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageTime.md +43 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageUsers.md +29 -0
- tccli/examples/iotexplorer/v20190423/DescribeDevicePackages.md +37 -0
- tccli/examples/iotexplorer/v20190423/DescribePackageConsumeTask.md +21 -0
- tccli/examples/iotexplorer/v20190423/DescribePackageConsumeTasks.md +39 -0
- tccli/examples/iotexplorer/v20190423/GenerateSignedVideoURL.md +22 -0
- tccli/examples/iotexplorer/v20190423/InheritCloudStorageUser.md +23 -0
- tccli/examples/iotexplorer/v20190423/ResetCloudStorage.md +21 -0
- tccli/examples/iotexplorer/v20190423/ResetCloudStorageEvent.md +22 -0
- tccli/examples/iotexplorer/v20190423/TransferCloudStorage.md +22 -0
- tccli/examples/live/v20180801/CreateLiveTimeShiftTemplate.md +8 -8
- tccli/examples/monitor/v20180724/CreateExporterIntegration.md +626 -2
- tccli/examples/ocr/v20181119/ReconstructDocument.md +2263 -0
- tccli/examples/pts/v20210728/CreateEnvironment.md +18 -0
- tccli/examples/pts/v20210728/DeleteEnvironments.md +18 -0
- tccli/examples/pts/v20210728/DescribeEnvironments.md +18 -0
- tccli/examples/pts/v20210728/UpdateEnvironment.md +18 -0
- tccli/examples/ssl/v20191205/UploadCertificate.md +48 -3
- tccli/examples/tag/v20180813/DescribeProjects.md +1 -1
- tccli/examples/tione/v20211111/CreateModelService.md +3 -1
- tccli/examples/tione/v20211111/ModifyModelService.md +62 -228
- tccli/examples/wedata/v20210820/BatchCreateIntegrationTaskAlarms.md +11 -11
- tccli/examples/wedata/v20210820/BatchForceSuccessIntegrationTaskInstances.md +2 -2
- tccli/examples/wedata/v20210820/BatchKillIntegrationTaskInstances.md +2 -2
- tccli/examples/wedata/v20210820/BatchMakeUpIntegrationTasks.md +2 -2
- tccli/examples/wedata/v20210820/BatchRerunIntegrationTaskInstances.md +5 -2
- tccli/examples/wedata/v20210820/CheckDuplicateRuleName.md +5 -5
- tccli/examples/wedata/v20210820/CheckDuplicateTemplateName.md +4 -4
- tccli/examples/wedata/v20210820/CheckIntegrationNodeNameExists.md +4 -4
- tccli/examples/wedata/v20210820/CheckIntegrationTaskNameExists.md +4 -4
- tccli/examples/wedata/v20210820/CheckTaskNameExist.md +3 -3
- tccli/examples/wedata/v20210820/CommitExportTask.md +4 -4
- tccli/examples/wedata/v20210820/CreateInLongAgent.md +6 -6
- tccli/examples/wedata/v20210820/CreateOrUpdateResource.md +2 -1
- tccli/examples/wedata/v20210820/CreateRuleTemplate.md +1 -1
- tccli/examples/wedata/v20210820/CreateTaskAlarmRegular.md +11 -11
- tccli/examples/wedata/v20210820/DeleteInLongAgent.md +3 -3
- tccli/examples/wedata/v20210820/DeleteIntegrationNode.md +2 -2
- tccli/examples/wedata/v20210820/DeleteOfflineTask.md +4 -4
- tccli/examples/wedata/v20210820/DeleteRule.md +1 -1
- tccli/examples/wedata/v20210820/DeleteRuleTemplate.md +1 -1
- tccli/examples/wedata/v20210820/DescribeClusterNamespaceList.md +6 -6
- tccli/examples/wedata/v20210820/DescribeDataBases.md +12 -8
- tccli/examples/wedata/v20210820/DescribeDataCheckStat.md +5 -5
- tccli/examples/wedata/v20210820/DescribeDataObjects.md +6 -3
- tccli/examples/wedata/v20210820/DescribeExecStrategy.md +20 -16
- tccli/examples/wedata/v20210820/DescribeInLongAgentTaskList.md +6 -6
- tccli/examples/wedata/v20210820/DescribeInLongAgentVpcList.md +3 -3
- tccli/examples/wedata/v20210820/DescribeInstances.md +6 -6
- tccli/examples/wedata/v20210820/DescribeIntegrationNode.md +61 -43
- tccli/examples/wedata/v20210820/DescribeIntegrationStatistics.md +13 -13
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsAgentStatus.md +6 -6
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsInstanceTrend.md +8 -10
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsRecordsTrend.md +1 -1
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsTaskStatus.md +5 -5
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsTaskStatusTrend.md +8 -10
- tccli/examples/wedata/v20210820/DescribeMonitorsByPage.md +7 -7
- tccli/examples/wedata/v20210820/DescribeOfflineTaskToken.md +3 -3
- tccli/examples/wedata/v20210820/DescribeProdTasks.md +6 -5
- tccli/examples/wedata/v20210820/DescribeRealTimeTaskInstanceNodeInfo.md +9 -9
- tccli/examples/wedata/v20210820/DescribeRealTimeTaskSpeed.md +32 -26
- tccli/examples/wedata/v20210820/DescribeRule.md +118 -23
- tccli/examples/wedata/v20210820/DescribeRuleDataSources.md +11 -8
- tccli/examples/wedata/v20210820/DescribeRuleDimStat.md +3 -3
- tccli/examples/wedata/v20210820/DescribeRuleExecDetail.md +48 -41
- tccli/examples/wedata/v20210820/DescribeRuleExecExportResult.md +15 -10
- tccli/examples/wedata/v20210820/DescribeRuleExecLog.md +2 -2
- tccli/examples/wedata/v20210820/DescribeRuleExecResults.md +72 -4
- tccli/examples/wedata/v20210820/DescribeRuleExecResultsByPage.md +38 -33
- tccli/examples/wedata/v20210820/DescribeRuleExecStat.md +14 -14
- tccli/examples/wedata/v20210820/DescribeRuleGroup.md +50 -23
- tccli/examples/wedata/v20210820/DescribeRuleGroupExecResultsByPage.md +87 -14
- tccli/examples/wedata/v20210820/DescribeRuleGroupExecResultsByPageWithoutAuth.md +81 -12
- tccli/examples/wedata/v20210820/DescribeRuleGroupSubscription.md +12 -6
- tccli/examples/wedata/v20210820/DescribeRuleGroupTable.md +35 -27
- tccli/examples/wedata/v20210820/DescribeRuleGroupsByPage.md +51 -21
- tccli/examples/wedata/v20210820/DescribeRuleHistoryByPage.md +9 -9
- tccli/examples/wedata/v20210820/DescribeRuleTablesByPage.md +52 -35
- tccli/examples/wedata/v20210820/DescribeRuleTemplate.md +33 -16
- tccli/examples/wedata/v20210820/DescribeRuleTemplates.md +8 -8
- tccli/examples/wedata/v20210820/DescribeRuleTemplatesByPage.md +13 -13
- tccli/examples/wedata/v20210820/DescribeRulesByPage.md +123 -28
- tccli/examples/wedata/v20210820/DescribeStandardRuleDetailInfoList.md +3 -3
- tccli/examples/wedata/v20210820/DescribeTableInfoList.md +9 -2
- tccli/examples/wedata/v20210820/DescribeTaskInstance.md +35 -35
- tccli/examples/wedata/v20210820/DescribeTaskInstanceReportDetail.md +28 -26
- tccli/examples/wedata/v20210820/DescribeTaskLockStatus.md +7 -7
- tccli/examples/wedata/v20210820/DescribeTaskReport.md +6 -6
- tccli/examples/wedata/v20210820/DescribeTaskReportDetailList.md +17 -17
- tccli/examples/wedata/v20210820/DescribeTopTableStat.md +9 -9
- tccli/examples/wedata/v20210820/DescribeTrendStat.md +2 -2
- tccli/examples/wedata/v20210820/DryRunDIOfflineTask.md +10 -9
- tccli/examples/wedata/v20210820/GetIntegrationNodeColumnSchema.md +13 -11
- tccli/examples/wedata/v20210820/GetOfflineDIInstanceList.md +26 -26
- tccli/examples/wedata/v20210820/LockIntegrationTask.md +4 -4
- tccli/examples/wedata/v20210820/ModifyIntegrationNode.md +42 -41
- tccli/examples/wedata/v20210820/ModifyIntegrationTask.md +110 -58
- tccli/examples/wedata/v20210820/ModifyMonitorStatus.md +4 -4
- tccli/examples/wedata/v20210820/ModifyRule.md +24 -24
- tccli/examples/wedata/v20210820/ModifyRuleGroupSubscription.md +11 -13
- tccli/examples/wedata/v20210820/ModifyTaskAlarmRegular.md +45 -16
- tccli/examples/wedata/v20210820/ModifyTaskInfo.md +79 -29
- tccli/examples/wedata/v20210820/ModifyTaskName.md +5 -5
- tccli/examples/wedata/v20210820/RestartInLongAgent.md +3 -3
- tccli/examples/wedata/v20210820/RobAndLockIntegrationTask.md +7 -7
- tccli/examples/wedata/v20210820/StopIntegrationTask.md +4 -4
- tccli/examples/wedata/v20210820/TaskLog.md +5 -15
- tccli/examples/wedata/v20210820/UnlockIntegrationTask.md +4 -4
- tccli/examples/wedata/v20210820/UpdateInLongAgent.md +5 -5
- tccli/services/aiart/aiart_client.py +106 -0
- tccli/services/aiart/v20221229/api.json +174 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/asr/v20190614/api.json +4 -4
- tccli/services/bi/v20220105/api.json +27 -0
- tccli/services/billing/v20180709/api.json +365 -130
- tccli/services/billing/v20180709/examples.json +4 -4
- tccli/services/ccc/ccc_client.py +159 -0
- tccli/services/ccc/v20200210/api.json +442 -0
- tccli/services/ccc/v20200210/examples.json +24 -0
- tccli/services/cdb/v20170320/api.json +78 -24
- tccli/services/cdb/v20170320/examples.json +2 -2
- tccli/services/cdwpg/v20201230/api.json +9 -0
- tccli/services/ckafka/ckafka_client.py +106 -0
- tccli/services/ckafka/v20190819/api.json +211 -32
- tccli/services/ckafka/v20190819/examples.json +19 -3
- tccli/services/clb/v20180317/api.json +2 -2
- tccli/services/cloudstudio/v20230508/api.json +40 -4
- tccli/services/cls/v20201016/api.json +30 -30
- tccli/services/csip/v20221121/api.json +76 -76
- tccli/services/cwp/v20180228/api.json +124 -8
- tccli/services/cynosdb/cynosdb_client.py +53 -0
- tccli/services/cynosdb/v20190107/api.json +255 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +103 -4
- tccli/services/dlc/v20210125/examples.json +8 -0
- tccli/services/dsgc/v20190723/api.json +20 -0
- tccli/services/dts/v20211206/api.json +56 -2
- tccli/services/es/v20180416/api.json +127 -24
- tccli/services/ess/v20201111/api.json +143 -31
- tccli/services/ess/v20201111/examples.json +26 -2
- tccli/services/essbasic/v20210526/api.json +134 -13
- tccli/services/essbasic/v20210526/examples.json +25 -1
- tccli/services/faceid/faceid_client.py +136 -30
- tccli/services/faceid/v20180301/api.json +167 -10
- tccli/services/faceid/v20180301/examples.json +17 -1
- tccli/services/iotexplorer/iotexplorer_client.py +1453 -234
- tccli/services/iotexplorer/v20190423/api.json +2179 -117
- tccli/services/iotexplorer/v20190423/examples.json +184 -0
- tccli/services/lcic/v20220817/api.json +62 -4
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/live/v20180801/examples.json +2 -2
- tccli/services/monitor/v20180724/examples.json +111 -3
- tccli/services/mps/v20190612/api.json +53 -27
- tccli/services/ms/v20180408/api.json +14 -14
- tccli/services/oceanus/v20190422/api.json +1 -1
- tccli/services/ocr/ocr_client.py +53 -0
- tccli/services/ocr/v20181119/api.json +276 -0
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/pts/pts_client.py +212 -0
- tccli/services/pts/v20210728/api.json +96 -0
- tccli/services/pts/v20210728/examples.json +32 -0
- tccli/services/ssl/v20191205/examples.json +9 -3
- tccli/services/tag/v20180813/examples.json +1 -1
- tccli/services/tione/v20211111/api.json +77 -3
- tccli/services/tione/v20211111/examples.json +2 -2
- tccli/services/tms/v20201229/api.json +1 -1
- tccli/services/trtc/v20190722/api.json +1 -1
- tccli/services/tts/v20190823/api.json +10 -1
- tccli/services/vod/v20180717/api.json +6 -6
- tccli/services/wedata/v20210820/api.json +650 -200
- tccli/services/wedata/v20210820/examples.json +154 -148
- {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/RECORD +220 -181
- {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/pts/pts_client.py
CHANGED
@@ -69,6 +69,58 @@ def doDescribeScenarioWithJobs(args, parsed_globals):
|
|
69
69
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
70
|
|
71
71
|
|
72
|
+
def doDeleteEnvironments(args, parsed_globals):
|
73
|
+
g_param = parse_global_arg(parsed_globals)
|
74
|
+
|
75
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
76
|
+
cred = credential.CVMRoleCredential()
|
77
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
78
|
+
cred = credential.STSAssumeRoleCredential(
|
79
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
80
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
81
|
+
)
|
82
|
+
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):
|
83
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
84
|
+
else:
|
85
|
+
cred = credential.Credential(
|
86
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
87
|
+
)
|
88
|
+
http_profile = HttpProfile(
|
89
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
90
|
+
reqMethod="POST",
|
91
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
92
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
93
|
+
)
|
94
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
95
|
+
if g_param[OptionsDefine.Language]:
|
96
|
+
profile.language = g_param[OptionsDefine.Language]
|
97
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
98
|
+
client = mod.PtsClient(cred, g_param[OptionsDefine.Region], profile)
|
99
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
100
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
101
|
+
model = models.DeleteEnvironmentsRequest()
|
102
|
+
model.from_json_string(json.dumps(args))
|
103
|
+
start_time = time.time()
|
104
|
+
while True:
|
105
|
+
rsp = client.DeleteEnvironments(model)
|
106
|
+
result = rsp.to_json_string()
|
107
|
+
try:
|
108
|
+
json_obj = json.loads(result)
|
109
|
+
except TypeError as e:
|
110
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
111
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
112
|
+
break
|
113
|
+
cur_time = time.time()
|
114
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
115
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
116
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
117
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
118
|
+
else:
|
119
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
120
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
121
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
|
+
|
123
|
+
|
72
124
|
def doUpdateFileScenarioRelation(args, parsed_globals):
|
73
125
|
g_param = parse_global_arg(parsed_globals)
|
74
126
|
|
@@ -953,6 +1005,58 @@ def doDescribeAlertRecords(args, parsed_globals):
|
|
953
1005
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
954
1006
|
|
955
1007
|
|
1008
|
+
def doDescribeEnvironments(args, parsed_globals):
|
1009
|
+
g_param = parse_global_arg(parsed_globals)
|
1010
|
+
|
1011
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1012
|
+
cred = credential.CVMRoleCredential()
|
1013
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1014
|
+
cred = credential.STSAssumeRoleCredential(
|
1015
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1016
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1017
|
+
)
|
1018
|
+
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):
|
1019
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1020
|
+
else:
|
1021
|
+
cred = credential.Credential(
|
1022
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1023
|
+
)
|
1024
|
+
http_profile = HttpProfile(
|
1025
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1026
|
+
reqMethod="POST",
|
1027
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1028
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1029
|
+
)
|
1030
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1031
|
+
if g_param[OptionsDefine.Language]:
|
1032
|
+
profile.language = g_param[OptionsDefine.Language]
|
1033
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1034
|
+
client = mod.PtsClient(cred, g_param[OptionsDefine.Region], profile)
|
1035
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1036
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1037
|
+
model = models.DescribeEnvironmentsRequest()
|
1038
|
+
model.from_json_string(json.dumps(args))
|
1039
|
+
start_time = time.time()
|
1040
|
+
while True:
|
1041
|
+
rsp = client.DescribeEnvironments(model)
|
1042
|
+
result = rsp.to_json_string()
|
1043
|
+
try:
|
1044
|
+
json_obj = json.loads(result)
|
1045
|
+
except TypeError as e:
|
1046
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1047
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1048
|
+
break
|
1049
|
+
cur_time = time.time()
|
1050
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1051
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1052
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1053
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1054
|
+
else:
|
1055
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1056
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1057
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1058
|
+
|
1059
|
+
|
956
1060
|
def doDescribeAlertChannels(args, parsed_globals):
|
957
1061
|
g_param = parse_global_arg(parsed_globals)
|
958
1062
|
|
@@ -1265,6 +1369,58 @@ def doRestartCronJobs(args, parsed_globals):
|
|
1265
1369
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1266
1370
|
|
1267
1371
|
|
1372
|
+
def doUpdateEnvironment(args, parsed_globals):
|
1373
|
+
g_param = parse_global_arg(parsed_globals)
|
1374
|
+
|
1375
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1376
|
+
cred = credential.CVMRoleCredential()
|
1377
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1378
|
+
cred = credential.STSAssumeRoleCredential(
|
1379
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1380
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1381
|
+
)
|
1382
|
+
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):
|
1383
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1384
|
+
else:
|
1385
|
+
cred = credential.Credential(
|
1386
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1387
|
+
)
|
1388
|
+
http_profile = HttpProfile(
|
1389
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1390
|
+
reqMethod="POST",
|
1391
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1392
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1393
|
+
)
|
1394
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1395
|
+
if g_param[OptionsDefine.Language]:
|
1396
|
+
profile.language = g_param[OptionsDefine.Language]
|
1397
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1398
|
+
client = mod.PtsClient(cred, g_param[OptionsDefine.Region], profile)
|
1399
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1400
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1401
|
+
model = models.UpdateEnvironmentRequest()
|
1402
|
+
model.from_json_string(json.dumps(args))
|
1403
|
+
start_time = time.time()
|
1404
|
+
while True:
|
1405
|
+
rsp = client.UpdateEnvironment(model)
|
1406
|
+
result = rsp.to_json_string()
|
1407
|
+
try:
|
1408
|
+
json_obj = json.loads(result)
|
1409
|
+
except TypeError as e:
|
1410
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1411
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1412
|
+
break
|
1413
|
+
cur_time = time.time()
|
1414
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1415
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1416
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1417
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1418
|
+
else:
|
1419
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1420
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1421
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
|
+
|
1423
|
+
|
1268
1424
|
def doCreateAlertChannel(args, parsed_globals):
|
1269
1425
|
g_param = parse_global_arg(parsed_globals)
|
1270
1426
|
|
@@ -1629,6 +1785,58 @@ def doDescribeSampleLogs(args, parsed_globals):
|
|
1629
1785
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1630
1786
|
|
1631
1787
|
|
1788
|
+
def doCreateEnvironment(args, parsed_globals):
|
1789
|
+
g_param = parse_global_arg(parsed_globals)
|
1790
|
+
|
1791
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1792
|
+
cred = credential.CVMRoleCredential()
|
1793
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1794
|
+
cred = credential.STSAssumeRoleCredential(
|
1795
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1796
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1797
|
+
)
|
1798
|
+
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):
|
1799
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1800
|
+
else:
|
1801
|
+
cred = credential.Credential(
|
1802
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1803
|
+
)
|
1804
|
+
http_profile = HttpProfile(
|
1805
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1806
|
+
reqMethod="POST",
|
1807
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1808
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1809
|
+
)
|
1810
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1811
|
+
if g_param[OptionsDefine.Language]:
|
1812
|
+
profile.language = g_param[OptionsDefine.Language]
|
1813
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1814
|
+
client = mod.PtsClient(cred, g_param[OptionsDefine.Region], profile)
|
1815
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1816
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1817
|
+
model = models.CreateEnvironmentRequest()
|
1818
|
+
model.from_json_string(json.dumps(args))
|
1819
|
+
start_time = time.time()
|
1820
|
+
while True:
|
1821
|
+
rsp = client.CreateEnvironment(model)
|
1822
|
+
result = rsp.to_json_string()
|
1823
|
+
try:
|
1824
|
+
json_obj = json.loads(result)
|
1825
|
+
except TypeError as e:
|
1826
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1827
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1828
|
+
break
|
1829
|
+
cur_time = time.time()
|
1830
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1831
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1832
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1833
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1834
|
+
else:
|
1835
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1836
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1837
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
|
+
|
1839
|
+
|
1632
1840
|
def doDescribeScenarios(args, parsed_globals):
|
1633
1841
|
g_param = parse_global_arg(parsed_globals)
|
1634
1842
|
|
@@ -2317,6 +2525,7 @@ MODELS_MAP = {
|
|
2317
2525
|
|
2318
2526
|
ACTION_MAP = {
|
2319
2527
|
"DescribeScenarioWithJobs": doDescribeScenarioWithJobs,
|
2528
|
+
"DeleteEnvironments": doDeleteEnvironments,
|
2320
2529
|
"UpdateFileScenarioRelation": doUpdateFileScenarioRelation,
|
2321
2530
|
"UpdateCronJob": doUpdateCronJob,
|
2322
2531
|
"StartJob": doStartJob,
|
@@ -2334,12 +2543,14 @@ ACTION_MAP = {
|
|
2334
2543
|
"DescribeRequestSummary": doDescribeRequestSummary,
|
2335
2544
|
"DeleteScenarios": doDeleteScenarios,
|
2336
2545
|
"DescribeAlertRecords": doDescribeAlertRecords,
|
2546
|
+
"DescribeEnvironments": doDescribeEnvironments,
|
2337
2547
|
"DescribeAlertChannels": doDescribeAlertChannels,
|
2338
2548
|
"DescribeAvailableMetrics": doDescribeAvailableMetrics,
|
2339
2549
|
"DescribeLabelValues": doDescribeLabelValues,
|
2340
2550
|
"AbortCronJobs": doAbortCronJobs,
|
2341
2551
|
"UpdateJob": doUpdateJob,
|
2342
2552
|
"RestartCronJobs": doRestartCronJobs,
|
2553
|
+
"UpdateEnvironment": doUpdateEnvironment,
|
2343
2554
|
"CreateAlertChannel": doCreateAlertChannel,
|
2344
2555
|
"DescribeSampleBatchQuery": doDescribeSampleBatchQuery,
|
2345
2556
|
"DeleteJobs": doDeleteJobs,
|
@@ -2347,6 +2558,7 @@ ACTION_MAP = {
|
|
2347
2558
|
"DescribeErrorSummary": doDescribeErrorSummary,
|
2348
2559
|
"DescribeProjects": doDescribeProjects,
|
2349
2560
|
"DescribeSampleLogs": doDescribeSampleLogs,
|
2561
|
+
"CreateEnvironment": doCreateEnvironment,
|
2350
2562
|
"DescribeScenarios": doDescribeScenarios,
|
2351
2563
|
"DeleteCronJobs": doDeleteCronJobs,
|
2352
2564
|
"CopyScenario": doCopyScenario,
|
@@ -42,6 +42,13 @@
|
|
42
42
|
"output": "CreateCronJobResponse",
|
43
43
|
"status": "online"
|
44
44
|
},
|
45
|
+
"CreateEnvironment": {
|
46
|
+
"document": "创建环境",
|
47
|
+
"input": "CreateEnvironmentRequest",
|
48
|
+
"name": "创建环境",
|
49
|
+
"output": "CreateEnvironmentResponse",
|
50
|
+
"status": "online"
|
51
|
+
},
|
45
52
|
"CreateFile": {
|
46
53
|
"document": "创建文件",
|
47
54
|
"input": "CreateFileRequest",
|
@@ -77,6 +84,13 @@
|
|
77
84
|
"output": "DeleteCronJobsResponse",
|
78
85
|
"status": "online"
|
79
86
|
},
|
87
|
+
"DeleteEnvironments": {
|
88
|
+
"document": "删除环境",
|
89
|
+
"input": "DeleteEnvironmentsRequest",
|
90
|
+
"name": "删除环境",
|
91
|
+
"output": "DeleteEnvironmentsResponse",
|
92
|
+
"status": "online"
|
93
|
+
},
|
80
94
|
"DeleteFiles": {
|
81
95
|
"document": "删除文件",
|
82
96
|
"input": "DeleteFilesRequest",
|
@@ -140,6 +154,13 @@
|
|
140
154
|
"output": "DescribeCronJobsResponse",
|
141
155
|
"status": "online"
|
142
156
|
},
|
157
|
+
"DescribeEnvironments": {
|
158
|
+
"document": "查看环境列表",
|
159
|
+
"input": "DescribeEnvironmentsRequest",
|
160
|
+
"name": "查看环境列表",
|
161
|
+
"output": "DescribeEnvironmentsResponse",
|
162
|
+
"status": "online"
|
163
|
+
},
|
143
164
|
"DescribeErrorSummary": {
|
144
165
|
"document": "查询错误详情汇总信息",
|
145
166
|
"input": "DescribeErrorSummaryRequest",
|
@@ -280,6 +301,13 @@
|
|
280
301
|
"output": "UpdateCronJobResponse",
|
281
302
|
"status": "online"
|
282
303
|
},
|
304
|
+
"UpdateEnvironment": {
|
305
|
+
"document": "更新环境",
|
306
|
+
"input": "UpdateEnvironmentRequest",
|
307
|
+
"name": "更新环境",
|
308
|
+
"output": "UpdateEnvironmentResponse",
|
309
|
+
"status": "online"
|
310
|
+
},
|
283
311
|
"UpdateFileScenarioRelation": {
|
284
312
|
"document": "更新关联文件场景",
|
285
313
|
"input": "UpdateFileScenarioRelationRequest",
|
@@ -1149,6 +1177,23 @@
|
|
1149
1177
|
],
|
1150
1178
|
"type": "object"
|
1151
1179
|
},
|
1180
|
+
"CreateEnvironmentRequest": {
|
1181
|
+
"document": "CreateEnvironment请求参数结构体",
|
1182
|
+
"members": [],
|
1183
|
+
"type": "object"
|
1184
|
+
},
|
1185
|
+
"CreateEnvironmentResponse": {
|
1186
|
+
"document": "CreateEnvironment返回参数结构体",
|
1187
|
+
"members": [
|
1188
|
+
{
|
1189
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1190
|
+
"member": "string",
|
1191
|
+
"name": "RequestId",
|
1192
|
+
"type": "string"
|
1193
|
+
}
|
1194
|
+
],
|
1195
|
+
"type": "object"
|
1196
|
+
},
|
1152
1197
|
"CreateFileRequest": {
|
1153
1198
|
"document": "CreateFile请求参数结构体",
|
1154
1199
|
"members": [
|
@@ -1952,6 +1997,23 @@
|
|
1952
1997
|
],
|
1953
1998
|
"type": "object"
|
1954
1999
|
},
|
2000
|
+
"DeleteEnvironmentsRequest": {
|
2001
|
+
"document": "DeleteEnvironments请求参数结构体",
|
2002
|
+
"members": [],
|
2003
|
+
"type": "object"
|
2004
|
+
},
|
2005
|
+
"DeleteEnvironmentsResponse": {
|
2006
|
+
"document": "DeleteEnvironments返回参数结构体",
|
2007
|
+
"members": [
|
2008
|
+
{
|
2009
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2010
|
+
"member": "string",
|
2011
|
+
"name": "RequestId",
|
2012
|
+
"type": "string"
|
2013
|
+
}
|
2014
|
+
],
|
2015
|
+
"type": "object"
|
2016
|
+
},
|
1955
2017
|
"DeleteFilesRequest": {
|
1956
2018
|
"document": "DeleteFiles请求参数结构体",
|
1957
2019
|
"members": [
|
@@ -2517,6 +2579,23 @@
|
|
2517
2579
|
],
|
2518
2580
|
"type": "object"
|
2519
2581
|
},
|
2582
|
+
"DescribeEnvironmentsRequest": {
|
2583
|
+
"document": "DescribeEnvironments请求参数结构体",
|
2584
|
+
"members": [],
|
2585
|
+
"type": "object"
|
2586
|
+
},
|
2587
|
+
"DescribeEnvironmentsResponse": {
|
2588
|
+
"document": "DescribeEnvironments返回参数结构体",
|
2589
|
+
"members": [
|
2590
|
+
{
|
2591
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2592
|
+
"member": "string",
|
2593
|
+
"name": "RequestId",
|
2594
|
+
"type": "string"
|
2595
|
+
}
|
2596
|
+
],
|
2597
|
+
"type": "object"
|
2598
|
+
},
|
2520
2599
|
"DescribeErrorSummaryRequest": {
|
2521
2600
|
"document": "DescribeErrorSummary请求参数结构体",
|
2522
2601
|
"members": [
|
@@ -6983,6 +7062,23 @@
|
|
6983
7062
|
],
|
6984
7063
|
"type": "object"
|
6985
7064
|
},
|
7065
|
+
"UpdateEnvironmentRequest": {
|
7066
|
+
"document": "UpdateEnvironment请求参数结构体",
|
7067
|
+
"members": [],
|
7068
|
+
"type": "object"
|
7069
|
+
},
|
7070
|
+
"UpdateEnvironmentResponse": {
|
7071
|
+
"document": "UpdateEnvironment返回参数结构体",
|
7072
|
+
"members": [
|
7073
|
+
{
|
7074
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7075
|
+
"member": "string",
|
7076
|
+
"name": "RequestId",
|
7077
|
+
"type": "string"
|
7078
|
+
}
|
7079
|
+
],
|
7080
|
+
"type": "object"
|
7081
|
+
},
|
6986
7082
|
"UpdateFileScenarioRelationRequest": {
|
6987
7083
|
"document": "UpdateFileScenarioRelation请求参数结构体",
|
6988
7084
|
"members": [
|
@@ -48,6 +48,14 @@
|
|
48
48
|
"title": "创建定时任务"
|
49
49
|
}
|
50
50
|
],
|
51
|
+
"CreateEnvironment": [
|
52
|
+
{
|
53
|
+
"document": "创建环境",
|
54
|
+
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEnvironment\n<公共请求参数>\n\n{}",
|
55
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
56
|
+
"title": "创建环境"
|
57
|
+
}
|
58
|
+
],
|
51
59
|
"CreateFile": [
|
52
60
|
{
|
53
61
|
"document": "",
|
@@ -88,6 +96,14 @@
|
|
88
96
|
"title": "删除定时任务"
|
89
97
|
}
|
90
98
|
],
|
99
|
+
"DeleteEnvironments": [
|
100
|
+
{
|
101
|
+
"document": "删除环境",
|
102
|
+
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteEnvironments\n<公共请求参数>\n\n{}",
|
103
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
104
|
+
"title": "删除环境"
|
105
|
+
}
|
106
|
+
],
|
91
107
|
"DeleteFiles": [
|
92
108
|
{
|
93
109
|
"document": "",
|
@@ -160,6 +176,14 @@
|
|
160
176
|
"title": "DescribeCronJobs"
|
161
177
|
}
|
162
178
|
],
|
179
|
+
"DescribeEnvironments": [
|
180
|
+
{
|
181
|
+
"document": "环境列表查询",
|
182
|
+
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEnvironments\n<公共请求参数>\n\n{}",
|
183
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
184
|
+
"title": "环境列表查询"
|
185
|
+
}
|
186
|
+
],
|
163
187
|
"DescribeErrorSummary": [
|
164
188
|
{
|
165
189
|
"document": "查询错误汇总信息",
|
@@ -320,6 +344,14 @@
|
|
320
344
|
"title": "更新定时任务"
|
321
345
|
}
|
322
346
|
],
|
347
|
+
"UpdateEnvironment": [
|
348
|
+
{
|
349
|
+
"document": "更新环境",
|
350
|
+
"input": "POST / HTTP/1.1\nHost: pts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateEnvironment\n<公共请求参数>\n\n{}",
|
351
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
352
|
+
"title": "更新环境"
|
353
|
+
}
|
354
|
+
],
|
323
355
|
"UpdateFileScenarioRelation": [
|
324
356
|
{
|
325
357
|
"document": "",
|
@@ -430,10 +430,16 @@
|
|
430
430
|
],
|
431
431
|
"UploadCertificate": [
|
432
432
|
{
|
433
|
-
"document": "
|
434
|
-
"input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UploadCertificate\n<公共请求参数>\n\n{\n \"CertificatePublicKey\": \"
|
433
|
+
"document": "上传服务端证书",
|
434
|
+
"input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UploadCertificate\n<公共请求参数>\n\n{\n \"CertificatePublicKey\": \"-----BEGIN CERTIFICATE-----\\nxxxxxxxxxxxxxxxxxxx\\n-----END CERTIFICATE-----\",\n \"CertificatePrivateKey\": \"-----BEGIN RSA PRIVATE KEY-----\\r\\nxxxxxxxxxxxxxxxxxxxxxxxx\\r\\n-----END RSA PRIVATE KEY-----\",\n \"Alias\": \"上传证书\",\n \"ProjectId\": \"12345\",\n \"Repeatable\": false,\n \"CertificateType\": \"SVR\",\n \"Tags\": [\n {\n \"TagKey\": \"key1\",\n \"TagValue\": \"value1\"\n },\n {\n \"TagKey\": \"key2\",\n \"TagValue\": \"value2\"\n }\n ]\n}",
|
435
|
+
"output": "{\n \"Response\": {\n \"CertificateId\": \"DSAuy46E\",\n \"RepeatCertId\": \"DSAuy46E\",\n \"RequestId\": \"6d69e2d8-2c31-40d2-a244-9f86ffb20cd0\"\n }\n}",
|
436
|
+
"title": "上传服务端证书"
|
437
|
+
},
|
438
|
+
{
|
439
|
+
"document": "上传证书根证书",
|
440
|
+
"input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UploadCertificate\n<公共请求参数>\n\n{\n \"CertificatePublicKey\": \"-----BEGIN CERTIFICATE-----\\nxxxxxxxxxxxxxxxxxxx\\n-----END CERTIFICATE-----\",\n \"Alias\": \"上传CA证书\",\n \"ProjectId\": \"12345\",\n \"Repeatable\": false,\n \"CertificateType\": \"CA\",\n \"Tags\": [\n {\n \"TagKey\": \"key1\",\n \"TagValue\": \"value1\"\n },\n {\n \"TagKey\": \"key2\",\n \"TagValue\": \"value2\"\n }\n ]\n}",
|
435
441
|
"output": "{\n \"Response\": {\n \"CertificateId\": \"a92b1Z1i\",\n \"RepeatCertId\": \"\",\n \"RequestId\": \"7ef2d2bb-f609-4e3d-a35c-04a5d3ac633b\"\n }\n}",
|
436
|
-
"title": "上传证书"
|
442
|
+
"title": "上传证书CA证书"
|
437
443
|
}
|
438
444
|
],
|
439
445
|
"UploadConfirmLetter": [
|
@@ -67,7 +67,7 @@
|
|
67
67
|
"DescribeProjects": [
|
68
68
|
{
|
69
69
|
"document": "",
|
70
|
-
"input": "POST / HTTP/1.1\nHost: tag.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeProjects\n<公共请求参数>\n\n{\n \"Limit\":
|
70
|
+
"input": "POST / HTTP/1.1\nHost: tag.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeProjects\n<公共请求参数>\n\n{\n \"Limit\": 1000,\n \"AllList\": 0,\n \"Offset\": 0\n}",
|
71
71
|
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Projects\": [\n {\n \"ProjectId\": 1000101,\n \"ProjectName\": \"test1\",\n \"CreatorUin\": 100000012345,\n \"ProjectInfo\": \"\",\n \"CreateTime\": \"2021-10-13 11:03:30\"\n }\n ],\n \"RequestId\": \"d75bbc07-f5bd-4020-b4bd-f877e9ccd1db\"\n }\n}",
|
72
72
|
"title": "获取项目列表"
|
73
73
|
}
|
@@ -2413,7 +2413,7 @@
|
|
2413
2413
|
},
|
2414
2414
|
{
|
2415
2415
|
"disabled": false,
|
2416
|
-
"document": "是否开启TIONE
|
2416
|
+
"document": "是否开启TIONE内网访问外部,此功能仅支持后付费机型与从TIONE平台购买的预付费机型;使用从CVM选择资源组时此配置不生效。",
|
2417
2417
|
"example": "无",
|
2418
2418
|
"member": "ServiceEIP",
|
2419
2419
|
"name": "ServiceEIP",
|
@@ -5150,7 +5150,17 @@
|
|
5150
5150
|
},
|
5151
5151
|
"DescribeBuildInImagesRequest": {
|
5152
5152
|
"document": "DescribeBuildInImages请求参数结构体",
|
5153
|
-
"members": [
|
5153
|
+
"members": [
|
5154
|
+
{
|
5155
|
+
"disabled": false,
|
5156
|
+
"document": "镜像过滤器",
|
5157
|
+
"example": "无",
|
5158
|
+
"member": "ImageFIlter",
|
5159
|
+
"name": "ImageFilters",
|
5160
|
+
"required": false,
|
5161
|
+
"type": "list"
|
5162
|
+
}
|
5163
|
+
],
|
5154
5164
|
"type": "object"
|
5155
5165
|
},
|
5156
5166
|
"DescribeBuildInImagesResponse": {
|
@@ -8006,6 +8016,39 @@
|
|
8006
8016
|
],
|
8007
8017
|
"usage": "both"
|
8008
8018
|
},
|
8019
|
+
"ImageFIlter": {
|
8020
|
+
"document": "镜像列表过滤",
|
8021
|
+
"members": [
|
8022
|
+
{
|
8023
|
+
"disabled": false,
|
8024
|
+
"document": "过滤字段名称",
|
8025
|
+
"example": "Attr",
|
8026
|
+
"member": "string",
|
8027
|
+
"name": "Name",
|
8028
|
+
"required": true,
|
8029
|
+
"type": "string"
|
8030
|
+
},
|
8031
|
+
{
|
8032
|
+
"disabled": false,
|
8033
|
+
"document": "过滤值",
|
8034
|
+
"example": "无",
|
8035
|
+
"member": "string",
|
8036
|
+
"name": "Values",
|
8037
|
+
"required": true,
|
8038
|
+
"type": "list"
|
8039
|
+
},
|
8040
|
+
{
|
8041
|
+
"disabled": false,
|
8042
|
+
"document": "是否反选",
|
8043
|
+
"example": "无",
|
8044
|
+
"member": "bool",
|
8045
|
+
"name": "Negative",
|
8046
|
+
"required": false,
|
8047
|
+
"type": "bool"
|
8048
|
+
}
|
8049
|
+
],
|
8050
|
+
"usage": "in"
|
8051
|
+
},
|
8009
8052
|
"ImageInfo": {
|
8010
8053
|
"document": "镜像描述信息",
|
8011
8054
|
"members": [
|
@@ -8074,6 +8117,17 @@
|
|
8074
8117
|
"required": false,
|
8075
8118
|
"type": "string",
|
8076
8119
|
"value_allowed_null": true
|
8120
|
+
},
|
8121
|
+
{
|
8122
|
+
"disabled": false,
|
8123
|
+
"document": "是否支持数据构建\n注意:此字段可能返回 null,表示取不到有效值。",
|
8124
|
+
"example": "false",
|
8125
|
+
"member": "bool",
|
8126
|
+
"name": "SupportDataPipeline",
|
8127
|
+
"output_required": false,
|
8128
|
+
"required": false,
|
8129
|
+
"type": "bool",
|
8130
|
+
"value_allowed_null": true
|
8077
8131
|
}
|
8078
8132
|
],
|
8079
8133
|
"usage": "both"
|
@@ -8406,6 +8460,26 @@
|
|
8406
8460
|
"output_required": false,
|
8407
8461
|
"type": "string",
|
8408
8462
|
"value_allowed_null": false
|
8463
|
+
},
|
8464
|
+
{
|
8465
|
+
"disabled": false,
|
8466
|
+
"document": "部署失败错误码\n注意:此字段可能返回 null,表示取不到有效值。",
|
8467
|
+
"example": "\"\"",
|
8468
|
+
"member": "string",
|
8469
|
+
"name": "ErrCode",
|
8470
|
+
"output_required": false,
|
8471
|
+
"type": "string",
|
8472
|
+
"value_allowed_null": true
|
8473
|
+
},
|
8474
|
+
{
|
8475
|
+
"disabled": false,
|
8476
|
+
"document": "部署失败错误信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
8477
|
+
"example": "\"\"",
|
8478
|
+
"member": "string",
|
8479
|
+
"name": "ErrMsg",
|
8480
|
+
"output_required": false,
|
8481
|
+
"type": "string",
|
8482
|
+
"value_allowed_null": true
|
8409
8483
|
}
|
8410
8484
|
],
|
8411
8485
|
"usage": "out"
|
@@ -9630,7 +9704,7 @@
|
|
9630
9704
|
},
|
9631
9705
|
{
|
9632
9706
|
"disabled": false,
|
9633
|
-
"document": "是否开启TIONE
|
9707
|
+
"document": "是否开启TIONE内网访问外部,此功能仅支持后付费机型与从TIONE平台购买的预付费机型;使用从CVM选择资源组时此配置不生效。",
|
9634
9708
|
"example": "无",
|
9635
9709
|
"member": "ServiceEIP",
|
9636
9710
|
"name": "ServiceEIP",
|