Queries whether Hyper-Threading can be enabled or disabled for an instance type.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ehpc:GetIfEcsTypeSupportHtConfig |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceType |
string |
Yes |
The Elastic Compute Service (ECS) instance type. |
ecs.g6.large |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
80CA7A93-7291-4402-B63D-86DF334E0A1F |
| DefaultHtEnabled |
boolean |
Indicates whether Hyper-Threading is enabled by default. Valid values:
Note
By default, Hyper-Threading is not enabled for Super Computing Cluster (SCC) instance families but is enabled for other instance families. |
true |
| InstanceType |
string |
The ECS instance type. |
ecs.g6.large |
| SupportHtConfig |
boolean |
Indicates whether Hyper-Threading is supported. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "80CA7A93-7291-4402-B63D-86DF334E0A1F",
"DefaultHtEnabled": true,
"InstanceType": "ecs.g6.large",
"SupportHtConfig": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | UnknownError | An unknown error occurred. | An unknown error occurred. |
| 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 | EcsError | An error occurred while calling the ECS API operation. | ECS API call error. %s |
| 406 | DbError | A database service error occurred. | Database request failed. |
| 407 | NotAuthorized | You are not authorized by RAM for this request. | The request is not authorized by RAM. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.