All Products
Search
Document Center

Auto Scaling:CreateEciScalingConfiguration

Last Updated:Oct 19, 2026

Creates an ECI scaling configuration.

Operation description

Operation description

A scaling configuration specifies the Elastic Container Instance (ECI) template used for scale-out.

The Cpu and Memory parameters specify the vCPU and memory range to define instance types. Auto Scaling determines the available instance types based on factors such as I/O optimization and zones, and creates the most cost-effective instances by sorting them by price. This method applies only when the scaling policy of the scaling group is set to 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

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:CreateEciScalingConfiguration

create

*ScalingGroup

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

None None

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 (.). It must start with a digit, letter, or Chinese character.

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

scalingconfig****

SecurityGroupId

string

No

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

If you do not specify a security group, the system automatically uses the default security group in the selected region. You must ensure that the inbound rules of this security group include the protocols and ports that the container needs to expose. If no default security group exists in the region, the system performs automatic creation of a default security group and adds the declared container protocols and ports to the inbound rules of the security group.

sg-uf66jeqopgqa9hdn****

ContainerGroupName

string

No

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

To set a sequential name, use the following format: name_prefix(AUTO_INCREMENT)[begin_number,bits]name_suffix.

  • name_prefix: Specifies the prefix of the hostname.

  • (AUTO_INCREMENT): A fixed value that identifies the sequential naming method.

  • begin_number: The start value of the sequential number. Valid values: 0 to 999999.

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

Note

Set bits to at least 3. Otherwise, the upper limit of the sequential number may be reached. After the upper limit is reached, if a scale-out is still required, the scaling activity reports an error and stops the scale-out. In this case, reset the hostname generation rule.

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

Note

Do not include spaces in [begin_number,bits]. The system increments the number sequentially by default. However, if a scaled-out ECI fails to start, the scaling group removes it and scales out a new ECI. Therefore, the hostnames of ECIs in the scaling group may increment discontinuously.

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 names are the same as those for setting sequential instance names in an ECS scaling group. For more information, see Set sequential and unique instance names or hostnames.

nginx-test[0,3]

RestartPolicy

string

No

The restart policy of the ECI. Valid values:

  • Always: Always restarts the ECI.

  • Never: Never restarts the ECI.

  • OnFailure: Restarts the ECI only when it fails.

Default value: Always.

Always

Cpu

number

No

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

1.0

Memory

number

No

The memory size of the instance. Unit: GiB.

2.0

ResourceGroupId

string

No

The ID of the resource group.

rg-uf66jeqopgqa9hdn****

DnsPolicy

string

No

The DNS policy. Valid values:

  • None: Uses the DNS settings specified in the DnsConfig field.

  • Default: Inherits the DNS settings of the runtime environment.

Default

ImageSnapshotId

string

No

The ID of the image cache.

imc-2zebxkiifuyzzlhl****

RamRoleName

string

No

The name of the instance RAM role. ECIs and ECS instances share the same instance RAM roles. 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 an image cache. Valid values:

  • true: Yes.

  • false: No.

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 preemption policy for the instance. Valid values:

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

  • SpotWithPriceLimit: spot instances with a maximum price limit

  • SpotAsPriceGo: spot instances whose price is automatically set by the system based on the current market price

Default value: NoSpot.

SpotWithPriceLimit

SpotPriceLimit

number

No

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

If SpotStrategy is set to SpotWithPriceLimit, you must specify SpotPriceLimit.

0.025

AutoCreateEip

boolean

No

Specifies whether automatic creation of an elastic IP address (EIP) is enabled and the system will attach it to the ECI instance.

true

EipBandwidth

integer

No

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

5

HostName

string

No

The hostname, which is the name of the container group.

test

IngressBandwidth

integer

No

The inbound bandwidth limit. Unit: bytes.

1024000

EgressBandwidth

integer

No

The outbound bandwidth limit. 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 indicates that hyper-threading is disabled. For more information, see Customize CPU options.

2

EphemeralStorage

integer

No

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

20

LoadBalancerWeight

integer

No

The weight of the ECI instance when it serves as a backend server for load balancing. Valid values: 1 to 100.

Default value: 50.

50

Tag

array<object>

No

The tags of the instance.

object

No

The tags of the instance.

Key

string

No

The tag key 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://.

version

Value

string

No

The tag value 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://.

3

ImageRegistryCredential

array<object>

No

The information about the image registry.

object

No

The information about the image registry.

Password

string

No

The password of the image registry.

yourpassword

Server

string

No

The endpoint of the image registry.

registry-vpc.cn-shanghai.aliyuncs.com

UserName

string

No

The username of the image registry.

yourusername

Container

array<object>

No

The container information included in the instance.

array<object>

No

The container information included in the instance.

ReadinessProbe.TimeoutSeconds

