Queries whether a specified instance type supports enabling and disabling hyper-threading.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetIfEcsTypeSupportHtConfig |
The operation that you want to perform. Set the value to GetIfEcsTypeSupportHtConfig |
InstanceType | String | Yes | ecs.g6.large |
The instance type of the ECS instance. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
DefaultHtEnabled | Boolean | true |
Indicates whether Hyper-Threading is enabled by default. Valid values:
|
InstanceType | String | ecs.g6.large |
The instance type of the ECS instance. |
RequestId | String | 80CA7A93-7291-4402-B63D-86DF334E0A1F |
The ID of the request. |
SupportHtConfig | Boolean | true |
Indicates whether hyper-threading is supported. Valid values:
|
Examples
Sample requests
https://ehpc.cn-hangzhou.aliyuncs.com/?Action=GetIfEcsTypeSupportHtConfig
&InstanceType=ecs.g6.large
&<Common request parameters>
Sample success responses
XML
format
<GetIfEcsTypeSupportHtConfigResponse>
<RequestId>80CA7A93-7291-4402-B63D-86DF334E0A1F</RequestId>
<DefaultHtEnabled>true</DefaultHtEnabled>
<SupportHtConfig>true</SupportHtConfig>
<InstanceType>ecs.g6.large</InstanceType>
</GetIfEcsTypeSupportHtConfigResponse>
JSON
format
{
"RequestId": "80CA7A93-7291-4402-B63D-86DF334E0A1F",
"DefaultHtEnabled": true,
"SupportHtConfig": true,
"InstanceType": "ecs.g6.large"
}
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.