diff --git a/CHANGELOG.md b/CHANGELOG.md index a283c2bab1..4d1c29eabc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,219 @@ +# Release 3.0.1161.1 + +## 应用性能监控(apm) 版本:2021-06-22 + +### 第 24 次发布 + +发布时间:2024-07-31 01:04:59 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [DescribeMetricRecords](https://cloud.tencent.com/document/api/1463/68254) + + * 新增入参:Type + + + + +## 腾讯云数据仓库 TCHouse-D(cdwdoris) 版本:2021-12-28 + +### 第 15 次发布 + +发布时间:2024-07-31 01:13:58 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [CreateWorkloadGroup](https://cloud.tencent.com/document/api/1387/109440) +* [DeleteWorkloadGroup](https://cloud.tencent.com/document/api/1387/109439) +* [DescribeFederationToken](https://cloud.tencent.com/document/api/1387/109447) +* [DescribeGoodsDetail](https://cloud.tencent.com/document/api/1387/109446) +* [DescribeInstanceUsedSubnets](https://cloud.tencent.com/document/api/1387/109445) +* [DescribeRegionZone](https://cloud.tencent.com/document/api/1387/109444) +* [DescribeReplicaVersion](https://cloud.tencent.com/document/api/1387/109443) +* [DescribeRestoreTaskDetail](https://cloud.tencent.com/document/api/1387/109442) +* [DescribeSqlApis](https://cloud.tencent.com/document/api/1387/109441) +* [DescribeUserBindWorkloadGroup](https://cloud.tencent.com/document/api/1387/109438) +* [DescribeWorkloadGroup](https://cloud.tencent.com/document/api/1387/109437) +* [FitClsLog](https://cloud.tencent.com/document/api/1387/109436) +* [ModifyInstanceKeyValConfigs](https://cloud.tencent.com/document/api/1387/109435) +* [ModifySecurityGroups](https://cloud.tencent.com/document/api/1387/109434) +* [ModifyUserBindWorkloadGroup](https://cloud.tencent.com/document/api/1387/109433) +* [ModifyUserPrivilegesV3](https://cloud.tencent.com/document/api/1387/109432) +* [ModifyWorkloadGroup](https://cloud.tencent.com/document/api/1387/109431) +* [ModifyWorkloadGroupStatus](https://cloud.tencent.com/document/api/1387/109430) +* [ReduceInstance](https://cloud.tencent.com/document/api/1387/109429) + +新增数据结构: + +* [BindUser](https://cloud.tencent.com/document/api/1387/102385#BindUser) +* [InstanceConfigItem](https://cloud.tencent.com/document/api/1387/102385#InstanceConfigItem) +* [RegionAreaInfo](https://cloud.tencent.com/document/api/1387/102385#RegionAreaInfo) +* [RegionInfo](https://cloud.tencent.com/document/api/1387/102385#RegionInfo) +* [ResourceNodeDiskSpec](https://cloud.tencent.com/document/api/1387/102385#ResourceNodeDiskSpec) +* [ResourceNodeSpec](https://cloud.tencent.com/document/api/1387/102385#ResourceNodeSpec) +* [RestoreStatus](https://cloud.tencent.com/document/api/1387/102385#RestoreStatus) +* [SpecExtra](https://cloud.tencent.com/document/api/1387/102385#SpecExtra) +* [UpdateUserPrivileges](https://cloud.tencent.com/document/api/1387/102385#UpdateUserPrivileges) +* [UserWorkloadGroup](https://cloud.tencent.com/document/api/1387/102385#UserWorkloadGroup) +* [VersionReplicaItem](https://cloud.tencent.com/document/api/1387/102385#VersionReplicaItem) +* [WorkloadGroupConfig](https://cloud.tencent.com/document/api/1387/102385#WorkloadGroupConfig) +* [ZoneInfo](https://cloud.tencent.com/document/api/1387/102385#ZoneInfo) + + + +## 数据湖计算 DLC(dlc) 版本:2021-01-25 + +### 第 98 次发布 + +发布时间:2024-07-31 01:28:29 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [DescribeNotebookSessions](https://cloud.tencent.com/document/api/1342/86309) + + * 新增入参:Filters + +* [DescribeUpdatableDataEngines](https://cloud.tencent.com/document/api/1342/101606) + + * 新增入参:UseLakeFs, CustomResultPath + + + + +## 腾讯电子签(基础版)(essbasic) 版本:2021-05-26 + +### 第 177 次发布 + +发布时间:2024-07-31 01:36:50 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改数据结构: + +* [BaseFlowInfo](https://cloud.tencent.com/document/api/1420/61525#BaseFlowInfo) + + * **修改成员**:FlowType, FlowDescription + + + + +## 腾讯电子签(基础版)(essbasic) 版本:2020-12-22 + + + +## 大模型知识引擎(lke) 版本:2023-11-30 + +### 第 13 次发布 + +发布时间:2024-07-31 01:49:50 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增数据结构: + +* [HistorySummary](https://cloud.tencent.com/document/api/1759/105104#HistorySummary) +* [InvokeAPI](https://cloud.tencent.com/document/api/1759/105104#InvokeAPI) +* [KnowledgeSummary](https://cloud.tencent.com/document/api/1759/105104#KnowledgeSummary) +* [ProcedureDebugging](https://cloud.tencent.com/document/api/1759/105104#ProcedureDebugging) +* [RunNodeInfo](https://cloud.tencent.com/document/api/1759/105104#RunNodeInfo) +* [StrValue](https://cloud.tencent.com/document/api/1759/105104#StrValue) +* [TaskFlowSummary](https://cloud.tencent.com/document/api/1759/105104#TaskFlowSummary) +* [ValueInfo](https://cloud.tencent.com/document/api/1759/105104#ValueInfo) + +修改数据结构: + +* [AppModel](https://cloud.tencent.com/document/api/1759/105104#AppModel) + + * 新增成员:IsUseContext, HistoryLimit, UsageType + +* [KnowledgeQaOutput](https://cloud.tencent.com/document/api/1759/105104#KnowledgeQaOutput) + + * 新增成员:UseRecommended + +* [KnowledgeQaSearch](https://cloud.tencent.com/document/api/1759/105104#KnowledgeQaSearch) + + * 新增成员:ResourceStatus + +* [ModelInfo](https://cloud.tencent.com/document/api/1759/105104#ModelInfo) + + * 新增成员:ResourceStatus, PromptWordsLimit + +* [Procedure](https://cloud.tencent.com/document/api/1759/105104#Procedure) + + * 新增成员:Debugging, ResourceStatus + +* [TokenStat](https://cloud.tencent.com/document/api/1759/105104#TokenStat) + + * 新增成员:TraceId + + + + +## 远程实时操控(trro) 版本:2022-03-25 + +### 第 6 次发布 + +发布时间:2024-07-31 02:17:29 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [DescribeDeviceList](https://cloud.tencent.com/document/api/1584/89815) + + * 新增入参:DeviceStatus + + +新增数据结构: + +* [MultiNet](https://cloud.tencent.com/document/api/1584/89828#MultiNet) + +修改数据结构: + +* [SessionDeviceDetail](https://cloud.tencent.com/document/api/1584/89828#SessionDeviceDetail) + + * 新增成员:RenderCost, ConfigWidth, ConfigHeight, FrameDelta, MaxFrameDelta, TotalBitrateEstimate, Lag100Duration, Lag150Duration, MultiMode, MultiNet + + + + +## 微服务平台 TSF(tsf) 版本:2018-03-26 + +### 第 112 次发布 + +发布时间:2024-07-30 11:37:37 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [DescribeContainerGroups](https://cloud.tencent.com/document/api/649/36068) + + * **修改入参**:ApplicationId + + + + # Release 3.0.1160.1 ## 云防火墙(cfw) 版本:2019-09-04 diff --git a/SERVICE_CHANGELOG.md b/SERVICE_CHANGELOG.md index d63fc15bbc..48acd1c9d1 100644 --- a/SERVICE_CHANGELOG.md +++ b/SERVICE_CHANGELOG.md @@ -1,64 +1,102 @@ # 本版本更新包含以下内容: -## 云防火墙(cfw) 版本:2019-09-04 +## 应用性能监控(apm) 版本:2021-06-22 -### 第 61 次发布 +### 第 24 次发布 -发布时间:2024-07-30 01:19:22 +发布时间:2024-07-31 01:04:59 本次发布包含了以下内容: 改善已有的文档。 -修改数据结构: +修改接口: -* [DescAcItem](https://cloud.tencent.com/document/api/1132/49071#DescAcItem) +* [DescribeMetricRecords](https://cloud.tencent.com/document/api/1463/68254) - * 新增成员:LastHitTime + * 新增入参:Type -## 日志服务(cls) 版本:2020-10-16 +## 腾讯云数据仓库 TCHouse-D(cdwdoris) 版本:2021-12-28 -### 第 101 次发布 +### 第 15 次发布 -发布时间:2024-07-30 01:22:32 +发布时间:2024-07-31 01:13:58 本次发布包含了以下内容: 改善已有的文档。 -修改数据结构: +新增接口: -* [DataTransformTaskInfo](https://cloud.tencent.com/document/api/614/56471#DataTransformTaskInfo) +* [CreateWorkloadGroup](https://cloud.tencent.com/document/api/1387/109440) +* [DeleteWorkloadGroup](https://cloud.tencent.com/document/api/1387/109439) +* [DescribeFederationToken](https://cloud.tencent.com/document/api/1387/109447) +* [DescribeGoodsDetail](https://cloud.tencent.com/document/api/1387/109446) +* [DescribeInstanceUsedSubnets](https://cloud.tencent.com/document/api/1387/109445) +* [DescribeRegionZone](https://cloud.tencent.com/document/api/1387/109444) +* [DescribeReplicaVersion](https://cloud.tencent.com/document/api/1387/109443) +* [DescribeRestoreTaskDetail](https://cloud.tencent.com/document/api/1387/109442) +* [DescribeSqlApis](https://cloud.tencent.com/document/api/1387/109441) +* [DescribeUserBindWorkloadGroup](https://cloud.tencent.com/document/api/1387/109438) +* [DescribeWorkloadGroup](https://cloud.tencent.com/document/api/1387/109437) +* [FitClsLog](https://cloud.tencent.com/document/api/1387/109436) +* [ModifyInstanceKeyValConfigs](https://cloud.tencent.com/document/api/1387/109435) +* [ModifySecurityGroups](https://cloud.tencent.com/document/api/1387/109434) +* [ModifyUserBindWorkloadGroup](https://cloud.tencent.com/document/api/1387/109433) +* [ModifyUserPrivilegesV3](https://cloud.tencent.com/document/api/1387/109432) +* [ModifyWorkloadGroup](https://cloud.tencent.com/document/api/1387/109431) +* [ModifyWorkloadGroupStatus](https://cloud.tencent.com/document/api/1387/109430) +* [ReduceInstance](https://cloud.tencent.com/document/api/1387/109429) - * 新增成员:DataTransformType +新增数据结构: +* [BindUser](https://cloud.tencent.com/document/api/1387/102385#BindUser) +* [InstanceConfigItem](https://cloud.tencent.com/document/api/1387/102385#InstanceConfigItem) +* [RegionAreaInfo](https://cloud.tencent.com/document/api/1387/102385#RegionAreaInfo) +* [RegionInfo](https://cloud.tencent.com/document/api/1387/102385#RegionInfo) +* [ResourceNodeDiskSpec](https://cloud.tencent.com/document/api/1387/102385#ResourceNodeDiskSpec) +* [ResourceNodeSpec](https://cloud.tencent.com/document/api/1387/102385#ResourceNodeSpec) +* [RestoreStatus](https://cloud.tencent.com/document/api/1387/102385#RestoreStatus) +* [SpecExtra](https://cloud.tencent.com/document/api/1387/102385#SpecExtra) +* [UpdateUserPrivileges](https://cloud.tencent.com/document/api/1387/102385#UpdateUserPrivileges) +* [UserWorkloadGroup](https://cloud.tencent.com/document/api/1387/102385#UserWorkloadGroup) +* [VersionReplicaItem](https://cloud.tencent.com/document/api/1387/102385#VersionReplicaItem) +* [WorkloadGroupConfig](https://cloud.tencent.com/document/api/1387/102385#WorkloadGroupConfig) +* [ZoneInfo](https://cloud.tencent.com/document/api/1387/102385#ZoneInfo) -## 云安全一体化平台(csip) 版本:2022-11-21 +## 数据湖计算 DLC(dlc) 版本:2021-01-25 -### 第 42 次发布 +### 第 98 次发布 -发布时间:2024-07-30 01:24:16 +发布时间:2024-07-31 01:28:29 本次发布包含了以下内容: 改善已有的文档。 -新增接口: +修改接口: -* [DescribeCFWAssetStatistics](https://cloud.tencent.com/document/api/664/109405) +* [DescribeNotebookSessions](https://cloud.tencent.com/document/api/1342/86309) + + * 新增入参:Filters +* [DescribeUpdatableDataEngines](https://cloud.tencent.com/document/api/1342/101606) + * 新增入参:UseLakeFs, CustomResultPath -## 主机安全(cwp) 版本:2018-02-28 -### 第 118 次发布 -发布时间:2024-07-30 01:25:44 + +## 腾讯电子签(基础版)(essbasic) 版本:2021-05-26 + +### 第 177 次发布 + +发布时间:2024-07-31 01:36:50 本次发布包含了以下内容: @@ -66,34 +104,113 @@ 修改数据结构: -* [BashEvent](https://cloud.tencent.com/document/api/296/19867#BashEvent) +* [BaseFlowInfo](https://cloud.tencent.com/document/api/1420/61525#BaseFlowInfo) - * 新增成员:HostName + * **修改成员**:FlowType, FlowDescription -* [BashEventsInfo](https://cloud.tencent.com/document/api/296/19867#BashEventsInfo) - * 新增成员:DetectBy +## 腾讯电子签(基础版)(essbasic) 版本:2020-12-22 -## 实时音视频(trtc) 版本:2019-07-22 -### 第 83 次发布 +## 大模型知识引擎(lke) 版本:2023-11-30 -发布时间:2024-07-30 02:22:25 +### 第 13 次发布 + +发布时间:2024-07-31 01:49:50 本次发布包含了以下内容: 改善已有的文档。 -新增接口: +新增数据结构: + +* [HistorySummary](https://cloud.tencent.com/document/api/1759/105104#HistorySummary) +* [InvokeAPI](https://cloud.tencent.com/document/api/1759/105104#InvokeAPI) +* [KnowledgeSummary](https://cloud.tencent.com/document/api/1759/105104#KnowledgeSummary) +* [ProcedureDebugging](https://cloud.tencent.com/document/api/1759/105104#ProcedureDebugging) +* [RunNodeInfo](https://cloud.tencent.com/document/api/1759/105104#RunNodeInfo) +* [StrValue](https://cloud.tencent.com/document/api/1759/105104#StrValue) +* [TaskFlowSummary](https://cloud.tencent.com/document/api/1759/105104#TaskFlowSummary) +* [ValueInfo](https://cloud.tencent.com/document/api/1759/105104#ValueInfo) + +修改数据结构: + +* [AppModel](https://cloud.tencent.com/document/api/1759/105104#AppModel) + + * 新增成员:IsUseContext, HistoryLimit, UsageType + +* [KnowledgeQaOutput](https://cloud.tencent.com/document/api/1759/105104#KnowledgeQaOutput) + + * 新增成员:UseRecommended + +* [KnowledgeQaSearch](https://cloud.tencent.com/document/api/1759/105104#KnowledgeQaSearch) + + * 新增成员:ResourceStatus + +* [ModelInfo](https://cloud.tencent.com/document/api/1759/105104#ModelInfo) + + * 新增成员:ResourceStatus, PromptWordsLimit + +* [Procedure](https://cloud.tencent.com/document/api/1759/105104#Procedure) + + * 新增成员:Debugging, ResourceStatus + +* [TokenStat](https://cloud.tencent.com/document/api/1759/105104#TokenStat) + + * 新增成员:TraceId + + + + +## 远程实时操控(trro) 版本:2022-03-25 + +### 第 6 次发布 + +发布时间:2024-07-31 02:17:29 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [DescribeDeviceList](https://cloud.tencent.com/document/api/1584/89815) + + * 新增入参:DeviceStatus -* [ControlAIConversation](https://cloud.tencent.com/document/api/647/109408) 新增数据结构: -* [ServerPushText](https://cloud.tencent.com/document/api/647/44055#ServerPushText) +* [MultiNet](https://cloud.tencent.com/document/api/1584/89828#MultiNet) + +修改数据结构: + +* [SessionDeviceDetail](https://cloud.tencent.com/document/api/1584/89828#SessionDeviceDetail) + + * 新增成员:RenderCost, ConfigWidth, ConfigHeight, FrameDelta, MaxFrameDelta, TotalBitrateEstimate, Lag100Duration, Lag150Duration, MultiMode, MultiNet + + + + +## 微服务平台 TSF(tsf) 版本:2018-03-26 + +### 第 112 次发布 + +发布时间:2024-07-30 11:37:37 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [DescribeContainerGroups](https://cloud.tencent.com/document/api/649/36068) + + * **修改入参**:ApplicationId + @@ -4730,6 +4847,21 @@ ## 应用性能监控(apm) 版本:2021-06-22 +### 第 24 次发布 + +发布时间:2024-07-31 01:04:59 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [DescribeMetricRecords](https://cloud.tencent.com/document/api/1463/68254) + + * 新增入参:Type + + ### 第 23 次发布 发布时间:2024-04-25 01:09:12 @@ -23473,6 +23605,52 @@ ## 腾讯云数据仓库 TCHouse-D(cdwdoris) 版本:2021-12-28 +### 第 15 次发布 + +发布时间:2024-07-31 01:13:58 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [[CreateWorkloadGroup](https://cloud.tencent.com/document/api/1387/109440)](https://cloud.tencent.com/document/api/#/#) +* [[DeleteWorkloadGroup](https://cloud.tencent.com/document/api/1387/109439)](https://cloud.tencent.com/document/api/#/#) +* [[DescribeFederationToken](https://cloud.tencent.com/document/api/1387/109447)](https://cloud.tencent.com/document/api/#/#) +* [[DescribeGoodsDetail](https://cloud.tencent.com/document/api/1387/109446)](https://cloud.tencent.com/document/api/#/#) +* [[DescribeInstanceUsedSubnets](https://cloud.tencent.com/document/api/1387/109445)](https://cloud.tencent.com/document/api/#/#) +* [[DescribeRegionZone](https://cloud.tencent.com/document/api/1387/109444)](https://cloud.tencent.com/document/api/#/#) +* [[DescribeReplicaVersion](https://cloud.tencent.com/document/api/1387/109443)](https://cloud.tencent.com/document/api/#/#) +* [[DescribeRestoreTaskDetail](https://cloud.tencent.com/document/api/1387/109442)](https://cloud.tencent.com/document/api/#/#) +* [[DescribeSqlApis](https://cloud.tencent.com/document/api/1387/109441)](https://cloud.tencent.com/document/api/#/#) +* [[DescribeUserBindWorkloadGroup](https://cloud.tencent.com/document/api/1387/109438)](https://cloud.tencent.com/document/api/#/#) +* [[DescribeWorkloadGroup](https://cloud.tencent.com/document/api/1387/109437)](https://cloud.tencent.com/document/api/#/#) +* [[FitClsLog](https://cloud.tencent.com/document/api/1387/109436)](https://cloud.tencent.com/document/api/#/#) +* [[ModifyInstanceKeyValConfigs](https://cloud.tencent.com/document/api/1387/109435)](https://cloud.tencent.com/document/api/#/#) +* [[ModifySecurityGroups](https://cloud.tencent.com/document/api/1387/109434)](https://cloud.tencent.com/document/api/#/#) +* [[ModifyUserBindWorkloadGroup](https://cloud.tencent.com/document/api/1387/109433)](https://cloud.tencent.com/document/api/#/#) +* [[ModifyUserPrivilegesV3](https://cloud.tencent.com/document/api/1387/109432)](https://cloud.tencent.com/document/api/#/#) +* [[ModifyWorkloadGroup](https://cloud.tencent.com/document/api/1387/109431)](https://cloud.tencent.com/document/api/#/#) +* [[ModifyWorkloadGroupStatus](https://cloud.tencent.com/document/api/1387/109430)](https://cloud.tencent.com/document/api/#/#) +* [[ReduceInstance](https://cloud.tencent.com/document/api/1387/109429)](https://cloud.tencent.com/document/api/#/#) + +新增数据结构: + +* [[BindUser](https://cloud.tencent.com/document/api/1387/102385#BindUser)](https://cloud.tencent.com/document/api/1387/102385#[BindUser](https://cloud.tencent.com/document/api/1387/102385#BindUser)) +* [[InstanceConfigItem](https://cloud.tencent.com/document/api/1387/102385#InstanceConfigItem)](https://cloud.tencent.com/document/api/1387/102385#[InstanceConfigItem](https://cloud.tencent.com/document/api/1387/102385#InstanceConfigItem)) +* [[RegionAreaInfo](https://cloud.tencent.com/document/api/1387/102385#RegionAreaInfo)](https://cloud.tencent.com/document/api/1387/102385#[RegionAreaInfo](https://cloud.tencent.com/document/api/1387/102385#RegionAreaInfo)) +* [[RegionInfo](https://cloud.tencent.com/document/api/1387/102385#RegionInfo)](https://cloud.tencent.com/document/api/1387/102385#[RegionInfo](https://cloud.tencent.com/document/api/1387/102385#RegionInfo)) +* [[ResourceNodeDiskSpec](https://cloud.tencent.com/document/api/1387/102385#ResourceNodeDiskSpec)](https://cloud.tencent.com/document/api/1387/102385#[ResourceNodeDiskSpec](https://cloud.tencent.com/document/api/1387/102385#ResourceNodeDiskSpec)) +* [[ResourceNodeSpec](https://cloud.tencent.com/document/api/1387/102385#ResourceNodeSpec)](https://cloud.tencent.com/document/api/1387/102385#[ResourceNodeSpec](https://cloud.tencent.com/document/api/1387/102385#ResourceNodeSpec)) +* [[RestoreStatus](https://cloud.tencent.com/document/api/1387/102385#RestoreStatus)](https://cloud.tencent.com/document/api/1387/102385#[RestoreStatus](https://cloud.tencent.com/document/api/1387/102385#RestoreStatus)) +* [[SpecExtra](https://cloud.tencent.com/document/api/1387/102385#SpecExtra)](https://cloud.tencent.com/document/api/1387/102385#[SpecExtra](https://cloud.tencent.com/document/api/1387/102385#SpecExtra)) +* [[UpdateUserPrivileges](https://cloud.tencent.com/document/api/1387/102385#UpdateUserPrivileges)](https://cloud.tencent.com/document/api/1387/102385#[UpdateUserPrivileges](https://cloud.tencent.com/document/api/1387/102385#UpdateUserPrivileges)) +* [[UserWorkloadGroup](https://cloud.tencent.com/document/api/1387/102385#UserWorkloadGroup)](https://cloud.tencent.com/document/api/1387/102385#[UserWorkloadGroup](https://cloud.tencent.com/document/api/1387/102385#UserWorkloadGroup)) +* [[VersionReplicaItem](https://cloud.tencent.com/document/api/1387/102385#VersionReplicaItem)](https://cloud.tencent.com/document/api/1387/102385#[VersionReplicaItem](https://cloud.tencent.com/document/api/1387/102385#VersionReplicaItem)) +* [[WorkloadGroupConfig](https://cloud.tencent.com/document/api/1387/102385#WorkloadGroupConfig)](https://cloud.tencent.com/document/api/1387/102385#[WorkloadGroupConfig](https://cloud.tencent.com/document/api/1387/102385#WorkloadGroupConfig)) +* [[ZoneInfo](https://cloud.tencent.com/document/api/1387/102385#ZoneInfo)](https://cloud.tencent.com/document/api/1387/102385#[ZoneInfo](https://cloud.tencent.com/document/api/1387/102385#ZoneInfo)) + ### 第 14 次发布 发布时间:2024-07-24 01:18:18 @@ -38525,7 +38703,7 @@ 新增接口: -* [[DescribeCFWAssetStatistics](https://cloud.tencent.com/document/api/664/109405)](https://cloud.tencent.com/document/api/#/#) +* [DescribeCFWAssetStatistics](https://cloud.tencent.com/document/api/664/109405) ### 第 41 次发布 @@ -51760,6 +51938,25 @@ ## 数据湖计算 DLC(dlc) 版本:2021-01-25 +### 第 98 次发布 + +发布时间:2024-07-31 01:28:29 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [DescribeNotebookSessions](https://cloud.tencent.com/document/api/1342/86309) + + * 新增入参:Filters + +* [DescribeUpdatableDataEngines](https://cloud.tencent.com/document/api/1342/101606) + + * 新增入参:UseLakeFs, CustomResultPath + + ### 第 97 次发布 发布时间:2024-07-17 01:14:09 @@ -66781,6 +66978,21 @@ ## 腾讯电子签(基础版)(essbasic) 版本:2021-05-26 +### 第 177 次发布 + +发布时间:2024-07-31 01:36:50 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改数据结构: + +* [BaseFlowInfo](https://cloud.tencent.com/document/api/1420/61525#BaseFlowInfo) + + * **修改成员**:FlowType, FlowDescription + + ### 第 176 次发布 发布时间:2024-07-29 01:41:10 @@ -89048,6 +89260,52 @@ ## 大模型知识引擎(lke) 版本:2023-11-30 +### 第 13 次发布 + +发布时间:2024-07-31 01:49:50 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增数据结构: + +* [[HistorySummary](https://cloud.tencent.com/document/api/1759/105104#HistorySummary)](https://cloud.tencent.com/document/api/1759/105104#[HistorySummary](https://cloud.tencent.com/document/api/1759/105104#HistorySummary)) +* [[InvokeAPI](https://cloud.tencent.com/document/api/1759/105104#InvokeAPI)](https://cloud.tencent.com/document/api/1759/105104#[InvokeAPI](https://cloud.tencent.com/document/api/1759/105104#InvokeAPI)) +* [[KnowledgeSummary](https://cloud.tencent.com/document/api/1759/105104#KnowledgeSummary)](https://cloud.tencent.com/document/api/1759/105104#[KnowledgeSummary](https://cloud.tencent.com/document/api/1759/105104#KnowledgeSummary)) +* [[ProcedureDebugging](https://cloud.tencent.com/document/api/1759/105104#ProcedureDebugging)](https://cloud.tencent.com/document/api/1759/105104#[ProcedureDebugging](https://cloud.tencent.com/document/api/1759/105104#ProcedureDebugging)) +* [[RunNodeInfo](https://cloud.tencent.com/document/api/1759/105104#RunNodeInfo)](https://cloud.tencent.com/document/api/1759/105104#[RunNodeInfo](https://cloud.tencent.com/document/api/1759/105104#RunNodeInfo)) +* [[StrValue](https://cloud.tencent.com/document/api/1759/105104#StrValue)](https://cloud.tencent.com/document/api/1759/105104#[StrValue](https://cloud.tencent.com/document/api/1759/105104#StrValue)) +* [[TaskFlowSummary](https://cloud.tencent.com/document/api/1759/105104#TaskFlowSummary)](https://cloud.tencent.com/document/api/1759/105104#[TaskFlowSummary](https://cloud.tencent.com/document/api/1759/105104#TaskFlowSummary)) +* [[ValueInfo](https://cloud.tencent.com/document/api/1759/105104#ValueInfo)](https://cloud.tencent.com/document/api/1759/105104#[ValueInfo](https://cloud.tencent.com/document/api/1759/105104#ValueInfo)) + +修改数据结构: + +* [AppModel](https://cloud.tencent.com/document/api/1759/105104#AppModel) + + * 新增成员:IsUseContext, HistoryLimit, UsageType + +* [KnowledgeQaOutput](https://cloud.tencent.com/document/api/1759/105104#KnowledgeQaOutput) + + * 新增成员:UseRecommended + +* [KnowledgeQaSearch](https://cloud.tencent.com/document/api/1759/105104#KnowledgeQaSearch) + + * 新增成员:ResourceStatus + +* [ModelInfo](https://cloud.tencent.com/document/api/1759/105104#ModelInfo) + + * 新增成员:ResourceStatus, PromptWordsLimit + +* [Procedure](https://cloud.tencent.com/document/api/1759/105104#Procedure) + + * 新增成员:Debugging, ResourceStatus + +* [TokenStat](https://cloud.tencent.com/document/api/1759/105104#TokenStat) + + * 新增成员:TraceId + + ### 第 12 次发布 发布时间:2024-07-15 01:15:17 @@ -141907,6 +142165,32 @@ ## 远程实时操控(trro) 版本:2022-03-25 +### 第 6 次发布 + +发布时间:2024-07-31 02:17:29 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [DescribeDeviceList](https://cloud.tencent.com/document/api/1584/89815) + + * 新增入参:DeviceStatus + + +新增数据结构: + +* [[MultiNet](https://cloud.tencent.com/document/api/1584/89828#MultiNet)](https://cloud.tencent.com/document/api/1584/89828#[MultiNet](https://cloud.tencent.com/document/api/1584/89828#MultiNet)) + +修改数据结构: + +* [SessionDeviceDetail](https://cloud.tencent.com/document/api/1584/89828#SessionDeviceDetail) + + * 新增成员:RenderCost, ConfigWidth, ConfigHeight, FrameDelta, MaxFrameDelta, TotalBitrateEstimate, Lag100Duration, Lag150Duration, MultiMode, MultiNet + + ### 第 5 次发布 发布时间:2024-06-21 02:25:01 @@ -142040,11 +142324,11 @@ 新增接口: -* [[ControlAIConversation](https://cloud.tencent.com/document/api/647/109408)](https://cloud.tencent.com/document/api/#/#) +* [ControlAIConversation](https://cloud.tencent.com/document/api/647/109408) 新增数据结构: -* [[ServerPushText](https://cloud.tencent.com/document/api/647/44055#ServerPushText)](https://cloud.tencent.com/document/api/647/44055#[ServerPushText](https://cloud.tencent.com/document/api/647/44055#ServerPushText)) +* [ServerPushText](https://cloud.tencent.com/document/api/647/44055#ServerPushText) ### 第 82 次发布 @@ -145087,6 +145371,21 @@ ## 微服务平台 TSF(tsf) 版本:2018-03-26 +### 第 112 次发布 + +发布时间:2024-07-30 11:37:37 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [DescribeContainerGroups](https://cloud.tencent.com/document/api/649/36068) + + * **修改入参**:ApplicationId + + ### 第 111 次发布 发布时间:2024-07-11 01:28:05 diff --git a/products.md b/products.md index f127fd5368..21059115c4 100644 --- a/products.md +++ b/products.md @@ -6,7 +6,7 @@ | advisor | [云顾问](https://cloud.tencent.com/document/product/1264) | 2024-03-20 01:07:31 | | af | [借贷反欺诈](https://cloud.tencent.com/document/product/668) | 2024-05-31 01:07:20 | | afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2024-05-31 01:07:25 | -| aiart | [大模型图像创作引擎](https://cloud.tencent.com/document/product/1668) | 2024-07-29 01:07:39 | +| aiart | [大模型图像创作引擎](https://cloud.tencent.com/document/product/1668) | 2024-07-31 01:03:07 | | ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2023-08-17 01:06:14 | | ams | [音频内容安全](https://cloud.tencent.com/document/product/1219) | 2024-07-26 01:08:05 | | anicloud | [动效素材服务](https://cloud.tencent.com/document/product/1641) | 2023-05-18 01:01:53 | @@ -15,7 +15,7 @@ | ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 | | api | [云 API](https://cloud.tencent.com/document/product/1278) | 2023-01-05 01:02:52 | | apigateway | [API 网关](https://cloud.tencent.com/document/product/628) | 2024-06-17 01:08:48 | -| apm | [应用性能监控](https://cloud.tencent.com/document/product/1463) | 2024-06-26 01:09:03 | +| apm | [应用性能监控](https://cloud.tencent.com/document/product/1463) | 2024-07-31 01:04:59 | | as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2024-07-23 01:04:47 | | asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2024-07-16 01:08:08 | | asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2023-05-18 01:04:02 | @@ -45,7 +45,7 @@ | cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2024-07-26 01:17:46 | | cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2024-06-18 01:18:51 | | cdwch | [腾讯云数据仓库TCHouse-C](https://cloud.tencent.com/document/product/1299) | 2024-07-24 01:18:03 | -| cdwdoris | [腾讯云数据仓库 TCHouse-D](https://cloud.tencent.com/document/product/1387) | 2024-07-24 01:18:18 | +| cdwdoris | [腾讯云数据仓库 TCHouse-D](https://cloud.tencent.com/document/product/1387) | 2024-07-31 01:13:58 | | cdwpg | [云数据仓库 PostgreSQL](https://cloud.tencent.com/document/product/878) | 2024-03-28 01:10:53 | | cdz | [专属可用区](https://cloud.tencent.com/document/product/1629) | 2024-07-15 09:37:14 | | cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2024-07-26 14:53:06 | @@ -69,7 +69,7 @@ | config | [配置审计](https://cloud.tencent.com/document/product/1579) | 2024-03-20 01:12:18 | | cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2023-09-21 02:09:54 | | cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 | -| csip | [云安全一体化平台](https://cloud.tencent.com/document/product/664) | 2024-07-30 01:24:16 | +| csip | [云安全一体化平台](https://cloud.tencent.com/document/product/664) | 2024-07-31 01:19:56 | | csxg | [5G入云服务](https://cloud.tencent.com/document/product/1687) | 2024-03-20 01:12:25 | | cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2024-07-22 01:24:41 | | cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2024-07-30 01:25:44 | @@ -82,9 +82,9 @@ | dbdc | [云数据库独享集群](https://cloud.tencent.com/document/product/1322) | 2024-07-08 01:12:54 | | dc | [专线接入](https://cloud.tencent.com/document/product/216) | 2024-07-15 01:09:18 | | dcdb | [TDSQL MySQL 版](https://cloud.tencent.com/document/product/557) | 2024-07-11 01:14:04 | -| dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2024-07-17 01:14:09 | +| dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2024-07-31 01:28:29 | | dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2024-07-29 01:33:59 | -| domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2024-07-02 01:14:51 | +| domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2024-07-31 01:30:16 | | drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2024-07-12 01:14:44 | | ds | [文档服务](https://cloud.tencent.com/document/product/869) | 2024-03-20 01:15:13 | | dsgc | [数据安全治理中心](https://cloud.tencent.com/document/product/1087) | 2024-07-18 01:10:11 | @@ -98,10 +98,10 @@ | eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2023-08-10 01:17:44 | | emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2024-07-25 14:51:25 | | es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2024-07-22 01:39:08 | -| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2024-07-29 01:40:13 | -| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2024-07-29 01:41:10 | +| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2024-07-31 01:35:54 | +| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2024-07-31 01:36:50 | | facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2024-07-16 01:16:45 | -| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2024-07-19 01:47:20 | +| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2024-07-31 01:37:45 | | fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2024-07-05 01:10:44 | | ft | [人像变换](https://cloud.tencent.com/document/product/1202) | 2024-03-20 01:17:13 | | gaap | [全球应用加速](https://cloud.tencent.com/document/product/608) | 2024-07-23 01:36:12 | @@ -137,7 +137,7 @@ | lcic | [实时互动-教育版](https://cloud.tencent.com/document/product/1639) | 2024-07-29 01:51:41 | | lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2024-07-26 01:52:51 | | live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2024-07-30 01:53:06 | -| lke | [大模型知识引擎](https://cloud.tencent.com/document/product/1759) | 2024-07-29 01:54:14 | +| lke | [大模型知识引擎](https://cloud.tencent.com/document/product/1759) | 2024-07-31 01:49:50 | | lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 | | lp | [登录保护](https://cloud.tencent.com/document/product/1190) | 2022-04-04 06:56:52 | | mall | [商场客留大数据](https://cloud.tencent.com/document/product/1707) | 2024-03-20 01:20:11 | @@ -226,23 +226,23 @@ | trdp | [流量风险决策平台](https://cloud.tencent.com/document/product/1604) | 2023-05-18 02:01:19 | | trocket | [消息队列 RocketMQ 版](https://cloud.tencent.com/document/product/1493) | 2024-07-05 01:19:38 | | trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2024-06-06 02:42:14 | -| trro | [远程实时操控](https://cloud.tencent.com/document/product/1584) | 2024-07-29 02:22:08 | -| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2024-07-30 02:22:25 | +| trro | [远程实时操控](https://cloud.tencent.com/document/product/1584) | 2024-07-31 02:17:29 | +| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2024-07-31 02:17:43 | | tse | [微服务引擎](https://cloud.tencent.com/document/product/1364) | 2024-07-10 01:27:48 | -| tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2024-07-11 01:28:05 | +| tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2024-07-30 11:37:37 | | tsi | [腾讯同传系统](https://cloud.tencent.com/document/product/1399) | 2024-07-17 01:28:37 | | tsw | [微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2024-03-20 01:30:06 | | tts | [语音合成](https://cloud.tencent.com/document/product/1073) | 2024-07-08 01:25:23 | | ump | [客流数字化平台](https://cloud.tencent.com/document/product/1320) | 2024-03-20 01:30:08 | | vcg | [视频生成](https://cloud.tencent.com/document/product/1770) | 2024-06-06 02:47:17 | -| vclm | [大模型视频创作引擎](https://cloud.tencent.com/document/product/1616) | 2024-07-29 02:25:41 | +| vclm | [大模型视频创作引擎](https://cloud.tencent.com/document/product/1616) | 2024-07-31 02:21:05 | | vdb | [向量数据库](https://cloud.tencent.com/document/product/1709) | 2024-07-09 01:25:36 | | vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2024-07-26 02:26:34 | | vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2024-03-20 01:30:13 | | vod | [云点播](https://cloud.tencent.com/document/product/266) | 2024-07-23 11:34:10 | | vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2024-07-30 02:28:21 | | vrs | [声音复刻](https://cloud.tencent.com/document/product/1283) | 2024-04-02 01:27:45 | -| vtc | [视频转译](https://cloud.tencent.com/document/product/1769) | 2024-06-07 02:52:58 | +| vtc | [视频转译](https://cloud.tencent.com/document/product/1769) | 2024-07-31 02:26:05 | | waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2024-07-29 02:30:48 | | wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2024-03-20 01:32:09 | | wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2024-07-25 02:32:09 | diff --git a/pyproject.toml b/pyproject.toml index 9b8c8b412a..06d874fea0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ exclude = ["tccli/examples"] [project] name = "tccli" -version = "3.0.1160.1" +version = "3.0.1161.1" authors = [ { name="tencentcloudapi", email="tencentcloudapi@tencent.com" }, ] @@ -24,7 +24,7 @@ classifiers = [ dependencies = [ "jmespath==0.10.0", "six==1.16.0", - "tencentcloud-sdk-python>=3.0.1160", + "tencentcloud-sdk-python>=3.0.1161", ] [project.urls] diff --git a/tccli/__init__.py b/tccli/__init__.py index f10773792d..5dad5f012e 100644 --- a/tccli/__init__.py +++ b/tccli/__init__.py @@ -1 +1 @@ -__version__ = '3.0.1160.1' +__version__ = '3.0.1161.1' diff --git a/tccli/examples/cdwdoris/v20211228/CreateWorkloadGroup.md b/tccli/examples/cdwdoris/v20211228/CreateWorkloadGroup.md new file mode 100644 index 0000000000..1ef4849935 --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/CreateWorkloadGroup.md @@ -0,0 +1,24 @@ +**Example 1: 创建资源组** + + + +Input: + +``` +tccli cdwdoris CreateWorkloadGroup --cli-unfold-argument \ + --InstanceId cdwdoris-xxx \ + --WorkloadGroup.WorkloadGroupName test \ + --WorkloadGroup.CpuShare 10 \ + --WorkloadGroup.MemoryLimit 20 \ + --WorkloadGroup.EnableMemoryOverCommit True +``` + +Output: +``` +{ + "Response": { + "RequestId": "abc" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/DeleteWorkloadGroup.md b/tccli/examples/cdwdoris/v20211228/DeleteWorkloadGroup.md new file mode 100644 index 0000000000..bb94b48185 --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/DeleteWorkloadGroup.md @@ -0,0 +1,21 @@ +**Example 1: 删除资源组** + + + +Input: + +``` +tccli cdwdoris DeleteWorkloadGroup --cli-unfold-argument \ + --InstanceId cdwdoris-xxx \ + --WorkloadGroupName test +``` + +Output: +``` +{ + "Response": { + "RequestId": "abc" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/DescribeFederationToken.md b/tccli/examples/cdwdoris/v20211228/DescribeFederationToken.md new file mode 100644 index 0000000000..3e9135cf70 --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/DescribeFederationToken.md @@ -0,0 +1,18 @@ +**Example 1: 获取联合临时密钥** + + + +Input: + +``` +tccli cdwdoris DescribeFederationToken --cli-unfold-argument ``` + +Output: +``` +{ + "Response": { + "RequestId": "abc" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/DescribeGoodsDetail.md b/tccli/examples/cdwdoris/v20211228/DescribeGoodsDetail.md new file mode 100644 index 0000000000..af5ed37232 --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/DescribeGoodsDetail.md @@ -0,0 +1,37 @@ +**Example 1: 生成GoodsDetail** + +生成计费相关接口的GoodsDetail结构 + +Input: + +``` +tccli cdwdoris DescribeGoodsDetail --cli-unfold-argument \ + --Zone ap-chongqing-1 \ + --HaFlag true \ + --UserVPCId vpc-xxx \ + --UserSubnetId subnet-xxxx \ + --ProductVersion 20.7.2.30 \ + --Case CREATE \ + --ChargeProperties.ChargeType "PREPAID" \ + --ChargeProperties.RenewFlag 1 \ + --ChargeProperties.TimeSpan 1 \ + --ChargeProperties.TimeUnit m +``` + +Output: +``` +{ + "Response": { + "Type": "sp_cdwch_standard", + "GoodsCategoryId": 1, + "GoodsDetail": "{\"context\":{\"AppID\":1258469122,\"AutoRenewFlag\":0,\"Case\":\"CREATE\",\"Channel\":0,\"ChargeProperties\":{\"ChargeType\":\"PREPAID\",\"RenewFlag\":1,\"TimeSpan\":1,\"TimeUnit\":\"m\"},\"Components\":[\"clickhouse-20.7.2.30\",\"zookeeper-3.4.9\"],\"DealName\":\"\",\"EMRInstanceID\":\"\",\"EMRInstanceNo\":0,\"ExpiredTime\":\"\",\"HAInstance\":true,\"ImageID\":\"\",\"InstanceName\":\"\",\"InstanceType\":\"\",\"ModifyConfigItems\":null,\"OperateUin\":\"\",\"Password\":\"\",\"ProductID\":0,\"Region\":\"ap-guangzhou\",\"RenewPeriod\":0,\"ResourceAppID\":0,\"ResourceOperateUin\":\"\",\"ResourceUin\":\"\",\"Resources\":[{\"Count\":2,\"DiskSpec\":{\"DiskCount\":0,\"DiskSize\":0,\"DiskType\":\"\"},\"SpecName\":\"CVM.S2\",\"Type\":\"DATA\"},{\"Count\":1,\"DiskSpec\":{\"DiskCount\":0,\"DiskSize\":0,\"DiskType\":\"\"},\"SpecName\":\"CVM.S2\",\"Type\":\"COMMON\"}],\"SecurityGroupID\":\"\",\"ServiceName\":\"ClickHouse\",\"StackID\":\"\",\"Tags\":{\"ResourceType\":\"\",\"Tags\":null},\"TimeSpan\":1,\"TimeUnit\":\"m\",\"Topology\":\"\",\"TraceID\":\"trace-vudbhcyqe15awen3\",\"Uin\":\"100010640219\",\"UserSubnetID\":\"subnet-xx111\",\"UserVPCID\":\"vpc-xxx\",\"VIPType\":0,\"Version\":\"20.7.2.30\",\"Zone\":\"ap-guangzhou-4\",\"instanceId\":\"cdwch-bbi1k4he\",\"modifySpec\":null},\"curDeadline\":\"\",\"goodsNum\":1,\"pid\":123,\"productCode\":\"p_cdwch\",\"productInfo\":{\"可用区\":\"ap-guangzhou-4\",\"地域\":\"ap-guangzhou\",\"集群\":\"cdwch-bbi1k4he\"},\"sa2_cpu2_mem4\":\"3\",\"subProductCode\":\"p_sub_iaas\",\"timeSpan\":1,\"timeUnit\":\"m\"}", + "GoodsNum": 1, + "PayMode": 1, + "RegionId": 1, + "ZoneId": 100004, + "ResourceId": "cdwch-bbi1k4he", + "RequestId": "xxx-xxx-xxx-xxx" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/DescribeInstanceUsedSubnets.md b/tccli/examples/cdwdoris/v20211228/DescribeInstanceUsedSubnets.md new file mode 100644 index 0000000000..33319b4bf3 --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/DescribeInstanceUsedSubnets.md @@ -0,0 +1,24 @@ +**Example 1: 获取集群已使用子网信息** + + + +Input: + +``` +tccli cdwdoris DescribeInstanceUsedSubnets --cli-unfold-argument \ + --InstanceId abc +``` + +Output: +``` +{ + "Response": { + "VpcId": "abc", + "UsedSubnets": [ + "abc" + ], + "RequestId": "abc" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/DescribeRegionZone.md b/tccli/examples/cdwdoris/v20211228/DescribeRegionZone.md new file mode 100644 index 0000000000..5462139632 --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/DescribeRegionZone.md @@ -0,0 +1,46 @@ +**Example 1: 购买页获取地域及可用区列表** + +购买页获取地域及可用区列表、内核版本、网络规则等 + +Input: + +``` +tccli cdwdoris DescribeRegionZone --cli-unfold-argument ``` + +Output: +``` +{ + "Response": { + "Items": [ + { + "Name": "abc", + "Desc": "abc", + "Regions": [ + { + "Name": "abc", + "Desc": "abc", + "RegionId": 0, + "Zones": [ + { + "Name": "abc", + "Desc": "abc", + "ZoneId": 0, + "Encrypt": 0 + } + ], + "Count": 0, + "IsInternationalSite": 1, + "Bucket": "abc" + } + ] + } + ], + "Versions": [ + "abc" + ], + "VpcRule": "abc", + "RequestId": "abc" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/DescribeReplicaVersion.md b/tccli/examples/cdwdoris/v20211228/DescribeReplicaVersion.md new file mode 100644 index 0000000000..47c4e18d41 --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/DescribeReplicaVersion.md @@ -0,0 +1,24 @@ +**Example 1: DescribeReplicaVersion** + + + +Input: + +``` +tccli cdwdoris DescribeReplicaVersion --cli-unfold-argument \ + --InstanceId xx +``` + +Output: +``` +{ + "Response": { + "ReplicaFlagItem": { + "ReplicaFlag": 0, + "ErrorMsg": "xx" + }, + "RequestId": "xx" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/DescribeRestoreTaskDetail.md b/tccli/examples/cdwdoris/v20211228/DescribeRestoreTaskDetail.md new file mode 100644 index 0000000000..5c698c4503 --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/DescribeRestoreTaskDetail.md @@ -0,0 +1,45 @@ +**Example 1: 示例** + + + +Input: + +``` +tccli cdwdoris DescribeRestoreTaskDetail --cli-unfold-argument \ + --InstanceId xx \ + --BackUpJobId 0 +``` + +Output: +``` +{ + "Response": { + "RestoreStatus": [ + { + "Status": "xx", + "FinishedTime": "xx", + "MetaPreparedTime": "xx", + "RestoreObjects": "xx", + "Timestamp": "xx", + "ReplicaAllocation": "xx", + "TaskErrMsg": "xx", + "JobId": 0, + "CreateTime": "xx", + "State": "xx", + "SnapshotFinishedTime": "xx", + "Timeout": 0, + "DownloadFinishedTime": "xx", + "UnfinishedTasks": "xx", + "Progress": "xx", + "Label": "xx", + "ReplicationNum": "xx", + "DbName": "xx", + "AllowLoad": true + } + ], + "RequestId": "xx", + "ErrorMsg": "xx" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/DescribeSqlApis.md b/tccli/examples/cdwdoris/v20211228/DescribeSqlApis.md new file mode 100644 index 0000000000..f12cc08fec --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/DescribeSqlApis.md @@ -0,0 +1,18 @@ +**Example 1: 查询ck集群信息** + +查询ck集群信息 + +Input: + +``` +tccli cdwdoris DescribeSqlApis --cli-unfold-argument ``` + +Output: +``` +{ + "Response": { + "RequestId": "abc" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/DescribeUserBindWorkloadGroup.md b/tccli/examples/cdwdoris/v20211228/DescribeUserBindWorkloadGroup.md new file mode 100644 index 0000000000..eaf0ddbd64 --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/DescribeUserBindWorkloadGroup.md @@ -0,0 +1,30 @@ +**Example 1: 获取当前集群各用户绑定的资源信息** + + + +Input: + +``` +tccli cdwdoris DescribeUserBindWorkloadGroup --cli-unfold-argument \ + --InstanceId cdwdoris-xxx +``` + +Output: +``` +{ + "Response": { + "RequestId": "abc", + "UserBindInfos": [ + { + "UserName": "test", + "WorkloadGroupName": "g1" + }, + { + "UserName": "admin", + "WorkloadGroupName": "normal" + } + ] + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/DescribeWorkloadGroup.md b/tccli/examples/cdwdoris/v20211228/DescribeWorkloadGroup.md new file mode 100644 index 0000000000..094ffc3eba --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/DescribeWorkloadGroup.md @@ -0,0 +1,30 @@ +**Example 1: 获取资源组信息** + + + +Input: + +``` +tccli cdwdoris DescribeWorkloadGroup --cli-unfold-argument \ + --InstanceId abc +``` + +Output: +``` +{ + "Response": { + "WorkloadGroups": [ + { + "WorkloadGroupName": "abc", + "CpuShare": 10, + "MemoryLimit": 10, + "EnableMemoryOverCommit": true + } + ], + "Status": "abc", + "ErrorMsg": "abc", + "RequestId": "abc" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/FitClsLog.md b/tccli/examples/cdwdoris/v20211228/FitClsLog.md new file mode 100644 index 0000000000..3be94bdf1f --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/FitClsLog.md @@ -0,0 +1,23 @@ +**Example 1: 修改集群配置接口** + +在集群配置页面修改集群接口 + +Input: + +``` +tccli cdwdoris FitClsLog --cli-unfold-argument \ + --InstanceId cdwch-xxxx \ + --ClsLogSetId xxxx +``` + +Output: +``` +{ + "Response": { + "RequestId": "xxx-xxx", + "FlowId": 0, + "ErrorMsg": "" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/ModifyInstanceKeyValConfigs.md b/tccli/examples/cdwdoris/v20211228/ModifyInstanceKeyValConfigs.md new file mode 100644 index 0000000000..417889c6d1 --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/ModifyInstanceKeyValConfigs.md @@ -0,0 +1,30 @@ +**Example 1: 示例** + + + +Input: + +``` +tccli cdwdoris ModifyInstanceKeyValConfigs --cli-unfold-argument \ + --InstanceId 123 \ + --DelItems.0.ConfKey 123 \ + --DelItems.0.ConfValue 123 \ + --FileName 123 \ + --UpdateItems.0.ConfKey 123 \ + --UpdateItems.0.ConfValue 123 \ + --Message 123 \ + --AddItems.0.ConfKey 123 \ + --AddItems.0.ConfValue 123 +``` + +Output: +``` +{ + "Response": { + "ErrorMsg": "123", + "RequestId": "123", + "FlowId": 0 + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/ModifySecurityGroups.md b/tccli/examples/cdwdoris/v20211228/ModifySecurityGroups.md new file mode 100644 index 0000000000..bc4c682820 --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/ModifySecurityGroups.md @@ -0,0 +1,23 @@ +**Example 1: 更改安全组** + + + +Input: + +``` +tccli cdwdoris ModifySecurityGroups --cli-unfold-argument \ + --InstanceId abc \ + --OldSecurityGroupIds abc \ + --ModifySecurityGroupIds abc +``` + +Output: +``` +{ + "Response": { + "ErrorMsg": "abc", + "RequestId": "abc" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/ModifyUserBindWorkloadGroup.md b/tccli/examples/cdwdoris/v20211228/ModifyUserBindWorkloadGroup.md new file mode 100644 index 0000000000..9730d459b3 --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/ModifyUserBindWorkloadGroup.md @@ -0,0 +1,27 @@ +**Example 1: 修改用户绑定的资源组** + + + +Input: + +``` +tccli cdwdoris ModifyUserBindWorkloadGroup --cli-unfold-argument \ + --InstanceId abc \ + --BindUsers.0.UserName test \ + --BindUsers.0.Host % \ + --BindUsers.1.UserName test \ + --BindUsers.1.Host 127.0.0.1 \ + --OldWorkloadGroupName abc \ + --NewWorkloadGroupName abc1 +``` + +Output: +``` +{ + "Response": { + "ErrorMsg": "abc", + "RequestId": "abc" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/ModifyUserPrivilegesV3.md b/tccli/examples/cdwdoris/v20211228/ModifyUserPrivilegesV3.md new file mode 100644 index 0000000000..d3de285239 --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/ModifyUserPrivilegesV3.md @@ -0,0 +1,24 @@ +**Example 1: 设置全局catalog权限** + + + +Input: + +``` +tccli cdwdoris ModifyUserPrivilegesV3 --cli-unfold-argument \ + --InstanceId cdwdoris-xx \ + --UserName test \ + --UserPrivileges.IsSetGlobalCatalog True +``` + +Output: +``` +{ + "Response": { + "ErrorMsg": "abc", + "InstanceId": "abc", + "RequestId": "abc" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/ModifyWorkloadGroup.md b/tccli/examples/cdwdoris/v20211228/ModifyWorkloadGroup.md new file mode 100644 index 0000000000..912bf4a85c --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/ModifyWorkloadGroup.md @@ -0,0 +1,25 @@ +**Example 1: 修改资源组信息** + + + +Input: + +``` +tccli cdwdoris ModifyWorkloadGroup --cli-unfold-argument \ + --InstanceId abc \ + --WorkloadGroup.WorkloadGroupName abc \ + --WorkloadGroup.CpuShare 10 \ + --WorkloadGroup.MemoryLimit 10 \ + --WorkloadGroup.EnableMemoryOverCommit True +``` + +Output: +``` +{ + "Response": { + "ErrorMsg": "abc", + "RequestId": "abc" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/ModifyWorkloadGroupStatus.md b/tccli/examples/cdwdoris/v20211228/ModifyWorkloadGroupStatus.md new file mode 100644 index 0000000000..25cdcd2692 --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/ModifyWorkloadGroupStatus.md @@ -0,0 +1,22 @@ +**Example 1: 开启或关闭资源组** + + + +Input: + +``` +tccli cdwdoris ModifyWorkloadGroupStatus --cli-unfold-argument \ + --InstanceId abc \ + --OperationType open +``` + +Output: +``` +{ + "Response": { + "ErrorMsg": "abc", + "RequestId": "abc" + } +} +``` + diff --git a/tccli/examples/cdwdoris/v20211228/ReduceInstance.md b/tccli/examples/cdwdoris/v20211228/ReduceInstance.md new file mode 100644 index 0000000000..4244ae22f5 --- /dev/null +++ b/tccli/examples/cdwdoris/v20211228/ReduceInstance.md @@ -0,0 +1,26 @@ +**Example 1: 缩容API** + + + +Input: + +``` +tccli cdwdoris ReduceInstance --cli-unfold-argument \ + --InstanceId cdwdoris-xqewrqx \ + --Type MASTER \ + --DelHosts 10.0.1.12 \ + --HaType 1 +``` + +Output: +``` +{ + "Response": { + "FlowId": "1231", + "InstanceId": "cdwdoris-xqewrqx", + "ErrorMsg": "", + "RequestId": "xasdfkqe2-a12q29-axdfas" + } +} +``` + diff --git a/tccli/examples/trro/v20220325/DescribeDeviceList.md b/tccli/examples/trro/v20220325/DescribeDeviceList.md index 55206d8deb..08b42e8b6f 100644 --- a/tccli/examples/trro/v20220325/DescribeDeviceList.md +++ b/tccli/examples/trro/v20220325/DescribeDeviceList.md @@ -6,9 +6,12 @@ Input: ``` tccli trro DescribeDeviceList --cli-unfold-argument \ - --ProjectId f3glr49rc96pralw \ - --SearchWords xx \ - --DeviceType field + --ProjectId abc \ + --DeviceType field \ + --SearchWords abc \ + --PageSize 10 \ + --PageNumber 1 \ + --DeviceStatus ``` Output: @@ -21,7 +24,7 @@ Output: "Devices": [ { "DeviceName": "test1", - "ProjectId": "xx", + "ProjectId": "abc", "LastReportTime": "2022-03-22T08:00:00+08:00", "DeviceStatus": "offline", "DeviceType": "field", diff --git a/tccli/examples/trro/v20220325/DescribeDeviceSessionDetails.md b/tccli/examples/trro/v20220325/DescribeDeviceSessionDetails.md index f4a5403990..f2eb9b4915 100644 --- a/tccli/examples/trro/v20220325/DescribeDeviceSessionDetails.md +++ b/tccli/examples/trro/v20220325/DescribeDeviceSessionDetails.md @@ -15,38 +15,106 @@ Output: "Response": { "Details": [ { - "MemUsed": [ - 0.0 + "DeviceType": "abc", + "StartTime": 1, + "EndTime": 1, + "SessionId": "abc", + "Rate": [ + 0 ], "Fps": [ 0 ], "Lost": [ - 0.0 + 0 ], "NetworkLatency": [ 0 ], - "Rate": [ + "VideoLatency": [ + 0 + ], + "CpuUsed": [ + 0 + ], + "MemUsed": [ 0 ], - "SessionId": "xx", - "DeviceType": "xx", - "StartTime": 1, "TimeOffset": [ 1 ], - "SdkMode": "xx", - "EndTime": 1, - "CpuUsed": [ - 0.0 + "ProjectId": "abc", + "DeviceId": "abc", + "Ver": "abc", + "SdkMode": "abc", + "DecodeCost": [ + 0 ], - "VideoLatency": [ + "RenderConst": [ + 0 + ], + "K100": [ + 0 + ], + "K150": [ + 0 + ], + "NACK": [ + 0 + ], + "BitRateEstimate": [ + 0 + ], + "Width": 0, + "Height": 0, + "EncodeCost": [ + 0 + ], + "CaptureCost": [ + 0 + ], + "RenderCost": [ 0 + ], + "ConfigWidth": 0, + "ConfigHeight": 0, + "FrameDelta": [ + 0 + ], + "MaxFrameDelta": [ + 0 + ], + "TotalBitrateEstimate": [ + 0 + ], + "Lag100Duration": [ + 0 + ], + "Lag150Duration": [ + 0 + ], + "MultiMode": 0, + "MultiNet": [ + { + "NetId": 0, + "NetIp": "abc", + "Rtt": [ + 0 + ], + "Lost": [ + 0 + ], + "SendBps": [ + 0 + ], + "RecvBps": [ + 0 + ] + } ] } ], - "RequestId": "xx" + "RequestId": "abc" } } ``` diff --git a/tccli/examples/trtc/v20190722/StartPublishCdnStream.md b/tccli/examples/trtc/v20190722/StartPublishCdnStream.md index 0acac25eed..263d5f4371 100644 --- a/tccli/examples/trtc/v20190722/StartPublishCdnStream.md +++ b/tccli/examples/trtc/v20190722/StartPublishCdnStream.md @@ -1,4 +1,4 @@ -**Example 1: 发起混流转推** +**Example 1: 发起音视频混流转推 CDN** 无 @@ -6,29 +6,17 @@ Input: ``` tccli trtc StartPublishCdnStream --cli-unfold-argument \ - --AudioParams.SubscribeAudioList.0.UserInfo.RoomIdType 0 \ - --AudioParams.SubscribeAudioList.0.UserInfo.RoomId 195044 \ - --AudioParams.SubscribeAudioList.0.UserInfo.UserId Trtc_User_0 \ - --AudioParams.SubscribeAudioList.1.UserInfo.RoomIdType 0 \ - --AudioParams.SubscribeAudioList.1.UserInfo.RoomId 195044 \ - --AudioParams.SubscribeAudioList.1.UserInfo.UserId Trtc_User_1 \ - --AudioParams.SubscribeAudioList.2.UserInfo.RoomIdType 0 \ - --AudioParams.SubscribeAudioList.2.UserInfo.RoomId 195044 \ - --AudioParams.SubscribeAudioList.2.UserInfo.UserId Trtc_User_2 \ - --AudioParams.SubscribeAudioList.3.UserInfo.RoomIdType 0 \ - --AudioParams.SubscribeAudioList.3.UserInfo.RoomId 195044 \ - --AudioParams.SubscribeAudioList.3.UserInfo.UserId Trtc_User_3 \ + --AgentParams.MaxIdleTime 30 \ + --AgentParams.UserSig eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_ \ + --AgentParams.UserId trtc_partner_test_1 \ --AudioParams.AudioEncode.SampleRate 48000 \ --AudioParams.AudioEncode.Codec 0 \ --AudioParams.AudioEncode.BitRate 64 \ --AudioParams.AudioEncode.Channel 2 \ - --AgentParams.MaxIdleTime 30 \ - --AgentParams.UserSig eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_ \ - --AgentParams.UserId trtc_partner_test_1 \ --VideoParams.VideoEncode.Height 720 \ --VideoParams.VideoEncode.Width 1280 \ --VideoParams.VideoEncode.Fps 15 \ - --VideoParams.VideoEncode.BitRate 512 \ + --VideoParams.VideoEncode.BitRate 1536 \ --VideoParams.VideoEncode.Gop 2 \ --VideoParams.LayoutParams.PureAudioHoldPlaceMode 0 \ --VideoParams.LayoutParams.MixLayoutMode 4 \ @@ -36,42 +24,22 @@ tccli trtc StartPublishCdnStream --cli-unfold-argument \ --VideoParams.LayoutParams.MixLayoutList.0.LocationY 0 \ --VideoParams.LayoutParams.MixLayoutList.0.UserMediaStream.StreamType 0 \ --VideoParams.LayoutParams.MixLayoutList.0.UserMediaStream.UserInfo.RoomIdType 0 \ - --VideoParams.LayoutParams.MixLayoutList.0.UserMediaStream.UserInfo.RoomId 195044 \ + --VideoParams.LayoutParams.MixLayoutList.0.UserMediaStream.UserInfo.RoomId 295066 \ --VideoParams.LayoutParams.MixLayoutList.0.UserMediaStream.UserInfo.UserId Trtc_User_0 \ --VideoParams.LayoutParams.MixLayoutList.0.ZOrder 0 \ - --VideoParams.LayoutParams.MixLayoutList.0.ImageHeight 360 \ + --VideoParams.LayoutParams.MixLayoutList.0.ImageHeight 720 \ --VideoParams.LayoutParams.MixLayoutList.0.ImageWidth 640 \ --VideoParams.LayoutParams.MixLayoutList.0.RenderMode 0 \ --VideoParams.LayoutParams.MixLayoutList.1.LocationX 640 \ --VideoParams.LayoutParams.MixLayoutList.1.LocationY 0 \ --VideoParams.LayoutParams.MixLayoutList.1.UserMediaStream.StreamType 0 \ --VideoParams.LayoutParams.MixLayoutList.1.UserMediaStream.UserInfo.RoomIdType 0 \ - --VideoParams.LayoutParams.MixLayoutList.1.UserMediaStream.UserInfo.RoomId 195044 \ + --VideoParams.LayoutParams.MixLayoutList.1.UserMediaStream.UserInfo.RoomId 295066 \ --VideoParams.LayoutParams.MixLayoutList.1.UserMediaStream.UserInfo.UserId Trtc_User_1 \ --VideoParams.LayoutParams.MixLayoutList.1.ZOrder 0 \ - --VideoParams.LayoutParams.MixLayoutList.1.ImageHeight 360 \ + --VideoParams.LayoutParams.MixLayoutList.1.ImageHeight 720 \ --VideoParams.LayoutParams.MixLayoutList.1.ImageWidth 640 \ --VideoParams.LayoutParams.MixLayoutList.1.RenderMode 0 \ - --VideoParams.LayoutParams.MixLayoutList.2.LocationX 0 \ - --VideoParams.LayoutParams.MixLayoutList.2.LocationY 360 \ - --VideoParams.LayoutParams.MixLayoutList.2.UserMediaStream.StreamType 0 \ - --VideoParams.LayoutParams.MixLayoutList.2.UserMediaStream.UserInfo.RoomIdType 0 \ - --VideoParams.LayoutParams.MixLayoutList.2.UserMediaStream.UserInfo.RoomId 195044 \ - --VideoParams.LayoutParams.MixLayoutList.2.UserMediaStream.UserInfo.UserId Trtc_User_2 \ - --VideoParams.LayoutParams.MixLayoutList.2.ZOrder 0 \ - --VideoParams.LayoutParams.MixLayoutList.2.ImageHeight 360 \ - --VideoParams.LayoutParams.MixLayoutList.2.ImageWidth 640 \ - --VideoParams.LayoutParams.MixLayoutList.2.RenderMode 0 \ - --VideoParams.LayoutParams.MixLayoutList.3.LocationX 640 \ - --VideoParams.LayoutParams.MixLayoutList.3.LocationY 360 \ - --VideoParams.LayoutParams.MixLayoutList.3.UserMediaStream.StreamType 0 \ - --VideoParams.LayoutParams.MixLayoutList.3.UserMediaStream.UserInfo.RoomIdType 0 \ - --VideoParams.LayoutParams.MixLayoutList.3.UserMediaStream.UserInfo.RoomId 195044 \ - --VideoParams.LayoutParams.MixLayoutList.3.UserMediaStream.UserInfo.UserId Trtc_User_3 \ - --VideoParams.LayoutParams.MixLayoutList.3.ZOrder 0 \ - --VideoParams.LayoutParams.MixLayoutList.3.ImageHeight 360 \ - --VideoParams.LayoutParams.MixLayoutList.3.ImageWidth 640 \ - --VideoParams.LayoutParams.MixLayoutList.3.RenderMode 0 \ --VideoParams.BackGroundColor 0xFF0000 \ --VideoParams.WaterMarkList.0.WaterMarkType 0 \ --VideoParams.WaterMarkList.0.WaterMarkImage.LocationX 64 \ @@ -81,13 +49,11 @@ tccli trtc StartPublishCdnStream --cli-unfold-argument \ --VideoParams.WaterMarkList.0.WaterMarkImage.WaterMarkUrl https://xkt-course-1304449343.cos.ap-beijing.myqcloud.com/test/mark/37f9eb62-ca72-430e-bfca-e700b59b20e0.png \ --VideoParams.WaterMarkList.0.WaterMarkImage.ZOrder 3 \ --PublishCdnParams.0.PublishCdnUrl rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1 \ - --PublishCdnParams.0.IsTencentCdn 0 \ - --PublishCdnParams.1.PublishCdnUrl rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test2 \ - --PublishCdnParams.1.IsTencentCdn 0 \ + --PublishCdnParams.0.IsTencentCdn 1 \ --RoomIdType 0 \ --SdkAppId 1400188366 \ --WithTranscoding 1 \ - --RoomId 195044 + --RoomId 295066 ``` Output: @@ -100,7 +66,7 @@ Output: } ``` -**Example 2: 发起单流纯音频旁路转推** +**Example 2: 发起纯音频混流转推 CDN** 无 @@ -108,36 +74,38 @@ Input: ``` tccli trtc StartPublishCdnStream --cli-unfold-argument \ + --AgentParams.MaxIdleTime 30 \ + --AgentParams.UserSig eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_ \ + --AgentParams.UserId trtc_partner_test_1 \ --AudioParams.AudioEncode.SampleRate 48000 \ --AudioParams.AudioEncode.Codec 0 \ --AudioParams.AudioEncode.BitRate 64 \ --AudioParams.AudioEncode.Channel 2 \ - --AgentParams.MaxIdleTime 30 \ - --AgentParams.UserSig eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_ \ - --AgentParams.UserId trtc_partner_test_1 \ - --SingleSubscribeParams.UserMediaStream.StreamType 0 \ - --SingleSubscribeParams.UserMediaStream.UserInfo.RoomIdType 0 \ - --SingleSubscribeParams.UserMediaStream.UserInfo.RoomId 195044 \ - --SingleSubscribeParams.UserMediaStream.UserInfo.UserId Trtc_User_0 \ + --AudioParams.SubscribeAudioList.0.UserInfo.RoomIdType 0 \ + --AudioParams.SubscribeAudioList.0.UserInfo.RoomId 295066 \ + --AudioParams.SubscribeAudioList.0.UserInfo.UserId Trtc_User_0 \ + --AudioParams.SubscribeAudioList.1.UserInfo.RoomIdType 0 \ + --AudioParams.SubscribeAudioList.1.UserInfo.RoomId 295066 \ + --AudioParams.SubscribeAudioList.1.UserInfo.UserId Trtc_User_1 \ --PublishCdnParams.0.PublishCdnUrl rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1 \ - --PublishCdnParams.0.IsTencentCdn 0 \ + --PublishCdnParams.0.IsTencentCdn 1 \ --RoomIdType 0 \ --SdkAppId 1400188366 \ - --WithTranscoding 0 \ - --RoomId 195044 + --WithTranscoding 1 \ + --RoomId 295066 ``` Output: ``` { "Response": { - "TaskId": "-m97l2ZU7r57nZBesMa84KgzxhH0OBbbCRaKC4K-4pycoZW7yFPtusNuZOen1Ca0qtQQAQ..", - "RequestId": "ef089f8b-d0d1-4131-894d-4edd68d61605" + "RequestId": "388014ec-a0b8-4b8f-86bc-1f467448f5f0", + "TaskId": "-m9lnV5U7nj4rkLBWMXF9n8-EohONCXbalWuLYK-4pycoZWQndibcqSVnrlqKF5om7EIDVk4awE." } } ``` -**Example 3: 发起单流音视频旁路转推** +**Example 3: 发起单流音视频旁路转推 CDN** 无 @@ -145,28 +113,28 @@ Input: ``` tccli trtc StartPublishCdnStream --cli-unfold-argument \ + --AgentParams.MaxIdleTime 30 \ + --AgentParams.UserSig eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_ \ + --AgentParams.UserId trtc_partner_test_1 \ --AudioParams.AudioEncode.SampleRate 48000 \ --AudioParams.AudioEncode.Codec 0 \ --AudioParams.AudioEncode.BitRate 64 \ --AudioParams.AudioEncode.Channel 2 \ - --AgentParams.MaxIdleTime 30 \ - --AgentParams.UserSig eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_ \ - --AgentParams.UserId trtc_partner_test_1 \ --VideoParams.VideoEncode.Height 720 \ --VideoParams.VideoEncode.Width 1280 \ --VideoParams.VideoEncode.Fps 15 \ - --VideoParams.VideoEncode.BitRate 512 \ + --VideoParams.VideoEncode.BitRate 1536 \ --VideoParams.VideoEncode.Gop 2 \ --SingleSubscribeParams.UserMediaStream.StreamType 0 \ --SingleSubscribeParams.UserMediaStream.UserInfo.RoomIdType 0 \ - --SingleSubscribeParams.UserMediaStream.UserInfo.RoomId 195044 \ + --SingleSubscribeParams.UserMediaStream.UserInfo.RoomId 295066 \ --SingleSubscribeParams.UserMediaStream.UserInfo.UserId Trtc_User_0 \ --PublishCdnParams.0.PublishCdnUrl rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1 \ - --PublishCdnParams.0.IsTencentCdn 0 \ + --PublishCdnParams.0.IsTencentCdn 1 \ --RoomIdType 0 \ --SdkAppId 1400188366 \ --WithTranscoding 0 \ - --RoomId 195044 + --RoomId 295066 ``` Output: @@ -179,7 +147,7 @@ Output: } ``` -**Example 4: 混一个人的音视频,和房间所有人的声音** +**Example 4: 发起单流纯音频旁路转推 CDN** 无 @@ -187,30 +155,89 @@ Input: ``` tccli trtc StartPublishCdnStream --cli-unfold-argument \ + --AgentParams.MaxIdleTime 30 \ + --AgentParams.UserSig eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_ \ + --AgentParams.UserId trtc_partner_test_1 \ --AudioParams.AudioEncode.SampleRate 48000 \ --AudioParams.AudioEncode.Codec 0 \ --AudioParams.AudioEncode.BitRate 64 \ --AudioParams.AudioEncode.Channel 2 \ - --AgentParams.MaxIdleTime 10 \ + --SingleSubscribeParams.UserMediaStream.StreamType 0 \ + --SingleSubscribeParams.UserMediaStream.UserInfo.RoomIdType 0 \ + --SingleSubscribeParams.UserMediaStream.UserInfo.RoomId 295066 \ + --SingleSubscribeParams.UserMediaStream.UserInfo.UserId Trtc_User_0 \ + --PublishCdnParams.0.PublishCdnUrl rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1 \ + --PublishCdnParams.0.IsTencentCdn 1 \ + --RoomIdType 0 \ + --SdkAppId 1400188366 \ + --WithTranscoding 0 \ + --RoomId 295066 +``` + +Output: +``` +{ + "Response": { + "TaskId": "-m97l2ZU7r57nZBesMa84KgzxhH0OBbbCRaKC4K-4pycoZW7yFPtusNuZOen1Ca0qtQQAQ..", + "RequestId": "ef089f8b-d0d1-4131-894d-4edd68d61605" + } +} +``` + +**Example 5: 发起音视频混流回推 TRTC 房间** + + + +Input: + +``` +tccli trtc StartPublishCdnStream --cli-unfold-argument \ + --AgentParams.MaxIdleTime 30 \ --AgentParams.UserSig eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_ \ --AgentParams.UserId trtc_partner_test_1 \ + --AudioParams.AudioEncode.SampleRate 48000 \ + --AudioParams.AudioEncode.Codec 0 \ + --AudioParams.AudioEncode.BitRate 64 \ + --AudioParams.AudioEncode.Channel 2 \ --VideoParams.VideoEncode.Height 720 \ --VideoParams.VideoEncode.Width 1280 \ --VideoParams.VideoEncode.Fps 15 \ - --VideoParams.VideoEncode.BitRate 512 \ + --VideoParams.VideoEncode.BitRate 1536 \ --VideoParams.VideoEncode.Gop 2 \ + --VideoParams.LayoutParams.PureAudioHoldPlaceMode 0 \ --VideoParams.LayoutParams.MixLayoutMode 4 \ --VideoParams.LayoutParams.MixLayoutList.0.LocationX 0 \ --VideoParams.LayoutParams.MixLayoutList.0.LocationY 0 \ --VideoParams.LayoutParams.MixLayoutList.0.UserMediaStream.StreamType 0 \ --VideoParams.LayoutParams.MixLayoutList.0.UserMediaStream.UserInfo.RoomIdType 0 \ --VideoParams.LayoutParams.MixLayoutList.0.UserMediaStream.UserInfo.RoomId 295066 \ - --VideoParams.LayoutParams.MixLayoutList.0.UserMediaStream.UserInfo.UserId 57906 \ + --VideoParams.LayoutParams.MixLayoutList.0.UserMediaStream.UserInfo.UserId Trtc_User_0 \ --VideoParams.LayoutParams.MixLayoutList.0.ZOrder 0 \ - --VideoParams.LayoutParams.MixLayoutList.0.ImageHeight 640 \ - --VideoParams.LayoutParams.MixLayoutList.0.ImageWidth 1280 \ + --VideoParams.LayoutParams.MixLayoutList.0.ImageHeight 720 \ + --VideoParams.LayoutParams.MixLayoutList.0.ImageWidth 640 \ --VideoParams.LayoutParams.MixLayoutList.0.RenderMode 0 \ - --PublishCdnParams.0.PublishCdnUrl rtmp://3891.livepush.myqcloud.com/live/1400188366_owen_main_1 \ + --VideoParams.LayoutParams.MixLayoutList.1.LocationX 640 \ + --VideoParams.LayoutParams.MixLayoutList.1.LocationY 0 \ + --VideoParams.LayoutParams.MixLayoutList.1.UserMediaStream.StreamType 0 \ + --VideoParams.LayoutParams.MixLayoutList.1.UserMediaStream.UserInfo.RoomIdType 0 \ + --VideoParams.LayoutParams.MixLayoutList.1.UserMediaStream.UserInfo.RoomId 295066 \ + --VideoParams.LayoutParams.MixLayoutList.1.UserMediaStream.UserInfo.UserId Trtc_User_1 \ + --VideoParams.LayoutParams.MixLayoutList.1.ZOrder 0 \ + --VideoParams.LayoutParams.MixLayoutList.1.ImageHeight 720 \ + --VideoParams.LayoutParams.MixLayoutList.1.ImageWidth 640 \ + --VideoParams.LayoutParams.MixLayoutList.1.RenderMode 0 \ + --VideoParams.BackGroundColor 0xFF0000 \ + --VideoParams.WaterMarkList.0.WaterMarkType 0 \ + --VideoParams.WaterMarkList.0.WaterMarkImage.LocationX 64 \ + --VideoParams.WaterMarkList.0.WaterMarkImage.LocationY 64 \ + --VideoParams.WaterMarkList.0.WaterMarkImage.WaterMarkHeight 64 \ + --VideoParams.WaterMarkList.0.WaterMarkImage.WaterMarkWidth 64 \ + --VideoParams.WaterMarkList.0.WaterMarkImage.WaterMarkUrl https://xkt-course-1304449343.cos.ap-beijing.myqcloud.com/test/mark/37f9eb62-ca72-430e-bfca-e700b59b20e0.png \ + --VideoParams.WaterMarkList.0.WaterMarkImage.ZOrder 3 \ + --FeedBackRoomParams.0.RoomId 630777 \ + --FeedBackRoomParams.0.RoomIdType 0 \ + --FeedBackRoomParams.0.UserId trtc_partner_test_2 \ + --FeedBackRoomParams.0.UserSig eJwtjEELgjAYhv-Ldy10m7mtQYcQOtklU6mLSFs1LVnzq4Tovwfa8Xmel-cD*zQLXsaDAhYQmI9stenQnu2o0eOpcrXHzvgKTY8V*8963dbOWQ2KLgihUkacTwXt3YCigpIlo0KyyZrBWW9ARZyQ-4O9gIJrYfK365M85PEw02HZPneNaJJbg4-1Nj6KQqZZacVhI1fw-QEkCzYe \ --RoomIdType 0 \ --SdkAppId 1400188366 \ --WithTranscoding 1 \ @@ -221,13 +248,13 @@ Output: ``` { "Response": { - "TaskId": "-m9liFNU7qjpXnrk6cloz8KXukyLKjzbLhP2AYK-4pycoZVbtyt6U21l9vJOqqeIfwR5AQ..", - "RequestId": "97dae8e4-4778-45c8-9abe-cdce33c1a450" + "RequestId": "921e9cf6-b77c-4a7a-ab0e-c66a3e66fc59", + "TaskId": "-m9lnV5U7n7TwoLKSsii1JivUn7DLDDbP16uLYK-4pycoZWQndib8GQJZEMMXFyOHe9Ds6WfxAE." } } ``` -**Example 5: 音视频上行,只混纯音频,和透传上行SEI** +**Example 6: 发起音视频混流转推 CDN ,输出数据带布局 SEI** 无 @@ -235,33 +262,54 @@ Input: ``` tccli trtc StartPublishCdnStream --cli-unfold-argument \ - --AudioParams.SubscribeAudioList.0.UserInfo.RoomIdType 0 \ - --AudioParams.SubscribeAudioList.0.UserInfo.RoomId 295066 \ - --AudioParams.SubscribeAudioList.0.UserInfo.UserId 57906 \ + --AgentParams.MaxIdleTime 30 \ + --AgentParams.UserSig eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_ \ + --AgentParams.UserId trtc_partner_test_1 \ --AudioParams.AudioEncode.SampleRate 48000 \ --AudioParams.AudioEncode.Codec 0 \ --AudioParams.AudioEncode.BitRate 64 \ --AudioParams.AudioEncode.Channel 2 \ - --AgentParams.MaxIdleTime 10 \ - --AgentParams.UserSig eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_ \ - --AgentParams.UserId trtc_partner_test_1 \ --VideoParams.VideoEncode.Height 720 \ --VideoParams.VideoEncode.Width 1280 \ --VideoParams.VideoEncode.Fps 15 \ - --VideoParams.VideoEncode.BitRate 512 \ + --VideoParams.VideoEncode.BitRate 1536 \ --VideoParams.VideoEncode.Gop 2 \ + --VideoParams.LayoutParams.PureAudioHoldPlaceMode 0 \ --VideoParams.LayoutParams.MixLayoutMode 4 \ --VideoParams.LayoutParams.MixLayoutList.0.LocationX 0 \ --VideoParams.LayoutParams.MixLayoutList.0.LocationY 0 \ --VideoParams.LayoutParams.MixLayoutList.0.UserMediaStream.StreamType 0 \ --VideoParams.LayoutParams.MixLayoutList.0.UserMediaStream.UserInfo.RoomIdType 0 \ --VideoParams.LayoutParams.MixLayoutList.0.UserMediaStream.UserInfo.RoomId 295066 \ - --VideoParams.LayoutParams.MixLayoutList.0.UserMediaStream.UserInfo.UserId 57906 \ + --VideoParams.LayoutParams.MixLayoutList.0.UserMediaStream.UserInfo.UserId Trtc_User_0 \ --VideoParams.LayoutParams.MixLayoutList.0.ZOrder 0 \ - --VideoParams.LayoutParams.MixLayoutList.0.ImageHeight 0 \ - --VideoParams.LayoutParams.MixLayoutList.0.ImageWidth 0 \ + --VideoParams.LayoutParams.MixLayoutList.0.ImageHeight 720 \ + --VideoParams.LayoutParams.MixLayoutList.0.ImageWidth 640 \ --VideoParams.LayoutParams.MixLayoutList.0.RenderMode 0 \ - --PublishCdnParams.0.PublishCdnUrl rtmp://3891.livepush.myqcloud.com/live/1400188366_owen_main_1 \ + --VideoParams.LayoutParams.MixLayoutList.1.LocationX 640 \ + --VideoParams.LayoutParams.MixLayoutList.1.LocationY 0 \ + --VideoParams.LayoutParams.MixLayoutList.1.UserMediaStream.StreamType 0 \ + --VideoParams.LayoutParams.MixLayoutList.1.UserMediaStream.UserInfo.RoomIdType 0 \ + --VideoParams.LayoutParams.MixLayoutList.1.UserMediaStream.UserInfo.RoomId 295066 \ + --VideoParams.LayoutParams.MixLayoutList.1.UserMediaStream.UserInfo.UserId Trtc_User_1 \ + --VideoParams.LayoutParams.MixLayoutList.1.ZOrder 0 \ + --VideoParams.LayoutParams.MixLayoutList.1.ImageHeight 720 \ + --VideoParams.LayoutParams.MixLayoutList.1.ImageWidth 640 \ + --VideoParams.LayoutParams.MixLayoutList.1.RenderMode 0 \ + --VideoParams.BackGroundColor 0xFF0000 \ + --VideoParams.WaterMarkList.0.WaterMarkType 0 \ + --VideoParams.WaterMarkList.0.WaterMarkImage.LocationX 64 \ + --VideoParams.WaterMarkList.0.WaterMarkImage.LocationY 64 \ + --VideoParams.WaterMarkList.0.WaterMarkImage.WaterMarkHeight 64 \ + --VideoParams.WaterMarkList.0.WaterMarkImage.WaterMarkWidth 64 \ + --VideoParams.WaterMarkList.0.WaterMarkImage.WaterMarkUrl https://xkt-course-1304449343.cos.ap-beijing.myqcloud.com/test/mark/37f9eb62-ca72-430e-bfca-e700b59b20e0.png \ + --VideoParams.WaterMarkList.0.WaterMarkImage.ZOrder 3 \ + --SeiParams.LayoutVolume.AppData layout_sei_test \ + --SeiParams.LayoutVolume.PayloadType 100 \ + --SeiParams.LayoutVolume.Interval 1000 \ + --SeiParams.LayoutVolume.FollowIdr 1 \ + --PublishCdnParams.0.PublishCdnUrl rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1 \ + --PublishCdnParams.0.IsTencentCdn 1 \ --RoomIdType 0 \ --SdkAppId 1400188366 \ --WithTranscoding 1 \ @@ -272,8 +320,8 @@ Output: ``` { "Response": { - "TaskId": "-m9liFNU7m+nWPL+icY53kcSoQ+-czzbEhD2AYK-4pycoZXmj3cMGzreW5xwhHTpcPRNAQ..", - "RequestId": "6774662b-64a0-4aec-8389-0513873585b4" + "RequestId": "6dfc18cc-2123-4a11-9591-f1e873fbbd65", + "TaskId": "-m9lnV5U7nzo2Xwh48Dc-YCDrR5Bk8DbJ1WrLYK-4pycoZWQndibrNig9cq-7ljX4SenbKWlZAE." } } ``` diff --git a/tccli/examples/tsf/v20180326/DescribeContainerGroups.md b/tccli/examples/tsf/v20180326/DescribeContainerGroups.md index c417aa808e..c507ca379b 100644 --- a/tccli/examples/tsf/v20180326/DescribeContainerGroups.md +++ b/tccli/examples/tsf/v20180326/DescribeContainerGroups.md @@ -28,11 +28,15 @@ Output: "CpuRequest": "", "MemLimit": "4096.00", "GroupName": "test", + "RepoName": "tsf_410xxxxxxx/test", "CreateTime": "", "NamespaceId": "namespace-xxxxxxx", "MemRequest": "", "ClusterName": "示例", - "NamespaceName": "test" + "NamespaceName": "test", + "Alias": "test", + "KubeInjectEnable": true, + "UpdatedTime": "" } ] } diff --git a/tccli/services/aiart/v20221229/api.json b/tccli/services/aiart/v20221229/api.json index 0ef6e56f4c..9ca127b0ce 100644 --- a/tccli/services/aiart/v20221229/api.json +++ b/tccli/services/aiart/v20221229/api.json @@ -71,7 +71,7 @@ "status": "online" }, "TextToImage": { - "document": "智能文生图接口基于文生图(标准版)模型,将根据输入的文本描述,智能生成与之相关的结果图。\n\n智能文生图默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。", + "document": "**本接口已迁移至腾讯混元大模型-文生图轻量版,即将停止此处维护,可切换至 [文生图轻量版 API](https://cloud.tencent.com/document/product/1729/108738) 继续使用。**\n\n智能文生图接口基于文生图(标准版)模型,将根据输入的文本描述,智能生成与之相关的结果图。\n\n智能文生图默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。", "input": "TextToImageRequest", "name": "智能文生图", "output": "TextToImageResponse", diff --git a/tccli/services/apm/v20210622/api.json b/tccli/services/apm/v20210622/api.json index c49236a9fb..428b99f78b 100644 --- a/tccli/services/apm/v20210622/api.json +++ b/tccli/services/apm/v20210622/api.json @@ -1460,6 +1460,15 @@ "name": "OrFilters", "required": false, "type": "list" + }, + { + "disabled": false, + "document": "数据来源", + "example": "service_runtime_thread_pool", + "member": "string", + "name": "Type", + "required": false, + "type": "string" } ], "type": "object" diff --git a/tccli/services/cdwdoris/cdwdoris_client.py b/tccli/services/cdwdoris/cdwdoris_client.py index aad8ca3476..9ccdebaef2 100644 --- a/tccli/services/cdwdoris/cdwdoris_client.py +++ b/tccli/services/cdwdoris/cdwdoris_client.py @@ -17,6 +17,578 @@ from jmespath import search import time +def doDestroyInstance(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DestroyInstanceRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DestroyInstance(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeSqlApis(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeSqlApisRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeSqlApis(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeRestoreTaskDetail(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeRestoreTaskDetailRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeRestoreTaskDetail(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doCreateWorkloadGroup(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.CreateWorkloadGroupRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.CreateWorkloadGroup(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeDatabaseAuditDownload(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeDatabaseAuditDownloadRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeDatabaseAuditDownload(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeInstanceNodesInfo(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeInstanceNodesInfoRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeInstanceNodesInfo(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeInstanceUsedSubnets(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeInstanceUsedSubnetsRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeInstanceUsedSubnets(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeUserBindWorkloadGroup(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeUserBindWorkloadGroupRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeUserBindWorkloadGroup(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeRegionZone(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeRegionZoneRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeRegionZone(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeSlowQueryRecords(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeSlowQueryRecordsRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeSlowQueryRecords(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doModifyUserBindWorkloadGroup(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.ModifyUserBindWorkloadGroupRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.ModifyUserBindWorkloadGroup(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + def doScaleOutInstance(args, parsed_globals): g_param = parse_global_arg(parsed_globals) @@ -46,11 +618,271 @@ def doScaleOutInstance(args, parsed_globals): client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ScaleOutInstanceRequest() + model = models.ScaleOutInstanceRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.ScaleOutInstance(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeInstances(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeInstancesRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeInstances(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeInstanceState(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeInstanceStateRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeInstanceState(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeDatabaseAuditRecords(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeDatabaseAuditRecordsRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeDatabaseAuditRecords(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeClusterConfigs(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeClusterConfigsRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeClusterConfigs(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDeleteWorkloadGroup(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DeleteWorkloadGroupRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ScaleOutInstance(model) + rsp = client.DeleteWorkloadGroup(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -69,7 +901,7 @@ def doScaleOutInstance(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeInstances(args, parsed_globals): +def doScaleUpInstance(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -98,11 +930,11 @@ def doDescribeInstances(args, parsed_globals): client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeInstancesRequest() + model = models.ScaleUpInstanceRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeInstances(model) + rsp = client.ScaleUpInstance(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -121,7 +953,7 @@ def doDescribeInstances(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDestroyInstance(args, parsed_globals): +def doDescribeReplicaVersion(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -150,11 +982,11 @@ def doDestroyInstance(args, parsed_globals): client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DestroyInstanceRequest() + model = models.DescribeReplicaVersionRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DestroyInstance(model) + rsp = client.DescribeReplicaVersion(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -173,7 +1005,7 @@ def doDestroyInstance(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeInstanceState(args, parsed_globals): +def doDescribeFederationToken(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -202,11 +1034,11 @@ def doDescribeInstanceState(args, parsed_globals): client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeInstanceStateRequest() + model = models.DescribeFederationTokenRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeInstanceState(model) + rsp = client.DescribeFederationToken(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -225,7 +1057,7 @@ def doDescribeInstanceState(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeDatabaseAuditRecords(args, parsed_globals): +def doModifySecurityGroups(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -254,11 +1086,11 @@ def doDescribeDatabaseAuditRecords(args, parsed_globals): client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeDatabaseAuditRecordsRequest() + model = models.ModifySecurityGroupsRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeDatabaseAuditRecords(model) + rsp = client.ModifySecurityGroups(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -277,7 +1109,7 @@ def doDescribeDatabaseAuditRecords(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeClusterConfigs(args, parsed_globals): +def doReduceInstance(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -306,11 +1138,11 @@ def doDescribeClusterConfigs(args, parsed_globals): client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeClusterConfigsRequest() + model = models.ReduceInstanceRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeClusterConfigs(model) + rsp = client.ReduceInstance(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -329,7 +1161,7 @@ def doDescribeClusterConfigs(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doModifyInstance(args, parsed_globals): +def doModifyUserPrivilegesV3(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -358,11 +1190,11 @@ def doModifyInstance(args, parsed_globals): client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ModifyInstanceRequest() + model = models.ModifyUserPrivilegesV3Request() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ModifyInstance(model) + rsp = client.ModifyUserPrivilegesV3(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -381,7 +1213,7 @@ def doModifyInstance(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeDatabaseAuditDownload(args, parsed_globals): +def doModifyWorkloadGroupStatus(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -410,11 +1242,63 @@ def doDescribeDatabaseAuditDownload(args, parsed_globals): client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeDatabaseAuditDownloadRequest() + model = models.ModifyWorkloadGroupStatusRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeDatabaseAuditDownload(model) + rsp = client.ModifyWorkloadGroupStatus(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doModifyWorkloadGroup(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.ModifyWorkloadGroupRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.ModifyWorkloadGroup(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -485,7 +1369,7 @@ def doDescribeInstance(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doRestartClusterForNode(args, parsed_globals): +def doCreateInstanceNew(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -514,11 +1398,11 @@ def doRestartClusterForNode(args, parsed_globals): client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.RestartClusterForNodeRequest() + model = models.CreateInstanceNewRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.RestartClusterForNode(model) + rsp = client.CreateInstanceNew(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -537,7 +1421,7 @@ def doRestartClusterForNode(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeInstanceNodes(args, parsed_globals): +def doDescribeGoodsDetail(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -566,11 +1450,63 @@ def doDescribeInstanceNodes(args, parsed_globals): client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeInstanceNodesRequest() + model = models.DescribeGoodsDetailRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeInstanceNodes(model) + rsp = client.DescribeGoodsDetail(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doModifyInstance(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.ModifyInstanceRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.ModifyInstance(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -641,7 +1577,7 @@ def doDescribeSlowQueryRecordsDownload(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doCreateInstanceNew(args, parsed_globals): +def doRestartClusterForNode(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -670,11 +1606,11 @@ def doCreateInstanceNew(args, parsed_globals): client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.CreateInstanceNewRequest() + model = models.RestartClusterForNodeRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.CreateInstanceNew(model) + rsp = client.RestartClusterForNode(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -693,7 +1629,7 @@ def doCreateInstanceNew(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeInstanceNodesInfo(args, parsed_globals): +def doFitClsLog(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -722,11 +1658,11 @@ def doDescribeInstanceNodesInfo(args, parsed_globals): client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeInstanceNodesInfoRequest() + model = models.FitClsLogRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeInstanceNodesInfo(model) + rsp = client.FitClsLog(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -745,7 +1681,7 @@ def doDescribeInstanceNodesInfo(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doScaleUpInstance(args, parsed_globals): +def doDescribeInstanceNodes(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -774,11 +1710,63 @@ def doScaleUpInstance(args, parsed_globals): client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ScaleUpInstanceRequest() + model = models.DescribeInstanceNodesRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ScaleUpInstance(model) + rsp = client.DescribeInstanceNodes(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeWorkloadGroup(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeWorkloadGroupRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeWorkloadGroup(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -849,7 +1837,7 @@ def doResizeDisk(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeSlowQueryRecords(args, parsed_globals): +def doModifyInstanceKeyValConfigs(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -878,11 +1866,11 @@ def doDescribeSlowQueryRecords(args, parsed_globals): client = mod.CdwdorisClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeSlowQueryRecordsRequest() + model = models.ModifyInstanceKeyValConfigsRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeSlowQueryRecords(model) + rsp = client.ModifyInstanceKeyValConfigs(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -912,23 +1900,42 @@ def doDescribeSlowQueryRecords(args, parsed_globals): } ACTION_MAP = { + "DestroyInstance": doDestroyInstance, + "DescribeSqlApis": doDescribeSqlApis, + "DescribeRestoreTaskDetail": doDescribeRestoreTaskDetail, + "CreateWorkloadGroup": doCreateWorkloadGroup, + "DescribeDatabaseAuditDownload": doDescribeDatabaseAuditDownload, + "DescribeInstanceNodesInfo": doDescribeInstanceNodesInfo, + "DescribeInstanceUsedSubnets": doDescribeInstanceUsedSubnets, + "DescribeUserBindWorkloadGroup": doDescribeUserBindWorkloadGroup, + "DescribeRegionZone": doDescribeRegionZone, + "DescribeSlowQueryRecords": doDescribeSlowQueryRecords, + "ModifyUserBindWorkloadGroup": doModifyUserBindWorkloadGroup, "ScaleOutInstance": doScaleOutInstance, "DescribeInstances": doDescribeInstances, - "DestroyInstance": doDestroyInstance, "DescribeInstanceState": doDescribeInstanceState, "DescribeDatabaseAuditRecords": doDescribeDatabaseAuditRecords, "DescribeClusterConfigs": doDescribeClusterConfigs, - "ModifyInstance": doModifyInstance, - "DescribeDatabaseAuditDownload": doDescribeDatabaseAuditDownload, + "DeleteWorkloadGroup": doDeleteWorkloadGroup, + "ScaleUpInstance": doScaleUpInstance, + "DescribeReplicaVersion": doDescribeReplicaVersion, + "DescribeFederationToken": doDescribeFederationToken, + "ModifySecurityGroups": doModifySecurityGroups, + "ReduceInstance": doReduceInstance, + "ModifyUserPrivilegesV3": doModifyUserPrivilegesV3, + "ModifyWorkloadGroupStatus": doModifyWorkloadGroupStatus, + "ModifyWorkloadGroup": doModifyWorkloadGroup, "DescribeInstance": doDescribeInstance, + "CreateInstanceNew": doCreateInstanceNew, + "DescribeGoodsDetail": doDescribeGoodsDetail, + "ModifyInstance": doModifyInstance, + "DescribeSlowQueryRecordsDownload": doDescribeSlowQueryRecordsDownload, "RestartClusterForNode": doRestartClusterForNode, + "FitClsLog": doFitClsLog, "DescribeInstanceNodes": doDescribeInstanceNodes, - "DescribeSlowQueryRecordsDownload": doDescribeSlowQueryRecordsDownload, - "CreateInstanceNew": doCreateInstanceNew, - "DescribeInstanceNodesInfo": doDescribeInstanceNodesInfo, - "ScaleUpInstance": doScaleUpInstance, + "DescribeWorkloadGroup": doDescribeWorkloadGroup, "ResizeDisk": doResizeDisk, - "DescribeSlowQueryRecords": doDescribeSlowQueryRecords, + "ModifyInstanceKeyValConfigs": doModifyInstanceKeyValConfigs, } diff --git a/tccli/services/cdwdoris/v20211228/api.json b/tccli/services/cdwdoris/v20211228/api.json index aaf6cb6dcb..571c3b2b08 100644 --- a/tccli/services/cdwdoris/v20211228/api.json +++ b/tccli/services/cdwdoris/v20211228/api.json @@ -7,6 +7,20 @@ "output": "CreateInstanceNewResponse", "status": "online" }, + "CreateWorkloadGroup": { + "document": "创建资源组", + "input": "CreateWorkloadGroupRequest", + "name": "创建资源组", + "output": "CreateWorkloadGroupResponse", + "status": "online" + }, + "DeleteWorkloadGroup": { + "document": "删除资源组", + "input": "DeleteWorkloadGroupRequest", + "name": "删除资源组", + "output": "DeleteWorkloadGroupResponse", + "status": "online" + }, "DescribeClusterConfigs": { "document": "获取集群的最新的几个配置文件(config.xml、metrika.xml、user.xml)的内容,显示给用户", "input": "DescribeClusterConfigsRequest", @@ -28,6 +42,20 @@ "output": "DescribeDatabaseAuditRecordsResponse", "status": "online" }, + "DescribeFederationToken": { + "document": "获取联合身份临时访问凭证", + "input": "DescribeFederationTokenRequest", + "name": "新获取联合身份临时访问凭证", + "output": "DescribeFederationTokenResponse", + "status": "online" + }, + "DescribeGoodsDetail": { + "document": "生成计费相关接口的GoodsDetail结构", + "input": "DescribeGoodsDetailRequest", + "name": "生成GoodsDetail", + "output": "DescribeGoodsDetailResponse", + "status": "online" + }, "DescribeInstance": { "document": "根据集群ID查询某个集群的具体信息", "input": "DescribeInstanceRequest", @@ -56,6 +84,13 @@ "output": "DescribeInstanceStateResponse", "status": "online" }, + "DescribeInstanceUsedSubnets": { + "document": "获取集群已使用子网信息", + "input": "DescribeInstanceUsedSubnetsRequest", + "name": "获取集群已使用子网信息", + "output": "DescribeInstanceUsedSubnetsResponse", + "status": "online" + }, "DescribeInstances": { "document": "获取集群列表", "input": "DescribeInstancesRequest", @@ -63,6 +98,27 @@ "output": "DescribeInstancesResponse", "status": "online" }, + "DescribeRegionZone": { + "document": "购买页获取地域及可用区列表、内核版本、网络规则等", + "input": "DescribeRegionZoneRequest", + "name": "获取地域及可用区列表", + "output": "DescribeRegionZoneResponse", + "status": "online" + }, + "DescribeReplicaVersion": { + "document": "检查内核版本是否支持新的备份恢复语法", + "input": "DescribeReplicaVersionRequest", + "name": "检查内核版本", + "output": "DescribeReplicaVersionResponse", + "status": "online" + }, + "DescribeRestoreTaskDetail": { + "document": "查询恢复任务进度详情", + "input": "DescribeRestoreTaskDetailRequest", + "name": "查询恢复任务进度详情", + "output": "DescribeRestoreTaskDetailResponse", + "status": "online" + }, "DescribeSlowQueryRecords": { "document": "获取慢查询列表", "input": "DescribeSlowQueryRecordsRequest", @@ -77,6 +133,27 @@ "output": "DescribeSlowQueryRecordsDownloadResponse", "status": "online" }, + "DescribeSqlApis": { + "document": "针对驱动sql命令查询ck集群接口", + "input": "DescribeSqlApisRequest", + "name": "通过sql查询集群信息", + "output": "DescribeSqlApisResponse", + "status": "online" + }, + "DescribeUserBindWorkloadGroup": { + "document": "获取当前集群各用户绑定的资源信息", + "input": "DescribeUserBindWorkloadGroupRequest", + "name": "获取用户绑定的资源组信息", + "output": "DescribeUserBindWorkloadGroupResponse", + "status": "online" + }, + "DescribeWorkloadGroup": { + "document": "获取资源组信息", + "input": "DescribeWorkloadGroupRequest", + "name": "获取资源组信息", + "output": "DescribeWorkloadGroupResponse", + "status": "online" + }, "DestroyInstance": { "document": "销毁集群", "input": "DestroyInstanceRequest", @@ -84,6 +161,13 @@ "output": "DestroyInstanceResponse", "status": "online" }, + "FitClsLog": { + "document": "给已存在集群,配置日志服务", + "input": "FitClsLogRequest", + "name": "新增日志服务接口", + "output": "FitClsLogResponse", + "status": "online" + }, "ModifyInstance": { "document": "修改集群名称", "input": "ModifyInstanceRequest", @@ -91,6 +175,55 @@ "output": "ModifyInstanceResponse", "status": "online" }, + "ModifyInstanceKeyValConfigs": { + "document": "KV模式修改配置接口", + "input": "ModifyInstanceKeyValConfigsRequest", + "name": "KV模式修改配置接口", + "output": "ModifyInstanceKeyValConfigsResponse", + "status": "online" + }, + "ModifySecurityGroups": { + "document": "更改安全组", + "input": "ModifySecurityGroupsRequest", + "name": "更改安全组", + "output": "ModifySecurityGroupsResponse", + "status": "online" + }, + "ModifyUserBindWorkloadGroup": { + "document": "修改用户绑定的资源组", + "input": "ModifyUserBindWorkloadGroupRequest", + "name": "修改用户绑定的资源组", + "output": "ModifyUserBindWorkloadGroupResponse", + "status": "online" + }, + "ModifyUserPrivilegesV3": { + "document": "修改用户权限,支持catalog,全部db,部分db表三种权限设置类别", + "input": "ModifyUserPrivilegesV3Request", + "name": "修改权接口", + "output": "ModifyUserPrivilegesV3Response", + "status": "online" + }, + "ModifyWorkloadGroup": { + "document": "修改资源组信息", + "input": "ModifyWorkloadGroupRequest", + "name": "修改资源组信息", + "output": "ModifyWorkloadGroupResponse", + "status": "online" + }, + "ModifyWorkloadGroupStatus": { + "document": "开启或关闭资源组", + "input": "ModifyWorkloadGroupStatusRequest", + "name": "开启、关闭资源组", + "output": "ModifyWorkloadGroupStatusResponse", + "status": "online" + }, + "ReduceInstance": { + "document": "集群缩容", + "input": "ReduceInstanceRequest", + "name": "集群缩容", + "output": "ReduceInstanceResponse", + "status": "online" + }, "ResizeDisk": { "document": "扩容云盘", "input": "ResizeDiskRequest", @@ -173,6 +306,34 @@ ], "usage": "both" }, + "BindUser": { + "document": "资源组绑定的用户信息,需要username和host信息进行授权", + "members": [ + { + "disabled": false, + "document": "用户名\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test", + "member": "string", + "name": "UserName", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "主机信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "%", + "member": "string", + "name": "Host", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "both" + }, "ChargeProperties": { "document": "集群计费相关信息", "members": [ @@ -577,6 +738,52 @@ ], "usage": "in" }, + "CreateWorkloadGroupRequest": { + "document": "CreateWorkloadGroup请求参数结构体", + "members": [ + { + "disabled": false, + "document": "集群id\t", + "example": "cdwdoris-xxx", + "member": "string", + "name": "InstanceId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "资源组配置", + "example": "无", + "member": "WorkloadGroupConfig", + "name": "WorkloadGroup", + "required": false, + "type": "object" + } + ], + "type": "object" + }, + "CreateWorkloadGroupResponse": { + "document": "CreateWorkloadGroup返回参数结构体", + "members": [ + { + "disabled": false, + "document": "错误信息", + "example": "无", + "member": "string", + "name": "ErrorMsg", + "output_required": false, + "type": "string", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, "DataBaseAuditRecord": { "document": "数据库审计", "members": [ @@ -713,6 +920,52 @@ ], "usage": "out" }, + "DeleteWorkloadGroupRequest": { + "document": "DeleteWorkloadGroup请求参数结构体", + "members": [ + { + "disabled": false, + "document": "集群id", + "example": "cdwdoris-xxx", + "member": "string", + "name": "InstanceId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "需要删除的资源组名称", + "example": "test", + "member": "string", + "name": "WorkloadGroupName", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "DeleteWorkloadGroupResponse": { + "document": "DeleteWorkloadGroup返回参数结构体", + "members": [ + { + "disabled": false, + "document": "错误信息", + "example": "无", + "member": "string", + "name": "ErrorMsg", + "output_required": false, + "type": "string", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, "DescribeClusterConfigsRequest": { "document": "DescribeClusterConfigs请求参数结构体", "members": [ @@ -1114,280 +1367,327 @@ ], "type": "object" }, - "DescribeInstanceNodesInfoRequest": { - "document": "DescribeInstanceNodesInfo请求参数结构体", + "DescribeFederationTokenRequest": { + "document": "DescribeFederationToken请求参数结构体", + "members": [], + "type": "object" + }, + "DescribeFederationTokenResponse": { + "document": "DescribeFederationToken返回参数结构体", "members": [ { - "disabled": false, - "document": "集群id", - "example": "cdwdoris-xxx", + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "InstanceID", - "required": true, + "name": "RequestId", "type": "string" } ], "type": "object" }, - "DescribeInstanceNodesInfoResponse": { - "document": "DescribeInstanceNodesInfo返回参数结构体", + "DescribeGoodsDetailRequest": { + "document": "DescribeGoodsDetail请求参数结构体", "members": [ { "disabled": false, - "document": "Be节点\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "已废弃", + "document": "操作类型,“CREATE\"表示创建、”MODIFY\"表示变更配置、“RENEW\"表示续费", + "example": "CREATE", "member": "string", - "name": "BeNodes", - "output_required": false, - "type": "list", - "value_allowed_null": true + "name": "Case", + "required": true, + "type": "string" }, { "disabled": false, - "document": "Fe节点\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "已废弃", + "document": "可用区,例如\"ap-guangzhou-3\"表示广州三区等", + "example": "ap-guangzhou-3", "member": "string", - "name": "FeNodes", - "output_required": false, - "type": "list", - "value_allowed_null": true + "name": "Zone", + "required": false, + "type": "string" }, { "disabled": false, - "document": "Fe master节点", - "example": "无", - "member": "string", - "name": "FeMaster", - "output_required": false, - "type": "string", - "value_allowed_null": false + "document": "集群的高可用标记,true表示为高可用集群", + "example": "true", + "member": "bool", + "name": "HaFlag", + "required": false, + "type": "bool" }, { "disabled": false, - "document": "Be节点信息\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "NodeInfo", - "name": "BeNodeInfos", - "output_required": false, - "type": "list", - "value_allowed_null": true + "document": "高可用类型: 0:非高可用 1:读高可用 2:读写高可用。\t", + "example": "1", + "member": "int64", + "name": "HaType", + "required": false, + "type": "int" }, { "disabled": false, - "document": "Fe节点信息\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "NodeInfo", - "name": "FeNodeInfos", - "output_required": false, - "type": "list", - "value_allowed_null": true + "document": "用户集群的私有网络", + "example": "vpc-23dsaf234", + "member": "string", + "name": "UserVPCId", + "required": false, + "type": "string" }, { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "disabled": false, + "document": "用户集群的子网", + "example": "subnet-dk34df34", "member": "string", - "name": "RequestId", + "name": "UserSubnetId", + "required": false, "type": "string" - } - ], - "type": "object" - }, - "DescribeInstanceNodesRequest": { - "document": "DescribeInstanceNodes请求参数结构体", - "members": [ + }, { "disabled": false, - "document": "集群实例ID", - "example": "cdwch-12345678", + "document": "用户集群的版本,例如“20.7.2.30”等", + "example": "20.7.2.30", "member": "string", - "name": "InstanceId", - "required": true, + "name": "ProductVersion", + "required": false, "type": "string" }, { "disabled": false, - "document": "集群角色类型,默认为 \"data\"数据节点", - "example": "DATA", + "document": "集群ID,创建时为空,其他情况必须存在", + "example": "cdwch-xxxx", "member": "string", - "name": "NodeRole", + "name": "InstanceId", "required": false, "type": "string" }, { "disabled": false, - "document": "分页参数,第一页为0,第二页为10", - "example": "0", - "member": "int64", - "name": "Offset", + "document": "集群资源规格描述", + "example": "无", + "member": "ResourceNodeSpec", + "name": "Resources", "required": false, - "type": "int" + "type": "list" }, { "disabled": false, - "document": "分页参数,分页步长,默认为10", - "example": "100", - "member": "int64", - "name": "Limit", + "document": "集群规格修改参数", + "example": "无", + "member": "ResourceNodeSpec", + "name": "ModifySpec", "required": false, - "type": "int" + "type": "object" }, { "disabled": false, - "document": "展现策略,All时显示所有", - "example": "All", + "document": "计费信息", + "example": "无", + "member": "ChargeProperties", + "name": "ChargeProperties", + "required": false, + "type": "object" + }, + { + "disabled": false, + "document": "创建集群时需要填写InstanceName", + "example": "无", "member": "string", - "name": "DisplayPolicy", + "name": "InstanceName", "required": false, "type": "string" - } - ], - "type": "object" - }, - "DescribeInstanceNodesResponse": { - "document": "DescribeInstanceNodes返回参数结构体", - "members": [ - { - "disabled": false, - "document": "总数", - "example": "2", - "member": "int64", - "name": "TotalCount", - "output_required": true, - "type": "int", - "value_allowed_null": false }, { "disabled": false, - "document": "实例节点总数\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "购买页填写的标签列表", "example": "无", - "member": "InstanceNode", - "name": "InstanceNodesList", - "output_required": true, - "type": "list", - "value_allowed_null": true + "member": "Tag", + "name": "Tags", + "required": false, + "type": "list" }, { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "disabled": false, + "document": "CLS日志集ID", + "example": "xxxxx", "member": "string", - "name": "RequestId", + "name": "ClsLogSetId", + "required": false, "type": "string" - } - ], - "type": "object" - }, - "DescribeInstanceRequest": { - "document": "DescribeInstance请求参数结构体", - "members": [ + }, { "disabled": false, - "document": "集群实例ID", - "example": "cdwch-12345678", + "document": "用户子网剩余ip数量", + "example": "10", + "member": "int64", + "name": "UserSubnetIPNum", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "COS桶名称", + "example": "XXXXX", "member": "string", - "name": "InstanceId", - "required": true, + "name": "CosBucketName", + "required": false, "type": "string" - } - ], - "type": "object" - }, - "DescribeInstanceResponse": { - "document": "DescribeInstance返回参数结构体", - "members": [ + }, { "disabled": false, - "document": "实例描述信息", - "example": "无", - "member": "InstanceInfo", - "name": "InstanceInfo", - "output_required": true, - "type": "object", - "value_allowed_null": false + "document": "按量计费转包年包月", + "example": "xxxxxx", + "member": "bool", + "name": "HourToPrepaid", + "required": false, + "type": "bool" }, { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "disabled": false, + "document": "base64密码", + "example": "CCCCC", "member": "string", - "name": "RequestId", + "name": "DorisUserPwd", + "required": false, "type": "string" - } - ], - "type": "object" - }, - "DescribeInstanceStateRequest": { - "document": "DescribeInstanceState请求参数结构体", - "members": [ + }, { "disabled": false, - "document": "集群实例名称", - "example": "-", + "document": "日志的类型,es或者cls_topic", + "example": "es", "member": "string", - "name": "InstanceId", - "required": true, + "name": "LogType", + "required": false, "type": "string" + }, + { + "disabled": false, + "document": "表名大小写是否敏感,0:敏感;1:不敏感,表名改为以小写存储;2:不敏感,以小写进行比较", + "example": "0", + "member": "int64", + "name": "CaseSensitive", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "true为滚动重启 false为批量重启", + "example": "无", + "member": "bool", + "name": "RollingRestart", + "required": false, + "type": "bool" + }, + { + "disabled": false, + "document": "是否为多可用区", + "example": "false", + "member": "bool", + "name": "EnableMultiZones", + "required": false, + "type": "bool" + }, + { + "disabled": false, + "document": "用户多可用区的网络信息", + "example": "无", + "member": "NetworkInfo", + "name": "UserMultiZoneInfos", + "required": false, + "type": "list" + }, + { + "disabled": false, + "document": "扩展字段", + "example": "无", + "member": "InstanceDetail", + "name": "Details", + "required": false, + "type": "object" } ], "type": "object" }, - "DescribeInstanceStateResponse": { - "document": "DescribeInstanceState返回参数结构体", + "DescribeGoodsDetailResponse": { + "document": "DescribeGoodsDetail返回参数结构体", "members": [ { "disabled": false, - "document": "集群状态,例如:Serving", + "document": "GoodsDetail对象", "example": "-", "member": "string", - "name": "InstanceState", + "name": "GoodsDetail", "output_required": true, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "集群操作创建时间\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "GoodsCategoryId 表示操作类型", "example": "-", - "member": "string", - "name": "FlowCreateTime", + "member": "int64", + "name": "GoodsCategoryId", "output_required": true, - "type": "string", - "value_allowed_null": true + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "集群操作名称\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "子商品码", "example": "-", "member": "string", - "name": "FlowName", + "name": "Type", "output_required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "集群操作进度\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "付费模式,0后付费,1预付费", + "example": "1", + "member": "int64", + "name": "PayMode", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "地域ID", "example": "-", - "member": "float", - "name": "FlowProgress", + "member": "int64", + "name": "RegionId", "output_required": true, - "type": "float", - "value_allowed_null": true + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "集群状态描述,例如:运行中\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "可用区ID", "example": "-", - "member": "string", - "name": "InstanceStateDesc", + "member": "int64", + "name": "ZoneId", "output_required": true, - "type": "string", - "value_allowed_null": true + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "集群流程错误信息,例如:“创建失败,资源不足”\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "资源标识符", "example": "-", "member": "string", - "name": "FlowMsg", + "name": "ResourceId", "output_required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false + }, + { + "disabled": false, + "document": "商品数目", + "example": "20", + "member": "int64", + "name": "GoodsNum", + "output_required": true, + "type": "int", + "value_allowed_null": false }, { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", @@ -1398,64 +1698,141 @@ ], "type": "object" }, - "DescribeInstancesRequest": { - "document": "DescribeInstances请求参数结构体", + "DescribeInstanceNodesInfoRequest": { + "document": "DescribeInstanceNodesInfo请求参数结构体", "members": [ { "disabled": false, - "document": "搜索的集群id名称", - "example": "cdwch-xxxx", + "document": "集群id", + "example": "cdwdoris-xxx", "member": "string", - "name": "SearchInstanceId", - "required": false, + "name": "InstanceID", + "required": true, "type": "string" - }, + } + ], + "type": "object" + }, + "DescribeInstanceNodesInfoResponse": { + "document": "DescribeInstanceNodesInfo返回参数结构体", + "members": [ { "disabled": false, - "document": "搜索的集群name", - "example": "-", + "document": "Be节点\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "已废弃", "member": "string", - "name": "SearchInstanceName", - "required": false, - "type": "string" + "name": "BeNodes", + "output_required": false, + "type": "list", + "value_allowed_null": true }, { "disabled": false, - "document": "分页参数,第一页为0,第二页为10", - "example": "0", - "member": "int64", - "name": "Offset", - "required": false, - "type": "int" + "document": "Fe节点\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "已废弃", + "member": "string", + "name": "FeNodes", + "output_required": false, + "type": "list", + "value_allowed_null": true }, { "disabled": false, - "document": "分页参数,分页步长,默认为10", - "example": "20", - "member": "int64", - "name": "Limit", - "required": false, - "type": "int" + "document": "Fe master节点", + "example": "无", + "member": "string", + "name": "FeMaster", + "output_required": false, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "搜索标签列表", + "document": "Be节点信息\n注意:此字段可能返回 null,表示取不到有效值。", "example": "无", - "member": "SearchTags", - "name": "SearchTags", - "required": false, - "type": "list" - } - ], - "type": "object" - }, - "DescribeInstancesResponse": { - "document": "DescribeInstances返回参数结构体", - "members": [ + "member": "NodeInfo", + "name": "BeNodeInfos", + "output_required": false, + "type": "list", + "value_allowed_null": true + }, { "disabled": false, - "document": "实例总数", - "example": "18", + "document": "Fe节点信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "NodeInfo", + "name": "FeNodeInfos", + "output_required": false, + "type": "list", + "value_allowed_null": true + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DescribeInstanceNodesRequest": { + "document": "DescribeInstanceNodes请求参数结构体", + "members": [ + { + "disabled": false, + "document": "集群实例ID", + "example": "cdwch-12345678", + "member": "string", + "name": "InstanceId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "集群角色类型,默认为 \"data\"数据节点", + "example": "DATA", + "member": "string", + "name": "NodeRole", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "分页参数,第一页为0,第二页为10", + "example": "0", + "member": "int64", + "name": "Offset", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "分页参数,分页步长,默认为10", + "example": "100", + "member": "int64", + "name": "Limit", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "展现策略,All时显示所有", + "example": "All", + "member": "string", + "name": "DisplayPolicy", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "DescribeInstanceNodesResponse": { + "document": "DescribeInstanceNodes返回参数结构体", + "members": [ + { + "disabled": false, + "document": "总数", + "example": "2", "member": "int64", "name": "TotalCount", "output_required": true, @@ -1464,13 +1841,13 @@ }, { "disabled": false, - "document": "实例数组", - "example": "-", - "member": "InstanceInfo", - "name": "InstancesList", + "document": "实例节点总数\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "InstanceNode", + "name": "InstanceNodesList", "output_required": true, "type": "list", - "value_allowed_null": false + "value_allowed_null": true }, { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", @@ -1481,131 +1858,1763 @@ ], "type": "object" }, - "DescribeSlowQueryRecordsDownloadRequest": { - "document": "DescribeSlowQueryRecordsDownload请求参数结构体", + "DescribeInstanceRequest": { + "document": "DescribeInstance请求参数结构体", "members": [ { "disabled": false, - "document": "实例ID", - "example": "xx", + "document": "集群实例ID", + "example": "cdwch-12345678", "member": "string", "name": "InstanceId", "required": true, "type": "string" + } + ], + "type": "object" + }, + "DescribeInstanceResponse": { + "document": "DescribeInstance返回参数结构体", + "members": [ + { + "disabled": false, + "document": "实例描述信息", + "example": "无", + "member": "InstanceInfo", + "name": "InstanceInfo", + "output_required": true, + "type": "object", + "value_allowed_null": false }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DescribeInstanceStateRequest": { + "document": "DescribeInstanceState请求参数结构体", + "members": [ { "disabled": false, - "document": "慢查询时间", - "example": "xx", - "member": "int64", - "name": "QueryDurationMs", + "document": "集群实例名称", + "example": "-", + "member": "string", + "name": "InstanceId", "required": true, - "type": "int" + "type": "string" + } + ], + "type": "object" + }, + "DescribeInstanceStateResponse": { + "document": "DescribeInstanceState返回参数结构体", + "members": [ + { + "disabled": false, + "document": "集群状态,例如:Serving", + "example": "-", + "member": "string", + "name": "InstanceState", + "output_required": true, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "开始时间", - "example": "xx", + "document": "集群操作创建时间\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "-", "member": "string", - "name": "StartTime", + "name": "FlowCreateTime", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "集群操作名称\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "-", + "member": "string", + "name": "FlowName", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "集群操作进度\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "-", + "member": "float", + "name": "FlowProgress", + "output_required": true, + "type": "float", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "集群状态描述,例如:运行中\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "-", + "member": "string", + "name": "InstanceStateDesc", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "集群流程错误信息,例如:“创建失败,资源不足”\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "-", + "member": "string", + "name": "FlowMsg", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DescribeInstanceUsedSubnetsRequest": { + "document": "DescribeInstanceUsedSubnets请求参数结构体", + "members": [ + { + "disabled": false, + "document": "集群id", + "example": "cdwdoris-thdngnmi", + "member": "string", + "name": "InstanceId", "required": true, "type": "string" + } + ], + "type": "object" + }, + "DescribeInstanceUsedSubnetsResponse": { + "document": "DescribeInstanceUsedSubnets返回参数结构体", + "members": [ + { + "disabled": false, + "document": "集群使用的vpc信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "vpc-xxx", + "member": "string", + "name": "VpcId", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "集群使用的subnet信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "[subnet-aaa,subnet-bbb]", + "member": "string", + "name": "UsedSubnets", + "output_required": false, + "type": "list", + "value_allowed_null": true + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DescribeInstancesRequest": { + "document": "DescribeInstances请求参数结构体", + "members": [ + { + "disabled": false, + "document": "搜索的集群id名称", + "example": "cdwch-xxxx", + "member": "string", + "name": "SearchInstanceId", + "required": false, + "type": "string" }, { "disabled": false, - "document": "结束时间", - "example": "xx", + "document": "搜索的集群name", + "example": "-", + "member": "string", + "name": "SearchInstanceName", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "分页参数,第一页为0,第二页为10", + "example": "0", + "member": "int64", + "name": "Offset", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "分页参数,分页步长,默认为10", + "example": "20", + "member": "int64", + "name": "Limit", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "搜索标签列表", + "example": "无", + "member": "SearchTags", + "name": "SearchTags", + "required": false, + "type": "list" + } + ], + "type": "object" + }, + "DescribeInstancesResponse": { + "document": "DescribeInstances返回参数结构体", + "members": [ + { + "disabled": false, + "document": "实例总数", + "example": "18", + "member": "int64", + "name": "TotalCount", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "实例数组", + "example": "-", + "member": "InstanceInfo", + "name": "InstancesList", + "output_required": true, + "type": "list", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DescribeRegionZoneRequest": { + "document": "DescribeRegionZone请求参数结构体", + "members": [ + { + "disabled": false, + "document": "服务", + "example": "ClickHouse", + "member": "string", + "name": "Service", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "是否是国际站", + "example": "false", + "member": "bool", + "name": "IsInternationalSite", + "required": false, + "type": "bool" + } + ], + "type": "object" + }, + "DescribeRegionZoneResponse": { + "document": "DescribeRegionZone返回参数结构体", + "members": [ + { + "disabled": false, + "document": "地域列表", + "example": "-", + "member": "RegionAreaInfo", + "name": "Items", + "output_required": true, + "type": "list", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "内核版本列表", + "example": "-", + "member": "string", + "name": "Versions", + "output_required": true, + "type": "list", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "网络规则", + "example": "-", + "member": "string", + "name": "VpcRule", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DescribeReplicaVersionRequest": { + "document": "DescribeReplicaVersion请求参数结构体", + "members": [ + { + "disabled": false, + "document": "实例id", + "example": "cdwdrs-w123", + "member": "string", + "name": "InstanceId", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "DescribeReplicaVersionResponse": { + "document": "DescribeReplicaVersion返回参数结构体", + "members": [ + { + "disabled": false, + "document": "是否支持新语法\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "VersionReplicaItem", + "name": "ReplicaFlagItem", + "required": true, + "type": "object", + "value_allowed_null": true + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DescribeRestoreTaskDetailRequest": { + "document": "DescribeRestoreTaskDetail请求参数结构体", + "members": [ + { + "disabled": false, + "document": "集群id", + "example": "\"cdwch-xxx\"", + "member": "string", + "name": "InstanceId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "任务id", + "example": "12", + "member": "int64", + "name": "BackUpJobId", + "required": true, + "type": "int" + } + ], + "type": "object" + }, + "DescribeRestoreTaskDetailResponse": { + "document": "DescribeRestoreTaskDetail返回参数结构体", + "members": [ + { + "disabled": false, + "document": "恢复任务进度详情\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "RestoreStatus", + "name": "RestoreStatus", + "required": true, + "type": "list", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "错误信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "ErrorMsg", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DescribeSlowQueryRecordsDownloadRequest": { + "document": "DescribeSlowQueryRecordsDownload请求参数结构体", + "members": [ + { + "disabled": false, + "document": "实例ID", + "example": "xx", + "member": "string", + "name": "InstanceId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "慢查询时间", + "example": "xx", + "member": "int64", + "name": "QueryDurationMs", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "开始时间", + "example": "xx", + "member": "string", + "name": "StartTime", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "结束时间", + "example": "xx", + "member": "string", + "name": "EndTime", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "排序参数", + "example": "xx", + "member": "string", + "name": "DurationMs", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "查询sql", + "example": "无", + "member": "string", + "name": "Sql", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "排序参数", + "example": "无", + "member": "string", + "name": "ReadRows", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "排序参数", + "example": "无", + "member": "string", + "name": "ResultBytes", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "排序参数", + "example": "无", + "member": "string", + "name": "MemoryUsage", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "IsQuery条件", + "example": "无", + "member": "int64", + "name": "IsQuery", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "数据库名称", + "example": "[\"xx\",\"xxx\"]", + "member": "string", + "name": "DbName", + "required": false, + "type": "list" + }, + { + "disabled": false, + "document": "catalog名称", + "example": "[\"xx\",\"xxx\"]", + "member": "string", + "name": "CatalogName", + "required": false, + "type": "list" + } + ], + "type": "object" + }, + "DescribeSlowQueryRecordsDownloadResponse": { + "document": "DescribeSlowQueryRecordsDownload返回参数结构体", + "members": [ + { + "disabled": false, + "document": "cos地址", + "example": "xx", + "member": "string", + "name": "CosUrl", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DescribeSlowQueryRecordsRequest": { + "document": "DescribeSlowQueryRecords请求参数结构体", + "members": [ + { + "disabled": false, + "document": "实例ID", + "example": "cdwdoris-64h6w432", + "member": "string", + "name": "InstanceId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "慢查询时间", + "example": "100", + "member": "int64", + "name": "QueryDurationMs", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "开始时间", + "example": "abc", + "member": "string", + "name": "StartTime", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "结束时间", + "example": "abc", + "member": "string", + "name": "EndTime", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "分页", + "example": "1", + "member": "int64", + "name": "PageSize", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "分页", + "example": "1", + "member": "int64", + "name": "PageNum", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "排序参数", + "example": "abc", + "member": "string", + "name": "DurationMs", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "数据库名称", + "example": "[\"xx\",\"xxx\"]", + "member": "string", + "name": "DbName", + "required": false, + "type": "list" + }, + { + "disabled": false, + "document": "是否是查询,0:否, 1:是", + "example": "1", + "member": "int64", + "name": "IsQuery", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "catalog名称", + "example": "[\"xx\",\"xxx\"]", + "member": "string", + "name": "CatalogName", + "required": false, + "type": "list" + }, + { + "disabled": false, + "document": "sql名", + "example": "select * from xxx", + "member": "string", + "name": "Sql", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "ReadRows排序字段", + "example": "ASC", + "member": "string", + "name": "ReadRows", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "ResultBytes排序字段", + "example": "ASC", + "member": "string", + "name": "ResultBytes", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "MemoryUsage排序字段", + "example": "ASC", + "member": "string", + "name": "MemoryUsage", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "DescribeSlowQueryRecordsResponse": { + "document": "DescribeSlowQueryRecords返回参数结构体", + "members": [ + { + "disabled": false, + "document": "总数", + "example": "123", + "member": "int64", + "name": "TotalCount", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "记录列表", + "example": "[\"xx\",\"abc\"", + "member": "SlowQueryRecord", + "name": "SlowQueryRecords", + "output_required": true, + "type": "list", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "所有数据库名\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "DBNameList", + "output_required": false, + "type": "list", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "所有catalog名\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "CatalogNameList", + "output_required": false, + "type": "list", + "value_allowed_null": true + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DescribeSqlApisRequest": { + "document": "DescribeSqlApis请求参数结构体", + "members": [ + { + "disabled": false, + "document": "用户链接来自的 IP", + "example": "10.0.0.2", + "member": "string", + "name": "WhiteHost", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "catalog名称", + "example": "interal", + "member": "string", + "name": "Catalog", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "catalog集合", + "example": "[\"c1\"]", + "member": "string", + "name": "Catalogs", + "required": false, + "type": "list" + } + ], + "type": "object" + }, + "DescribeSqlApisResponse": { + "document": "DescribeSqlApis返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DescribeUserBindWorkloadGroupRequest": { + "document": "DescribeUserBindWorkloadGroup请求参数结构体", + "members": [ + { + "disabled": false, + "document": "集群id", + "example": "cdwdoris-xxx", + "member": "string", + "name": "InstanceId", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "DescribeUserBindWorkloadGroupResponse": { + "document": "DescribeUserBindWorkloadGroup返回参数结构体", + "members": [ + { + "disabled": false, + "document": "用户绑定资源组信息", + "example": "无", + "member": "UserWorkloadGroup", + "name": "UserBindInfos", + "output_required": false, + "type": "list", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "错误信息", + "example": "无", + "member": "string", + "name": "ErrorMsg", + "output_required": false, + "type": "string", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DescribeWorkloadGroupRequest": { + "document": "DescribeWorkloadGroup请求参数结构体", + "members": [ + { + "disabled": false, + "document": "集群id", + "example": "cdwdoris-xxx", + "member": "string", + "name": "InstanceId", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "DescribeWorkloadGroupResponse": { + "document": "DescribeWorkloadGroup返回参数结构体", + "members": [ + { + "disabled": false, + "document": "资源组信息", + "example": "无", + "member": "WorkloadGroupConfig", + "name": "WorkloadGroups", + "output_required": false, + "type": "list", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "是否开启资源组:开启-open、关闭-close", + "example": "open", + "member": "string", + "name": "Status", + "output_required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "错误信息", + "example": "无", + "member": "string", + "name": "ErrorMsg", + "output_required": false, + "type": "string", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DestroyInstanceRequest": { + "document": "DestroyInstance请求参数结构体", + "members": [ + { + "disabled": false, + "document": "集群ID", + "example": "无", + "member": "string", + "name": "InstanceId", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "DestroyInstanceResponse": { + "document": "DestroyInstance返回参数结构体", + "members": [ + { + "disabled": false, + "document": "流程ID", + "example": "无", + "member": "string", + "name": "FlowId", + "output_required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "集群ID", + "example": "无", + "member": "string", + "name": "InstanceId", + "output_required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "错误信息", + "example": "无", + "member": "string", + "name": "ErrorMsg", + "output_required": false, + "type": "string", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "FitClsLogRequest": { + "document": "FitClsLog请求参数结构体", + "members": [ + { + "disabled": false, + "document": "集群ID,例如cdwch-xxxx", + "example": "cdwch-xxxx", + "member": "string", + "name": "InstanceId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "cls日志集ID", + "example": "xxxxx", + "member": "string", + "name": "ClsLogSetId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "日志的类型,es还是cls_topic", + "example": "es", + "member": "string", + "name": "LogType", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "FitClsLogResponse": { + "document": "FitClsLog返回参数结构体", + "members": [ + { + "disabled": false, + "document": "流程相关信息", + "example": "-", + "member": "int64", + "name": "FlowId", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "错误信息", + "example": "-", + "member": "string", + "name": "ErrorMsg", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "InstanceConfigItem": { + "document": "KV配置", + "members": [ + { + "disabled": false, + "document": "key", + "example": "x", + "member": "string", + "name": "ConfKey", + "required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "value", + "example": "x", + "member": "string", + "name": "ConfValue", + "required": true, + "type": "string", + "value_allowed_null": false + } + ], + "usage": "in" + }, + "InstanceDetail": { + "document": "Instance表detail字段", + "members": [ + { + "disabled": false, + "document": "告警策略是否可用\t\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "bool", + "member": "bool", + "name": "EnableAlarmStrategy", + "output_required": false, + "required": false, + "type": "bool", + "value_allowed_null": true + } + ], + "usage": "both" + }, + "InstanceInfo": { + "document": "实例描述信息", + "members": [ + { + "disabled": false, + "document": "集群实例ID, \"cdw-xxxx\" 字符串类型\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "cdwch-xxxxxxxx", + "member": "string", + "name": "InstanceId", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "集群实例名称\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "clickhouse集群", + "member": "string", + "name": "InstanceName", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "状态,\nInit 创建中; Serving 运行中; \nDeleted已销毁;Deleting 销毁中;\nModify 集群变更中;\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "Running", + "member": "string", + "name": "Status", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "版本\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "20.7.2.30", + "member": "string", + "name": "Version", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "地域, ap-guangzhou\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "ap-guangzhou", + "member": "string", + "name": "Region", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "可用区, ap-guangzhou-3\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "ap-guangzhou-3", + "member": "string", + "name": "Zone", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "私有网络名称\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "vpc-xxxxxx", + "member": "string", + "name": "VpcId", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "子网名称\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "subnet-xxxxx", + "member": "string", + "name": "SubnetId", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "付费类型,\"hour\", \"prepay\"\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "hour", + "member": "string", + "name": "PayMode", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2020-01-01 11:11:11", + "member": "string", + "name": "CreateTime", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "过期时间\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2020-02-01 11:11:11", + "member": "string", + "name": "ExpireTime", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "数据节点描述信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "NodesSummary", + "name": "MasterSummary", + "output_required": false, + "type": "object", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "zookeeper节点描述信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "NodesSummary", + "name": "CoreSummary", + "output_required": false, + "type": "object", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "高可用,“true\" \"false\"\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "false", + "member": "string", + "name": "HA", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "高可用类型:\n0:非高可用\n1:读高可用\n2:读写高可用。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "int64", + "name": "HaType", + "output_required": false, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "访问地址,例如 \"10.0.0.1:9000\"\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "\"10.0.0.1:9000\"", + "member": "string", + "name": "AccessInfo", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "记录ID,数值型\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "int64", + "name": "Id", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "regionId, 表示地域\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "int64", + "name": "RegionId", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "可用区说明,例如 \"广州二区\"\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "广州三区", + "member": "string", + "name": "ZoneDesc", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "错误流程说明信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "\"\"", + "member": "string", + "name": "FlowMsg", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "状态描述,例如“运行中”等\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "运行中", + "member": "string", + "name": "StatusDesc", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "自动续费标记\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "false", + "member": "bool", + "name": "RenewFlag", + "output_required": true, + "type": "bool", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "标签列表\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "Tag", + "name": "Tags", + "output_required": true, + "type": "list", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "监控信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "prom-aaaaa", + "member": "string", + "name": "Monitor", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "是否开通日志\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "true", + "member": "bool", + "name": "HasClsTopic", + "output_required": true, + "type": "bool", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "日志主题ID\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "xxx", + "member": "string", + "name": "ClsTopicId", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "日志集ID\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "xxx", + "member": "string", + "name": "ClsLogSetId", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "是否支持xml配置管理\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "int64", + "name": "EnableXMLConfig", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "区域\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "广州", + "member": "string", + "name": "RegionDesc", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "弹性网卡地址\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "127.0.0.1", + "member": "string", + "name": "Eip", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "冷热分层系数\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "20", + "member": "int64", + "name": "CosMoveFactor", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "external/local/yunti\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "yunti", + "member": "string", + "name": "Kind", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "cos桶\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "CosBucketName", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "cbs\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "bool", + "name": "CanAttachCbs", + "output_required": false, + "type": "bool", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "小版本\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "BuildVersion", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "组件信息\n注:这里返回类型实际为map[string]struct类型,并非显示的string类型,可以参考“示例值”进行数据的解析。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "{ \"BE\": { \"name\": \"BE\", \"version\": \"1.0\" } }", + "member": "string", + "name": "Components", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": true, + "document": "判断审计日志表是否有catalog字段\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "0", + "member": "int64", + "name": "IfExistCatalog", + "output_required": false, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "页面特性,用于前端屏蔽一些页面入口\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "[\"catalog\",\"xx\"]", + "member": "string", + "name": "Characteristic", + "output_required": false, + "type": "list", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "超时时间 单位s\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "RestartTimeout", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "内核优雅重启超时时间,如果为-1说明未设置\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "GraceShutdownWaitSeconds", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "表名大小写是否敏感,0:敏感;1:不敏感,以小写进行比较;2:不敏感,表名改为以小写存储\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "0", + "member": "int64", + "name": "CaseSensitive", + "output_required": false, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "用户是否可以绑定安全组\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "true", + "member": "bool", + "name": "IsWhiteSGs", + "output_required": false, + "type": "bool", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "已绑定的安全组信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "[\"sg-dasda\"]", + "member": "string", + "name": "BindSGs", + "output_required": false, + "type": "list", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "是否为多可用区\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "false", + "member": "bool", + "name": "EnableMultiZones", + "output_required": false, + "type": "bool", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "用户可用区和子网信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "UserNetworkInfos", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "是否启用冷热分层。0:未开启 1:已开启\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "0", + "member": "int64", + "name": "EnableCoolDown", + "output_required": false, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "冷热分层使用COS桶\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "CoolDownBucket", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "实例扩展信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "InstanceDetail", + "name": "Details", + "output_required": false, + "type": "object", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "InstanceNode": { + "document": "实例节点描述信息", + "members": [ + { + "disabled": false, + "document": "IP地址", + "example": "10.0.0.1", + "member": "string", + "name": "Ip", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "机型,如 S1", + "example": "SCH1", + "member": "string", + "name": "Spec", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "cpu核数", + "example": "2", + "member": "int64", + "name": "Core", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "内存大小", + "example": "4", + "member": "int64", + "name": "Memory", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "磁盘类型", + "example": "CLOUD_HSSD", + "member": "string", + "name": "DiskType", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "磁盘大小", + "example": "100", + "member": "int64", + "name": "DiskSize", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "所属clickhouse cluster名称", + "example": "default_cluster", + "member": "string", + "name": "Role", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "状态\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "Status", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "rip\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "Rip", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "FE节点角色\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "leader", + "member": "string", + "name": "FeRole", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "UUID\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2e8ed58d-bbf8-48f2-bfa6-3c5b3f4b9xas", + "member": "string", + "name": "UUID", + "output_required": false, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "ModifyInstanceKeyValConfigsRequest": { + "document": "ModifyInstanceKeyValConfigs请求参数结构体", + "members": [ + { + "disabled": false, + "document": "实例ID", + "example": "xxxx", "member": "string", - "name": "EndTime", + "name": "InstanceId", "required": true, "type": "string" }, { "disabled": false, - "document": "排序参数", - "example": "xx", + "document": "文件名称", + "example": "filename", "member": "string", - "name": "DurationMs", - "required": false, + "name": "FileName", + "required": true, "type": "string" }, { "disabled": false, - "document": "查询sql", - "example": "无", - "member": "string", - "name": "Sql", + "document": "新增配置列表", + "example": "[]", + "member": "InstanceConfigItem", + "name": "AddItems", "required": false, - "type": "string" + "type": "list" }, { "disabled": false, - "document": "排序参数", - "example": "无", - "member": "string", - "name": "ReadRows", + "document": "更新配置列表", + "example": "[]", + "member": "InstanceConfigItem", + "name": "UpdateItems", "required": false, - "type": "string" + "type": "list" }, { "disabled": false, - "document": "排序参数", - "example": "无", - "member": "string", - "name": "ResultBytes", + "document": "删除配置列表", + "example": "[]", + "member": "InstanceConfigItem", + "name": "DelItems", "required": false, - "type": "string" + "type": "list" }, { "disabled": false, - "document": "排序参数", - "example": "无", + "document": "备注(50字以内)", + "example": "test", "member": "string", - "name": "MemoryUsage", + "name": "Message", "required": false, "type": "string" }, { "disabled": false, - "document": "IsQuery条件", - "example": "无", - "member": "int64", - "name": "IsQuery", + "document": "热更新列表", + "example": "[]", + "member": "InstanceConfigItem", + "name": "HotUpdateItems", "required": false, - "type": "int" + "type": "list" }, { "disabled": false, - "document": "数据库名称", - "example": "[\"xx\",\"xxx\"]", - "member": "string", - "name": "DbName", + "document": "删除配置列表", + "example": "[]", + "member": "InstanceConfigItem", + "name": "DeleteItems", "required": false, - "type": "list" + "type": "object" }, { "disabled": false, - "document": "catalog名称", - "example": "[\"xx\",\"xxx\"]", + "document": "ip地址", + "example": "无", "member": "string", - "name": "CatalogName", + "name": "IPAddress", "required": false, - "type": "list" + "type": "string" } ], "type": "object" }, - "DescribeSlowQueryRecordsDownloadResponse": { - "document": "DescribeSlowQueryRecordsDownload返回参数结构体", + "ModifyInstanceKeyValConfigsResponse": { + "document": "ModifyInstanceKeyValConfigs返回参数结构体", "members": [ { "disabled": false, - "document": "cos地址", + "document": "错误信息\n注意:此字段可能返回 null,表示取不到有效值。", "example": "xx", "member": "string", - "name": "CosUrl", + "name": "ErrorMsg", "output_required": true, "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "ID", + "example": "11", + "member": "int64", + "name": "FlowId", + "output_required": true, + "type": "int", "value_allowed_null": false }, { @@ -1617,13 +3626,13 @@ ], "type": "object" }, - "DescribeSlowQueryRecordsRequest": { - "document": "DescribeSlowQueryRecords请求参数结构体", + "ModifyInstanceRequest": { + "document": "ModifyInstance请求参数结构体", "members": [ { "disabled": false, - "document": "实例ID", - "example": "cdwdoris-64h6w432", + "document": "实例Id", + "example": "cdwch-12345678", "member": "string", "name": "InstanceId", "required": true, @@ -1631,165 +3640,72 @@ }, { "disabled": false, - "document": "慢查询时间", - "example": "100", - "member": "int64", - "name": "QueryDurationMs", - "required": true, - "type": "int" - }, - { - "disabled": false, - "document": "开始时间", - "example": "abc", + "document": "新修改的实例名称", + "example": "cdwch-test", "member": "string", - "name": "StartTime", + "name": "InstanceName", "required": true, "type": "string" - }, + } + ], + "type": "object" + }, + "ModifyInstanceResponse": { + "document": "ModifyInstance返回参数结构体", + "members": [ { - "disabled": false, - "document": "结束时间", - "example": "abc", + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "EndTime", - "required": true, + "name": "RequestId", "type": "string" - }, - { - "disabled": false, - "document": "分页", - "example": "1", - "member": "int64", - "name": "PageSize", - "required": true, - "type": "int" - }, - { - "disabled": false, - "document": "分页", - "example": "1", - "member": "int64", - "name": "PageNum", - "required": true, - "type": "int" - }, + } + ], + "type": "object" + }, + "ModifySecurityGroupsRequest": { + "document": "ModifySecurityGroups请求参数结构体", + "members": [ { "disabled": false, - "document": "排序参数", - "example": "abc", + "document": "集群id", + "example": "\"cdwch-xxx\"", "member": "string", - "name": "DurationMs", - "required": false, + "name": "InstanceId", + "required": true, "type": "string" }, { "disabled": false, - "document": "数据库名称", - "example": "[\"xx\",\"xxx\"]", + "document": "修改前的安全组信息", + "example": "[\"sg-i0nd0qya\",\"sg-i0ndasd\"]", "member": "string", - "name": "DbName", + "name": "OldSecurityGroupIds", "required": false, "type": "list" }, { "disabled": false, - "document": "是否是查询,0:否, 1:是", - "example": "1", - "member": "int64", - "name": "IsQuery", - "required": false, - "type": "int" - }, - { - "disabled": false, - "document": "catalog名称", - "example": "[\"xx\",\"xxx\"]", + "document": "修改后的安全组信息", + "example": "[\"sg-i0nd0cza\",\"sg-iqadasd\"]", "member": "string", - "name": "CatalogName", + "name": "ModifySecurityGroupIds", "required": false, "type": "list" - }, - { - "disabled": false, - "document": "sql名", - "example": "select * from xxx", - "member": "string", - "name": "Sql", - "required": false, - "type": "string" - }, - { - "disabled": false, - "document": "ReadRows排序字段", - "example": "ASC", - "member": "string", - "name": "ReadRows", - "required": false, - "type": "string" - }, - { - "disabled": false, - "document": "ResultBytes排序字段", - "example": "ASC", - "member": "string", - "name": "ResultBytes", - "required": false, - "type": "string" - }, - { - "disabled": false, - "document": "MemoryUsage排序字段", - "example": "ASC", - "member": "string", - "name": "MemoryUsage", - "required": false, - "type": "string" } ], "type": "object" }, - "DescribeSlowQueryRecordsResponse": { - "document": "DescribeSlowQueryRecords返回参数结构体", + "ModifySecurityGroupsResponse": { + "document": "ModifySecurityGroups返回参数结构体", "members": [ { "disabled": false, - "document": "总数", - "example": "123", - "member": "int64", - "name": "TotalCount", - "output_required": true, - "type": "int", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "记录列表", - "example": "[\"xx\",\"abc\"", - "member": "SlowQueryRecord", - "name": "SlowQueryRecords", - "output_required": true, - "type": "list", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "所有数据库名\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "string", - "name": "DBNameList", - "output_required": false, - "type": "list", - "value_allowed_null": true - }, - { - "disabled": false, - "document": "所有catalog名\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "错误信息\n注意:此字段可能返回 null,表示取不到有效值。", "example": "无", "member": "string", - "name": "CatalogNameList", + "name": "ErrorMsg", "output_required": false, - "type": "list", + "type": "string", "value_allowed_null": true }, { @@ -1801,44 +3717,51 @@ ], "type": "object" }, - "DestroyInstanceRequest": { - "document": "DestroyInstance请求参数结构体", + "ModifyUserBindWorkloadGroupRequest": { + "document": "ModifyUserBindWorkloadGroup请求参数结构体", "members": [ { "disabled": false, - "document": "集群ID", - "example": "无", + "document": "集群id", + "example": "cdwdoris-xxx", "member": "string", "name": "InstanceId", "required": true, "type": "string" - } - ], - "type": "object" - }, - "DestroyInstanceResponse": { - "document": "DestroyInstance返回参数结构体", - "members": [ + }, { "disabled": false, - "document": "流程ID", + "document": "需要绑定资源组的用户信息,如果一个账户拥有多个主机信息,需要将这些信息都传入", "example": "无", - "member": "string", - "name": "FlowId", - "output_required": false, - "type": "string", - "value_allowed_null": false + "member": "BindUser", + "name": "BindUsers", + "required": false, + "type": "list" }, { "disabled": false, - "document": "集群ID", - "example": "无", + "document": "修改前绑定的资源组名称", + "example": "normal", "member": "string", - "name": "InstanceId", - "output_required": false, - "type": "string", - "value_allowed_null": false + "name": "OldWorkloadGroupName", + "required": false, + "type": "string" }, + { + "disabled": false, + "document": "修改后绑定的资源组名称", + "example": "g1", + "member": "string", + "name": "NewWorkloadGroupName", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "ModifyUserBindWorkloadGroupResponse": { + "document": "ModifyUserBindWorkloadGroup返回参数结构体", + "members": [ { "disabled": false, "document": "错误信息", @@ -1858,618 +3781,622 @@ ], "type": "object" }, - "InstanceDetail": { - "document": "Instance表detail字段", - "members": [ - { - "disabled": false, - "document": "告警策略是否可用\t\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "bool", - "member": "bool", - "name": "EnableAlarmStrategy", - "output_required": false, - "required": false, - "type": "bool", - "value_allowed_null": true - } - ], - "usage": "both" - }, - "InstanceInfo": { - "document": "实例描述信息", + "ModifyUserPrivilegesV3Request": { + "document": "ModifyUserPrivilegesV3请求参数结构体", "members": [ { "disabled": false, - "document": "集群实例ID, \"cdw-xxxx\" 字符串类型\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "cdwch-xxxxxxxx", + "document": "集群id", + "example": "cdwdoris-xxx", "member": "string", "name": "InstanceId", - "output_required": true, - "type": "string", - "value_allowed_null": true + "required": true, + "type": "string" }, { "disabled": false, - "document": "集群实例名称\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "clickhouse集群", + "document": "用户名", + "example": "test", "member": "string", - "name": "InstanceName", - "output_required": true, - "type": "string", - "value_allowed_null": true + "name": "UserName", + "required": true, + "type": "string" }, { "disabled": false, - "document": "状态,\nInit 创建中; Serving 运行中; \nDeleted已销毁;Deleting 销毁中;\nModify 集群变更中;\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "Running", - "member": "string", - "name": "Status", - "output_required": true, - "type": "string", - "value_allowed_null": true + "document": "用户权限", + "example": "无", + "member": "UpdateUserPrivileges", + "name": "UserPrivileges", + "required": true, + "type": "object" }, { "disabled": false, - "document": "版本\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "20.7.2.30", + "document": "用户链接来自的 IP\t", + "example": "10.0.0.2", "member": "string", - "name": "Version", - "output_required": true, - "type": "string", - "value_allowed_null": true - }, + "name": "WhiteHost", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "ModifyUserPrivilegesV3Response": { + "document": "ModifyUserPrivilegesV3返回参数结构体", + "members": [ { "disabled": false, - "document": "地域, ap-guangzhou\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "ap-guangzhou", + "document": "错误信息,为空就是没有错误\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "错误信息", "member": "string", - "name": "Region", + "name": "ErrorMsg", "output_required": true, "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "可用区, ap-guangzhou-3\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "ap-guangzhou-3", + "document": "集群id", + "example": "cdwdoris-xx", "member": "string", - "name": "Zone", + "name": "InstanceId", "output_required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { - "disabled": false, - "document": "私有网络名称\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "vpc-xxxxxx", + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "VpcId", - "output_required": true, - "type": "string", - "value_allowed_null": true - }, + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "ModifyWorkloadGroupRequest": { + "document": "ModifyWorkloadGroup请求参数结构体", + "members": [ { "disabled": false, - "document": "子网名称\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "subnet-xxxxx", + "document": "集群id", + "example": "cdwdoris-xxx\t", "member": "string", - "name": "SubnetId", - "output_required": true, - "type": "string", - "value_allowed_null": true + "name": "InstanceId", + "required": true, + "type": "string" }, { "disabled": false, - "document": "付费类型,\"hour\", \"prepay\"\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "hour", - "member": "string", - "name": "PayMode", - "output_required": true, - "type": "string", - "value_allowed_null": true - }, + "document": "修改的资源组信息", + "example": "无", + "member": "WorkloadGroupConfig", + "name": "WorkloadGroup", + "required": false, + "type": "object" + } + ], + "type": "object" + }, + "ModifyWorkloadGroupResponse": { + "document": "ModifyWorkloadGroup返回参数结构体", + "members": [ { "disabled": false, - "document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2020-01-01 11:11:11", + "document": "错误信息\t", + "example": "无", "member": "string", - "name": "CreateTime", - "output_required": true, + "name": "ErrorMsg", + "output_required": false, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "ModifyWorkloadGroupStatusRequest": { + "document": "ModifyWorkloadGroupStatus请求参数结构体", + "members": [ { "disabled": false, - "document": "过期时间\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2020-02-01 11:11:11", + "document": "集群id", + "example": "cdwdoris-xxx", "member": "string", - "name": "ExpireTime", - "output_required": true, - "type": "string", - "value_allowed_null": true + "name": "InstanceId", + "required": true, + "type": "string" }, { "disabled": false, - "document": "数据节点描述信息\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "NodesSummary", - "name": "MasterSummary", - "output_required": false, - "type": "object", - "value_allowed_null": true - }, + "document": "是否开启资源组:open-开启、close-关闭", + "example": "open", + "member": "string", + "name": "OperationType", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "ModifyWorkloadGroupStatusResponse": { + "document": "ModifyWorkloadGroupStatus返回参数结构体", + "members": [ { "disabled": false, - "document": "zookeeper节点描述信息\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "错误信息\t", "example": "无", - "member": "NodesSummary", - "name": "CoreSummary", + "member": "string", + "name": "ErrorMsg", "output_required": false, - "type": "object", - "value_allowed_null": true + "type": "string", + "value_allowed_null": false }, { - "disabled": false, - "document": "高可用,“true\" \"false\"\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "false", + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "HA", - "output_required": true, - "type": "string", - "value_allowed_null": true - }, + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "NetworkInfo": { + "document": "网络信息", + "members": [ { "disabled": false, - "document": "高可用类型:\n0:非高可用\n1:读高可用\n2:读写高可用。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", - "member": "int64", - "name": "HaType", + "document": "可用区\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "ap-guangzhou-1", + "member": "string", + "name": "Zone", "output_required": false, - "type": "int", + "required": false, + "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "访问地址,例如 \"10.0.0.1:9000\"\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "\"10.0.0.1:9000\"", + "document": "子网id\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "subnet-xxxxxxx", "member": "string", - "name": "AccessInfo", - "output_required": true, + "name": "SubnetId", + "output_required": false, + "required": false, "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "记录ID,数值型\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", - "member": "int64", - "name": "Id", - "output_required": true, - "type": "int", - "value_allowed_null": true - }, - { - "disabled": false, - "document": "regionId, 表示地域\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", + "document": "当前子网可用ip数\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "20", "member": "int64", - "name": "RegionId", - "output_required": true, + "name": "SubnetIpNum", + "output_required": false, + "required": false, "type": "int", "value_allowed_null": true - }, - { - "disabled": false, - "document": "可用区说明,例如 \"广州二区\"\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "广州三区", - "member": "string", - "name": "ZoneDesc", - "output_required": true, - "type": "string", - "value_allowed_null": true - }, + } + ], + "usage": "both" + }, + "NodeInfo": { + "document": "NodeInfo", + "members": [ { "disabled": false, - "document": "错误流程说明信息\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "\"\"", + "document": "用户IP\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", "member": "string", - "name": "FlowMsg", - "output_required": true, + "name": "Ip", + "output_required": false, "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "状态描述,例如“运行中”等\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "运行中", - "member": "string", - "name": "StatusDesc", - "output_required": true, - "type": "string", + "document": "节点状态\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "int64", + "name": "Status", + "output_required": false, + "type": "int", "value_allowed_null": true }, { "disabled": false, - "document": "自动续费标记\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "false", - "member": "bool", - "name": "RenewFlag", - "output_required": true, - "type": "bool", + "document": "节点角色名\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "MASTER", + "member": "string", + "name": "NodeName", + "output_required": false, + "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "标签列表\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "Tag", - "name": "Tags", - "output_required": true, - "type": "list", + "document": "组件名\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "FE", + "member": "string", + "name": "ComponentName", + "output_required": false, + "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "监控信息\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "prom-aaaaa", + "document": "节点角色\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "core", "member": "string", - "name": "Monitor", - "output_required": true, + "name": "NodeRole", + "output_required": false, "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "是否开通日志\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "true", - "member": "bool", - "name": "HasClsTopic", - "output_required": true, - "type": "bool", + "document": "节点上次重启的时间\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "LastRestartTime", + "output_required": false, + "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "日志主题ID\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "xxx", + "document": "节点所在可用区\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", "member": "string", - "name": "ClsTopicId", - "output_required": true, + "name": "Zone", + "output_required": false, "type": "string", "value_allowed_null": true - }, + } + ], + "usage": "out" + }, + "NodesSummary": { + "document": "节点角色描述信息", + "members": [ { "disabled": false, - "document": "日志集ID\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "xxx", + "document": "机型,如 S1", + "example": "xx", "member": "string", - "name": "ClsLogSetId", + "name": "Spec", "output_required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "是否支持xml配置管理\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "节点数目", "example": "1", "member": "int64", - "name": "EnableXMLConfig", + "name": "NodeSize", "output_required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "区域\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "广州", - "member": "string", - "name": "RegionDesc", + "document": "cpu核数,单位个", + "example": "2", + "member": "int64", + "name": "Core", "output_required": true, - "type": "string", - "value_allowed_null": true + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "弹性网卡地址\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "127.0.0.1", - "member": "string", - "name": "Eip", + "document": "内存大小,单位G", + "example": "4", + "member": "int64", + "name": "Memory", "output_required": true, - "type": "string", - "value_allowed_null": true + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "冷热分层系数\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "20", + "document": "磁盘大小,单位G", + "example": "xx", "member": "int64", - "name": "CosMoveFactor", + "name": "Disk", "output_required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "external/local/yunti\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "yunti", + "document": "磁盘类型", + "example": "xx", "member": "string", - "name": "Kind", + "name": "DiskType", "output_required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "cos桶\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", + "document": "磁盘描述", + "example": "xx", "member": "string", - "name": "CosBucketName", - "output_required": false, + "name": "DiskDesc", + "output_required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "cbs\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "bool", - "name": "CanAttachCbs", - "output_required": false, - "type": "bool", + "document": "挂载云盘信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "xx", + "member": "AttachCBSSpec", + "name": "AttachCBSSpec", + "output_required": true, + "type": "object", "value_allowed_null": true }, { "disabled": false, - "document": "小版本\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", + "document": "子产品名称\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "cdwdoris", "member": "string", - "name": "BuildVersion", + "name": "SubProductType", "output_required": false, "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "组件信息\n注:这里返回类型实际为map[string]struct类型,并非显示的string类型,可以参考“示例值”进行数据的解析。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "{ \"BE\": { \"name\": \"BE\", \"version\": \"1.0\" } }", - "member": "string", - "name": "Components", - "output_required": false, - "type": "string", - "value_allowed_null": true - }, - { - "disabled": true, - "document": "判断审计日志表是否有catalog字段\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "0", + "document": "规格核数\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", "member": "int64", - "name": "IfExistCatalog", + "name": "SpecCore", "output_required": false, "type": "int", "value_allowed_null": true }, { "disabled": false, - "document": "页面特性,用于前端屏蔽一些页面入口\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "[\"catalog\",\"xx\"]", - "member": "string", - "name": "Characteristic", + "document": "规格内存\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "int64", + "name": "SpecMemory", "output_required": false, - "type": "list", + "type": "int", "value_allowed_null": true }, { "disabled": false, - "document": "超时时间 单位s\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "磁盘大小\n注意:此字段可能返回 null,表示取不到有效值。", "example": "无", - "member": "string", - "name": "RestartTimeout", + "member": "int64", + "name": "DiskCount", "output_required": false, - "type": "string", + "type": "int", "value_allowed_null": true }, { "disabled": false, - "document": "内核优雅重启超时时间,如果为-1说明未设置\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "是否加密\n注意:此字段可能返回 null,表示取不到有效值。", "example": "无", - "member": "string", - "name": "GraceShutdownWaitSeconds", + "member": "int64", + "name": "Encrypt", "output_required": false, - "type": "string", + "type": "int", "value_allowed_null": true }, { "disabled": false, - "document": "表名大小写是否敏感,0:敏感;1:不敏感,以小写进行比较;2:不敏感,表名改为以小写存储\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "0", + "document": "最大磁盘\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", "member": "int64", - "name": "CaseSensitive", + "name": "MaxDiskSize", "output_required": false, "type": "int", "value_allowed_null": true - }, + } + ], + "usage": "out" + }, + "ReduceInstanceRequest": { + "document": "ReduceInstance请求参数结构体", + "members": [ { "disabled": false, - "document": "用户是否可以绑定安全组\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "true", - "member": "bool", - "name": "IsWhiteSGs", - "output_required": false, - "type": "bool", - "value_allowed_null": true + "document": "集群ID", + "example": "无", + "member": "string", + "name": "InstanceId", + "required": true, + "type": "string" }, { "disabled": false, - "document": "已绑定的安全组信息\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "[\"sg-dasda\"]", + "document": "节点列表", + "example": "无", "member": "string", - "name": "BindSGs", - "output_required": false, - "type": "list", - "value_allowed_null": true + "name": "DelHosts", + "required": true, + "type": "list" }, { "disabled": false, - "document": "是否为多可用区\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "false", - "member": "bool", - "name": "EnableMultiZones", - "output_required": false, - "type": "bool", - "value_allowed_null": true + "document": "角色(MATER/CORE),MASTER 对应 FE,CORE对应BE", + "example": "无", + "member": "string", + "name": "Type", + "required": true, + "type": "string" }, { "disabled": false, - "document": "用户可用区和子网信息\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "缩容后集群高可用类型:0:非高可用,1:读高可用,2:读写高可用。", + "example": "无", + "member": "int64", + "name": "HaType", + "required": true, + "type": "int" + } + ], + "type": "object" + }, + "ReduceInstanceResponse": { + "document": "ReduceInstance返回参数结构体", + "members": [ + { + "disabled": false, + "document": "流程ID", "example": "无", "member": "string", - "name": "UserNetworkInfos", + "name": "FlowId", "output_required": false, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "是否启用冷热分层。0:未开启 1:已开启\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "0", - "member": "int64", - "name": "EnableCoolDown", + "document": "集群ID", + "example": "无", + "member": "string", + "name": "InstanceId", "output_required": false, - "type": "int", - "value_allowed_null": true + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "冷热分层使用COS桶\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "错误信息", "example": "无", "member": "string", - "name": "CoolDownBucket", + "name": "ErrorMsg", "output_required": false, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { - "disabled": false, - "document": "实例扩展信息\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "InstanceDetail", - "name": "Details", - "output_required": false, - "type": "object", - "value_allowed_null": true + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" } ], - "usage": "out" + "type": "object" }, - "InstanceNode": { - "document": "实例节点描述信息", + "RegionAreaInfo": { + "document": "可用区的地域大类描述", "members": [ { "disabled": false, - "document": "IP地址", - "example": "10.0.0.1", + "document": "大类地域信息,如\"south_china\", \"east_china\"等", + "example": "cdwch-xxxx", "member": "string", - "name": "Ip", - "output_required": true, + "name": "Name", + "required": true, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "机型,如 S1", - "example": "SCH1", + "document": "对应Name的描述,例如“华南地区”,“华东地区”等", + "example": "cdwch-xxxx", "member": "string", - "name": "Spec", - "output_required": true, + "name": "Desc", + "required": true, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "cpu核数", - "example": "2", - "member": "int64", - "name": "Core", - "output_required": true, - "type": "int", + "document": "具体地域列表1", + "example": "cdwch-xxxx", + "member": "RegionInfo", + "name": "Regions", + "required": true, + "type": "list", "value_allowed_null": false - }, + } + ], + "usage": "out" + }, + "RegionInfo": { + "document": "地域描述信息", + "members": [ { "disabled": false, - "document": "内存大小", - "example": "4", - "member": "int64", - "name": "Memory", + "document": "地域名称,例如“ap-guangzhou\"", + "example": "无", + "member": "string", + "name": "Name", "output_required": true, - "type": "int", + "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "磁盘类型", - "example": "CLOUD_HSSD", + "document": "地域描述,例如\"广州”", + "example": "无", "member": "string", - "name": "DiskType", + "name": "Desc", "output_required": true, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "磁盘大小", - "example": "100", + "document": "地域唯一标记", + "example": "无", "member": "int64", - "name": "DiskSize", + "name": "RegionId", "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "所属clickhouse cluster名称", - "example": "default_cluster", - "member": "string", - "name": "Role", - "output_required": true, - "type": "string", - "value_allowed_null": false - }, - { - "disabled": false, - "document": "状态\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "地域下所有可用区列表\n注意:此字段可能返回 null,表示取不到有效值。", "example": "无", - "member": "string", - "name": "Status", - "output_required": false, - "type": "string", + "member": "ZoneInfo", + "name": "Zones", + "output_required": true, + "type": "list", "value_allowed_null": true }, { "disabled": false, - "document": "rip\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "该地域下集群数目", "example": "无", - "member": "string", - "name": "Rip", - "output_required": false, - "type": "string", - "value_allowed_null": true + "member": "int64", + "name": "Count", + "output_required": true, + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "FE节点角色\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "leader", - "member": "string", - "name": "FeRole", + "document": "0代表是国际站 1代表不是\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "uint64", + "name": "IsInternationalSite", "output_required": false, - "type": "string", + "type": "int", "value_allowed_null": true }, { "disabled": false, - "document": "UUID\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2e8ed58d-bbf8-48f2-bfa6-3c5b3f4b9xas", + "document": "桶\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", "member": "string", - "name": "UUID", + "name": "Bucket", "output_required": false, "type": "string", "value_allowed_null": true @@ -2477,13 +4404,13 @@ ], "usage": "out" }, - "ModifyInstanceRequest": { - "document": "ModifyInstance请求参数结构体", + "ResizeDiskRequest": { + "document": "ResizeDisk请求参数结构体", "members": [ { "disabled": false, - "document": "实例Id", - "example": "cdwch-12345678", + "document": "集群ID", + "example": "无", "member": "string", "name": "InstanceId", "required": true, @@ -2491,19 +4418,58 @@ }, { "disabled": false, - "document": "新修改的实例名称", - "example": "cdwch-test", + "document": "角色(MATER/CORE),MASTER 对应 FE,CORE对应BE", + "example": "无", "member": "string", - "name": "InstanceName", + "name": "Type", "required": true, "type": "string" + }, + { + "disabled": false, + "document": "云盘大小", + "example": "无", + "member": "uint64", + "name": "DiskSize", + "required": true, + "type": "int" } ], "type": "object" }, - "ModifyInstanceResponse": { - "document": "ModifyInstance返回参数结构体", + "ResizeDiskResponse": { + "document": "ResizeDisk返回参数结构体", "members": [ + { + "disabled": false, + "document": "实例ID", + "example": "无", + "member": "string", + "name": "InstanceId", + "output_required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "流程ID", + "example": "无", + "member": "string", + "name": "FlowId", + "output_required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "错误信息", + "example": "无", + "member": "string", + "name": "ErrorMsg", + "output_required": false, + "type": "string", + "value_allowed_null": false + }, { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", @@ -2513,424 +4479,436 @@ ], "type": "object" }, - "NetworkInfo": { - "document": "网络信息", + "ResourceNodeDiskSpec": { + "document": "集群内节点的规格磁盘规格描述", "members": [ { "disabled": false, - "document": "可用区\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "ap-guangzhou-1", + "document": "节点磁盘类型,例如“CLOUD_SSD”\\\"CLOUD_PREMIUM\"", + "example": "无", "member": "string", - "name": "Zone", - "output_required": false, + "name": "DiskType", "required": false, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "子网id\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "subnet-xxxxxxx", - "member": "string", - "name": "SubnetId", - "output_required": false, + "document": "磁盘容量,单位G", + "example": "无", + "member": "int64", + "name": "DiskSize", "required": false, - "type": "string", - "value_allowed_null": true + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "当前子网可用ip数\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "20", + "document": "磁盘总数", + "example": "无", "member": "int64", - "name": "SubnetIpNum", - "output_required": false, + "name": "DiskCount", "required": false, "type": "int", - "value_allowed_null": true + "value_allowed_null": false } ], "usage": "both" }, - "NodeInfo": { - "document": "NodeInfo", + "ResourceNodeSpec": { + "document": "集群内节点的规格描述", "members": [ { "disabled": false, - "document": "用户IP\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", + "document": "节点类型,“DATA\"数据节点,”COMMON\" zookeeper节点", + "example": "DATA", "member": "string", - "name": "Ip", - "output_required": false, + "name": "Type", + "required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "节点规格名称,例如 “SCH1\",\"SCH2”等", + "example": "SCH1", + "member": "string", + "name": "SpecName", + "required": true, "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "节点数目", + "example": "1", + "member": "int64", + "name": "Count", + "required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "磁盘规格描述\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "null", + "member": "ResourceNodeDiskSpec", + "name": "DiskSpec", + "required": false, + "type": "object", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "云盘是否加密,0不加密/1加密 默认为0\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "0", + "member": "uint64", + "name": "Encrypt", + "required": false, + "type": "int", "value_allowed_null": true }, { "disabled": false, - "document": "节点状态\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "int64", - "name": "Status", - "output_required": false, - "type": "int", + "document": "额外信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "null", + "member": "SpecExtra", + "name": "Extra", + "required": false, + "type": "object", "value_allowed_null": true }, { "disabled": false, - "document": "节点角色名\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "MASTER", - "member": "string", - "name": "NodeName", - "output_required": false, - "type": "string", + "document": "挂载云盘信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "null", + "member": "ResourceNodeDiskSpec", + "name": "AttachCBSSpec", + "required": false, + "type": "object", "value_allowed_null": true - }, + } + ], + "usage": "both" + }, + "RestartClusterForNodeRequest": { + "document": "RestartClusterForNode请求参数结构体", + "members": [ { "disabled": false, - "document": "组件名\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "FE", + "document": "集群ID,例如cdwch-xxxx", + "example": "cdwch-xxxx", "member": "string", - "name": "ComponentName", - "output_required": false, - "type": "string", - "value_allowed_null": true + "name": "InstanceId", + "required": true, + "type": "string" }, { "disabled": false, - "document": "节点角色\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "core", + "document": "配置文件名称", + "example": "fe/be/broken", "member": "string", - "name": "NodeRole", - "output_required": false, - "type": "string", - "value_allowed_null": true + "name": "ConfigName", + "required": true, + "type": "string" }, { "disabled": false, - "document": "节点上次重启的时间\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", + "document": "每次重启的批次", + "example": "1", + "member": "int64", + "name": "BatchSize", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "重启节点", + "example": "[ip1,ip2]", "member": "string", - "name": "LastRestartTime", - "output_required": false, - "type": "string", - "value_allowed_null": true + "name": "NodeList", + "required": false, + "type": "list" }, { "disabled": false, - "document": "节点所在可用区\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "false表示非滚动重启,true表示滚动重启", "example": "无", - "member": "string", - "name": "Zone", - "output_required": false, - "type": "string", - "value_allowed_null": true + "member": "bool", + "name": "RollingRestart", + "required": false, + "type": "bool" } ], - "usage": "out" + "type": "object" }, - "NodesSummary": { - "document": "节点角色描述信息", + "RestartClusterForNodeResponse": { + "document": "RestartClusterForNode返回参数结构体", "members": [ { "disabled": false, - "document": "机型,如 S1", - "example": "xx", - "member": "string", - "name": "Spec", + "document": "流程相关信息", + "example": "-", + "member": "int64", + "name": "FlowId", "output_required": true, - "type": "string", + "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "节点数目", - "example": "1", - "member": "int64", - "name": "NodeSize", + "document": "错误信息", + "example": "-", + "member": "string", + "name": "ErrorMsg", "output_required": true, - "type": "int", + "type": "string", "value_allowed_null": false }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "RestoreStatus": { + "document": "恢复任务信息", + "members": [ { "disabled": false, - "document": "cpu核数,单位个", - "example": "2", + "document": "恢复任务id", + "example": "10513", "member": "int64", - "name": "Core", + "name": "JobId", "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "内存大小,单位G", - "example": "4", - "member": "int64", - "name": "Memory", + "document": "恢复任务标签", + "example": "snapshot-xxx-abc", + "member": "string", + "name": "Label", "output_required": true, - "type": "int", + "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "磁盘大小,单位G", - "example": "xx", - "member": "int64", - "name": "Disk", + "document": "恢复任务时间戳", + "example": "2022-06-24-15-56-38", + "member": "string", + "name": "Timestamp", "output_required": true, - "type": "int", + "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "磁盘类型", - "example": "xx", + "document": "恢复任务所在库", + "example": "default_cluster:abc", "member": "string", - "name": "DiskType", + "name": "DbName", "output_required": true, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "磁盘描述", - "example": "xx", + "document": "恢复任务状态", + "example": "FINISHED", "member": "string", - "name": "DiskDesc", + "name": "State", "output_required": true, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "挂载云盘信息\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "xx", - "member": "AttachCBSSpec", - "name": "AttachCBSSpec", + "document": "恢复时是否允许导入", + "example": "false", + "member": "bool", + "name": "AllowLoad", "output_required": true, - "type": "object", - "value_allowed_null": true + "type": "bool", + "value_allowed_null": false }, { "disabled": false, - "document": "子产品名称\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "cdwdoris", + "document": "副本数", + "example": "1", "member": "string", - "name": "SubProductType", - "output_required": false, + "name": "ReplicationNum", + "output_required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "规格核数\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "int64", - "name": "SpecCore", - "output_required": false, - "type": "int", - "value_allowed_null": true + "document": "副本数", + "example": "tag.location.default: 1", + "member": "string", + "name": "ReplicaAllocation", + "output_required": true, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "规格内存\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "int64", - "name": "SpecMemory", - "output_required": false, - "type": "int", - "value_allowed_null": true + "document": "恢复对象", + "example": "{}", + "member": "string", + "name": "RestoreObjects", + "output_required": true, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "磁盘大小\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "int64", - "name": "DiskCount", - "output_required": false, - "type": "int", - "value_allowed_null": true + "document": "创建时间", + "example": "2022-06-24 16:36:38", + "member": "string", + "name": "CreateTime", + "output_required": true, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "是否加密\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "int64", - "name": "Encrypt", - "output_required": false, - "type": "int", - "value_allowed_null": true + "document": "元数据准备时间", + "example": "2022-06-24 16:36:38", + "member": "string", + "name": "MetaPreparedTime", + "output_required": true, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "最大磁盘\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "int64", - "name": "MaxDiskSize", - "output_required": false, - "type": "int", - "value_allowed_null": true - } - ], - "usage": "out" - }, - "ResizeDiskRequest": { - "document": "ResizeDisk请求参数结构体", - "members": [ - { - "disabled": false, - "document": "集群ID", - "example": "无", + "document": "快照结束时间", + "example": "2022-06-24 16:36:38", "member": "string", - "name": "InstanceId", - "required": true, - "type": "string" + "name": "SnapshotFinishedTime", + "output_required": true, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "角色(MATER/CORE),MASTER 对应 FE,CORE对应BE", - "example": "无", + "document": "下载结束时间", + "example": "2022-06-24 16:36:38", "member": "string", - "name": "Type", - "required": true, - "type": "string" + "name": "DownloadFinishedTime", + "output_required": true, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "云盘大小", - "example": "无", - "member": "uint64", - "name": "DiskSize", - "required": true, - "type": "int" - } - ], - "type": "object" - }, - "ResizeDiskResponse": { - "document": "ResizeDisk返回参数结构体", - "members": [ - { - "disabled": false, - "document": "实例ID", - "example": "无", + "document": "结束时间", + "example": "2022-06-24 16:36:38", "member": "string", - "name": "InstanceId", - "output_required": false, + "name": "FinishedTime", + "output_required": true, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "流程ID", - "example": "无", + "document": "未完成任务", + "example": "aa", "member": "string", - "name": "FlowId", - "output_required": false, + "name": "UnfinishedTasks", + "output_required": true, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "错误信息", - "example": "无", + "document": "进度", + "example": "20", "member": "string", - "name": "ErrorMsg", - "output_required": false, + "name": "Progress", + "output_required": true, "type": "string", "value_allowed_null": false }, - { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", - "member": "string", - "name": "RequestId", - "type": "string" - } - ], - "type": "object" - }, - "RestartClusterForNodeRequest": { - "document": "RestartClusterForNode请求参数结构体", - "members": [ { "disabled": false, - "document": "集群ID,例如cdwch-xxxx", - "example": "cdwch-xxxx", + "document": "错误信息", + "example": "error", "member": "string", - "name": "InstanceId", - "required": true, - "type": "string" + "name": "TaskErrMsg", + "output_required": true, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "配置文件名称", - "example": "fe/be/broken", + "document": "状态", + "example": "[OK]", "member": "string", - "name": "ConfigName", - "required": true, - "type": "string" + "name": "Status", + "output_required": true, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "每次重启的批次", - "example": "1", + "document": "作业超时时间", + "example": "111", "member": "int64", - "name": "BatchSize", - "required": false, - "type": "int" + "name": "Timeout", + "output_required": true, + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "重启节点", - "example": "[ip1,ip2]", - "member": "string", - "name": "NodeList", - "required": false, - "type": "list" + "document": "是否保持源表中的副本数", + "example": "false", + "member": "bool", + "name": "ReserveReplica", + "output_required": true, + "type": "bool", + "value_allowed_null": false }, { "disabled": false, - "document": "false表示非滚动重启,true表示滚动重启", - "example": "无", + "document": "是否保持源表中的动态分区", + "example": "false", "member": "bool", - "name": "RollingRestart", - "required": false, - "type": "bool" - } - ], - "type": "object" - }, - "RestartClusterForNodeResponse": { - "document": "RestartClusterForNode返回参数结构体", - "members": [ - { - "disabled": false, - "document": "流程相关信息", - "example": "-", - "member": "int64", - "name": "FlowId", + "name": "ReserveDynamicPartitionEnable", "output_required": true, - "type": "int", + "type": "bool", "value_allowed_null": false }, { "disabled": false, - "document": "错误信息", - "example": "-", - "member": "string", - "name": "ErrorMsg", - "output_required": true, - "type": "string", - "value_allowed_null": false + "document": "备份实例id\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "123", + "member": "int64", + "name": "BackupJobId", + "output_required": false, + "type": "int", + "value_allowed_null": true }, { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", - "member": "string", - "name": "RequestId", - "type": "string" + "disabled": false, + "document": "实例对应snapshot的id\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "123", + "member": "int64", + "name": "TaskId", + "output_required": false, + "type": "int", + "value_allowed_null": true } ], - "type": "object" + "usage": "out" }, "ScaleOutInstanceRequest": { "document": "ScaleOutInstance请求参数结构体", @@ -3283,6 +5261,30 @@ ], "usage": "out" }, + "SpecExtra": { + "document": "额外参数", + "members": [ + { + "disabled": true, + "document": "要删除的shards", + "example": "test", + "member": "string", + "name": "DelShards", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "要删除的节点uip", + "example": "test", + "member": "string", + "name": "DelHosts", + "required": false, + "type": "string" + } + ], + "usage": "in" + }, "Tag": { "document": "标签描述", "members": [ @@ -3308,6 +5310,182 @@ } ], "usage": "both" + }, + "UpdateUserPrivileges": { + "document": "更新用户权限结构体", + "members": [ + { + "disabled": false, + "document": "是否设置catalog权限", + "example": "无", + "member": "bool", + "name": "IsSetGlobalCatalog", + "required": false, + "type": "bool" + } + ], + "usage": "in" + }, + "UserWorkloadGroup": { + "document": "用户绑定资源组信息", + "members": [ + { + "disabled": false, + "document": "test\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "用户名", + "member": "string", + "name": "UserName", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "normal\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "资源组名称", + "member": "string", + "name": "WorkloadGroupName", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "both" + }, + "VersionReplicaItem": { + "document": "检查doris内核是否支持新语法。", + "members": [ + { + "disabled": false, + "document": "版本描述\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "int64", + "name": "ReplicaFlag", + "required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "错误信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "e", + "member": "string", + "name": "ErrorMsg", + "required": true, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "WorkloadGroupConfig": { + "document": "资源组相关配置", + "members": [ + { + "disabled": false, + "document": "资源组名称\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test1", + "member": "string", + "name": "WorkloadGroupName", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "CPU权重\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "10", + "member": "int64", + "name": "CpuShare", + "output_required": false, + "required": false, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "内存限制,所有资源组的内存限制值之和应该小于等于100\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "20", + "member": "int64", + "name": "MemoryLimit", + "output_required": false, + "required": false, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "是否允许超配分配\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "false", + "member": "bool", + "name": "EnableMemoryOverCommit", + "output_required": false, + "required": false, + "type": "bool", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "cpu硬限制\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "30%", + "member": "string", + "name": "CpuHardLimit", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "both" + }, + "ZoneInfo": { + "document": "可用区描述信息", + "members": [ + { + "disabled": false, + "document": "可用区名称,例如\"ap-guangzhou-1\"", + "example": "无", + "member": "string", + "name": "Name", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "可用区描述信息,例如“广州一区”", + "example": "无", + "member": "string", + "name": "Desc", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "可用区唯一标记", + "example": "无", + "member": "int64", + "name": "ZoneId", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "Encryptid\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "int64", + "name": "Encrypt", + "output_required": false, + "type": "int", + "value_allowed_null": true + } + ], + "usage": "out" } }, "version": "1.0" diff --git a/tccli/services/cdwdoris/v20211228/examples.json b/tccli/services/cdwdoris/v20211228/examples.json index 0448236e9d..5a71854347 100644 --- a/tccli/services/cdwdoris/v20211228/examples.json +++ b/tccli/services/cdwdoris/v20211228/examples.json @@ -8,6 +8,22 @@ "title": "集群创建示例" } ], + "CreateWorkloadGroup": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateWorkloadGroup\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdwdoris-xxx\",\n \"WorkloadGroup\": {\n \"WorkloadGroupName\": \"test\",\n \"CpuShare\": 10,\n \"MemoryLimit\": 20,\n \"EnableMemoryOverCommit\": true\n }\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}", + "title": "创建资源组" + } + ], + "DeleteWorkloadGroup": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteWorkloadGroup\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdwdoris-xxx\",\n \"WorkloadGroupName\": \"test\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}", + "title": "删除资源组" + } + ], "DescribeClusterConfigs": [ { "document": "在xml方式下修改配置文件内容时,获取集群配置文件内容", @@ -32,6 +48,22 @@ "title": "DescribeDatabaseAuditRecords" } ], + "DescribeFederationToken": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFederationToken\n<公共请求参数>\n\n{}", + "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}", + "title": "获取联合临时密钥" + } + ], + "DescribeGoodsDetail": [ + { + "document": "生成计费相关接口的GoodsDetail结构", + "input": "https://cdwdoris.tencentcloudapi.com/\n?Action=DescribeGoodsDetail\n&Zone=ap-chongqing-1\n&HaFlag=true\n&UserVPCId=vpc-xxx\n&UserSubnetId=subnet-xxxx\n&ProductVersion=20.7.2.30\n&Case=CREATE\n&ChargeProperties.ChargeType=\"PREPAID\"\n&ChargeProperties.RenewFlag=1\n&ChargeProperties.TimeSpan=1\n&ChargeProperties.TimeUnit=m\n&<公共请求参数>", + "output": "{\n \"Response\": {\n \"Type\": \"sp_cdwch_standard\",\n \"GoodsCategoryId\": 1,\n \"GoodsDetail\": \"{\\\"context\\\":{\\\"AppID\\\":1258469122,\\\"AutoRenewFlag\\\":0,\\\"Case\\\":\\\"CREATE\\\",\\\"Channel\\\":0,\\\"ChargeProperties\\\":{\\\"ChargeType\\\":\\\"PREPAID\\\",\\\"RenewFlag\\\":1,\\\"TimeSpan\\\":1,\\\"TimeUnit\\\":\\\"m\\\"},\\\"Components\\\":[\\\"clickhouse-20.7.2.30\\\",\\\"zookeeper-3.4.9\\\"],\\\"DealName\\\":\\\"\\\",\\\"EMRInstanceID\\\":\\\"\\\",\\\"EMRInstanceNo\\\":0,\\\"ExpiredTime\\\":\\\"\\\",\\\"HAInstance\\\":true,\\\"ImageID\\\":\\\"\\\",\\\"InstanceName\\\":\\\"\\\",\\\"InstanceType\\\":\\\"\\\",\\\"ModifyConfigItems\\\":null,\\\"OperateUin\\\":\\\"\\\",\\\"Password\\\":\\\"\\\",\\\"ProductID\\\":0,\\\"Region\\\":\\\"ap-guangzhou\\\",\\\"RenewPeriod\\\":0,\\\"ResourceAppID\\\":0,\\\"ResourceOperateUin\\\":\\\"\\\",\\\"ResourceUin\\\":\\\"\\\",\\\"Resources\\\":[{\\\"Count\\\":2,\\\"DiskSpec\\\":{\\\"DiskCount\\\":0,\\\"DiskSize\\\":0,\\\"DiskType\\\":\\\"\\\"},\\\"SpecName\\\":\\\"CVM.S2\\\",\\\"Type\\\":\\\"DATA\\\"},{\\\"Count\\\":1,\\\"DiskSpec\\\":{\\\"DiskCount\\\":0,\\\"DiskSize\\\":0,\\\"DiskType\\\":\\\"\\\"},\\\"SpecName\\\":\\\"CVM.S2\\\",\\\"Type\\\":\\\"COMMON\\\"}],\\\"SecurityGroupID\\\":\\\"\\\",\\\"ServiceName\\\":\\\"ClickHouse\\\",\\\"StackID\\\":\\\"\\\",\\\"Tags\\\":{\\\"ResourceType\\\":\\\"\\\",\\\"Tags\\\":null},\\\"TimeSpan\\\":1,\\\"TimeUnit\\\":\\\"m\\\",\\\"Topology\\\":\\\"\\\",\\\"TraceID\\\":\\\"trace-vudbhcyqe15awen3\\\",\\\"Uin\\\":\\\"100010640219\\\",\\\"UserSubnetID\\\":\\\"subnet-xx111\\\",\\\"UserVPCID\\\":\\\"vpc-xxx\\\",\\\"VIPType\\\":0,\\\"Version\\\":\\\"20.7.2.30\\\",\\\"Zone\\\":\\\"ap-guangzhou-4\\\",\\\"instanceId\\\":\\\"cdwch-bbi1k4he\\\",\\\"modifySpec\\\":null},\\\"curDeadline\\\":\\\"\\\",\\\"goodsNum\\\":1,\\\"pid\\\":123,\\\"productCode\\\":\\\"p_cdwch\\\",\\\"productInfo\\\":{\\\"可用区\\\":\\\"ap-guangzhou-4\\\",\\\"地域\\\":\\\"ap-guangzhou\\\",\\\"集群\\\":\\\"cdwch-bbi1k4he\\\"},\\\"sa2_cpu2_mem4\\\":\\\"3\\\",\\\"subProductCode\\\":\\\"p_sub_iaas\\\",\\\"timeSpan\\\":1,\\\"timeUnit\\\":\\\"m\\\"}\",\n \"GoodsNum\": 1,\n \"PayMode\": 1,\n \"RegionId\": 1,\n \"ZoneId\": 100004,\n \"ResourceId\": \"cdwch-bbi1k4he\",\n \"RequestId\": \"xxx-xxx-xxx-xxx\"\n }\n}", + "title": "生成GoodsDetail" + } + ], "DescribeInstance": [ { "document": "根据集群ID查询某个集群的具体信息", @@ -70,6 +102,14 @@ "title": "获取集群状态" } ], + "DescribeInstanceUsedSubnets": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstanceUsedSubnets\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}", + "output": "{\n \"Response\": {\n \"VpcId\": \"abc\",\n \"UsedSubnets\": [\n \"abc\"\n ],\n \"RequestId\": \"abc\"\n }\n}", + "title": "获取集群已使用子网信息" + } + ], "DescribeInstances": [ { "document": "获取某个用户下所有的集群列表信息", @@ -78,6 +118,30 @@ "title": "获取实例列表" } ], + "DescribeRegionZone": [ + { + "document": "购买页获取地域及可用区列表、内核版本、网络规则等", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRegionZone\n<公共请求参数>\n\n{}", + "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"Name\": \"abc\",\n \"Desc\": \"abc\",\n \"Regions\": [\n {\n \"Name\": \"abc\",\n \"Desc\": \"abc\",\n \"RegionId\": 0,\n \"Zones\": [\n {\n \"Name\": \"abc\",\n \"Desc\": \"abc\",\n \"ZoneId\": 0,\n \"Encrypt\": 0\n }\n ],\n \"Count\": 0,\n \"IsInternationalSite\": 1,\n \"Bucket\": \"abc\"\n }\n ]\n }\n ],\n \"Versions\": [\n \"abc\"\n ],\n \"VpcRule\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}", + "title": "购买页获取地域及可用区列表" + } + ], + "DescribeReplicaVersion": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReplicaVersion\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\"\n}", + "output": "{\n \"Response\": {\n \"ReplicaFlagItem\": {\n \"ReplicaFlag\": 0,\n \"ErrorMsg\": \"xx\"\n },\n \"RequestId\": \"xx\"\n }\n}", + "title": "DescribeReplicaVersion" + } + ], + "DescribeRestoreTaskDetail": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRestoreTaskDetail\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"BackUpJobId\": 0\n}", + "output": "{\n \"Response\": {\n \"RestoreStatus\": [\n {\n \"Status\": \"xx\",\n \"FinishedTime\": \"xx\",\n \"MetaPreparedTime\": \"xx\",\n \"RestoreObjects\": \"xx\",\n \"Timestamp\": \"xx\",\n \"ReplicaAllocation\": \"xx\",\n \"TaskErrMsg\": \"xx\",\n \"JobId\": 0,\n \"CreateTime\": \"xx\",\n \"State\": \"xx\",\n \"SnapshotFinishedTime\": \"xx\",\n \"Timeout\": 0,\n \"DownloadFinishedTime\": \"xx\",\n \"UnfinishedTasks\": \"xx\",\n \"Progress\": \"xx\",\n \"Label\": \"xx\",\n \"ReplicationNum\": \"xx\",\n \"DbName\": \"xx\",\n \"AllowLoad\": true\n }\n ],\n \"RequestId\": \"xx\",\n \"ErrorMsg\": \"xx\"\n }\n}", + "title": "示例" + } + ], "DescribeSlowQueryRecords": [ { "document": "慢查询", @@ -94,6 +158,30 @@ "title": "DescribeSlowQueryRecordsDownload" } ], + "DescribeSqlApis": [ + { + "document": "查询ck集群信息", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSqlApis\n<公共请求参数>\n\n{}", + "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}", + "title": "查询ck集群信息" + } + ], + "DescribeUserBindWorkloadGroup": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserBindWorkloadGroup\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdwdoris-xxx\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"abc\",\n \"UserBindInfos\": [\n {\n \"UserName\": \"test\",\n \"WorkloadGroupName\": \"g1\"\n },\n {\n \"UserName\": \"admin\",\n \"WorkloadGroupName\": \"normal\"\n }\n ]\n }\n}", + "title": "获取当前集群各用户绑定的资源信息" + } + ], + "DescribeWorkloadGroup": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeWorkloadGroup\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}", + "output": "{\n \"Response\": {\n \"WorkloadGroups\": [\n {\n \"WorkloadGroupName\": \"abc\",\n \"CpuShare\": 10,\n \"MemoryLimit\": 10,\n \"EnableMemoryOverCommit\": true\n }\n ],\n \"Status\": \"abc\",\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}", + "title": "获取资源组信息" + } + ], "DestroyInstance": [ { "document": "", @@ -102,6 +190,14 @@ "title": "集群销毁示例" } ], + "FitClsLog": [ + { + "document": "在集群配置页面修改集群接口", + "input": "https://cdwdoris.tencentcloudapi.com/\n?Action=FitClsLog\n&InstanceId=cdwch-xxxx\n&ClsLogSetId=xxxx\n&<公共请求参数>", + "output": "{\n \"Response\": {\n \"RequestId\": \"xxx-xxx\",\n \"FlowId\": 0,\n \"ErrorMsg\": \"\"\n }\n}", + "title": "修改集群配置接口" + } + ], "ModifyInstance": [ { "document": "用户修改实例名称", @@ -110,6 +206,62 @@ "title": "修改实例信息" } ], + "ModifyInstanceKeyValConfigs": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstanceKeyValConfigs\n<公共请求参数>\n\n{\n \"InstanceId\": \"123\",\n \"DelItems\": [\n {\n \"ConfKey\": \"123\",\n \"ConfValue\": \"123\"\n }\n ],\n \"FileName\": \"123\",\n \"UpdateItems\": [\n {\n \"ConfKey\": \"123\",\n \"ConfValue\": \"123\"\n }\n ],\n \"Message\": \"123\",\n \"AddItems\": [\n {\n \"ConfKey\": \"123\",\n \"ConfValue\": \"123\"\n }\n ]\n}", + "output": "{\n \"Response\": {\n \"ErrorMsg\": \"123\",\n \"RequestId\": \"123\",\n \"FlowId\": 0\n }\n}", + "title": "示例" + } + ], + "ModifySecurityGroups": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityGroups\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"OldSecurityGroupIds\": [\n \"abc\"\n ],\n \"ModifySecurityGroupIds\": [\n \"abc\"\n ]\n}", + "output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}", + "title": "更改安全组" + } + ], + "ModifyUserBindWorkloadGroup": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyUserBindWorkloadGroup\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"BindUsers\": [\n {\n \"UserName\": \"test\",\n \"Host\": \"%\"\n },\n {\n \"UserName\": \"test\",\n \"Host\": \"127.0.0.1\"\n }\n ],\n \"OldWorkloadGroupName\": \"abc\",\n \"NewWorkloadGroupName\": \"abc1\"\n}", + "output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}", + "title": "修改用户绑定的资源组" + } + ], + "ModifyUserPrivilegesV3": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyUserPrivilegesV3\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdwdoris-xx\",\n \"UserName\": \"test\",\n \"UserPrivileges\": {\n \"IsSetGlobalCatalog\": true\n }\n}", + "output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"InstanceId\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}", + "title": "设置全局catalog权限" + } + ], + "ModifyWorkloadGroup": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyWorkloadGroup\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"WorkloadGroup\": {\n \"WorkloadGroupName\": \"abc\",\n \"CpuShare\": 10,\n \"MemoryLimit\": 10,\n \"EnableMemoryOverCommit\": true\n }\n}", + "output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}", + "title": "修改资源组信息" + } + ], + "ModifyWorkloadGroupStatus": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyWorkloadGroupStatus\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"OperationType\": \"open\"\n}", + "output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}", + "title": "开启或关闭资源组" + } + ], + "ReduceInstance": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ReduceInstance\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdwdoris-xqewrqx\",\n \"Type\": \"MASTER\",\n \"DelHosts\": [\n \"10.0.1.12\"\n ],\n \"HaType\": 1\n}", + "output": "{\n \"Response\": {\n \"FlowId\": \"1231\",\n \"InstanceId\": \"cdwdoris-xqewrqx\",\n \"ErrorMsg\": \"\",\n \"RequestId\": \"xasdfkqe2-a12q29-axdfas\"\n }\n}", + "title": "缩容API" + } + ], "ResizeDisk": [ { "document": "", diff --git a/tccli/services/csip/v20221121/api.json b/tccli/services/csip/v20221121/api.json index b2e6dc7b92..6b97c991ab 100644 --- a/tccli/services/csip/v20221121/api.json +++ b/tccli/services/csip/v20221121/api.json @@ -5374,7 +5374,7 @@ { "disabled": false, "document": "过滤内容", - "example": "无", + "example": "{}", "member": "Filter", "name": "Filter", "required": false, @@ -5383,7 +5383,7 @@ { "disabled": false, "document": "资产标签", - "example": "无", + "example": "[]", "member": "AssetTag", "name": "Tags", "required": false, diff --git a/tccli/services/dlc/v20210125/api.json b/tccli/services/dlc/v20210125/api.json index e20f3508db..7b417044a7 100644 --- a/tccli/services/dlc/v20210125/api.json +++ b/tccli/services/dlc/v20210125/api.json @@ -631,7 +631,7 @@ "status": "online" }, "DescribeTaskResult": { - "document": "查询任务结果", + "document": "查询任务结果,仅支持30天以内的任务查询结果,且返回数据大小超过近50M会进行截断。", "input": "DescribeTaskResultRequest", "name": "查询任务结果(用于: SparkSQL、PrestoSQL、Spark作业任务)", "output": "DescribeTaskResultResponse", @@ -9289,6 +9289,15 @@ "name": "Offset", "required": false, "type": "int" + }, + { + "disabled": false, + "document": "过滤类型,支持如下的过滤类型,传参Name应为以下其中一个, engine-generation - String(引擎时代: supersql:supersql引擎,native:标准引擎):notebook-keyword - String(数据引擎名称或sessionid或sessionname的模糊搜索)", + "example": "无", + "member": "Filter", + "name": "Filters", + "required": false, + "type": "list" } ], "type": "object" @@ -10515,7 +10524,7 @@ "members": [ { "disabled": false, - "document": "任务唯一ID", + "document": "任务唯一ID,仅支持30天内的任务", "example": "fdd9c5fa21ca11eca6fb5254006c64af", "member": "string", "name": "TaskId", @@ -10897,6 +10906,24 @@ "name": "DataEngineConfigCommand", "required": true, "type": "string" + }, + { + "disabled": false, + "document": "是否使用托管存储作为结果存储", + "example": "false", + "member": "bool", + "name": "UseLakeFs", + "required": false, + "type": "bool" + }, + { + "disabled": false, + "document": "用户自定义结果存储路径", + "example": "cosn://test-bucket/dir", + "member": "string", + "name": "CustomResultPath", + "required": false, + "type": "string" } ], "type": "object" @@ -10910,6 +10937,7 @@ "example": "[xxx]", "member": "DataEngineBasicInfo", "name": "DataEngineBasicInfos", + "output_required": true, "type": "list", "value_allowed_null": false }, @@ -10919,6 +10947,7 @@ "example": "1", "member": "int64", "name": "TotalCount", + "output_required": true, "type": "int", "value_allowed_null": false }, diff --git a/tccli/services/domain/v20180808/api.json b/tccli/services/domain/v20180808/api.json index c8ba66e1d8..6522b0f31a 100644 --- a/tccli/services/domain/v20180808/api.json +++ b/tccli/services/domain/v20180808/api.json @@ -1856,7 +1856,7 @@ "members": [ { "disabled": false, - "document": "业务ID", + "document": "业务ID,通过接口DescribeBiddingList返回结果中获取", "example": "P0011702977661022561", "member": "string", "name": "BusinessId", diff --git a/tccli/services/ess/v20201111/api.json b/tccli/services/ess/v20201111/api.json index e343f93e1c..791562877c 100644 --- a/tccli/services/ess/v20201111/api.json +++ b/tccli/services/ess/v20201111/api.json @@ -99,7 +99,7 @@ "status": "online" }, "CreateFlowApprovers": { - "document": "适用场景: 当通过模板或文件发起合同时,若未指定企业签署人信息,则可调用此接口补充或添加签署人。同一签署人可补充多个员工作为或签署人,最终实际签署人取决于谁先领取合同完成签署。\n\n限制条件:\n\n1.本企业(发起方企业)企业微信签署人仅支持通过企业微信UserId或姓名+手机号进行补充。\n2.本企业(发起方企业)非企业微信签署人仅支持通过姓名+手机号进行补充。\n3.他方企业仅支持通过姓名+手机号进行补充。\n4.个人签署人支持通过姓名+手机号进行补充,补充动态签署人时:若个人用户已完成实名,则可通过姓名+证件号码进行补充。", + "document": "**适用场景 :**\n\n当通过模板或文件发起合同时, 签署人不制定, 等合同发起后再指定 可以用下面2种方案\n\n1. 或签合同: 若未指定企业签署人信息(只指定企业的名字),合同变成或签合同(个人签署方不支持或签合同)。需调用此接口补充或添加签署人。或签签署人在控制台上的展示样式如下(会带有或签标识):\n![image](https://qcloudimg.tencent-cloud.cn/raw/b2715f0236faee807cfc0521f93cf01b.png)\n2. 动态签署人合同: 若未指定具体签署人的信息,则合同变成动态签署人合同。需调用此接口补充或添加签署人。可以参考文档 [动态签署人合同](https://qian.tencent.com/developers/company/dynamic_signer/) 。动态签署人在控制台上的展示样式如下:\n![image](https://qcloudimg.tencent-cloud.cn/raw/2729477978e020c3bbb4d2e767bb78eb.png)\n\n实际签署人需要通过[获取跳转至腾讯电子签小程序的签署链接](https://qian.tencent.com/developers/companyApis/startFlows/CreateSchemeUrl/)生成的链接进入小程序,领取合同并签署。同一签署环节可补充多个员工作为或签署人,最终实际签署人取决于谁先领取合同完成签署。\n\n\n**限制条件**:\n\n1.本企业(发起方企业)企业微信签署人仅支持通过企业微信UserId或姓名+手机号进行补充。\n\n2.本企业(发起方企业)非企业微信签署人仅支持通过姓名+手机号进行补充。\n\n3.他方企业仅支持通过姓名+手机号进行补充。\n\n4.个人签署人支持通过姓名+手机号进行补充(若个人用户已完成实名,动态签署人合同也可以可通过姓名+证件号码进行补充)\n\n\n**整体流程如下图:**\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/29a0fba0ceebf9227849459947384862.png)", "input": "CreateFlowApproversRequest", "name": "补充签署流程签署人信息", "output": "CreateFlowApproversResponse", @@ -2884,7 +2884,7 @@ }, { "disabled": false, - "document": "补充企业签署人信息。\n\n- 如果发起方指定的补充签署人是企业微信签署人(ApproverSource=WEWORKAPP),则需要提供企业微信UserId进行补充;\n\n- 如果不指定,则使用姓名和手机号进行补充。", + "document": "补充签署环节签署候选人信息。\n\n注:` 如果发起方指定的补充签署人是企业微信签署人(ApproverSource=WEWORKAPP),则需要提供企业微信UserId进行补充; 如果不指定,则使用姓名和手机号进行补充。`", "example": "无", "member": "FillApproverInfo", "name": "Approvers", @@ -2902,7 +2902,7 @@ }, { "disabled": false, - "document": "签署人信息补充方式\n\n