调整云原生集群Pod数量
最近更新时间: 2026-09-17 00:05:51
1. 接口描述
接口请求域名: tbdsnew.api3.fincloud.tencent.cn。
调整云原生集群Pod数量
默认接口请求频率限制:20次/秒。
接口更新时间:2025-09-12 15:34:11。
接口既验签名又鉴权。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数。
| 参数名称 | 必选 | 允许NULL | 类型 | 描述 |
|---|---|---|---|---|
| Action | 是 | 否 | String | 公共参数,本接口取值:ModifyPodNum |
| Version | 是 | 否 | String | 公共参数,本接口取值:2019-01-03 |
| Region | 是 | 否 | String | 公共参数,地域信息可通过DescribeRegions接口查看产品支持的地域列表 |
| InstanceId | 是 | 否 | String | 集群Id 示例值: tbds-aqy2cvg6 |
| ServiceGroup | 是 | 否 | Int64 | 服务编号 ,可从DescribeServiceGroups接口获取 示例值: 16 |
| ServiceType | 是 | 否 | Int64 | 角色编号,可从DescribeServiceGroups接口获取 示例值: 28 |
| PodNum | 是 | 否 | Int64 | 期望Pod数量 示例值: 3 |
3. 输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| InstanceId | String | 集群Id 示例值: 1 |
| FlowId | Int64 | 流程Id 示例值: 1 |
| RequestId | String | 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 |
4. 错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码。
| 错误码 | 描述 |
|---|---|
| ResourceUnavailable.NotSupportClusterType | 资源不可用。 |
| ResourceNotFound.ServiceGroupNotFound | 无法找到该服务组件。 |
| InvalidParameter.InvalidServiceType | 参数错误。 |
| InternalError | 内部错误。 |
| ResourceNotFound.ClusterNotFound | 无法找到该实例。 |
| InvalidParameter.InvalidProductVersion | 不合法的产品版本。 |
| ResourceInUse.InstanceInProcess | 实例在流程中。 |
| ResourceNotFound.InstanceNotFound | 无法找到该实例。 |
5. 示例
示例1 调整Pod数量
输入示例
POST / HTTP/1.1
Host: tbdsnew.api3.{conf.main_domain}
Content-Type: application/json
X-TC-Action: ModifyPodNum
<公共请求参数>
{
"ServiceType": 28,
"InstanceId": "tbds-aqy2cvg6",
"ServiceGroup": 16,
"PodNum": 3
}
输出示例
{
"Response": {
"FlowId": 805,
"InstanceId": "tbds-aqy2cvg6",
"RequestId": "3f83bed1-ea1a-4e70-92a3-6c6025c8e94f"
}
}