Queries all Elastic High Performance Computing (E-HPC) clusters of the current account in each region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ehpc:ListClusters |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The number of the page to return. Pages start from page 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid values: 1 to 50. Default value: 10 |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
The number of entries returned per page. |
1 |
| RequestId |
string |
The ID of the request. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
| PageNumber |
integer |
The number of the returned page. |
1 |
| TotalCount |
integer |
The total number of returned entries. |
1 |
| Clusters |
object |
||
| ClusterInfoSimple |
array<object> |
The list of clusters. |
|
|
array<object> |
|||
| VpcId |
string |
The ID of the virtual private cloud (VPC). |
vpc-b3f3edefefeep0760yju**** |
| Status |
string |
The status of the cluster. Valid values:
|
running |
| CreateTime |
string |
The time when the instance was created. |
2020-10-30T07:39:20.000Z |
| IsComputeEss |
boolean |
Indicates whether a scaling group was enabled. Valid values:
|
false |
| ComputeSpotStrategy |
string |
The bidding method of the compute nodes. Valid values:
|
NoSpot |
| AccountType |
string |
The server type of the account. Valid values:
|
nis |
| Count |
integer |
The number of compute nodes in the cluster. |
3 |
| EhpcVersion |
string |
The version of E-HPC. |
1.0.0 |
| Description |
string |
The description of the cluster. |
clusterdescription |
| BaseOsTag |
string |
The operating system tag of the base image. The tag was used only by the management node. |
CentOS_7.2_64 |
| Name |
string |
The name of the cluster. |
test |
| ImageId |
string |
The ID of the image. |
wi_1607_x64_dtc_zh_40G_alibase**** |
| ComputeSpotPriceLimit |
number |
The maximum hourly price for the ECS instance under the compute node. The return value can be accurate to three decimal places. |
0.034 |
| SchedulerType |
string |
The type of the scheduler. Valid values:
|
pbs |
| DeployMode |
string |
The mode in which the cluster was deployed. Valid values:
|
Standard |
| NodeSuffix |
string |
The suffix of the node. |
name |
| ImageOwnerAlias |
string |
The type of the image. Valid values:
|
system |
| OsTag |
string |
The operating system tag of the image. |
CentOS_7.2_64 |
| NodePrefix |
string |
The prefix of the node. |
test |
| InstanceType |
string |
The instance type of the compute nodes. |
ecs.n1.tiny |
| RegionId |
string |
The ID of the region. |
cn-hangzhou |
| InstanceChargeType |
string |
The billing method of the nodes in the cluster. Valid values:
|
PostPaid |
| VSwitchId |
string |
The ID of the vSwitch. |
vsw-bp1lfcjbfb099rrjn**** |
| ZoneId |
string |
The ID of the zone. |
cn-hangzhou-c |
| LoginNodes |
string |
The list of logon nodes. |
{"Id": "i-bp13x4is8pvdhws7e****"} |
| Id |
string |
The ID of the cluster. |
ehpc-hz-jeJki6**** |
| Location |
string |
The location where the cluster was deployed. Valid values:
|
PublicCloud |
| ClientVersion |
string |
The version of the client. |
1.0.64 |
| ResourceGroupId |
string |
The resource group ID.You can call the ListResourceGroups operation to query the IDs of resource groups. |
rg-acfmxazb4ph**** |
| Managers |
object |
The list of management nodes. |
|
| OperatingCount |
integer |
The number of nodes that are being used in the queue. This includes those that are being initialized, installed, or released. |
1 |
| ExceptionCount |
integer |
The number of abnormal nodes. |
0 |
| StoppedCount |
integer |
The number of stopped nodes. |
0 |
| Total |
integer |
The total number of management nodes. |
2 |
| NormalCount |
integer |
The number of normal nodes. |
1 |
| Computes |
object |
The information about compute nodes. |
|
| OperatingCount |
integer |
The number of nodes that are being used in the queue. This includes those that are being initialized, installed, or released. |
1 |
| ExceptionCount |
integer |
The number of abnormal nodes. |
0 |
| StoppedCount |
integer |
The number of stopped nodes. |
0 |
| Total |
integer |
The total number of nodes. |
2 |
| NormalCount |
integer |
The number of normal nodes. |
1 |
| TotalResources |
object |
The statistics of all resources in the cluster. |
|
| Gpu |
integer |
The number of GPU cards. Unit: cards. |
0 |
| Cpu |
integer |
The number of CPU cores. Unit: cores. |
1 |
| Memory |
integer |
The memory size. Unit: MiB. |
1024 |
| UsedResources |
object |
The number of consumed resources in the cluster. |
|
| Gpu |
integer |
The number of GPU cards. Unit: cards. |
0 |
| Cpu |
integer |
The number of CPU cores. Unit: cores. |
1 |
| Memory |
integer |
The memory size. Unit: MiB. |
1024 |
| HasPlugin |
boolean |
Indicates whether plug-ins were used in the cluster. Valid values:
Default value: false |
false |
Examples
Success response
JSON format
{
"PageSize": 1,
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"PageNumber": 1,
"TotalCount": 1,
"Clusters": {
"ClusterInfoSimple": [
{
"VpcId": "vpc-b3f3edefefeep0760yju****",
"Status": "running",
"CreateTime": "2020-10-30T07:39:20.000Z",
"IsComputeEss": false,
"ComputeSpotStrategy": "NoSpot",
"AccountType": "nis",
"Count": 3,
"EhpcVersion": "1.0.0",
"Description": "clusterdescription",
"BaseOsTag": "CentOS_7.2_64",
"Name": "test",
"ImageId": "wi_1607_x64_dtc_zh_40G_alibase****",
"ComputeSpotPriceLimit": 0.034,
"SchedulerType": "pbs",
"DeployMode": "Standard",
"NodeSuffix": "name",
"ImageOwnerAlias": "system",
"OsTag": "CentOS_7.2_64",
"NodePrefix": "test",
"InstanceType": "ecs.n1.tiny",
"RegionId": "cn-hangzhou",
"InstanceChargeType": "PostPaid",
"VSwitchId": "vsw-bp1lfcjbfb099rrjn****",
"ZoneId": "cn-hangzhou-c",
"LoginNodes": "{\"Id\": \"i-bp13x4is8pvdhws7e****\"}",
"Id": "ehpc-hz-jeJki6****",
"Location": "PublicCloud",
"ClientVersion": "1.0.64",
"ResourceGroupId": "rg-acfmxazb4ph****",
"Managers": {
"OperatingCount": 1,
"ExceptionCount": 0,
"StoppedCount": 0,
"Total": 2,
"NormalCount": 1
},
"Computes": {
"OperatingCount": 1,
"ExceptionCount": 0,
"StoppedCount": 0,
"Total": 2,
"NormalCount": 1
},
"TotalResources": {
"Gpu": 0,
"Cpu": 1,
"Memory": 1024
},
"UsedResources": {
"Gpu": 0,
"Cpu": 1,
"Memory": 1024
},
"HasPlugin": false
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | The specified parameter %s is invalid. |
| 500 | UnknownError | An unknown error occurred. | An unknown error occurred. |
| 404 | ImageNotFound | The specified image does not exist. | The specified image does not exist. Please verify the parameter. |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | The request has failed due to a temporary failure of the server. |
| 406 | AgentError | The agent service request failed. | The cluster-side command failed to run. %s |
| 406 | DbError | A database service error occurred. | Database request failed. |
| 406 | AliyunError | An Alibaba Cloud product error occurred. | Alibaba Cloud product error. %s |
| 406 | EcsError | An error occurred while calling the ECS API operation. | ECS API call error. %s |
| 407 | NotAuthorized | You are not authorized by RAM for this request. | The request is not authorized by RAM. |
| 407 | EntityNotExist.Role | The role does not exist. | The role does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.