All Products
Search
Document Center

Auto Scaling:DescribeEciScalingConfigurations

Last Updated:Oct 13, 2026

Queries ECI scaling configurations. You can invoke DescribeEciScalingConfigurations and specify parameters such as the scaling group ID, and the scaling configuration IDs or names. This parameter query retrieves information such as the instance preemption policy, container group instance types, container image pull policy, and the weight of ECI instances as backend servers.

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

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. Pages start from 1.

Default value: 1.

1

PageSize

integer

No

The number of entries per page for a paged query. Settings for paging: 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 IDs of the scaling configurations to be queried. You can specify 1 to 10 IDs.

The query results include both active and inactive scaling configurations, which are identified by the LifecycleState response parameter.

string

No

The ID of the scaling configuration to be queried.

The query results include both active and inactive scaling configurations, which are identified by the LifecycleState response parameter.

asc-bp17pelvl720x5ub****

ScalingConfigurationNames

array

No

The names of the scaling configurations to be queried. You can specify 1 to 10 names.

Invalid scaling configuration names are ignored in the query results, and no error is reported.

string

No

The name of the scaling configuration to be queried.

Invalid scaling configuration names are ignored in the query results, and no error is reported.

scalingcon****

Response elements

Element

Type

Description

Example

object

The scaling configuration information.

PageNumber

integer

The current page number.

1

PageSize

integer

The number of entries per page.

50

RequestId

string

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

TotalCount

integer

The total number of scaling configurations.

1

ScalingConfigurations

array<object>

The scaling configurations.

array<object>

The scaling configurations.

CreationTime

string

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

2014-08-14T10:58Z

ScalingConfigurationName

string

The name of the scaling configuration.

scalingconfi****

SecurityGroupId

string

The ID of the security group to which the Elastic Container Instance (ECI) belongs. ECI instances in the same security group can access each other.

sg-bp18kz60mefs****

ActiveDeadlineSeconds

integer

The validity period. Unit: seconds.

1000

SpotStrategy

string

The preemption policy for the instance. Valid values:

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

  • SpotWithPriceLimit: spot instance with a maximum price

  • SpotAsPriceGo: spot instance with a price automatically offered by the system based on the current market price

NoSpot

AutoCreateEip

boolean

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

true

ScalingGroupId

string

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

asg-bp17pelvl720x3v7****

EphemeralStorage

integer

The size of the ephemeral storage space. Unit: GiB.

20

Ipv6AddressCount

integer

The number of IPv6 addresses.

1

Description

string

This parameter is unavailable.

This is an example.

EipBandwidth

integer

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

5

ImageSnapshotId

string

The ID of the image cache.

imc-2zebxkiifuyzzlhl****

Memory

number

The memory size. You can specify both CPU and Memory to define a range of instance types. 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 zone, and creates the instance type that has the lowest price.

Note

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

16

RestartPolicy

string

The restart policy for the pod. Valid values:

  • Never: The pod is not restarted.

  • Always: The pod is always restarted.

  • OnFailure: The pod is restarted upon failure.

Never

SpotPriceLimit

number

The maximum hourly price for the spot instance. This parameter is returned only when SpotStrategy is set to SpotWithPriceLimit.

0.025

IngressBandwidth

integer

The inbound bandwidth limit. Unit: bytes.

1024000

CpuOptionsThreadsPerCore

integer

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

TerminationGracePeriodSeconds

integer

The grace period for the program to handle operations before termination.

60

LoadBalancerWeight

integer

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

1

DnsPolicy

string

The DNS policy.

Default

HostName

string

The hostname.

['hehe.com', 'haha.com']

EgressBandwidth

integer

The outbound bandwidth limit. Unit: bytes.

1024000

RegionId

string

The region ID of the ECI instance.

cn-hangzhou

RamRoleName

string

The name of the instance RAM role. ECI and ECS share the same instance RAM role. For more information, see Use an instance RAM role by calling API operations.

ram:PassRole

Cpu

number

The number of vCPUs for the instance.

2.0

AutoMatchImageCache

boolean

Specifies whether to automatically match an image cache. Default value: false.

false

ResourceGroupId

string

The ID of the resource group.

rg-8db03793gfrz****

ContainerGroupName

string

The name of the ECI instance, which is also the name of the pod.

test

ScalingConfigurationId

string

