All Products
Search
Document Center

Auto Scaling:CreateEciScalingConfiguration

Last Updated:Sep 10, 2026

Creates a scaling configuration of the Elastic Container Instance (ECI) type.

Operation description

Operation description

A scaling configuration specifies the ECI instance template used for elastic scale-out.

The Cpu and Memory parameters specify the range of instance types by defining the CPU and memory requirements. Auto Scaling determines the available instance types based on factors such as I/O optimization and zones, and then creates instances at the lowest price by sorting the instance types by price. This method applies only when the scaling group uses the cost optimization policy and no instance type is specified in the scaling configuration.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ScalingGroupId

string

Yes

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

asg-bp14wlu85wrpchm0****

ScalingConfigurationName

string

No

The name of the scaling configuration. The name must be 2 to 64 characters in length and can contain letters, digits, underscores (_), hyphens (-), and periods (.). The name must start with a digit, letter, or Chinese character.

The scaling configuration name must be unique within a scaling group in a region. If you do not specify this parameter, the scaling configuration ID is used by default.

scalingconfig****

SecurityGroupId

string

No

ECI 实例所属的安全组 ID。同一个安全组内的 ECI 实例之间可以互相访问。

如果没有指定安全组,系统将自动使用您选择的地域下的默认安全组,您需要确保该安全组的入方向规则中包含容器需要暴露的协议和端口。如果您在该地域下没有默认安全组,系统将自动创建一个默认安全组,并将您声明的容器协议和端口添加到该安全组的入方向规则中。

sg-uf66jeqopgqa9hdn****

ContainerGroupName

string

No

The name of the ECI instance, which is also the container group name.

To set sequential names, use the format name_prefix(AUTO_INCREMENT)[begin_number,bits]name_suffix.

  • name_prefix: the prefix of the hostname.

  • (AUTO_INCREMENT): a fixed value that indicates the sequential naming method.

  • begin_number: the start value of the sequential number. Valid values: [0,999999].

  • bits: the number of digits of the sequential number. Valid values: [1,6]. If the number of digits of begin_number is greater than the value of bits, bits defaults to 6.

Note

Set bits to at least 3. Otherwise, the sequential number may reach the upper limit. If the upper limit is reached and scale-out is still required, the scaling activity reports an error and stops the scale-out. In this case, you must reconfigure the hostname naming rule.

  • name_suffix (optional): the suffix of the hostname.

Note

[begin_number,bits] cannot contain spaces. The system increments the sequential number by default. However, if an ECI instance fails to start during scale-out, the scaling group removes the instance and creates a new one. As a result, the hostnames of ECI instances in the scaling group may not be consecutive.

Example: If you set this parameter to nginx-test-(AUTO_INCREMENT)[0,3], the container group names are nginx-test-000, nginx-test-001, and nginx-test-002.

The rules for setting sequential ECI instance names are the same as those for setting sequential ECS instance names. For more information, see Configure sequential and unique instance names or hostnames.

nginx-test[0,3]

RestartPolicy

string

No

The restart policy of the ECI instance. Valid values:

  • Always: always restarts the instance.

  • Never: never restarts the instance.

  • OnFailure: restarts the instance upon failure.

Default value: Always.

Always

Cpu

number

No

The number of vCPUs at the instance level. Unit: cores.

1.0

Memory

number

No

The memory size at the instance level. Unit: GiB.

2.0

ResourceGroupId

string

No

The resource group ID.

rg-uf66jeqopgqa9hdn****

DnsPolicy

string

No

The DNS policy. Valid values:

  • None: uses the DNS configured by the DnsConfig field.

  • Default: inherits the DNS settings from the runtime environment.

Default

ImageSnapshotId

string

No

The image cache ID.

imc-2zebxkiifuyzzlhl****

RamRoleName

string

No

The name of the instance RAM role. ECI and ECS share the same instance RAM role. For more information, see Instance RAM roles.

