DescribeScalingConfigurations

Updated at:

Queries the information about ECS-type scaling configurations, including instance types and images, to help you understand the details of ECS instance templates used during scale-out.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ess:DescribeScalingConfigurations

get

*ScalingGroup

acs:ess:{#regionId}:{#accountId}:scalinggroup/{#ScalingGroupId}

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID of the scaling group to which the scaling configuration belongs.

cn-qingdao

PageNumber

integer

No

The page number of the scaling configuration list. The starting value is 1.

Default value: 1.

1

PageSize

integer

No

The number of entries per page set in the paging Settings for a paged query. Maximum value: 50.

Default value: 10.

50

ScalingGroupId

string

No

The ID of the scaling group. You can query all scaling configurations in the scaling group.

asg-bp17pelvl720x3v7****

ScalingConfigurationIds

array

No

The ID of the scaling configuration to be queried.

The query results include both active and inactive scaling configurations. The response parameter LifecycleState identifies the state.

string

No

The ID of the scaling configuration to be queried.

The query results include both active and inactive scaling configurations. The response parameter LifecycleState identifies the state.

asc-bp17pelvl720x5ub****

ScalingConfigurationNames

array

No

The name of the scaling configuration to be queried.

The query results ignore invalid scaling configuration names and do not return an error.

string

No

The name of the scaling configuration to be queried.

The query results ignore invalid scaling configuration names and do not return an error.

scalingcon****

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****

PageNumber

integer

The current page number.

1

PageSize

integer

The number of entries per page.

50

TotalCount

integer

The total number of scaling configurations.

1

ScalingConfigurations

array<object>

The scaling configurations.

array<object>

The scaling configurations.

DeploymentSetId

string

The ID of the deployment set to which the ECS instance belongs.

ds-bp1frxuzdg87zh4p****

CreationTime

string

The time when the scaling configuration was created. The time follows the ISO 8601 standard in the YYYY-MM-DDTHH:mmZ format. The time is displayed in UTC.

2014-08-14T10:58Z

ScalingConfigurationName

string

The name of the scaling configuration.

scalingconfigura****

SystemDiskDescription

string

The description of the system cloud disk.

Test system disk.

KeyPairName

string

The name of the key pair used to log on to the ECS instance.

keypair****

SecurityGroupId

string

The ID of the security group to which the ECS instance belongs. ECS instances in the same security group can access each other.

sg-bp18kz60mefs****

PrivatePoolOptions.Id

string

The ID of the private pool. The ID is the same as the ID of the elasticity assurance or capacity reservation.

eap-bp67acfmxazb4****

SystemDiskAutoSnapshotPolicyId

string

The ID of the automatic snapshot policy applied to the system cloud disk.

sp-bp12m37ccmxvbmi5****

SpotStrategy

string

The preemption policy for the pay-as-you-go instance. Valid values:

  • NoSpot: regular pay-as-you-go instances.

  • SpotWithPriceLimit: spot instances that have a maximum hourly price.

  • SpotAsPriceGo: spot instances for which the system automatically bids based on the current market price.

NoSpot

ScalingGroupId

string

The ID of the scaling group to which the scaling configuration belongs.

asg-bp17pelvl720x3v7****

Affinity

string

Specifies whether the instance on a dedicated host is associated with the dedicated host. Valid values:

  • default: The instance is not associated with the dedicated host. If the economical mode is enabled and the original dedicated host has insufficient resources when the instance is restarted, the instance is automatically deployed to another dedicated host in the automatic deployment resource pool.

  • host: The instance is associated with the dedicated host. If the economical mode is enabled and the original dedicated host has insufficient resources when the instance is restarted, the instance fails to be restarted.

default

Tenancy

string

Specifies whether to create the instance on a dedicated host. Valid values:

  • default: creates the instance on a non-dedicated host.

  • host: creates the instance on a dedicated host. If you do not specify the DedicatedHostId parameter, Alibaba Cloud automatically selects a dedicated host for the instance. Default value: default.

default

SystemDiskSize

integer

The size of the system cloud disk. Unit: GiB.

100

Ipv6AddressCount

integer

The number of IPv6 addresses that are randomly generated for the elastic network interface controller (NIC).

1

SpotDuration

integer

The protection period of the spot instance. Unit: hours.

1

LifecycleState

string

The lifecycle status of the scaling configuration in the scaling group. Valid values:

  • Active: The scaling configuration is active. The scaling group uses active scaling configurations for the automatic creation of ECS instances.

  • Inacitve: The scaling configuration is inactive. Inactive scaling configurations exist in the scaling group, but the scaling group does not use them for the automatic creation of ECS instances.

Active

InstanceName

string

The name of the ECS instance.

instance****

SecurityEnhancementStrategy

string

Specifies whether to enable security hardening. Valid values:

  • Active: enables security hardening. This value is applicable only to public images.

  • Deactive: disables security hardening. This value is applicable to all image types.

Active

UserData

string

The user data of the ECS instance.

echo hello ecs!

PrivatePoolOptions.MatchCriteria

string

The private pool type for starting the instance. After an elasticity assurance or capacity reservation takes effect, a private pool is generated. You can select a private pool type when you start an instance. Valid values:

  • Open: open mode. The system automatically matches a private pool of the Open type. If no matching private pool is available, the system uses resources from the public pool to start the instance.

  • Target: targeted mode. The system uses the specified private pool to start the instance. If the specified private pool is unavailable, the instance fails to be started.

  • None: no private pool. The system does not use private pools to start the instance.

Open

DedicatedHostId

string

The ID of the dedicated host on which to create the ECS instance. Dedicated hosts do not support spot instances. If you specify the DedicatedHostId parameter, the SpotStrategy and SpotPriceLimit parameters are ignored. You can call the DescribeDedicatedHosts operation to query the list of dedicated host IDs.

dh-bp67acfmxazb4p****

InstanceGeneration

string

The generation of the ECS instance.

ecs-3

HpcClusterId

string

The ID of the High Performance Computing (HPC) cluster to which the ECS instance belongs.

hpc-clus****

PasswordInherit

boolean

Specifies whether to use the password preset in the image.

true

Memory

integer

The memory size. Unit: GiB. You can specify both the Cpu and Memory parameters to define the instance type range. For example, if you set Cpu to 2 and Memory to 16, all instance types that have 2 vCPUs and 16 GiB of memory are matched. Auto Scaling determines the available instance types based on factors such as I/O optimization and zones, and creates instances of the type that has the lowest price.

Note

This configuration takes effect only when the scaling mode is set to cost optimization and no instance types are specified in the scaling configuration.

16

ImageId

string

The ID of the image file, which is the image resource used for the automatic creation of instances.

centos6u5_64_20G_aliaegis_2014****.vhd

ImageFamily

string

The name of the image family. You can set this parameter to obtain the latest available image in the image family to create instances. If the ImageId parameter is specified, you cannot specify this parameter.

hangzhou-daily-update

ImageOwnerAlias

string

The source of the image. Valid values:

  • system: public images provided by Alibaba Cloud.

  • self: custom images created by you.

  • others: shared images or community images provided by other Alibaba Cloud users.

  • marketplace: images provided by Alibaba Cloud Marketplace.

system

LoadBalancerWeight

integer

The weight of the ECS instance when it is used as an SLB backend server. Valid values: 1 to 100.

1

SystemDiskCategory

string

The category of the system cloud disk. Valid values:

  • cloud: basic cloud disk.

  • cloud_efficiency: ultra disk.

  • cloud_ssd: standard SSD.

  • ephemeral_ssd: local SSD.

  • cloud_essd: ESSD.

  • cloud_auto: ESSD AutoPL disk.

cloud

HostName

string

The hostname of the ECS instance.

LocalHost

SystemDiskName

string

The name of the system cloud disk.

cloud_ssd_Test

InternetMaxBandwidthOut

integer

The maximum outbound public bandwidth. Unit: Mbit/s.

10

InternetMaxBandwidthIn

integer

The maximum inbound public bandwidth. Unit: Mbit/s.

10

InstanceType

string

The instance type of the ECS instance.

ecs.g6.large

InstanceDescription

string

The description of the ECS instance.

FinanceDept

IoOptimized

string

Specifies whether the instance is an I/O optimized instance. Valid values:

  • none: non-I/O optimization.

  • optimized: I/O optimization.

none

RamRoleName

string

The name of the Resource Access Management (RAM) role for the ECS instance. RAM roles are provided and maintained by RAM. You can call the ListRoles operation to query available RAM roles.

ramrole****

SystemDiskPerformanceLevel

string

The performance level of the system cloud disk when it is an ESSD (standard SSD).

PL1

Cpu

integer

The number of vCPUs. You can specify both the Cpu and Memory parameters to define the instance type range. For example, if you set Cpu to 2 and Memory to 16, all instance types that have 2 vCPUs and 16 GiB of memory are matched. Auto Scaling determines the available instance types based on factors such as I/O optimization and zones, and creates instances of the type that has the lowest price.

Note

This configuration takes effect only when the scaling mode is set to cost optimization and no instance types are specified in the scaling configuration.

2

ResourceGroupId

string

The ID of the resource group to which the ECS instance belongs.

rg-aekzn2ou7xo****

ZoneId

string

The zone ID of the instance. You can call the DescribeZones operation to query the zone list.

cn-hangzhou-g

InternetChargeType

string

The network billing method. Valid values:

  • PayByBandwidth: pay-by-bandwidth. In this case, the InternetMaxBandwidthOut parameter specifies the fixed bandwidth value.

  • PayByTraffic: pay-by-traffic. In this case, the InternetMaxBandwidthOut parameter specifies the bandwidth cap, and you are billed based on the actual network traffic.

PayByTraffic

ImageName

string

The name of the image.

centos6u5_64_20G_aliaegis_2014****.vhd

ScalingConfigurationId

string

The ID of the scaling configuration.

asc-bp1ezrfgoyn5kijl****

CreditSpecification

string

The performance mode of the burstable instance. Valid values:

Standard

SpotInterruptionBehavior

string

The interruption pattern of the spot instance.

Terminate

CustomPriorities

array<object>

The custom priority of ECS instance type and vSwitch combination.

Important This parameter takes effect only when the scaling policy of the scaling group is set to priority-based policy.
If an instance cannot be created by using ECS instance type and vSwitch combination that has the highest priority, Auto Scaling automatically uses the combination that has the next highest priority to create ECS instance.

Note

If you specify custom priorities for only some instance type and vSwitch combinations, the unspecified combinations have lower priorities than the specified ones. The priorities of the unspecified combinations are determined based on the vSwitch sequence in the scaling group and ECS instance type sequence in the scaling configuration.

  • For example, if the vSwitch sequence in the scaling group is vsw1 and vsw2, ECS instance type sequence in the scaling configuration is type1 and type2, and the custom priority sequence is ["vsw2+type2", "vsw1+type2"], the final priority sequence is: "vsw2+type2" > "vsw1+type2" > "vsw1+type1" > "vsw2+type1".

object

InstanceType

string

The instance type of the ECS instance.

ecs.c6a.4xlarge

VswitchId

string

The ID of the vSwitch.

vsw-bp14zolna43z266bq****

DataDisks

array<object>

The data cloud disks.

object

The data cloud disks.

PerformanceLevel

string

The performance level of the data cloud disk when it is an ESSD (standard SSD).

PL1

Description

string

The description of the data cloud disk.

FinanceDept

SnapshotId

string

The ID of the snapshot used to create the data cloud disk.

s-23f2i****

Device

string

The mount point of the data cloud disk.

/dev/xvdb

Size

integer

The size of the data cloud disk. Unit: GiB. Valid values:

  • cloud: 5 to 2000.

  • cloud_efficiency: 20 to 32768.

  • cloud_ssd: 20 to 32768.

  • cloud_essd: 20 to 32768.

  • ephemeral_ssd: 5 to 800.

200

DiskName

string

The name of the data cloud disk.

cloud_ssdData

AutoSnapshotPolicyId

string

The ID of the automatic snapshot policy applied to the data cloud disk.

sp-bp19nq9enxqkomib****

Category

string

The category of the data cloud disk. Valid values:

  • cloud: basic cloud disk. The DeleteWithInstance attribute of a basic cloud disk created along with an instance is set to true.

  • cloud_efficiency: ultra disk.

  • cloud_ssd: standard SSD.

  • ephemeral_ssd: local SSD.

  • cloud_essd: ESSD.

  • cloud_auto: ESSD AutoPL disk.

  • cloud_regional_disk_auto: regional ESSD.

cloud

KMSKeyId

string

The ID of the Key Management Service (KMS) key used to encrypt the data cloud disk.

0e478b7a-4262-4802-b8cb-00d3fb40****

DeleteWithInstance

boolean

Specifies whether to release the data cloud disk when the instance is released. Valid values:

  • true: releases the data cloud disk when the instance is released.

  • false: retains the data cloud disk when the instance is released.

true

Encrypted

string

Specifies whether to encrypt the data cloud disk. Valid values:

  • true: encrypts the data cloud disk.

  • false: does not encrypt the data cloud disk. Default value: false.

false

Categories

array

The disk types of the data cloud disks. The first disk type has the highest priority, and the priorities of other disk types decrease in sequence. If a disk type with a higher priority is unavailable, Auto Scaling automatically attempts to create the data cloud disk by using the disk type with the next highest priority. Valid values:

  • cloud: basic cloud disk. The DeleteWithInstance property of a basic cloud disk created along with an instance is set to true.

  • cloud_efficiency: ultra disk.

  • cloud_ssd: standard SSD.

  • cloud_essd: ESSD.

  • ephemeral_ssd: local SSD.

  • cloud_auto: ESSD AutoPL disk.

  • cloud_regional_disk_auto: regional ESSD.

string

The disk types of the data cloud disks. The first disk type has the highest priority, and the priorities of other disk types decrease in sequence. If a disk type with a higher priority is unavailable, Auto Scaling automatically attempts to create the data cloud disk by using the disk type with the next highest priority. Valid values:

  • cloud: basic cloud disk. The DeleteWithInstance property of a basic cloud disk created along with an instance is set to true.

  • cloud_efficiency: ultra disk.

  • cloud_ssd: standard SSD.

  • cloud_essd: ESSD.

  • ephemeral_ssd: local SSD.

  • cloud_auto: ESSD AutoPL disk.

  • cloud_regional_disk_auto: regional ESSD.

cloud_essd

ProvisionedIops

integer

The provisioned IOPS (Input/Output Operations Per Second) performance metrics of the data cloud disk.

Note

IOPS measures the number of I/O operations per second and indicates the read and write capabilities of the block storage. Unit: operations per second.

100

BurstingEnabled

boolean

Specifies whether to enable the performance burst feature for the data cloud disk. Valid values:

  • true: enables the feature.

  • false: disables the feature.

Note

This parameter is displayed only when the DataDisk.Category parameter is set to cloud_auto. For more information, see ESSD AutoPL disks.

false

Tags

array<object>

The tags.

object

The tags.

Key

string

The key of tag N of the instance. Valid values of N: 1 to 20. If you specify this parameter, it cannot be an empty string. The tag key can be up to 128 characters in length. It cannot start with aliyun or acs:, and cannot contain http:// or https://.

binary

Value

string

The value of tag N of the instance. Valid values of N: 1 to 20. If you specify this parameter, it can be an empty string. The tag value can be up to 128 characters in length. It cannot start with acs:, and cannot contain http:// or https://.

alterTable

SpotPriceLimits

array<object>

The spot instances.

object

The spot instances.

InstanceType

string

The instance type of the spot instance.

ecs.g6.large

PriceLimit

number

The bid price for the spot instance.

0.125

InstancePatternInfos

array<object>

The collection of intelligent configuration information used to filter instance types that meet your requirements.

object

The collection of intelligent configuration information used to filter instance types that meet your requirements.

MaxPrice

number

The maximum hourly price acceptable for pay-as-you-go or spot instances.

2

Cores

integer

The number of vCPU cores of the instance type.

2

Memory

number

The memory size of the instance type. Unit: GiB.

4

InstanceFamilyLevel

string

The level of the instance family. Valid values:

  • EntryLevel: entry-level instance families, which are shared instance families. These instance families are more cost-effective but do not guarantee consistent computing performance. They are suitable for workloads with low CPU utilization. For more information, see Shared instance families.

  • EnterpriseLevel: enterprise-level instance families. These instance families provide stable performance and dedicated resources, and are suitable for workloads that require high stability. For more information, see Instance families.

  • CreditEntryLevel: credit entry-level instance families, which are burstable instances. These instance families use CPU credits to maintain computing performance and are suitable for workloads with low CPU utilization but occasional CPU bursts. For more information, see Burstable instances.

EnterpriseLevel

Architectures

array

The architecture type of the instance type. Valid values:

  • X86: x86 computing.

  • Heterogeneous: heterogeneous computing, such as GPU or FPGA.

  • BareMental: ECS Bare Metal server.

  • Arm: Arm computing.

string

The architecture type of the instance type. Valid values:

  • X86: x86 computing.

  • Heterogeneous: heterogeneous computing, such as GPU or FPGA.

  • BareMental: ECS Bare Metal server.

  • Arm: Arm computing.

X86

BurstablePerformance

string

Specifies whether the instance type is a burstable instance type. Valid values:

  • Exclude: excludes burstable instance types.

  • Include: includes burstable instance types.

  • Required: includes only burstable instance types.

Include

ExcludedInstanceTypes

array

The instance types to be excluded. You can use a wildcard (*) to exclude a single instance type or an entire instance family. Examples:

  • ecs.c6.large: excludes the ecs.c6.large instance type.

  • ecs.c6.*: excludes all instance types in the c6 instance family.

string

The instance types to be excluded. You can use a wildcard (*) to exclude a single instance type or an entire instance family. Examples:

  • ecs.c6.large: excludes the ecs.c6.large instance type.

  • ecs.c6.*: excludes all instance types in the c6 instance family.

ecs.n1.small/ecs.n1.*/*7*

InstanceTypeFamilies

array

The instance families to be queried. N indicates that you can specify multiple instance families. Valid values of N: 1 to 10.

string

The instance families to be queried. N indicates that you can specify multiple instance families. Valid values of N: 1 to 10.

ecs.g6

MinimumCpuCoreCount

integer

The minimum number of vCPU cores of the instance type.

2

MaximumCpuCoreCount

integer

The maximum number of vCPU cores of the instance type.

Note

The value of MaximumCpuCoreCount cannot exceed four times the value of MinimumCpuCoreCount.

4

GpuSpecs

array

The GPU type.

string

The GPU type.

NVIDIA V100

InstanceCategories

array

The instance categorization. Valid values:

Note

N indicates that you can specify multiple instance categories in the Settings. Valid values of N: 1 to 10.

  • General-purpose: general-purpose.

  • Compute-optimized: compute-optimized.

  • Memory-optimized: memory-optimized.

  • Big data: big data.

  • Local SSDs: local SSD.

  • High Clock Speed: high frequency.

  • Enhanced: enhanced.

  • Shared: shared.

  • Compute-optimized with GPU: GPU computing.

  • Visual Compute-optimized: visual compute-optimized.

  • Heterogeneous Service: heterogeneous service.

  • Compute-optimized with FPGA: FPGA-accelerated compute-optimized.

  • Compute-optimized with NPU: NPU-accelerated compute-optimized.

  • ECS Bare Metal: ECS Bare Metal server.

  • High Performance Compute: high-performance computing (HPC).

string

The instance categorization. Valid values:

Note

N indicates that you can specify multiple instance categories in the Settings. Valid values of N: 1 to 10.

  • General-purpose: general-purpose.

  • Compute-optimized: compute-optimized.

  • Memory-optimized: memory-optimized.

  • Big data: big data.

  • Local SSDs: local SSD.

  • High Clock Speed: high frequency.

  • Enhanced: enhanced.

  • Shared: shared.

  • Compute-optimized with GPU: GPU computing.

  • Visual Compute-optimized: visual compute-optimized.

  • Heterogeneous Service: heterogeneous service.

  • Compute-optimized with FPGA: FPGA-accelerated compute-optimized.

  • Compute-optimized with NPU: NPU-accelerated compute-optimized.

  • ECS Bare Metal: ECS Bare Metal server.

  • High Performance Compute: high-performance computing (HPC).

Compute-optimized with GPU

CpuArchitectures

array

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.

  • ARM.

string

The CPU architecture of the instance. Valid values:

Note

N indicates that you can specify multiple CPU architectures. Valid values of N: 1 to 2.

  • X86.

  • ARM.

X86

PhysicalProcessorModels

array

The processor model of the instance. N indicates that you can specify multiple processor models. Valid values of N: 1 to 10.

string

The processor model 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

The minimum value for the maximum number of elastic network interfaces (ENIs) that can be attached to the instance.

2

MinimumEniPrivateIpAddressQuantity

integer

The minimum value for the maximum number of IPv4 addresses supported by a single elastic network interfaces (ENIs) on the instance. Each ENI is a network interface controller (NIC).

2

MinimumEniIpv6AddressQuantity

integer

The minimum value for the maximum number of IPv6 addresses supported by a single elastic network interfaces (ENIs) on the instance. Each ENI is a network interface controller (NIC).

1

MinimumInitialCredit

integer

The minimum initial vCPU credit value for t5 and t6 burstable instances.

12

MinimumBaselineCredit

integer

The minimum baseline vCPU computing performance (the sum of all vCPUs) for t5 and t6 burstable instances.

12

MinimumMemorySize

number

The minimum memory size of the instance. Unit: GiB.

4

MaximumMemorySize

number

The maximum memory size of the instance. Unit: GiB.

4

MinimumGpuAmount

integer

The minimum number of GPUs for the instance. Valid values: positive integers.

2

MaximumGpuAmount

integer

The maximum number of GPUs for the instance. Valid values: positive integers.

2

SystemDiskCategories

array

The disk types for the system cloud disk. The first disk type has the highest priority, and the priorities of the other disk types decrease in sequence. If the disk type with a higher priority is unavailable, Auto Scaling automatically attempts to create the system cloud disk by using the disk type with the next highest priority. Valid values:

  • cloud: basic cloud disk.

  • cloud_efficiency: ultra cloud disk.

  • cloud_ssd: standard SSD cloud disk.

  • cloud_essd: ESSD cloud disk.

string

The disk types for the system cloud disk. The first disk type has the highest priority, and the priorities of the other disk types decrease in sequence. If the disk type with a higher priority is unavailable, Auto Scaling automatically attempts to create the system cloud disk by using the disk type with the next highest priority. Valid values:

  • cloud: basic cloud disk.

  • cloud_efficiency: ultra cloud disk.

  • cloud_ssd: standard SSD cloud disk.

  • cloud_essd: ESSD cloud disk.

cloud

WeightedCapacities

array

The weight of the specified instance type, which indicates the capacity that a single instance of the specified instance type provides in the scaling group. A greater weight indicates that fewer instances of the instance type are required to meet the expected capacity.

integer

The weight of the specified instance type, which indicates the capacity that a single instance of the specified instance type provides in the scaling group. A greater weight indicates that fewer instances of the instance type are required to meet the expected capacity.

4

InstanceTypes

array

The collection of instance types for ECS instances.

string

The collection of instance types for ECS instances.

ecs.g6.large

SecurityGroupIds

array

The IDs of the security groups to which the ECS instances belong. ECS instances in the same security group can access each other.

string

The IDs of the security groups to which the ECS instances belong. ECS instances in the same security group can access each other.

sg-bp18kz60mefs****

SchedulerOptions

object

Note

This parameter is in invitational preview and is not available for public use.

ManagedPrivateSpaceId

string

Note

This parameter is in invitational preview and is not available for public use.

testManagedPrivateSpaceId

SystemDiskEncrypted

boolean

Specifies whether the system cloud disk is encrypted. Valid values:

  • true: The system cloud disk is encrypted.

  • false: The system cloud disk is not encrypted.

false

SystemDiskKMSKeyId

string

The ID of the KMS key used for the system cloud disk.

0e478b7a-4262-4802-b8cb-00d3fb40****

SystemDiskEncryptAlgorithm

string

The encryption algorithm used for the system cloud disk. Valid values:

  • AES-256.

  • SM4-128.

AES-256

SystemDiskProvisionedIops

integer

The provisioned IOPS (Input/Output Operations Per Second) performance metrics for the system cloud disk.

Note

IOPS refers to the number of I/O operations that can be processed per second, which indicates the read and write processing capability of the block storage. Unit: operations per second.

100

SystemDiskBurstingEnabled

boolean

Specifies whether to enable the burst feature for the system cloud disk. Valid values:

  • true: enabled.

  • false: disabled.

Note

This parameter is supported only when SystemDisk.Category is set to cloud_auto.

false

ImageOptionsLoginAsNonRoot

boolean

Specifies whether to log on to the ECS instance as the ecs-user user. Valid values:

  • true: yes.

  • false: no.

false

DeletionProtection

boolean

The release protection property of the instance, which specifies whether the instance can be directly released by using the ECS console or the DeleteInstance API operation. Valid values:

  • true: Release protection is enabled. The instance cannot be directly released by using the ECS console or the DeleteInstance API operation.

  • false: Release protection is shutdown. The instance can be directly released by using the ECS console or the DeleteInstance API operation.

Note

This property applies only to pay-as-you-go instances. It prevents instances created by Auto Scaling during scale-out from being accidentally deleted, but does not affect normal scale-in activities. Instances with release protection enabled can still be released during scale-in activities.

false

StorageSetId

string

The ID of the storage set.

ss-bp67acfmxazb4p****

StorageSetPartitionNumber

integer

The maximum number of partitions in the storage set. The value must be an integer greater than or equal to 2.

2

NetworkInterfaces

array<object>

The list of elastic network interfaces (ENIs). Each ENI is a network interface controller (NIC).

object

The elastic network interfaces (ENIs). Each ENI is a network interface controller (NIC).

InstanceType

string

The type of the elastic network interfaces (ENIs). Valid values:

  • Primary: primary network interface controller (NIC).

  • Secondary: secondary elastic network interfaces (ENIs).

Primary

NetworkInterfaceTrafficMode

string

The communication pattern of the elastic network interfaces (ENIs), which act as a network interface controller (NIC). Valid values:

  • Standard: uses the TCP communication pattern.

  • HighPerformance: enables the Elastic RDMA Interface (ERI) and uses the RDMA communication pattern.

HighPerformance

Ipv6AddressCount

integer

The number of randomly generated IPv6 addresses specified for the primary ENI.

1

SecurityGroupIds

array

The IDs of one or more security groups to which the elastic network interfaces (ENIs) belong. Each ENI is a network interface controller (NIC).

string

The IDs of one or more security groups to which the elastic network interfaces (ENIs) belong. Each ENI is a network interface controller (NIC).

sg-2vc3e1v7xxxxx

SecondaryPrivateIpAddressCount

integer

The number of secondary private IPv4 addresses specified for the ENI. Valid values: 1 to 49.

  • The value cannot exceed the limit on the number of IP addresses for the instance type. For more information, see Instance families.

  • NetworkInterface.N.SecondaryPrivateIpAddressCount is used to specify the number of secondary private IPv4 addresses (excluding the primary private IP address of the ENI) to be assigned to the ENI. The system randomly assigns the addresses from the available CIDR block of the vSwitch (NetworkInterface.N.VSwitchId) to which the ENI belongs.

2

VSwitchIds

array

The ID of the vSwitch to which the elastic network interfaces (ENIs) belong. Each ENI is a network interface controller (NIC).

string

The ID of the vSwitch to which the elastic network interfaces (ENIs) belong. Each ENI is a network interface controller (NIC).

vsw-bp67acfmxazb4p****

DedicatedHostClusterId

string

The ID of the dedicated host cluster.

dc-zm04u8r3lohsq****

PasswordSetted

boolean

Specifies whether an instance password is set. Valid values:

  • true: An instance password is set.

  • false: No instance password is set.

false

SecurityOptions

object

The security options.

ConfidentialComputingMode

string

The confidential computing mode. Valid values:

TDX

HttpEndpoint

string

Specifies whether to enable the access channel for instance metadata. Valid values:

  • enabled: enabled.

  • disabled: disabled.

enabled

HttpTokens

string

Specifies whether to forcibly use the security hardening mode (IMDSv2) when accessing instance metadata. Valid values:

  • optional: not forcibly used.

  • required: forcibly used. If this value is set, instance metadata cannot be accessed in normal mode.

optional

ResourcePoolOptions

object

The resource pool policy used when creating instances.

  • This parameter takes effect only when creating pay-as-you-go instances.

Strategy

string

Resource pools include private pools generated after the elasticity assurance or capacity reservation service takes effect, as well as public pools, which are available for selection when an instance starts. Valid values:

  • PrivatePoolFirst: private pool first. When this policy is selected, if ResourcePoolOptions.PrivatePoolIds is specified or the PrivatePoolTags condition is met, the corresponding private pool is used first. If no private pool is specified or the specified private pool has insufficient capacity, the system automatically matches an open private pool. If no eligible private pool is available, the public pool is used to create the instance.

  • PrivatePoolOnly: private pool only. When this policy is selected, ResourcePoolOptions.PrivatePoolIds must be specified. If the specified private pool has insufficient capacity, the instance fails to start.

  • PublicPoolFirst: public pool first. The public pool is used first to create the instance. When public pool resources are insufficient, private pool resources are used as a supplement. The system preferentially matches an open private pool. If no eligible private pool is available, the system uses the Target private pool specified by ResourcePoolOptions.PrivatePoolIds or the one that meets the PrivatePoolTags condition.

  • None: no resource pool policy is used.

PrivatePoolFirst

PrivatePoolIds

array

The ID of the private pool, which is the ID of the elasticity assurance or capacity reservation.

string

The ID of the private pool, which is the ID of the elasticity assurance or capacity reservation.

eap-bp67acfmxazb4****

PrivatePoolTags

array<object>

Filters available Target private pools by tag.

object

Filters available Target private pools by tag.

Key

string

The tag key of the private pool.

TestKey

Value

string

The tag value of the private pool.

TestValue

InstanceTypeCandidateOptions

object

After the fallback mode is configured, if issues such as insufficient inventory occur, the system supplements the selected instance types with similar instance types of the same size, or creates vSwitches in fallback zones and adds them to the scaling group.

Enabled

boolean

Specifies whether to enable the fallback mode.

true

MaxPrice

number

The maximum price for fallback instance types.

2

AllowDifferentGeneration

boolean

Specifies whether to allow supplementing instance types from other generations.

  • For example, if the current instance type is ecs.c7.large, enabling this option allows fallback to instance types such as ecs.c6.large and ecs.c8.large.

true

AllowCrossAz

boolean

Specifies whether to allow adding vSwitches from other zones.

Note

The instance types remain unchanged, and only new zones are selected as alternatives. When the scaling group fails to scale out in all selected zones due to inventory shortages or other issues, this configuration automatically adds vSwitches from new zones to the scaling group. For example, if the scaling group is configured with the cn-hangzhou-h and cn-hangzhou-g zones and fails to scale out in both zones, Auto Scaling may create a vSwitch in the cn-hangzhou-k zone and add it to the scaling group based on real-time inventory.

true

AllowCidrBlocks

array

The CIDR blocks of the vSwitches that can be selected when adding vSwitches from other zones is allowed.

string

The CIDR blocks of the vSwitches that can be selected when adding vSwitches from other zones is allowed.

172.16.0.0/24

CpuOptions

object

The CPU options.

NestedVirtualization

string

Specifies whether to enable hardware-based nested virtualization. Valid values:

  • enabled: Enabled.

  • disabled: Disabled.

enabled

SecondaryEniVSwitchConstraint

string

Specifies whether a vSwitch available for secondary elastic network interfaces (ENIs) must be selected from the list when the VSwitchIds parameter is specified.

Strict

Examples

Success response

JSON format

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
  "PageNumber": 1,
  "PageSize": 50,
  "TotalCount": 1,
  "ScalingConfigurations": [
    {
      "DeploymentSetId": "ds-bp1frxuzdg87zh4p****",
      "CreationTime": "2014-08-14T10:58Z",
      "ScalingConfigurationName": "scalingconfigura****",
      "SystemDiskDescription": "Test system disk.",
      "KeyPairName": "keypair****",
      "SecurityGroupId": "sg-bp18kz60mefs****",
      "PrivatePoolOptions.Id": "eap-bp67acfmxazb4****",
      "SystemDiskAutoSnapshotPolicyId": "sp-bp12m37ccmxvbmi5****",
      "SpotStrategy": "NoSpot",
      "ScalingGroupId": "asg-bp17pelvl720x3v7****",
      "Affinity": "default",
      "Tenancy": "default",
      "SystemDiskSize": 100,
      "Ipv6AddressCount": 1,
      "SpotDuration": 1,
      "LifecycleState": "Active",
      "InstanceName": "instance****",
      "SecurityEnhancementStrategy": "Active",
      "UserData": "echo hello ecs!\t\n",
      "PrivatePoolOptions.MatchCriteria": "Open",
      "DedicatedHostId": "dh-bp67acfmxazb4p****",
      "InstanceGeneration": "ecs-3",
      "HpcClusterId": "hpc-clus****",
      "PasswordInherit": true,
      "Memory": 16,
      "ImageId": "centos6u5_64_20G_aliaegis_2014****.vhd",
      "ImageFamily": "hangzhou-daily-update",
      "ImageOwnerAlias": "system",
      "LoadBalancerWeight": 1,
      "SystemDiskCategory": "cloud",
      "HostName": "LocalHost",
      "SystemDiskName": "cloud_ssd_Test",
      "InternetMaxBandwidthOut": 10,
      "InternetMaxBandwidthIn": 10,
      "InstanceType": "ecs.g6.large",
      "InstanceDescription": "FinanceDept",
      "IoOptimized": "none",
      "RamRoleName": "ramrole****",
      "SystemDiskPerformanceLevel": "PL1",
      "Cpu": 2,
      "ResourceGroupId": "rg-aekzn2ou7xo****",
      "ZoneId": "cn-hangzhou-g",
      "InternetChargeType": "PayByTraffic",
      "ImageName": "centos6u5_64_20G_aliaegis_2014****.vhd\t\n",
      "ScalingConfigurationId": "asc-bp1ezrfgoyn5kijl****",
      "CreditSpecification": "Standard",
      "SpotInterruptionBehavior": "Terminate",
      "CustomPriorities": [
        {
          "InstanceType": "ecs.c6a.4xlarge",
          "VswitchId": "vsw-bp14zolna43z266bq****\n"
        }
      ],
      "DataDisks": [
        {
          "PerformanceLevel": "PL1",
          "Description": "FinanceDept",
          "SnapshotId": "s-23f2i****",
          "Device": "/dev/xvdb",
          "Size": 200,
          "DiskName": "cloud_ssdData",
          "AutoSnapshotPolicyId": "sp-bp19nq9enxqkomib****",
          "Category": "cloud",
          "KMSKeyId": "0e478b7a-4262-4802-b8cb-00d3fb40****",
          "DeleteWithInstance": true,
          "Encrypted": "false",
          "Categories": [
            "cloud_essd"
          ],
          "ProvisionedIops": 100,
          "BurstingEnabled": false
        }
      ],
      "Tags": [
        {
          "Key": "binary",
          "Value": "alterTable"
        }
      ],
      "SpotPriceLimits": [
        {
          "InstanceType": "ecs.g6.large\t\n",
          "PriceLimit": 0.125
        }
      ],
      "InstancePatternInfos": [
        {
          "MaxPrice": 2,
          "Cores": 2,
          "Memory": 4,
          "InstanceFamilyLevel": "EnterpriseLevel",
          "Architectures": [
            "X86"
          ],
          "BurstablePerformance": "Include",
          "ExcludedInstanceTypes": [
            "ecs.n1.small/ecs.n1.*/*7*"
          ],
          "InstanceTypeFamilies": [
            "ecs.g6"
          ],
          "MinimumCpuCoreCount": 2,
          "MaximumCpuCoreCount": 4,
          "GpuSpecs": [
            "NVIDIA V100"
          ],
          "InstanceCategories": [
            "Compute-optimized with GPU"
          ],
          "CpuArchitectures": [
            "X86"
          ],
          "PhysicalProcessorModels": [
            "Intel Xeon(Ice Lake) Platinum 8369B"
          ],
          "MinimumEniQuantity": 2,
          "MinimumEniPrivateIpAddressQuantity": 2,
          "MinimumEniIpv6AddressQuantity": 1,
          "MinimumInitialCredit": 12,
          "MinimumBaselineCredit": 12,
          "MinimumMemorySize": 4,
          "MaximumMemorySize": 4,
          "MinimumGpuAmount": 2,
          "MaximumGpuAmount": 2
        }
      ],
      "SystemDiskCategories": [
        "cloud"
      ],
      "WeightedCapacities": [
        4
      ],
      "InstanceTypes": [
        "ecs.g6.large"
      ],
      "SecurityGroupIds": [
        "sg-bp18kz60mefs****"
      ],
      "SchedulerOptions": {
        "ManagedPrivateSpaceId": "testManagedPrivateSpaceId"
      },
      "SystemDiskEncrypted": false,
      "SystemDiskKMSKeyId": "0e478b7a-4262-4802-b8cb-00d3fb40****\t\n",
      "SystemDiskEncryptAlgorithm": "AES-256\t\n",
      "SystemDiskProvisionedIops": 100,
      "SystemDiskBurstingEnabled": false,
      "ImageOptionsLoginAsNonRoot": false,
      "DeletionProtection": false,
      "StorageSetId": "ss-bp67acfmxazb4p****",
      "StorageSetPartitionNumber": 2,
      "NetworkInterfaces": [
        {
          "InstanceType": "Primary",
          "NetworkInterfaceTrafficMode": "HighPerformance",
          "Ipv6AddressCount": 1,
          "SecurityGroupIds": [
            "sg-2vc3e1v7xxxxx"
          ],
          "SecondaryPrivateIpAddressCount": 2,
          "VSwitchIds": [
            "vsw-bp67acfmxazb4p****"
          ]
        }
      ],
      "DedicatedHostClusterId": "dc-zm04u8r3lohsq****",
      "PasswordSetted": false,
      "SecurityOptions": {
        "ConfidentialComputingMode": "TDX"
      },
      "HttpEndpoint": "enabled",
      "HttpTokens": "optional",
      "ResourcePoolOptions": {
        "Strategy": "PrivatePoolFirst",
        "PrivatePoolIds": [
          "eap-bp67acfmxazb4****"
        ],
        "PrivatePoolTags": [
          {
            "Key": "TestKey",
            "Value": "TestValue"
          }
        ]
      },
      "InstanceTypeCandidateOptions": {
        "Enabled": true,
        "MaxPrice": 2,
        "AllowDifferentGeneration": true,
        "AllowCrossAz": true,
        "AllowCidrBlocks": [
          "172.16.0.0/24\n"
        ]
      },
      "CpuOptions": {
        "NestedVirtualization": "enabled"
      },
      "SecondaryEniVSwitchConstraint": "Strict"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.