The ID of the scaling configuration.

asc-bp1ezrfgoyn5kijl****

CpuOptionsCore

integer

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

2

SlsEnable

boolean

This parameter is unavailable.

False

Containers

array<object>

The list of containers included in the ECI instance.

array<object>

The information about the containers included in the ECI instance.

ReadinessProbeHttpGetPath

string

The path for the HTTP GET readiness probe.

/usr/local

ReadinessProbeSuccessThreshold

integer

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

1

LivenessProbePeriodSeconds

integer

The execution period of the liveness probe. Default value: 10 seconds. Minimum value: 1 second.

5

LivenessProbeTcpSocketPort

integer

The port number for the TCP socket liveness probe.

80

LivenessProbeHttpGetScheme

string

The protocol type for the HTTP GET request when HTTP requests are used for health checks. Valid values:

  • HTTP

  • HTTPS

HTTP

WorkingDir

string

The working directory in the container.

/usr/local/nginx

Tty

boolean

Specifies whether to enable interaction. Valid values:

  • true: enabled

  • false: disabled For example, if Command is set to /bin/bash, you must set this parameter to true. Default value: false.

false

LivenessProbeHttpGetPort

integer

The port for the HTTP GET liveness probe.

80

Gpu

integer

The number of GPUs.

1

ReadinessProbeInitialDelaySeconds

integer

The delay before the readiness probe is initiated after the container starts.

5

Stdin

boolean

Specifies whether to allocate a buffer for standard input during container runtime. If this parameter is not set, reading from standard input in the container results in an EOF. Default value: false.

true

Memory

number

The memory size of the container.

2.0

Name

string

The custom name of the container.

nginx

SecurityContextReadOnlyRootFilesystem

boolean

Specifies whether the root file system is read-only. Only true is supported.

true

LivenessProbeHttpGetPath

string

The path for the HTTP GET readiness probe.

/usr/nginx/

Image

string

The container image.

mysql

ReadinessProbeTcpSocketPort

integer

The port number for the TCP socket liveness probe.

8888

ReadinessProbeHttpGetScheme

string

The protocol type for the HTTP GET request when HTTP requests are used for health checks. Valid values:

  • HTTP

  • HTTPS

HTTP

ReadinessProbeHttpGetPort

integer

The path for the HTTP GET readiness probe.

/usr/nginx/

LivenessProbeSuccessThreshold

integer

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

1

ReadinessProbeTimeoutSeconds

integer

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

5

SecurityContextRunAsUser

integer

The UID used to run the entrypoint of the container process.

1000

LivenessProbeInitialDelaySeconds

integer

The delay before the readiness probe is initiated after the container starts.

10

ReadinessProbePeriodSeconds

integer

The execution period of the readiness probe. Default value: 10 seconds. Minimum value: 1 second.

1

ImagePullPolicy

string

The image pull policy. Valid values:

  • Alway: The image is always pulled.

  • IfNotPresent: The image is pulled on demand. The local image is used first. If no local image is available, the image is pulled.

  • Never: The image is never pulled. The local image is used.

Always

StdinOnce

boolean

Specifies whether the standard input stream remains in the enabling status across multiple attached sessions when standard input is set to 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 in the enabling status to accept data until the client connection is disconnected. At this point, standard input is shutdown and remains shutdown until the container is restarted.

true

Cpu

number

The number of vCPUs for the container.

2.0

LivenessProbeTimeoutSeconds

integer

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

10

ReadinessProbeFailureThreshold

integer

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

3

LivenessProbeFailureThreshold

integer

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

3

Ports

array<object>

The list of exposed ports and protocols.

object

The exposed port and protocol.

Port

integer

The port number. Valid values: 1 to 65535.

8888

Protocol

string

The protocol type. Valid values:

  • TCP

  • UDP

TCP

VolumeMounts

array<object>

The list of volume mounts.

object

The volume mount.

ReadOnly

boolean

Specifies whether the data volume is read-only. Default value: false.

false

SubPath

string

The subpath of the data volume.

data2/

Name

string

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

default-volume1

MountPropagation

string

The mount propagation settings for the data 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 the volume or its subdirectories.

  • HostToCotainer: The volume is aware of subsequent mount operations performed on the 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. Default value: None.

None

MountPath

string

The directory where the container mounts the data volume.

