Queries the ECS instance types recommended by Elastic High Performance Computing (E-HPC).
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListPreferredEcsTypes |
The operation that you want to perform. Set the value to ListPreferredEcsTypes |
ZoneId | String | Yes | cn-hangzhou-b |
The ID of the zone. |
SpotStrategy | String | No | NoSpot |
The bidding policy of the ECS instance. Valid values:
|
InstanceChargeType | String | No | PostPaid |
The billing method of the ECS instance. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE73368 |
The ID of the request. |
Series | Array of SeriesInfo |
The list of recommended ECS instances. Each SeriesInfo element contains the recommended ECS instance types for various nodes of the E-HPC cluster. |
|
SeriesInfo | |||
Roles | Struct |
The recommended ECS instance types for various nodes of the E-HPC cluster. |
|
Compute | List | [ "ecs.sn1ne.2xlarge", "ecs.sn1ne.4xlarge", "ecs.n1.tiny" ] |
The list of recommended ECS instance types for compute nodes. |
Login | List | [ "ecs.sn1ne.2xlarge", "ecs.sn1ne.4xlarge", "ecs.n1.tiny" ] |
The list of recommended ECS instance types for logon nodes. |
Manager | List | [ "ecs.sn1ne.2xlarge", "ecs.sn1ne.4xlarge", "ecs.n1.tiny" ] |
The list of recommended ECS instance types for management nodes. |
SeriesId | String | All |
The ID of the ECS instance series. Valid values:
|
SeriesName | String | SeriesAll |
The name of the instance series. Valid values:
|
SupportSpotInstance | Boolean | true |
Indicates whether spot instances are supported. |
Examples
Sample requests
https://ehpc.cn-hangzhou.aliyuncs.com/?Action=ListPreferredEcsTypes
&ZoneId=cn-hangzhou-b
&<Common request parameters>
Sample success responses
XML
format
<ListPreferredEcsTypesResponse>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
<SupportSpotInstance>true</SupportSpotInstance>
<Series>
<SeriesInfo>
<SeriesName>SeriesAll</SeriesName>
<SeriesId>All</SeriesId>
<Roles>
<Login>
<InstanceTypeId>ecs.sn1ne.2xlarge</InstanceTypeId>
<InstanceTypeId>ecs.sn1ne.4xlarge</InstanceTypeId>
<InstanceTypeId>ecs.n1.tiny</InstanceTypeId>
</Login>
<Manager>
<InstanceTypeId>ecs.sn1ne.2xlarge</InstanceTypeId>
<InstanceTypeId>ecs.sn1ne.4xlarge</InstanceTypeId>
<InstanceTypeId>ecs.n1.tiny</InstanceTypeId>
</Manager>
<Compute>
<InstanceTypeId>ecs.sn1ne.2xlarge</InstanceTypeId>
<InstanceTypeId>ecs.sn1ne.4xlarge</InstanceTypeId>
<InstanceTypeId>ecs.n1.tiny</InstanceTypeId>
</Compute>
</Roles>
</SeriesInfo>
</Series>
</ListPreferredEcsTypesResponse>
JSON
format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"SupportSpotInstance": true,
"Series": {
"SeriesInfo": [
{
"SeriesName": "SeriesAll",
"SeriesId": "All",
"Roles": {
"Login": {
"InstanceTypeId": [ "ecs.sn1ne.2xlarge", "ecs.sn1ne.4xlarge", "ecs.n1.tiny" ]
},
"Manager": {
"InstanceTypeId": [ "ecs.sn1ne.2xlarge", "ecs.sn1ne.4xlarge", "ecs.n1.tiny" ]
},
"Compute": {
"InstanceTypeId": [ "ecs.sn1ne.2xlarge", "ecs.sn1ne.4xlarge", "ecs.n1.tiny" ]
}
}
}
]
}
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | The error message returned because the request has failed. The server is temporarily unavailable. |
For a list of error codes, visit the API Error Center.