integer

No

The timeout period for the probe. Default value: 1 second. Minimum value: 1 second.

5

ReadinessProbe.SuccessThreshold

integer

No

The minimum consecutive successes for the probe to be considered successful after having failed. Default value: 1. The current value must be 1.

1

SecurityContext.Capability.Add

array

No

Grants specific privileges to processes in the container. Only NET_ADMIN and NET_RAW are supported.

Note

NET_RAW is not supported by default. Submit a ticket to apply for this privilege.

string

No

Grants specific privileges to processes in the container. Only NET_ADMIN and NET_RAW are supported.

Note

NET_RAW is not supported by default. Submit a ticket to apply for this privilege.

NET_ADMIN

ReadinessProbe.TcpSocket.Port

integer

No

The port number used for TCP socket health checks.

8000

ReadinessProbe.HttpGet.Scheme

string

No

The protocol type used for HTTP GET health checks. Valid values:

  • HTTP

  • HTTPS

HTTP

LivenessProbe.PeriodSeconds

integer

No

The interval between probe executions. Default value: 10 seconds. Minimum value: 1 second.

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 can contain letters, digits, and underscores (_). It cannot start with a digit.

PATH

Value

string

No

The value of the environment variable. The value must be 0 to 256 characters in length.

/usr/local/bin

LivenessProbe.TcpSocket.Port

integer

No

The port number used for TCP socket health checks.

8000

Tty

boolean

No

Specifies whether to enable TTY. Valid values:

  • true: Enabled.

  • false: Disabled.

Default value: false.

If Command is set to /bin/bash, set this parameter to true.

false

WorkingDir

string

No

The working directory of the container.

/usr/local/

LivenessProbe.HttpGet.Scheme

string

No

The protocol type used for HTTP GET health checks. Valid values:

  • HTTP

  • HTTPS

HTTP

ReadinessProbe.HttpGet.Port

integer

No

The port number used for HTTP GET health checks.

8080

Arg

array

No

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

string

No

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

100

Gpu

integer

No

The number of GPUs allocated to the container.

1

ReadinessProbe.InitialDelaySeconds

integer

No

The number of seconds after the container has started before the probe is initiated. Unit: seconds.

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 an 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

The number of seconds after the container has started before the probe is initiated. Unit: seconds.

5

VolumeMount

array<object>

No

The volume mount information.

object

No

The volume mount information.

MountPropagation

string

No

The mount propagation settings for 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 receive any subsequent mounts that are performed on the volume or its subdirectories.

  • HostToCotainer: The volume receives subsequent mounts that are performed on the volume or its subdirectories.

  • Bidirectional: Similar to HostToCotainer, the volume receives mount operations. Additionally, the volume is propagated back to the host and to 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 contents of the mount path in the container are directly overwritten by the contents of the volume. Use with caution.

/pod/data

ReadOnly

boolean

No

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

  • true: Yes.

  • false: No.

Default value: false.

false

Name

string

No

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

default-volume1

SubPath

string

No

The subpath of the volume.

data2/

LivenessProbe.FailureThreshold

integer

No

The minimum consecutive failures for the probe to be considered failed after having succeeded.

Default value: 3.

3

ReadinessProbe.Exec.Command

array

No

The command executed in the container for command-line health checks.

string

No

The command executed in the container for command-line health checks.

cat /tmp/healthy

ReadinessProbe.FailureThreshold

integer

No

The minimum consecutive failures for the probe to be considered failed after having succeeded. Default value: 3.

3

ImagePullPolicy

string

No

The image pull policy for the container. Valid values:

  • Always: Always pulls the image.

  • IfNotPresent: Pulls the image on demand. Uses the local image first, and pulls the image only if it is not available locally.

  • Never: Never pulls the image. Uses the local image and does not pull the image.

Note

If image caching is enabled, ImagePullPolicy is overridden to Always when the container is created.

Always

StdinOnce

boolean

No

Specifies whether the standard input stream maintains the enabling status across multiple attached sessions when standard input is true.

If StdinOnce is set to true, standard input is opened when the container starts, remains empty until the first client attaches to it, and then stays open to accept data until the client disconnects. At this point, standard input enters shutdown and remains in shutdown until the container is restarted.

false

Cpu

number

No

The number of CPU cores allocated to the container.

0.25

LivenessProbe.HttpGet.Port

integer

No

The port number used for HTTP GET health checks.

8888

LivenessProbe.HttpGet.Path

string

No

The path used for HTTP GET health checks.

/healthyz

LivenessProbe.SuccessThreshold

integer

No

The minimum consecutive successes for the probe to be considered successful after having failed. Default value: 1. The current value must be 1.

1

ReadinessProbe.PeriodSeconds

integer

No

The interval between probe executions. Default value: 10 seconds. Minimum value: 1 second.