Important The content in the mount directory of the container is directly overwritten by the content of the volume. Use this parameter with caution.

/pod/data

EnvironmentVars

array<object>

The list of environment variables.

object

The information about the environment variable.

Key

string

The name of the environment variable.

PATH

Value

string

The value of the environment variable.

/usr/bin/

FieldRefFieldPath

string

This parameter is unavailable.

path

Commands

array

The list of startup commands for the container. A maximum of 20 commands can be specified. Each command can contain up to 256 characters.

string

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

sleep

LivenessProbeExecCommands

array

The list of commands executed in the container for command-line-based health checks.

string

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

cat/tmp/healthy

Args

array

The list of arguments for the container startup commands. A maximum of 10 arguments can be specified.

string

The argument for the container startup command. A maximum of 10 arguments can be specified.

100

ReadinessProbeExecCommands

array

The list of commands executed in the container for command-line-based health checks.

string

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

cat/tmp/healthy

SecurityContextCapabilityAdds

array

The specific permissions granted to processes in the container. Currently, only NET_ADMIN and NET_RAW are supported.

Note

By default, NET_RAW is not supported. To use NET_RAW, submit a ticket.

string

The specific permissions granted to processes in the container. Currently, only NET_ADMIN and NET_RAW are supported.

Note

By default, NET_RAW is not supported. To use NET_RAW, submit a ticket.

NET_ADMIN

LifecyclePostStartHandlerHttpGetHost

string

The host address that receives the HTTP GET request when the postStart callback function is configured by using an HTTP request.

10.0.XX.XX

LifecyclePostStartHandlerHttpGetPort

integer

The port number checked by the HTTP GET request when the postStart callback function is configured by using an HTTP request.

80

LifecyclePostStartHandlerHttpGetPath

string

The path checked by the HTTP GET request when the postStart callback function is configured by using an HTTP request.

/healthyz

LifecyclePostStartHandlerHttpGetScheme

string

The protocol type used for the HTTP GET request when the postStart callback function is configured by using an HTTP request.

HTTP

LifecyclePostStartHandlerExecs

array

The command executed in the container when the postStart callback function is configured by using the command line.

string

The command executed in the container when the postStart callback function is configured by using the command line.

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

LifecyclePostStartHandlerTcpSocketHost

string

The host address checked by the TCP socket when the postStart callback function is configured by using a TCP socket.

10.0.XX.XX

LifecyclePostStartHandlerTcpSocketPort

integer

The port checked by the TCP socket when the postStart callback function is configured by using a TCP socket.

80

LifecyclePreStopHandlerHttpGetHost

string

The host address that receives the HTTP GET request when the preStop callback function is configured by using an HTTP request.

10.0.XX.XX

LifecyclePreStopHandlerHttpGetPort

integer

The port number checked by the HTTP GET request when the preStop callback function is configured by using an HTTP request.

80

LifecyclePreStopHandlerHttpGetPath

string

The path checked by the HTTP GET request when the preStop callback function is configured by using an HTTP request.

/healthyz

LifecyclePreStopHandlerHttpGetScheme

string

The protocol type used for the HTTP GET request when the preStop callback function is configured by using an HTTP request.

HTTP

LifecyclePreStopHandlerExecs

array

The command executed in the container when the preStop callback function is configured by using the command line.

string

The command executed in the container when the preStop callback function is configured by using the command line.

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

LifecyclePreStopHandlerTcpSocketHost

string

The host address checked by the TCP socket when the preStop callback function is configured by using a TCP socket.

10.0.XX.XX

LifecyclePreStopHandlerTcpSocketPort

integer

The port checked by the TCP socket when the preStop callback function is configured by using a TCP socket.

80

InitContainers

array<object>

The list of init containers.

array<object>

The list of init containers.

SecurityContextReadOnlyRootFilesystem

boolean

Specifies whether the root file system where the container runs is read-only. Currently, only true is supported.

true

ImagePullPolicy

string

The image pull policy.

Always

WorkingDir

string

The working directory.

/usr/local

Cpu

number

The CPU size.

0.5

Image

string

The image used by the container.

nginx

Gpu

integer

The number of GPUs used by the container.

1

SecurityContextRunAsUser

string

The user ID used to run the container.

587

Memory

number

The memory size.

1.0

Name

string

The name of the container.

test-init

InitContainerEnvironmentVars