RamTestRole

TerminationGracePeriodSeconds

integer

No

The buffer time for the program to handle operations before shutdown. Unit: seconds.

60

AutoMatchImageCache

boolean

No

Specifies whether to automatically match the image cache. Valid values:

  • true

  • false

Default value: false.

false

Ipv6AddressCount

integer

No

The number of IPv6 addresses.

1

ActiveDeadlineSeconds

integer

No

The validity period. Unit: seconds.

1000

SpotStrategy

string

No

The bidding policy for the instance. Valid values:

  • NoSpot: a pay-as-you-go instance.

  • SpotWithPriceLimit: a spot instance with a maximum price limit.

  • SpotAsPriceGo: a spot instance that uses the market price at the time of purchase as the bid price.

Default value: NoSpot.

SpotWithPriceLimit

SpotPriceLimit

number

No

The maximum hourly price of the spot instance. The value can be accurate to three decimal places.

This parameter is required when SpotStrategy is set to SpotWithPriceLimit.

0.025

AutoCreateEip

boolean

No

Specifies whether to automatically create an elastic IP address (EIP) and associate it with the ECI instance.

true

EipBandwidth

integer

No

The bandwidth of the EIP. Default value: 5. Unit: Mbit/s.

5

HostName

string

No

The hostname, which is also the container group name.

test

IngressBandwidth

integer

No

The maximum inbound bandwidth. Unit: bytes.

1024000

EgressBandwidth

integer

No

The maximum outbound bandwidth. Unit: bytes.

1024000

CpuOptionsCore

integer

No

The number of physical CPU cores. Only specific instance types support custom settings. For more information, see Customize CPU options.

2

CpuOptionsThreadsPerCore

integer

No

The number of threads per core. Only specific instance types support custom settings. A value of 1 disables hyper-threading. For more information, see Customize CPU options.

2

EphemeralStorage

integer

No

The size of the ephemeral storage. ESSD PL1 cloud disks are used by default. Unit: GiB.

20

LoadBalancerWeight

integer

No

ECI 实例作为负载均衡后端服务器时的权重,取值范围:1~100。

默认值:50。

50

Tag

array<object>

No

The tags of the instance as key-value pairs.

object

No

The tags of the instance as key-value pairs.

Key

string

No

The tag key of the instance. Valid values of N: 1 to 20.

The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with aliyun or acs:. The tag key cannot contain http:// or https://.

version

Value

string

No

The tag value of the instance. Valid values of N: 1 to 20.

The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot start with acs:. The tag value cannot contain http:// or https://.

3

ImageRegistryCredential

array<object>

No

The image repository information.

object

No

The image repository information.

Password

string

No

The password of the image repository.

yourpassword

Server

string

No

The address of the image repository.

registry-vpc.cn-shanghai.aliyuncs.com

UserName

string

No

The username of the image repository.

yourusername

Container

array<object>

No

The container information of the instance.

array<object>

No

The container information of the instance.

ReadinessProbe.TimeoutSeconds

integer

No

检查超时的时间,默认值为 1 秒,最小值为 1 秒。

5

ReadinessProbe.SuccessThreshold

integer

No

从上次检查失败后重新认定检查成功的检查次数阈值(必须是连续成功),默认值为 1。当前值必须为 1。

1

SecurityContext.Capability.Add

array

No

为容器内的进程授予某些特定的权限。目前仅支持配置为 NET_ADMIN 和 NET_RAW。

Note

NET_RAW 默认不支持,需提交工单申请。

string

No

为容器内的进程授予某些特定的权限。目前仅支持配置为 NET_ADMIN 和 NET_RAW。

Note

NET_RAW 默认不支持,需提交工单申请。

NET_ADMIN

ReadinessProbe.TcpSocket.Port

integer

No

使用 TCP Socket 方式进行健康检查时,TCP Socket 检测的端口。

8000

