调用 DescribeInstanceNodes 接口,查询实例的成员节点详情,包括节点类型、运行状态、资源配置等信息
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeInstanceNodes | 要执行的操作,取值:DescribeInstanceNodes。 |
Version | String | 是 | 2023-01-01 | API的版本,取值:2023-01-01。 |
InstanceId | String | 否 |
| 需要查询节点信息的实例 ID。 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Nodes | Array of Object | -- | 实例节点列表,以及节点类型、运行状态、资源配置等信息。 |
POST https://open.volcengineapi.com/?Action=DescribeInstanceNodes&Version=2023-01-01 Content-Type: application/json X-Date: 20231003T104027Z Authorization: HMAC-SHA256 Credential=AKLTMjI2ODVlYzI3ZGY1NGU4ZjhjYWRjMTlmNTM5OTZ****/20231003/cn-beijing/ESCloud/request, SignedHeaders=content-type;host;x-date, Signature=88dd0a9ea555d8609ec83eb46054b52f6cd4f79b8d5094fa784c66fa3f2b**** { "InstanceId": "o-0080**iu98" }
{"ResponseMetadata":{"RequestId":"20240402104330041C92F537E**","Action":"DescribeInstanceNodes","Version":"2023-01-01","Service":"ESCloud","Region":"cn-guangzhou"},"Result":{"Nodes":[{"InstanceId":"o-00k04ha***","NodeName":"es-master-00k04***-0","NodeDisplayName":"es-master-0","Status":"Running","StartTime":"2024-04-01 18:09:16","RestartNumber":0,"IsMaster":true,"IsHot":true,"IsCoordinator":false,"IsWarm":false,"IsCold":false,"IsKibana":false,"HaveLog":true,"ResourceSpec":{"Description":"","DisplayName":"","Memory":4,"CPU":2},"StorageSpec":{"Description":"","DisplayName":"","MinSize":0,"MaxSize":0,"Type":"ESSD-PL0","Size":20}},{"InstanceId":"o-00k04h***","NodeName":"es-master-00k04ha***-1","NodeDisplayName":"es-master-1","Status":"Running","StartTime":"2024-04-01 18:09:16","RestartNumber":0,"IsMaster":true,"IsHot":true,"IsCoordinator":false,"IsWarm":false,"IsCold":false,"IsKibana":false,"HaveLog":true,"ResourceSpec":{"Description":"","DisplayName":"","Memory":4,"CPU":2},"StorageSpec":{"Description":"","DisplayName":"","MinSize":0,"MaxSize":0,"Type":"ESSD-PL0","Size":20}},{"InstanceId":"o-00k04ha***","NodeName":"es-master-00k04han***-2","NodeDisplayName":"es-master-2","Status":"Running","StartTime":"2024-04-01 18:09:16","RestartNumber":0,"IsMaster":true,"IsHot":true,"IsCoordinator":false,"IsWarm":false,"IsCold":false,"IsKibana":false,"HaveLog":true,"ResourceSpec":{"Description":"","DisplayName":"","Memory":4,"CPU":2},"StorageSpec":{"Description":"","DisplayName":"","MinSize":0,"MaxSize":0,"Type":"ESSD-PL0","Size":20}},{"InstanceId":"o-00k04ha***","NodeName":"kibana-00k04ha***","NodeDisplayName":"kibana","Status":"Running","StartTime":"2024-04-01 18:09:16","RestartNumber":0,"IsMaster":false,"IsHot":false,"IsCoordinator":false,"IsWarm":false,"IsCold":false,"IsKibana":true,"HaveLog":true,"ResourceSpec":{"Description":"","DisplayName":"","Memory":2,"CPU":1},"StorageSpec":{"Description":"","DisplayName":"","MinSize":0,"MaxSize":0,"Type":"","Size":0}}]}}
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
---|---|---|
200 | InternalServerError | 服务由于异常退出,无法完成接口请求操作 |
200 | IllegalParameter | 非法参数。可能是参数缺失,也可能是参数不符合接口要求 |
200 | Unauthorized | 用户无权限调用接口 |