array<object>

The information about the environment variable.

object

The information about the environment variable.

Key

string

The name of the environment variable.

PATH

Value

string

The value of the environment variable.

/usr/local/bin

FieldRefFieldPath

string

This parameter is unavailable.

path

InitContainerPorts

array<object>

The collection of port information for the init container.

object

The collection of port information for the init container.

Port

integer

The port number. Valid values: 1 to 65535.

1

Protocol

string

The protocol type. Valid values:

  • TCP.

  • UDP.

TCP

InitContainerVolumeMounts

array<object>

The data volume mounts.

object

The data volume mounts.

ReadOnly

boolean

Specifies whether the mount path is read-only.

Default value: false.

false

SubPath

string

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

/usr/sub/

Name

string

The name of the mounted data volume.

test-empty

MountPropagation

string

The mount propagation settings for the data 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 the volume or its subdirectories.

  • HostToCotainer: The volume is aware of subsequent mount operations performed on the 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. Default value: None.

None

MountPath

string

The mount directory. The content in the mount directory of the container is directly overwritten by the content of the volume. Use this parameter with caution.

/usr/share/

SecurityContextCapabilityAdds

array

The specific permissions granted to processes in the container. Currently, only NET_ADMIN and NET_RAW are supported.

Note

By default, NET_RAW is not supported. To use NET_RAW, submit a ticket.

string

The specific permissions granted to processes in the container. Currently, only NET_ADMIN and NET_RAW are supported.

Note

By default, NET_RAW is not supported. To use NET_RAW, submit a ticket.

NET_ADMIN

InitContainerCommands

array

The startup commands for the container.

string

The startup commands for the container.

sleep

InitContainerArgs

array

The startup arguments for the container.

string

The startup arguments for the container.

10

Tags

array<object>

The tag key-value pairs of the instance.

object

The tag key-value pairs of the instance.

Key

string

The tag key.

version

Value

string

The tag value.

3

Volumes

array<object>

The data volume information.

array<object>

The data volume information.

Type

string

The data volume type. Valid values:

  • EmptyDirVolume.

  • NFSVolume.

  • ConfigFileVolume.

  • FlexVolume.

EmptyDirVolume

DiskVolumeDiskId

string

The size of the disk volume. Unit: GiB.

15

DiskVolumeFsType

string

The file system type of the disk volume.

xfs

EmptyDirVolumeMedium

string

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

memory

NFSVolumePath

string

The path of the NFS volume.

/share

DiskVolumeDiskSize

integer

The size of the disk volume. Unit: GiB.

15

NFSVolumeReadOnly

boolean

Specifies whether the NFS volume is read-only.

Default value: false.

false

FlexVolumeFsType

string

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

ext4

ConfigFileVolumeDefaultMode

integer

The default permissions of the ConfigFileVolume.

0644

FlexVolumeDriver

string

The name of the driver used for FlexVolume.

flexvolume

FlexVolumeOptions

string

The list of options for the FlexVolume object. The options are passed in JSON format as key-value pairs. For example, when you mount a cloud disk by using FlexVolume, the options are in the following format: {"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"}.

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

NFSVolumeServer

string

The address of the NFS server.

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

Name

string

The name of the data volume.

default-volume1

ConfigFileVolumeConfigFileToPaths

array<object>

The list of configuration file paths.

object

The list of configuration file paths.

Path

string

The relative file path.

/usr/bin/

Mode

integer

The directory permissions of the ConfigFileVolume.

0644

Content

string

The content of the configuration file (32 KB).

bGl1bWk=

EmptyDirVolumeSizeLimit

string

The size of the EmptyDir data volume.

256Mi

HostPathVolumeType

string

The type of the HostPath volume.

Directory

HostPathVolumePath

string

The directory path of the HostPath volume on the host.

/pod/data

ImageRegistryCredentials

array<object>

The image registry information.

object

The image registry information.

Password

string

The password for the image registry.

yourpaasword

Server

string

The address of the image registry.

registry-vpc.cn-shanghai.aliyuncs.com

UserName

string

The username for the image registry.

yourusername

DnsConfigOptions

array<object>

The list of DNS configuration options. Each option consists of a name and an optional value.

object

The list of DNS configuration options. Each option consists of a name and an optional value.

Name

string

The name of the option.

name

Value

string

The value of the option.