3

LivenessProbe.TimeoutSeconds

integer

No

The timeout period for the probe. Default value: 1 second. Minimum value: 1 second.

1

Command

array

No

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

string

No

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

sleep

SecurityContext.RunAsUser

integer

No

The user ID used to run the container.

1000

ReadinessProbe.HttpGet.Path

string

No

The path used for HTTP GET health checks.

/healthz

LivenessProbe.Exec.Command

array

No

The command executed in the container for command-line health checks.

string

No

The command executed in the container for command-line health checks.

cat/tmp/healthy

LifecyclePostStartHandlerHttpGetHost

string

No

The host address that accepts HTTP GET requests when an HTTP GET request is used for the Settings of the PostStart callback function.

10.0.XX.XX

LifecyclePostStartHandlerHttpGetPort

integer

No

The port number checked by HTTP GET requests when an HTTP GET request is used for the Settings of the PostStart callback function.

5050

LifecyclePostStartHandlerHttpGetPath

string

No

The path checked by HTTP GET requests when an HTTP GET request is used for the Settings of the PostStart callback function.

/healthyz

LifecyclePostStartHandlerHttpGetScheme

string

No

The protocol type used for HTTP GET requests when an HTTP GET request is used for the Settings of the PostStart callback function. Valid values:

  • HTTP

  • HTTPS

HTTPS

LifecyclePostStartHandlerExec

array

No

The command executed in the container when a command line is used for the Settings of the PostStart callback function.

string

No

The command executed in the container when a command line is used for the Settings of the PostStart callback function.

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

LifecyclePostStartHandlerTcpSocketHost

string

No

The host address checked by TCP sockets when a TCP socket is used for the Settings of the PostStart callback function.

10.0.XX.XX

LifecyclePostStartHandlerTcpSocketPort

integer

No

The port checked by TCP sockets when a TCP socket is used for the Settings of the PostStart callback function.

80

LifecyclePreStopHandlerHttpGetHost

string

No

The host address that accepts HTTP GET requests when an HTTP GET request is used for the Settings of the PreStop callback function.

10.0.XX.XX

LifecyclePreStopHandlerHttpGetPort

integer

No

The port number checked by HTTP GET requests when an HTTP GET request is used for the Settings of the PreStop callback function.

88

LifecyclePreStopHandlerHttpGetPath

string

No

The path checked by HTTP GET requests when an HTTP GET request is used for the Settings of the PreStop callback function.

/healthyz

LifecyclePreStopHandlerHttpGetScheme

string

No

The protocol type used for HTTP GET requests when an HTTP GET request is used for the Settings of the PreStop callback function. Valid values:

  • HTTP

  • HTTPS

HTTP

LifecyclePreStopHandlerExec

array

No

The command executed in the container when a command line is used for the Settings of the PreStop callback function.

string

No

The command executed in the container when a command line is used for the Settings of the PreStop callback function.

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

LifecyclePreStopHandlerTcpSocketHost

string

No

The host address checked by TCP sockets when a TCP socket is used for the Settings of the PreStop callback function.

10.0.XX.XX

LifecyclePreStopHandlerTcpSocketPort

integer

No

The port checked by TCP sockets when a TCP socket is used for the Settings of the PreStop callback function.

90

Volume

array<object>

No

The volume information.

array<object>

No

The volume information.

Type

string

No

The volume type. Valid values:

  • EmptyDirVolume: an EmptyDir volume, which represents an empty directory.

  • NFSVolume: an NFS volume, which represents a network file system.

  • ConfigFileVolume: a ConfigFile volume, which represents a configuration file.

  • FlexVolume: uses the FlexVolume plug-in to extend storage types and supports mounting cloud disks.

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

  • DiskVolume (not recommended): a cloud disk volume. Use FlexVolume to mount cloud disks.

ConfigFileVolume

DiskVolume.DiskSize

integer

No

The size of the DiskVolume. Unit: GiB.

15

NFSVolume.Path

string

No

The path of the NFS volume.

/share

FlexVolume.FsType

string

No

The type of the file system to mount. The default value depends on the FlexVolume script.

ext4

DiskVolume.FsType

string

No

This file system type is not recommended. Use the FlexVolume.FsType parameter instead.

xfs

HostPathVolume.Type

string

No

The type of the host directory. Examples: File, Directory, and Socket.

Directory

NFSVolume.ReadOnly

boolean

No

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

  • true: yes.

  • false: no.

Default value: false.

false

HostPathVolume.Path

string

No

The absolute path on the host.

/xx/xx/path

FlexVolume.Options

string

No

The list of FlexVolume object options. The options are in key-value pair format and passed in JSON.

For example, when you mount a cloud disk by using FlexVolume, the Options format is {"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"}.

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

FlexVolume.Driver

