DescribePatternTypes
When configuring scaling configurations using the instance attribute-based method, call the DescribePatternTypes API to filter eligible instance types based on specified instance attributes such as the number of vCPU cores, memory size, instance family level, and the maximum acceptable price.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region. |
cn-hangzhou |
| VSwitchId |
array |
No |
The list of vSwitch IDs. |
|
|
string |
No |
The ID of the vSwitch. |
vsw-bp14zolna43z266bq**** |
|
| ZoneId |
array |
No |
The list of zone IDs. This parameter is invalid when vSwitch IDs are specified. |
|
|
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 vCPU cores of the instance type. |
2 |
| Memory |
number |
No |
The memory size of the instance type. Unit: GiB. |
4 |
| MaxPrice |
number |
No |
The maximum acceptable hourly price for pay-as-you-go or preemptible instances. |
2 |
| InstanceFamilyLevel |
string |
No |
The level of the instance family. 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 types of the instance type. Valid values:
Default value: all architecture types. |
|
|
string |
No |
The architecture types of the instance type. Valid values:
Default value: all architecture types. |
X86 |
|
| BurstablePerformance |
string |
No |
Specifies whether to include burstable performance instance types. Valid values:
Default value: Include. |
Include |
| CoresList |
array |
No |
The number of vCPU cores of the instance type. You can specify multiple values. |
|
|
integer |
No |
The number of vCPU cores 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 not publicly available (internal reserved parameter only). |
79425074 |
| InstanceTypeFamilies |
array |
No |
The instance type families to query. N indicates that you can specify multiple instance type families. Valid values of N: 1 to 10. |
|
|
string |
No |
The instance type families to query. N indicates that you can specify multiple instance type families. Valid values of N: 1 to 10. |
ecs.g6 |
|
| MinimumCpuCoreCount |
integer |
No |
The minimum number of vCPU cores of the instance type. |
2 |
| MaximumCpuCoreCount |
integer |
No |
The maximum number of vCPU cores of the instance type. |
4 |
| GpuSpecs |
array |
No |
The GPU types. |
|
|
string |
No |
The GPU type. |
NVIDIA V100 |
|
| InstanceCategories |
array |
No |
The instance type categories. Valid values:
|
|
|
string |
No |
The instance type categories. 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 indicates that you can specify multiple CPU architectures. Valid values of N: 1 to 2.
|
X86 |
|
| PhysicalProcessorModels |
array |
No |
The processor models of the instance. N indicates that you can specify multiple processor models. Valid values of N: 1 to 10. |
|
|
string |
No |
The processor models of the instance. N indicates that you can specify 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) supported by the instance. |
2 |
| MinimumEniPrivateIpAddressQuantity |
integer |
No |
The minimum number of IPv4 addresses per ENI for the instance. |
2 |
| MinimumEniIpv6AddressQuantity |
integer |
No |
The minimum number of IPv6 addresses per ENI for the instance. |
1 |
| MinimumInitialCredit |
integer |
No |
The minimum initial vCPU credits for burstable performance instances t5 and t6. |
12 |
| MinimumBaselineCredit |
integer |
No |
The minimum baseline vCPU computing performance (sum of all vCPUs) for burstable performance 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 of the instance. Valid values: positive integers. |
2 |
| MaximumGpuAmount |
integer |
No |
The maximum number of GPUs of 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 eligible instance types. |
|
|
object |
The eligible instance types. |
||
| InstanceType |
string |
The name of the instance type. |
ecs.c7.xlarge |
| InstanceFamilyLevel |
string |
The level of the instance family. Valid values:
|
EnterpriseLevel |
| InstanceTypeFamily |
string |
The instance type family. |
ecs.c7 |
| Cores |
integer |
The number of vCPU cores 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.