value

HostAliases

array<object>

The custom hostname mappings for a container in the instance.

object

The custom hostname mappings for a container in the instance.

Ip

string

The IP address to add.

192.0.XX.XX

Hostnames

array

The hostnames to add.

string

The hostnames to add.

['hehe.com', 'haha.com']

SecurityContextSysCtls

array<object>

The system info of the contextual security for the running instance.

object

The system info of the contextual security for the running instance.

Name

string

The name of the system control parameter.

kernel.msgmax

Value

string

The variable value of the contextual security for the running instance.

65536

AcrRegistryInfos

array<object>

The information about the ACR Enterprise instance.

object

The information about the ACR Enterprise instance.

InstanceId

string

The instance ID of the ACR Enterprise instance.

cri-nwj395hgf6f3****

InstanceName

string

The name of the ACR Enterprise instance.

acr-test

RegionId

string

The region where the ACR Enterprise instance resides.

cn-hangzhou

Domains

array

The domain names of the ACR Enterprise instance. By default, all domain names of the instance are used. You can specify one or more domain names. Separate multiple domain names with commas (,).

string

The domain names of the ACR Enterprise instance. By default, all domain names of the instance are used. You can specify one or more domain names. Separate multiple domain names with commas (,).

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

DnsConfigNameServers

array

The list of IP addresses of the DNS servers.

string

The list of IP addresses of the DNS servers.

172.10.*.**

DnsConfigSearches

array

The list of DNS search domains.

string

The list of DNS search domains.

svc.local.kubenetes

NtpServers

array

The NTP servers.

string

The NTP servers.

ntp.cloud.aliyuncs.com

LifecycleState

string

The state 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

CostOptimization

boolean

Specifies whether to enable cost optimization. Valid values:

  • true: Enabled.

  • false: Disabled.

false

InstanceFamilyLevel

string

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

  • EntryLevel: shared instance types. These instance types are more cost-effective but cannot guarantee stable computing performance. They are suitable for workloads with low CPU utilization. For more information, see Shared instance families.

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

  • CreditEntryLevel: burstable instance types. These instance types use CPU credits to ensure computing performance and are suitable for workloads that have low CPU utilization but occasionally experience CPU usage spikes. For more information, see Overview of burstable instances.

EnterpriseLevel

InstanceTypes

array

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

string

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

ecs.g6.large

DataCacheBucket

string

The bucket for data caching.

default

DataCachePL

string

The performance level of the cloud disk used for data caching. We recommend using ESSD (standard SSD). Valid values for the performance level of an ESSD (standard SSD):

  • PL0: A single ESSD (standard SSD) can deliver up to 10,000 random read/write IOPS.

  • PL1: A single ESSD (standard SSD) can deliver up to 50,000 random read/write IOPS.

  • PL2: A single ESSD (standard SSD) can deliver up to 100,000 random read/write IOPS.

  • PL3: A single ESSD (standard SSD) can deliver up to 1,000,000 random read/write IOPS.

Note

For more information about ESSD (standard SSD), see ESSD (standard SSD).

PL1

DataCacheProvisionedIops

integer

The provisioned read/write IOPS of the ESSD AutoPL cloud 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 cloud disks, see ESSD AutoPL cloud disks.

40000

DataCacheBurstingEnabled

boolean

Specifies whether to enable the burst feature for the ESSD AutoPL cloud disk used for data caching. Valid values:

  • true: Enabled.

  • false: Disabled.

Note

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

false

GpuDriverVersion

string

The specified GPU driver version.

tesla=470.82.01

Examples

Success response

JSON format

