查询JAVA分析GC视图中的服务和角色列表
最近更新时间: 2026-09-17 00:05:46
1. 接口描述
接口请求域名: tbdsnew.api3.fincloud.tencent.cn。
查询JAVA分析GC视图中的服务和角色列表
默认接口请求频率限制:20次/秒。
接口更新时间:2024-11-29 12:16:35。
接口既验签名又鉴权。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数。
| 参数名称 | 必选 | 允许NULL | 类型 | 描述 |
|---|---|---|---|---|
| Action | 是 | 否 | String | 公共参数,本接口取值:DescribeGcServiceRole |
| Version | 是 | 否 | String | 公共参数,本接口取值:2019-01-03 |
| Region | 是 | 否 | String | 公共参数,地域信息可通过DescribeRegions接口查看产品支持的地域列表 |
| InstanceId | 是 | 否 | String | 集群实例ID 示例值: tbds-1vzudj86 |
| ServiceName | 否 | 否 | String | 服务名称,服务名称需要大写,"HDFS","SPARK" 示例值: 1 |
3. 输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| ServiceRoles | Array of ServiceRole | ServiceRole数组 注意:此字段可能返回 null,表示取不到有效值。 示例值:查看 |
| RequestId | String | 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 |
4. 错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码。
| 错误码 | 描述 |
|---|---|
| InternalError.EMRCCException | EMRCC异常。 |
| ResourceNotFound.MetricsMetaNotFound | 无法找到监控元数据。 |
| ResourceNotFound.ClusterNotFound | 无法找到该实例。 |
| InternalError | 内部错误。 |
5. 示例
示例1 查询集群GC的服务和角色
输入示例
POST / HTTP/1.1
Host: tbdsnew.api3.{conf.main_domain}
Content-Type: application/json
X-TC-Action: DescribeGcServiceRole
<公共请求参数>
{
"InstanceId": "tbds-1vzudj86"
}
输出示例
{
"Response": {
"RequestId": "d0c19531-f9da-4033-93d9-aa363b295d32",
"ServiceRoles": [
{
"Service": "spark",
"Roles": [
"SparkJobHistoryServer"
]
},
{
"Service": "hbase",
"Roles": [
"RegionServer",
"HMaster",
"HbaseThrift"
]
},
{
"Service": "yarn",
"Roles": [
"TimeLineServer",
"JobHistoryServer",
"NodeManager",
"ResourceManager"
]
},
{
"Service": "knox",
"Roles": [
"gateway"
]
},
{
"Service": "hdfs",
"Roles": [
"NameNode",
"ZKFailoverController",
"DataNode",
"JournalNode"
]
},
{
"Service": "kafka",
"Roles": [
"KafkaManager",
"Kafka"
]
},
{
"Service": "hive",
"Roles": [
"HiveServer2",
"HiveMetaStore",
"HiveWebHcat"
]
},
{
"Service": "kyuubi",
"Roles": [
"KyuubiServer"
]
},
{
"Service": "trino",
"Roles": [
"Trino-Coordinator",
"Trino-Worker"
]
}
]
}
}