ReadinessProbe.HttpGet.Scheme

string

No

使用 HTTP 请求方式进行健康检查时,HTTP Get 请求对应的协议类型,取值范围:

  • HTTP。

  • HTTPS。

HTTP

LivenessProbe.PeriodSeconds

integer

No

检查执行的周期,默认值为 10 秒,最小值为 1 秒。

5

Port

array<object>

No

The exposed ports and protocols.

object

No

The exposed ports and protocols.

Protocol

string

No

The protocol type. Valid values:

  • TCP

  • UDP.

TCP

Port

integer

No

The port number. Valid values: 1 to 65535.

80

EnvironmentVar

array<object>

No

The environment variables.

object

No

The environment variables.

Key

string

No

The name of the environment variable. The name must be 1 to 128 characters in length and must match the format [0-9a-zA-Z] and underscores (_). The name cannot start with a digit.

PATH

Value

string

No

The value of the environment variable. The value can be up to 256 characters in length.

/usr/local/bin

LivenessProbe.TcpSocket.Port

integer

No

使用 TCP Socket 方式进行健康检查时,TCP Socket 检测的端口。

8000

Tty

boolean

No

Specifies whether to enable interaction. Valid values:

  • true: enabled.

  • false: disabled.

Default value: false.

Set this parameter to true when Command is set to /bin/bash.

false

WorkingDir

string

No

The working directory of the container.

/usr/local/

LivenessProbe.HttpGet.Scheme

string

No

使用 HTTP 请求方式进行健康检查时,HTTP Get 请求对应的协议类型,取值范围:

  • HTTP。

  • HTTPS。

HTTP

ReadinessProbe.HttpGet.Port

integer

No

使用 HTTP 请求方式进行健康检查时,HTTP Get 请求检测的端口号。

8080

Arg

array

No

The arguments of the container startup command. A maximum of 10 arguments are supported.

string

No

The arguments of the container startup command. A maximum of 10 arguments are supported.

100

Gpu

integer

No

The number of GPUs used by the container.

1

ReadinessProbe.InitialDelaySeconds

integer

No

检查开始执行的时间,以容器启动完成为起点计算。单位为秒。

3

Stdin

boolean

No

Specifies whether to allocate a buffer for standard input in the container runtime. If this parameter is not set, reads from standard input in the container result in EOF.

Default value: false.

false

Memory

number

No

The memory size of the container. Unit: GiB.

0.5

Name

string

No

The name of the container image.

nginx

Image

string

No

The container image.

registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:latest

LivenessProbe.InitialDelaySeconds

integer

No

检查开始执行的时间,以容器启动完成为起点计算。单位为秒。

5

VolumeMount

array<object>

No

The volume mount information.

object

No

The volume mount information.

MountPropagation

string

No

The mount propagation setting of the volume. Mount propagation allows volumes mounted by a container to be shared with other containers in the same pod, or even with other pods on the same node. Valid values:

  • None: the volume does not detect any subsequent mounts on this volume or its subdirectories.

  • HostToCotainer: the volume detects subsequent mounts on this volume or its subdirectories.

  • Bidirectional: similar to HostToCotainer, the volume detects mount operations. In addition, the volume is propagated back to the host and all containers of all pods that use the same volume.

Default value: None.

None

MountPath

string

No

The directory in the container where the volume is mounted.

Note

The content in the mount directory of the container is overwritten by the volume content. Use caution when you configure this parameter.

/pod/data

ReadOnly

boolean

No

Specifies whether the volume is read-only. Valid values:

  • true

  • false

Default value: false.

false

Name

string

No

The name of the volume. This value is the same as the Name value in Volume.

default-volume1

SubPath

string

No

The subpath of the volume.

data2/

LivenessProbe.FailureThreshold

integer

No

从上次检查成功后认定检查失败的检查次数阈值(必须是连续失败)。

默认值:3。

3

ReadinessProbe.Exec.Command

