调用ListNodesNoPaging不分页查询指定集群中的节点列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ListNodesNoPaging

系统规定参数。取值:ListNodesNoPaging

ClusterId String ehpc-hz-FYUr32****

待查询的集群ID。

您可以通过调用ListClusters获取集群ID。

Role String Compute

节点类型,取值范围:

  • Manager:管控节点
  • Login:登录节点
  • Compute:计算节点

默认值:Compute

HostName String Compute0

节点名称,支持模糊查询,支持MySQL的正则表达式。

Sequence String Forward

节点列表排序方式。取值范围:

  • Forward:按节点的加入时间正序排序。
  • Backward:按节点的加入时间逆序排序。

默认值:Forward

返回数据

名称 类型 示例值 描述
Nodes Array of NodeInfo

节点列表信息。

NodeInfo
HostName String compute0

节点名称。

Id String i-bp13p7vlcb1uihfv****

节点ID。

ImageId String centos_7_02_64_20G_alibase_20170818****

镜像ID。

InstanceType String ecs.n1.tiny

节点规格。

Status String untracking

节点状态。可能值:

  • uninit:安装中
  • exception:异常
  • running:运行中
  • initing:初始化中
  • releasing:释放中
  • untracking:未加入集群
  • stopped:已停止
RequestId String 04F0F334-1335-436C-A1D7-6C044FE7****

请求ID。

示例

请求示例

https://ehpc.cn-hangzhou.aliyuncs.com/?Action=ListNodesNoPaging
&ClusterId=ehpc-hz-FYUr32****
&<公共请求参数>

正常返回示例

XML格式

<ListNodesNoPagingResponse>
  <RequestId>04F0F334-1335-436C-A1D7-6C044FE7****</RequestId>
  <Nodes>
        <NodeInfo>
              <Status>untracking</Status>
              <ImageId>centos_7_02_64_20G_alibase_20170818****</ImageId>
              <Id>i-bp13p7vlcb1uihfv****</Id>
              <InstanceType>ecs.n1.tiny</InstanceType>
              <HostName>compute0</HostName>
        </NodeInfo>
  </Nodes>
</ListNodesNoPagingResponse>

JSON格式

{
    "RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****",
    "Nodes": {
        "NodeInfo": {
            "Status": "untracking",
            "ImageId": "centos_7_02_64_20G_alibase_20170818****",
            "Id": "i-bp13p7vlcb1uihfv****",
            "InstanceType": "ecs.n1.tiny",
            "HostName": "compute0"
        }
    }
}

错误码

HttpCode 错误码 错误信息 描述
400 InvalidParams The specified parameter %s is invalid. 无效的参数: %s
407 NotAuthorized You are not authorized by RAM for this request. 此请求未获得RAM授权
404 ClusterNotFound The specified cluster does not exist. 指定的集群不存在,请您检查该参数是否正确。
406 EcsError An error occurred while calling the ECS API operation. ECS API调用出错
406 DbError A database service error occurred. 数据库请求失败
406 RedisError A Redis service error occurred. Redis请求失败
404 ManagerNotFound The manager nodes do not exist or their status is abnormal. 管理节点不存在或状态异常。
406 AgentError The agent service request failed. 代理请求失败
406 AliyunError An Alibaba Cloud product error occurred. 阿里云产品错误
500 UnknownError An unknown error occurred. 未知错误
400 NotEnabled You have not enabled this service 您的账户还未开通此服务
503 ServiceUnavailable The request has failed due to a temporary failure of the server 请求失败,服务暂时不可用

访问错误中心查看更多错误码。