Queries instance types that match specified instance attributes, such as the number of vCPUs, memory size, instance family level, and maximum acceptable price, when you configure a scaling configuration by specifying instance attributes. This operation calls the DescribePatternTypes API operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:DescribePatternTypes |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| VSwitchId |
array |
No |
The IDs of vSwitches. |
|
|
string |
No |
The ID of the vSwitch. |
vsw-bp14zolna43z266bq**** |
|
| ZoneId |
array |
No |
The IDs of zones. This parameter is invalid if you specify vSwitch IDs. |
|
|
string |
No |
The zone ID. |
cn-hangzhou-g |
|
| SpotStrategy |
string |
No |
The bidding policy for pay-as-you-go instances. Valid values:
Default value: NoSpot. |
NoSpot |
| Cores |
integer |
No |
The number of vCPUs of the instance type. |
2 |
| Memory |
number |
No |
The memory size of the instance type. Unit: GiB. |
4 |
| MaxPrice |
number |
No |
The maximum hourly price acceptable for pay-as-you-go or spot instances. |
2 |
| InstanceFamilyLevel |
string |
No |
The instance family level. Valid values:
|
EnterpriseLevel |
| ExcludedInstanceType |
array |
No |
The instance types to exclude. You can use wildcard characters (*) to exclude a single instance type or an entire instance family. Examples:
Note
To exclude multiple instance types, separate them with forward slashes (/). Example: |
|
|
string |
No |
The instance types to exclude. You can use wildcard characters (*) to exclude a single instance type or an entire instance family. Examples:
Note
To exclude multiple instance types, separate them with forward slashes (/). Example: |
ecs.c6.xlarge |
|
| Architecture |
array |
No |
The architecture type of the instance type. Valid values:
Default value: all architecture types. |
|
|
string |
No |
The architecture type of the instance type. Valid values:
Default value: all architecture types. |
X86 |
|
| BurstablePerformance |
string |
No |
Specifies whether to include burstable instance types. Valid values:
Default value: Include. |
Include |
| CoresList |
array |
No |
The number of vCPUs of the instance type. You can specify multiple values. |
|
|
integer |
No |
The number of vCPUs of the instance type. You can specify multiple values. |
2 |
|
| MemoryList |
array |
No |
The memory size of the instance type. Unit: GiB. You can specify multiple values. |
|
|
number |
No |
The memory size of the instance type. Unit: GiB. You can specify multiple values. |
4 |
|
| ChannelId |
integer |
No |
The channel ID. Note
This parameter is reserved for internal use only. |
79425074 |
| InstanceTypeFamilies |
array |
No |
The instance families to query. N specifies that you can set multiple instance families. Valid values of N: 1 to 10. |
|
|
string |
No |
The instance families to query. N specifies that you can set multiple instance families. Valid values of N: 1 to 10. |
ecs.g6 |
|
| MinimumCpuCoreCount |
integer |
No |
The minimum number of vCPUs of the instance type. |
2 |
| MaximumCpuCoreCount |
integer |
No |
The maximum number of vCPUs of the instance type. |
4 |
| GpuSpecs |
array |
No |
The GPU type. |
|
|
string |
No |
The GPU type. |
NVIDIA V100 |
|
| InstanceCategories |
array |
No |
The instance type categorization. Valid values:
|
|
|
string |
No |
The instance type categorization. Valid values:
|
Compute-optimized with GPU |
|
| CpuArchitectures |
array |
No |
The CPU architectures of the instance type. |
|
|
string |
No |
The CPU architecture of the instance type. Valid values: Note
N specifies that you can set multiple CPU architectures. Valid values of N: 1 to 2.
|
X86 |
|
| PhysicalProcessorModels |
array |
No |
The processor models of the instance. N specifies that you can set multiple processor models. Valid values of N: 1 to 10. |
|
|
string |
No |
The processor models of the instance. N specifies that you can set multiple processor models. Valid values of N: 1 to 10. |
Intel Xeon(Ice Lake) Platinum 8369B |
|
| MinimumEniQuantity |
integer |
No |
The minimum number of elastic network interfaces (ENIs) that can be attached to the instance. |
2 |
| MinimumEniPrivateIpAddressQuantity |
integer |
No |
The minimum number of IPv4 addresses per elastic network interfaces (ENIs) on the instance. |
2 |
| MinimumEniIpv6AddressQuantity |
integer |
No |
The minimum number of IPv6 addresses per elastic network interfaces (ENIs) on the instance. |
1 |
| MinimumInitialCredit |
integer |
No |
The minimum initial vCPU credits for burstable instances (t5 and t6). |
12 |
| MinimumBaselineCredit |
integer |
No |
The minimum baseline vCPU computing performance (sum of all vCPUs) for burstable instances (t5 and t6). |
12 |
| MinimumMemorySize |
number |
No |
The minimum memory size of the instance. Unit: GiB. |
4 |
| MaximumMemorySize |
number |
No |
The maximum memory size of the instance. Unit: GiB. |
4 |
| MinimumGpuAmount |
integer |
No |
The minimum number of GPUs on the instance. Valid values: positive integers. |
2 |
| MaximumGpuAmount |
integer |
No |
The maximum number of GPUs on the instance. Valid values: positive integers. |
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| PatternTypes |
array<object> |
The instance types that match the specified conditions. |
|
|
object |
The instance types that match the specified conditions. |
||
| InstanceType |
string |
The name of the instance type. |
ecs.c7.xlarge |
| InstanceFamilyLevel |
string |
The instance family level. Valid values:
|
EnterpriseLevel |
| InstanceTypeFamily |
string |
The instance family. |
ecs.c7 |
| Cores |
integer |
The number of vCPUs of the instance type. |
4 |
| Memory |
number |
The memory size of the instance type. Unit: GiB. |
8 |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"PatternTypes": [
{
"InstanceType": "ecs.c7.xlarge",
"InstanceFamilyLevel": "EnterpriseLevel",
"InstanceTypeFamily": "ecs.c7",
"Cores": 4,
"Memory": 8
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.