array

No

使用命令行方式进行健康检查时,在容器内执行的命令。

string

No

使用命令行方式进行健康检查时,在容器内执行的命令。

cat /tmp/healthy

ReadinessProbe.FailureThreshold

integer

No

从上次检查成功后认定检查失败的检查次数阈值(必须是连续失败)。默认值:3。

3

ImagePullPolicy

string

No

The image pull policy of the container. Valid values:

  • Always: always pulls the image.

  • IfNotPresent: pulls the image only if it is not available locally.

  • Never: never pulls the image. Only uses the local image.

Always

StdinOnce

boolean

No

当标准输入为 true 时,标准输入流将在多个附加会话中是否保持开启状态。

如果 StdinOnce 设为 true,标准输入在容器开启时被打开,在首个客户端附加到标准输入之前都为空,然后会一直保持开启状态,接收数据,直到客户端连接断开,此时标准输入被关闭,在容器重启前一直保持关闭状态。

false

Cpu

number

No

The number of vCPUs of the container. Unit: cores.

0.25

LivenessProbe.HttpGet.Port

integer

No

使用 HTTP 请求方式进行健康检查时,HTTP Get 请求检测的端口号。

8888

LivenessProbe.HttpGet.Path

string

No

使用 HTTP 请求方式进行健康检查时,HTTP Get 请求检测的路径。

/healthyz

LivenessProbe.SuccessThreshold

integer

No

从上次检查失败后重新认定检查成功的检查次数阈值(必须是连续成功),默认值为 1。当前值必须为 1。

1

ReadinessProbe.PeriodSeconds

integer

No

检查执行的周期,默认值为 10 秒,最小值为 1 秒。

3

LivenessProbe.TimeoutSeconds

integer

No

检查超时的时间,默认值为 1 秒,最小值为 1 秒。

1

Command

array

No

The container startup commands. A maximum of 20 commands are supported. Each command can contain up to 256 characters.

string

No

The container startup commands. A maximum of 20 commands are supported. Each command can contain up to 256 characters.

sleep

SecurityContext.RunAsUser

integer

No

设置运行容器的用户 ID。

1000

ReadinessProbe.HttpGet.Path

string

No

使用 HTTP 请求方式进行健康检查时,HTTP Get 请求检测的路径。

/healthz

LivenessProbe.Exec.Command

array

No

使用命令行方式进行健康检查时,在容器内执行的命令。

string

No

使用命令行方式进行健康检查时,在容器内执行的命令。

cat/tmp/healthy

LifecyclePostStartHandlerHttpGetHost

string

No

The host address that receives the HTTP Get request when the HTTP request method is used to set the PostStart callback function.

10.0.XX.XX

LifecyclePostStartHandlerHttpGetPort

integer

No

The port number for the HTTP Get request when the HTTP request method is used to set the PostStart callback function.

5050

LifecyclePostStartHandlerHttpGetPath

string

No

The path for the HTTP Get request when the HTTP request method is used to set the PostStart callback function.

/healthyz

LifecyclePostStartHandlerHttpGetScheme

string

No

The protocol type of the HTTP Get request when the HTTP request method is used to set the PostStart callback function. Valid values:

  • HTTP

  • HTTPS.

HTTPS

LifecyclePostStartHandlerExec

array

No

The command executed in the container when the command-line method is used to set the PostStart callback function.

string

No

The command executed in the container when the command-line method is used to set the PostStart callback function.

[ "/bin/sh", "-c", "echo Hello from the postStart handler /usr/share/message" ]

LifecyclePostStartHandlerTcpSocketHost

string

No

The host address for TCP Socket detection when the TCP Socket method is used to set the PostStart callback function.

10.0.XX.XX

LifecyclePostStartHandlerTcpSocketPort

integer

No

The port for TCP Socket detection when the TCP Socket method is used to set the PostStart callback function.

80

LifecyclePreStopHandlerHttpGetHost

