Queries the nodes in a cluster without pagination.
Debugging
Request parameter
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListNodesNoPaging |
The operation that you want to perform. Set the value to ListNodesNoPaging. |
ClusterId | String | Yes | ehpc-hz-FYUr32**** |
The ID of the cluster. You can call the ListClusters operation to query the cluster ID. |
Role | String | No | Compute |
The type of the node. Valid values:
Default value: Compute |
HostName | String | No | Compute0 |
The name of the node. You can perform a fuzzy search. MySQL regular expressions are supported. |
Sequence | String | No | Forward |
The sorting method of the node list. Valid values:
Default value: Forward |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Nodes | Array of NodeInfo |
The information about nodes. |
|
NodeInfo | |||
HostName | String | compute0 |
The name of the node. |
Id | String | i-bp13p7vlcb1uihfv**** |
The ID of the node. |
ImageId | String | centos_7_02_64_20G_alibase_20170818**** |
The ID of the image. |
InstanceType | String | ecs.n1.tiny |
The instance type of the node. |
Status | String | untracking |
The status of the node. Valid values:
|
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE7**** |
The ID of the request. |
Examples
Sample requests
https://ehpc.cn-hangzhou.aliyuncs.com/?Action=ListNodesNoPaging
&ClusterId=ehpc-hz-FYUr32****
&<Common request parameters>
Sample success responses
XML
format
<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
format
{
"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"
}
}
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParams | The specified parameter %s is invalid. | The error message returned because the following parameter is invalid: %s. |
407 | NotAuthorized | You are not authorized by RAM for this request. | The error message returned because you are not authorized by RAM for this request. |
404 | ClusterNotFound | The specified cluster does not exist. | The error message returned because the specified cluster does not exist. |
406 | EcsError | An error occurred while calling the ECS API operation. | The error message returned because the ECS API call has failed. |
406 | DbError | A database service error occurred. | The error message returned because the database request has failed. |
406 | RedisError | A Redis service error occurred. | The error message returned because the Redis request has failed. |
404 | ManagerNotFound | The manager nodes do not exist or their status is abnormal. | The error message returned because the management node does not exist or is not running as expected. |
406 | AgentError | The agent service request failed. | The error message returned because the proxy request has failed. |
406 | AliyunError | An Alibaba Cloud product error occurred. | The error message returned because the operation has failed to call another Alibaba Cloud service. |
500 | UnknownError | An unknown error occurred. | The error message returned because an unknown error has occurred. |
400 | NotEnabled | You have not enabled this service | The error message returned because the service has not been activated for your account. |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | The error message returned because the request has failed. The service is temporarily unavailable. |
For a list of error codes, visit the API Error Center.