Queries whether a specified instance type supports enabling and disabling hyper-threading.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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:

  • true: Hyper-Threading is enabled by default.
  • false: Hyper-Threading is disabled by default
    Note By default, Hyper-Threading is not enabled for the SCC specification family, while Hyper-Threading is enabled for other specification families by default.
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:

  • true: Hyper-Threading is supported.
  • false: Hyper-Threading is not supported.

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.