string

No

The host address that receives the HTTP Get request when the HTTP request method is used to set the PreStop callback function.

10.0.XX.XX

LifecyclePreStopHandlerHttpGetPort

integer

No

The port number for the HTTP Get request when the HTTP request method is used to set the PreStop callback function.

88

LifecyclePreStopHandlerHttpGetPath

string

No

The path for the HTTP Get request when the HTTP request method is used to set the PreStop callback function.

/healthyz

LifecyclePreStopHandlerHttpGetScheme

string

No

The protocol type of the HTTP Get request when the HTTP request method is used to set the PreStop callback function. Valid values:

  • HTTP

  • HTTPS.

HTTP

LifecyclePreStopHandlerExec

array

No

The command executed in the container when the command-line method is used to set the PreStop callback function.

string

No

The command executed in the container when the command-line method is used to set the PreStop callback function.

[ "/bin/sh", "-c", "echo Hello from the preStop handler /usr/share/message" ]

LifecyclePreStopHandlerTcpSocketHost

string

No

The host address for TCP Socket detection when the TCP Socket method is used to set the PreStop callback function.

10.0.XX.XX

LifecyclePreStopHandlerTcpSocketPort

integer

No

The port for TCP Socket detection when the TCP Socket method is used to set the PreStop callback function.

90

Volume

array<object>

No

The volume information.

array<object>

No

The volume information.

Type

string

No

The type of the volume. Valid values:

  • EmptyDirVolume: an EmptyDir volume that represents an empty directory.

  • NFSVolume: an NFS volume that represents a Network File System.

  • ConfigFileVolume: a ConfigFile volume that represents a configuration file.

  • FlexVolume: a FlexVolume that uses the FlexVolume plugin to extend storage types and supports mounting cloud disks.

  • HostPathVolume: a HostPath volume that represents a file or directory on the host node.

  • DiskVolume (not recommended): a cloud disk volume. We recommend that you use FlexVolume to mount cloud disks.

ConfigFileVolume

DiskVolume.DiskSize

integer

No

DiskVolume 的大小。单位:GiB。

15

NFSVolume.Path

string

No

NFS 数据卷路径。

/share

FlexVolume.FsType

string

No

挂载的文件系统类型,默认取决于 FlexVolume 的 script。

ext4

DiskVolume.FsType

string

No

该系统类型不推荐使用,建议您使用FlexVolume.FsType参数。

xfs

HostPathVolume.Type

string

No

Host 目录的类型。例如:File、Directory、Socket 等。

Directory

NFSVolume.ReadOnly

boolean

No

NFS 数据卷是否只读。取值范围:

  • true:是。

  • false:否。

默认值:false。

false

HostPathVolume.Path

string

No

Host 上的绝对路径。

/xx/xx/path

FlexVolume.Options

string

No

FlexVolume 对象选项列表。为 KV 形式,采用 JSON 传递。

例如:通过 FlexVolume 挂载云盘时,Options 的格式为{"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"}。

{"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"}

FlexVolume.Driver

string

No

用于 FlexVolume 的驱动程序名称。

flexvolume

ConfigFileVolumeDefaultMode

integer

No

The default permissions of the ConfigFileVolume.

0644

NFSVolume.Server

string

No

NFS 服务器地址。

3f9cd4a596-naw76.cn-shanghai.nas.aliyuncs.com

DiskVolume.DiskId

string

No

DiskVolume 的 ID。

d-xx

Name

string

No

The name of the volume.

default-volume1

EmptyDirVolume.Medium

string

No

EmptyDirVolume 的存储媒介,默认为空,使用 node 文件系统;支持 memory,表示使用内存。

memory

ConfigFileVolumeConfigFileToPath

array<object>

No

The list of configuration file paths.

object

No

The list of configuration file paths.

Path

string

No

The relative file path of the configuration file.

PATH

Mode

integer

No