{
  "PageNumber": 1,
  "PageSize": 50,
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "TotalCount": 1,
  "ScalingConfigurations": [
    {
      "CreationTime": "2014-08-14T10:58Z",
      "ScalingConfigurationName": "scalingconfi****",
      "SecurityGroupId": "sg-bp18kz60mefs****",
      "ActiveDeadlineSeconds": 1000,
      "SpotStrategy": "NoSpot",
      "AutoCreateEip": true,
      "ScalingGroupId": "asg-bp17pelvl720x3v7****",
      "EphemeralStorage": 20,
      "Ipv6AddressCount": 1,
      "Description": "This is an example.",
      "EipBandwidth": 5,
      "ImageSnapshotId": "imc-2zebxkiifuyzzlhl****",
      "Memory": 16,
      "RestartPolicy": "Never",
      "SpotPriceLimit": 0.025,
      "IngressBandwidth": 1024000,
      "CpuOptionsThreadsPerCore": 2,
      "TerminationGracePeriodSeconds": 60,
      "LoadBalancerWeight": 1,
      "DnsPolicy": "Default",
      "HostName": "['hehe.com', 'haha.com']",
      "EgressBandwidth": 1024000,
      "RegionId": "cn-hangzhou",
      "RamRoleName": "ram:PassRole",
      "Cpu": 2,
      "AutoMatchImageCache": false,
      "ResourceGroupId": "rg-8db03793gfrz****",
      "ContainerGroupName": "test",
      "ScalingConfigurationId": "asc-bp1ezrfgoyn5kijl****",
      "CpuOptionsCore": 2,
      "SlsEnable": true,
      "Containers": [
        {
          "ReadinessProbeHttpGetPath": "/usr/local",
          "ReadinessProbeSuccessThreshold": 1,
          "LivenessProbePeriodSeconds": 5,
          "LivenessProbeTcpSocketPort": 80,
          "LivenessProbeHttpGetScheme": "HTTP",
          "WorkingDir": "/usr/local/nginx",
          "Tty": false,
          "LivenessProbeHttpGetPort": 80,
          "Gpu": 1,
          "ReadinessProbeInitialDelaySeconds": 5,
          "Stdin": true,
          "Memory": 2,
          "Name": "nginx",
          "SecurityContextReadOnlyRootFilesystem": true,
          "LivenessProbeHttpGetPath": "/usr/nginx/",
          "Image": "mysql",
          "ReadinessProbeTcpSocketPort": 8888,
          "ReadinessProbeHttpGetScheme": "HTTP",
          "ReadinessProbeHttpGetPort": 0,
          "LivenessProbeSuccessThreshold": 1,
          "ReadinessProbeTimeoutSeconds": 5,
          "SecurityContextRunAsUser": 1000,
          "LivenessProbeInitialDelaySeconds": 10,
          "ReadinessProbePeriodSeconds": 1,
          "ImagePullPolicy": "Always",
          "StdinOnce": true,
          "Cpu": 2,
          "LivenessProbeTimeoutSeconds": 10,
          "ReadinessProbeFailureThreshold": 3,
          "LivenessProbeFailureThreshold": 3,
          "Ports": [
            {
              "Port": 8888,
              "Protocol": "TCP"
            }
          ],
          "VolumeMounts": [
            {
              "ReadOnly": false,
              "SubPath": "data2/",
              "Name": "default-volume1",
              "MountPropagation": "None",
              "MountPath": "/pod/data"
            }
          ],
          "EnvironmentVars": [
            {
              "Key": "PATH",
              "Value": "/usr/bin/",
              "FieldRefFieldPath": "path"
            }
          ],
          "Commands": [
            "sleep"
          ],
          "LivenessProbeExecCommands": [
            "cat/tmp/healthy"
          ],
          "Args": [
            "100"
          ],
          "ReadinessProbeExecCommands": [
            "cat/tmp/healthy"
          ],
          "SecurityContextCapabilityAdds": [
            "NET_ADMIN"
          ],
          "LifecyclePostStartHandlerHttpGetHost": "10.0.XX.XX",
          "LifecyclePostStartHandlerHttpGetPort": 80,
          "LifecyclePostStartHandlerHttpGetPath": "/healthyz",
          "LifecyclePostStartHandlerHttpGetScheme": "HTTP",
          "LifecyclePostStartHandlerExecs": [
            "[\"/bin/sh\", \"-c\",\"echo Hello from the preStop handler > /usr/share/message\"]"
          ],
          "LifecyclePostStartHandlerTcpSocketHost": "10.0.XX.XX",
          "LifecyclePostStartHandlerTcpSocketPort": 80,
          "LifecyclePreStopHandlerHttpGetHost": "10.0.XX.XX",
          "LifecyclePreStopHandlerHttpGetPort": 80,
          "LifecyclePreStopHandlerHttpGetPath": "/healthyz\n",
          "LifecyclePreStopHandlerHttpGetScheme": "HTTP",
          "LifecyclePreStopHandlerExecs": [
            "[\"/bin/sh\", \"-c\",\"echo Hello from the preStop handler > /usr/share/message\"]"
          ],
          "LifecyclePreStopHandlerTcpSocketHost": "10.0.XX.XX",
          "LifecyclePreStopHandlerTcpSocketPort": 80
        }
      ],
      "InitContainers": [
        {
          "SecurityContextReadOnlyRootFilesystem": true,
          "ImagePullPolicy": "Always",
          "WorkingDir": "/usr/local",
          "Cpu": 0.5,
          "Image": "nginx",
          "Gpu": 1,
          "SecurityContextRunAsUser": "587",
          "Memory": 1,
          "Name": "test-init",
          "InitContainerEnvironmentVars": [
            {
              "Key": "PATH",
              "Value": "/usr/local/bin",
              "FieldRefFieldPath": "path"
            }
          ],
          "InitContainerPorts": [
            {
              "Port": 1,
              "Protocol": "TCP"
            }
          ],
          "InitContainerVolumeMounts": [
            {
              "ReadOnly": false,
              "SubPath": "/usr/sub/",
              "Name": "test-empty",
              "MountPropagation": "None",
              "MountPath": "/usr/share/"
            }
          ],
          "SecurityContextCapabilityAdds": [
            "NET_ADMIN"
          ],
          "InitContainerCommands": [
            "sleep"
          ],
          "InitContainerArgs": [
            "10"
          ]
        }
      ],
      "Tags": [
        {
          "Key": "version",
          "Value": "3"
        }
      ],
      "Volumes": [
        {
          "Type": "EmptyDirVolume",
          "DiskVolumeDiskId": "15",
          "DiskVolumeFsType": "xfs",
          "EmptyDirVolumeMedium": "memory",
          "NFSVolumePath": "/share",
          "DiskVolumeDiskSize": 15,
          "NFSVolumeReadOnly": false,
          "FlexVolumeFsType": "ext4",
          "ConfigFileVolumeDefaultMode": 644,
          "FlexVolumeDriver": "flexvolume",
          "FlexVolumeOptions": "{\"volumeId\":\"d-2zehdahrwoa7srg****\",\"performanceLevel\": \"PL2\"}",
          "NFSVolumeServer": "3f9cd4a596-naw76.cn-shanghai.nas.aliyuncs.com",
          "Name": "default-volume1",
          "ConfigFileVolumeConfigFileToPaths": [
            {
              "Path": "/usr/bin/",
              "Mode": 644,
              "Content": "bGl1bWk="
            }
          ],
          "EmptyDirVolumeSizeLimit": "256Mi",
          "HostPathVolumeType": "Directory",
          "HostPathVolumePath": "/pod/data"
        }
      ],
      "ImageRegistryCredentials": [
        {
          "Password": "yourpaasword",
          "Server": "registry-vpc.cn-shanghai.aliyuncs.com",
          "UserName": "yourusername\t\n"
        }
      ],
      "DnsConfigOptions": [
        {
          "Name": "name",
          "Value": "value"
        }
      ],
      "HostAliases": [
        {
          "Ip": "192.0.XX.XX",
          "Hostnames": [
            "['hehe.com', 'haha.com']"
          ]
        }
      ],
      "SecurityContextSysCtls": [
        {
          "Name": "kernel.msgmax",
          "Value": "65536"
        }
      ],
      "AcrRegistryInfos": [
        {
          "InstanceId": "cri-nwj395hgf6f3****",
          "InstanceName": "acr-test",
          "RegionId": "cn-hangzhou",
          "Domains": [
            "*****-****-registry.cn-beijing.cr.aliyuncs.com"
          ]
        }
      ],
      "DnsConfigNameServers": [
        "172.10.*.**"
      ],
      "DnsConfigSearches": [
        "svc.local.kubenetes"
      ],
      "NtpServers": [
        "ntp.cloud.aliyuncs.com"
      ],
      "LifecycleState": "Active",
      "CostOptimization": false,
      "InstanceFamilyLevel": "EnterpriseLevel",
      "InstanceTypes": [
        "ecs.g6.large"
      ],
      "DataCacheBucket": "default",
      "DataCachePL": "PL1",
      "DataCacheProvisionedIops": 40000,
      "DataCacheBurstingEnabled": false,
      "GpuDriverVersion": "tesla=470.82.01"
    }
  ]
}

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.