string

No

The name of the driver used for FlexVolume.

flexvolume

ConfigFileVolumeDefaultMode

integer

No

The default permissions of the ConfigFileVolume.

0644

NFSVolume.Server

string

No

The address of the NFS server.

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

DiskVolume.DiskId

string

No

The ID of the DiskVolume.

d-xx

Name

string

No

The name of the volume.

default-volume1

EmptyDirVolume.Medium

string

No

The storage medium of the EmptyDirVolume. The default value is empty, which indicates that the node file system is used. The value memory indicates that memory is used.

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 directory permissions of the ConfigFileVolume.

0644

Content

string

No

The content of the configuration file (32 KB).

bGl1bWk=

EmptyDirVolume.SizeLimit

string

No

The size of the EmptyDir volume. Include a unit when specifying the value. Use Gi or 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 can contain letters, digits, and underscores (_). It cannot start with a digit.

Path

Value

string

No

The value of the environment variable. The value must be 0 to 256 characters in length.

/usr/bin/

SecurityContext.Capability.Add

array

No

Grants specific privileges to processes in the container. Only NET_ADMIN and NET_RAW are supported.

Note

NET_RAW is not supported by default. Submit a ticket to apply for this privilege.

string

No

Grants specific privileges to processes in the container. Only NET_ADMIN and NET_RAW are supported.

Note

NET_RAW is not supported by default. Submit a ticket to apply for this privilege.

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 settings 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 is not aware of any subsequent mount operations performed on this volume or its subdirectories.

  • HostToCotainer: The volume is aware of subsequent mount operations performed on this volume or its subdirectories.

  • Bidirectional: Similar to HostToCotainer, the volume is aware of mount operations. In addition, the volume is propagated back to the host and to 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 directly overwritten by the content of the volume.

/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 under the volume. This allows a pod to mount different directories under 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 for the container. Unit: cores.

0.5

WorkingDir

string

No

The working directory.

/usr/local

Command

array

No

The startup command of the container.

string

No

The startup command of the container.

sleep

Arg

array

No

The startup arguments of the container.

string

No

The startup arguments of the container.

10

SecurityContext.RunAsUser

integer

No

The user ID used to run the container.

587

Gpu

integer

No

The number of GPUs allocated to the container.

1

Memory

number

No

The memory size. Unit: GiB.

1.0

Name

string

No

The name of the container.

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

The variable value of the contextual security in which the instance runs.

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

The information about the ACR Enterprise instance.

object

No

The information about the ACR Enterprise instance.

Domain

array

No

The domain name of the ACR Enterprise instance. The default value is all domain names of the corresponding instance. You can specify individual domain names, separated by commas (,).

string

No

The domain name of the ACR Enterprise instance. The default value is all domain names of the corresponding instance. You can specify individual domain names, separated by commas (,).

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

InstanceName

string

No

The name of the ACR Enterprise instance.

acr-test

InstanceId

string

No

The instance ID of the ACR Enterprise instance.

cri-nwj395hgf6f3****

RegionId

string

No

The region ID of the ACR Enterprise instance.

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 instance family level, which is used to filter the instance types that meet the requirements. This parameter takes effect only when CostOptimization is enabled. Valid values:

  • EntryLevel: entry-level, which refers to shared instance types. This level provides lower costs but cannot guarantee stable computing performance. It is suitable for business scenarios with low CPU utilization. For more information, see Shared instance families.

  • EnterpriseLevel: enterprise-level. This level provides stable performance and dedicated resources, and is suitable for business scenarios that require high stability. For more information, see Instance families.

  • CreditEntryLevel: credit-based entry-level, which refers to burstable instances. This level uses CPU credits to maintain computing performance and is suitable for business scenarios with low baseline CPU utilization and occasional CPU 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 an instance by specifying ECS instance types.

ecs.g6.large

DataCacheBucket

string

No

The data cache bucket.

default

DataCachePL

string

No

The performance level of the cloud disk used for data caching. ESSD cloud disks are recommended. Valid values for the performance level of an ESSD cloud disk:

  • PL0: A single ESSD cloud disk delivers up to 10,000 random read/write IOPS.

  • PL1: A single ESSD cloud disk delivers up to 50,000 random read/write IOPS.

  • PL2: A single ESSD cloud disk delivers up to 100,000 random read/write IOPS.

  • PL3: A single ESSD cloud disk delivers up to 1,000,000 random read/write IOPS.

Default value: PL1.

Note

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

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}. The baseline performance is calculated by using the following formula: 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 the burstable performance feature 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

Specifies the GPU driver version. Valid values:

  • tesla=470.82.01 (default)

  • tesla=525.85.12

Note

Only specific instance types support switching the GPU driver version. For more information, see Create an instance by specifying a GPU instance type.

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.