The permissions of the ConfigFileVolume directory.

0644

Content

string

No

The content of the configuration file (32 KB).

bGl1bWk=

EmptyDirVolume.SizeLimit

string

No

EmptyDir 数据卷的大小。取值时请带上单位,建议使用 Gi 或 Mi。

256 Mi

InitContainer

array<object>

No

The list of init containers.

array<object>

No

The list of init containers.

InitContainerEnvironmentVar

array<object>

No

The environment variable information.

object

No

The environment variable information.

Key

string

No

The name of the environment variable. The name must be 1 to 128 characters in length and must match the format [0-9a-zA-Z] and underscores (_). The name cannot start with a digit.

Path

Value

string

No

The value of the environment variable. The value can be up to 256 characters in length.

/usr/bin/

SecurityContext.Capability.Add

array

No

为容器内的进程授予某些特定的权限。目前仅支持配置为 NET_ADMIN 和 NET_RAW。

Note

NET_RAW 默认不支持,需提交工单申请。

string

No

为容器内的进程授予某些特定的权限。目前仅支持配置为 NET_ADMIN 和 NET_RAW。

Note

NET_RAW 默认不支持,需提交工单申请。

NET_ADMIN

Image

string

No

The image used by the container.

nginx

InitContainerVolumeMount

array<object>

No

The volume mount information.

object

No

The volume mount information.

MountPropagation

string

No

The mount propagation setting of the volume. Mount propagation allows volumes mounted by a container to be shared with other containers in the same pod, or even with other pods on the same node. Valid values:

  • None: the volume does not detect any subsequent mounts on this volume or its subdirectories.

  • HostToCotainer: the volume detects subsequent mounts on this volume or its subdirectories.

  • Bidirectional: similar to HostToCotainer, the volume detects mount operations. In addition, the volume is propagated back to the host and all containers of all pods that use the same volume.

None

MountPath

string

No

The mount directory. The content in the mount directory of the container is overwritten by the volume content.

/usr/share/

ReadOnly

boolean

No

Specifies whether the mount path is read-only.

Default value: false.

false

Name

string

No

The name of the mounted volume.

test-empty

SubPath

string

No

The subdirectory of the volume. This allows a pod to mount different directories of the same volume to different directories in the container.

/usr/sub/

ImagePullPolicy

string

No

The image pull policy.

Always

Cpu

number

No

The number of vCPUs of the container. Unit: cores.

0.5

WorkingDir

string

No

The working directory.

/usr/local

Command

array

No

The container startup command.

string

No

The container startup command.

sleep

Arg

array

No

The container startup arguments.

string

No

The container startup arguments.

10

SecurityContext.RunAsUser

integer

No

设置运行容器的用户 ID。

587

Gpu

integer

No

The number of GPUs used by the container.

1

Memory

number

No

The memory size. Unit: GiB.

1.0

Name

string

No

The container name.

test-init

DnsConfigNameServer

array

No

The list of IP addresses of DNS servers.

string

No

The list of IP addresses of DNS servers.

172.10.*.**

DnsConfigSearch

array

No

The list of DNS search domains.

string

No

The list of DNS search domains.

svc.local.kubenetes

DnsConfigOption

array<object>

No

The list of object options. Each object consists of a Name and an optional Value.

object

No

The list of object options. Each object consists of a Name and an optional Value.

Value

string

No

The value of the object variable.

value

Name

string

No

The name of the object variable.

name

HostAliase

array<object>

No

The custom hostname mapping for a container in the instance.

object

No

The custom hostname mapping for a container in the instance.

Ip

string

No

The IP address to add.

1.1.1.1

Hostname

array

No

The hostname to add.

string

No

The hostname to add.

hehe.com

SecurityContextSysctl

array<object>

No

The system information.

object

No

The system information.

Value

string

No

实例运行的安全上下文的变量值。

65536

Name

string

No

The system name of the security context in which the instance runs.

kernel.msgmax

NtpServer

array

No

The NTP server.

string

No

The NTP server.

ntp.cloud.aliyuncs.com

AcrRegistryInfo

array<object>

No

ACR 企业版实例信息。

object

No

ACR 企业版实例信息。

Domain

array

No

ACR 企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号(,)分隔。

string

No

ACR 企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号(,)分隔。

*****-****-registry.cn-beijing.cr.aliyuncs.com

InstanceName

string

No

ACR 企业版实例的名称。

acr-test

InstanceId

string

No

ACR 企业版实例 ID。

cri-nwj395hgf6f3****

RegionId

string

No

ACR 企业版实例所属地域。

cn-beijing

CostOptimization

boolean

No

Specifies whether to enable cost optimization. Valid values:

  • true: enabled.

  • false: disabled.

Default value: false.

false

InstanceFamilyLevel

string

No

The level of the instance family, which is used to filter instance types that meet the requirements. This parameter takes effect only when CostOptimization is enabled. Valid values:

  • EntryLevel: shared instance types. Lower cost but no guaranteed stability of computing performance. Suitable for scenarios with low CPU utilization. For more information, see Shared instance families.

  • EnterpriseLevel: enterprise-level instance types. Stable performance with dedicated resources. Suitable for scenarios that require high stability. For more information, see Instance families.

  • CreditEntryLevel: burstable instance types. CPU credits are used to ensure computing performance. Suitable for scenarios with low average CPU utilization and occasional bursts. For more information, see Overview of burstable instances.

EnterpriseLevel

InstanceType

array

No

The specified ECS instance types. You can specify up to five instance types.

string

No

The specified ECS instance type. You can specify up to five instance types. For more information, see Create instances by specifying ECS instance types.

ecs.g6.large

DataCacheBucket

string

No

The data cache bucket.

default

DataCachePL

string

No

The performance level (PL) of the cloud disk used for data caching. We recommend that you use ESSDs. Valid values for ESSD performance levels:

  • PL0: a maximum of 10,000 random read/write IOPS per disk.

  • PL1: a maximum of 50,000 random read/write IOPS per disk.

  • PL2: a maximum of 100,000 random read/write IOPS per disk.

  • PL3: a maximum of 1,000,000 random read/write IOPS per disk.

Default value: PL1.

Note

For more information about ESSDs, see ESSDs.

PL1

DataCacheProvisionedIops

integer

No

The provisioned read/write IOPS of the ESSD AutoPL disk used for data caching. Valid values: 0 to min{50000, 1000 × Capacity - Baseline Performance}, where Baseline Performance = min{1800 + 50 × Capacity, 50000}.

Note

For more information about ESSD AutoPL disks, see ESSD AutoPL disks.

40000

DataCacheBurstingEnabled

boolean

No

Specifies whether to enable burst (performance bursting) for the ESSD AutoPL disk used for data caching. Valid values:

  • true: enabled.

  • false: disabled.

Default value: false.

Note

For more information about ESSD AutoPL disks, see ESSD AutoPL disks.

false

GpuDriverVersion

string

No

The GPU driver version. Valid values:

  • tesla=470.82.01 (default)

  • tesla=525.85.12

Note

Only specific instance types support switching GPU driver versions. For more information, see Create instances by specifying GPU instance types.

tesla=525.85.12

Response elements

Element

Type

Description

Example

object

ScalingConfigurationId

string

The ID of the scaling configuration.

asc-uf6fonnghi50u374****

RequestId

string

The request ID.

89945DD3-9072-47D0-A318-353284CF****

Examples

Success response

JSON format

{
  "ScalingConfigurationId": "asc-uf6fonnghi50u374****",
  "RequestId": "89945DD3-9072-47D0-A318-353284CF****"
}

Error codes

HTTP status code

Error code

Error message

Description

403 Forbidden.RiskControl Forbidden.RiskControl

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.