All Products
Search
Document Center

Auto Scaling:DescribeEciScalingConfigurations

Last Updated:Feb 23, 2024

Queries scaling configurations of the Elastic Container Instance type to learn the scaling configuration details. This allows you to select an appropriate template when you create elastic container instances.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action

String

Yes

DescribeEciScalingConfigurations

The operation that you want to perform. Set the value to DescribeEciScalingConfigurations.

RegionId

String

Yes

cn-qingdao

The region ID of the scaling group to which the scaling configuration that you want to query belongs.

PageNumber

Integer

No

1

The page number. Pages start from page 1.

Default value: 1.

PageSize

Integer

No

50

The number of entries per page. Valid values: 1 to 50.

Default value: 10.

ScalingGroupId

String

No

asg-bp17pelvl720x3v7****

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

ScalingConfigurationId.N

String

No

asc-bp17pelvl720x5ub****

The ID of scaling configuration N that you want to query. Valid values of N: 1 to 10.

The IDs of active and inactive scaling configurations are displayed in the query results. You can distinguish between active and inactive scaling configurations based on the value of LifecycleState.

ScalingConfigurationName.N

String

No

scalingcon****

The name of scaling configuration N that you want to query. Valid values of N: 1 to 10.

The names of inactive scaling configurations are not displayed in the query results and no error is returned.

Response parameters

Parameter

Type

Example

Description

PageNumber

Integer

1

The page number.

PageSize

Integer

50

The number of entries per page.

RequestId

String

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

The request ID.

TotalCount

Integer

1

The total number of scaling configurations.

ScalingConfigurations

Array of ScalingConfiguration

The information about the scaling configurations.

CreationTime

String

2014-08-14T10:58Z

The time when the scaling configuration was created.

ScalingConfigurationName

String

scalingconfi****

The name of the scaling configuration.

SecurityGroupId

String

sg-bp18kz60mefs****

The ID of the security group with which the elastic container instance is associated. Elastic container instances that are associated with the same security group can access each other.

ActiveDeadlineSeconds

Integer

1000

The validity period of the scaling configuration. Unit: seconds.

SpotStrategy

String

NoSpot

The bidding policy for the elastic container instance. Valid values:

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

  • SpotWithPriceLimit: The instance is a preemptible instance with a user-defined maximum hourly price.

  • SpotAsPriceGo: The instance is a preemptible instance for which the market price at the time of purchase was automatically used as the bidding price.

Default value: NoSpot.

AutoCreateEip

Boolean

true

Indicates whether an elastic IP address (EIP) is automatically created and then bound to the elastic container instance.

ScalingGroupId

String

asg-bp17pelvl720x3v7****

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

EphemeralStorage

Integer

20

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

Ipv6AddressCount

Integer

1

The number of IPv6 addresses.

EipBandwidth

Integer

5

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

ImageSnapshotId

String

imc-2zebxkiifuyzzlhl****

The ID of the image snapshot.

Memory

Float

16

The memory size.

You can specify the number of vCPUs and the memory size to define the range of instance types. For example, you can set CPU to 2 and Memory to 16 to specify instance types that have 2 vCPUs and 16 GiB of memory. If you specify the CPU and Memory parameters, Auto Scaling determines available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling preferentially creates instances of the instance type that is provided at the lowest price.

Note

You can specify CPU and Memory to create instances only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.

RestartPolicy

String

Never

The restart policy of the elastic container instance. Valid values:

  • Never: The elastic container instance is never restarted.

  • Always: The elastic container instance is always restarted.

  • OnFailure: The elastic container instance is restarted upon failures.

SpotPriceLimit

Float

0.025

The maximum hourly price for the preemptible elastic container instance.

This parameter is returned only if you set SpotStrategy to SpotWithPriceLimit.

IngressBandwidth

Long

1024000

The maximum inbound bandwidth. Unit: bit/s.

CpuOptionsThreadsPerCore

Integer

2

The number of threads per core. You can specify this parameter for only specific instance types. If you set this parameter to 1, Hyper-Threading is disabled. For more information, see Specify custom CPU options.

TerminationGracePeriodSeconds

Integer

60

The buffer period during which a program handles operations before the program is stopped.

LoadBalancerWeight

Integer

1

The weight of the elastic container instance as a backend server. Valid values: 1 to 100.

DnsPolicy

String

Default

The Domain Name System (DNS) policy.

HostName

String

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

The name of the host.

EgressBandwidth

Long

1024000

The maximum outbound bandwidth. Unit: bit/s.

RegionId

String

cn-hangzhou

The region ID of the elastic container instance.

RamRoleName

String

ram:PassRole

The Resource Access Management (RAM) role of the elastic container instance. Elastic Container Instance and Elastic Compute Service (ECS) instances share the same RAM role. For more information, see Use the instance RAM role by calling APIs.

Cpu

Float

2.0

The number of vCPUs that are allocated to the elastic container instance.

AutoMatchImageCache

Boolean

false

Indicates whether the image cache is automatically matched.

Default value: false.

ResourceGroupId

String

rg-8db03793gfrz****

The ID of the resource group.

ContainerGroupName

String

test

The name of the elastic container instance, or the name of the container group.

ScalingConfigurationId

String

asc-bp1ezrfgoyn5kijl****

The ID of the scaling configuration.

CpuOptionsCore

Integer

2

The number of physical CPU cores. You can specify this parameter for only specific instance types. For more information, see Specify custom CPU options.

Containers

Array of Container

The information about containers in the elastic container instance.

ReadinessProbeHttpGetPath

String

/usr/local

The path to which HTTP GET requests are sent when you use the HTTP GET requests to perform readiness probes.

ReadinessProbeSuccessThreshold

Integer

1

The minimum number of consecutive successes for a failed readiness probe to be considered successful. Default value: 1. Valid value: 1.

LivenessProbePeriodSeconds

Integer

5

The interval at which liveness probes are performed. Unit: seconds. Default value: 10. Minimum value: 1.

LivenessProbeTcpSocketPort

Integer

80

The port number detected by TCP sockets when you use the TCP sockets to perform liveness probes.

LivenessProbeHttpGetScheme

String

HTTP

The protocol type of the HTTP GET requests that you use to perform liveness probes.

  • HTTP

  • HTTPS

WorkingDir

String

/usr/local/nginx

The working directory of the container.

Tty

Boolean

false

Indicates whether interaction is enabled. Valid values:

  • true

  • false

If the command is a /bin/bash command, you must set this parameter to true.

Default value: false.

LivenessProbeHttpGetPort

Integer

80

The port to which HTTP GET requests are sent when you use the HTTP GET requests to perform liveness probes.

Gpu

Integer

1

The number of GPUs.

ReadinessProbeInitialDelaySeconds

Integer

5

The number of seconds after the container is started and before a readiness probe is started.

Stdin

Boolean

true

Indicates whether the container allocates buffer resources to standard input streams when the container is running. If this parameter is not specified, an end-of-file (EOF) error may occur.

Default value: false.

Memory

Float

2.0

The memory size of the container.

Name

String

nginx

The container name.

LivenessProbeHttpGetPath

String

/usr/nginx/

The path to which HTTP GET requests are sent when you use the HTTP GET requests to perform liveness probes.

Image

String

mysql

The image of the container.

ReadinessProbeTcpSocketPort

Integer

8888

The port number detected by TCP sockets when you use the TCP sockets to perform readiness probes.

ReadinessProbeHttpGetScheme

String

HTTP

The protocol type of the HTTP GET requests that you use to perform readiness probes.

  • HTTP

  • HTTPS

ReadinessProbeHttpGetPort

Integer

/usr/nginx/

The path to which HTTP GET requests are sent when you use the HTTP GET requests to perform readiness probes.

LivenessProbeSuccessThreshold

Integer

1

The minimum number of consecutive successes for a failed liveness probe to be considered successful. Default value: 1. Valid value: 1.

ReadinessProbeTimeoutSeconds

Integer

5

The timeout period for a readiness probe. Default value: 1. Minimum value: 1. Unit: seconds.

SecurityContextRunAsUser

Long

1000

The ID of the user that runs the entry point of the container process.

LivenessProbeInitialDelaySeconds

Integer

10

The number of seconds after the container is started and before a liveness probe is initiated.

ReadinessProbePeriodSeconds

Integer

1

The interval at which readiness probes are performed. Unit: seconds. Default value: 10. Minimum value: 1.

ImagePullPolicy

String

Always

The image pulling policy. Valid values:

  • Always: Each time instances are created, image pulling is performed.

  • IfNotPresent: Image pulling is performed as needed. On-premises images are preferentially used. If no on-premises images are available, image pulling is performed.

  • Never: On-premises images are always used.

StdinOnce

Boolean

true

Indicates whether standard input streams are disconnected after a client is disconnected. If Container.N.StdinOnce is set to true, standard input streams remain connected during multiple sessions.

When StdinOnce is set to true, standard input streams are connected after the container is started and remain idle until a client is connected to receive data. After the client is disconnected, streams are also disconnected and remain in the disconnected state until the container is restarted.

Cpu

Float

2.0

The number of vCPUs of the container.

LivenessProbeTimeoutSeconds

Integer

10

The timeout period for a liveness probe. Default value: 1. Minimum value: 1. Unit: seconds.

ReadinessProbeFailureThreshold

Integer

3

The minimum number of consecutive failures for a successful readiness probe to be considered failed.

Default value: 3.

LivenessProbeFailureThreshold

Integer

3

The minimum number of consecutive failures for a successful readiness probe to be considered failed.

Default value: 3.

Ports

Array of Port

The exposed ports and protocols of the container.

Port

Integer

8888

The port number. Valid values: 1 to 65535.

Protocol

String

TCP

The protocol type. Valid values:

  • TCP

  • UDP

VolumeMounts

Array of VolumeMount

The volume that is mounted to the container.

ReadOnly

Boolean

false

Indicates whether the volume is read-only.

Default value: false.

SubPath

String

data2/

The subdirectory of the volume.

Name

String

default-volume1

The volume name. The value of this parameter is the same as the value of Volumes.Name.

MountPropagation

String

None

The mount propagation settings of volume N. Mount propagation allows the volumes that are mounted on one container to be shared with other containers in the same pod or other pods on the same node. Valid values:

  • None: The volume mount does not receive subsequent mounts that are performed on the volume or the subdirectories of the volume.

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

  • Bidirectional: This value is similar to HostToCotainer. The volume mount receives all subsequent mounts that are performed on the volume or the subdirectories of the volume. In addition, all volume mounts that are performed on the container are propagated back to the instance and to all containers of all pods that use the same volume.

Default value: None.

MountPath

String

/pod/data

The directory on which the container mounts the volume.

Note

Data under this directory is overwritten by the data on the volume. Specify this parameter with caution.

EnvironmentVars

Array of EnvironmentVar

The information about environment variables.

Key

String

PATH

The key of the environment variable.

Value

String

/usr/bin/

The value of the environment variable.

Commands

Array of String

sleep

The container startup commands. You can specify up to 20 commands. Each command can contain up to 256 characters.

LivenessProbeExecCommands

Array of String

cat/tmp/healthy

The commands that are run in the container when you use the command-line interface (CLI) to perform liveness probes.

Args

Array of String

100

The container startup arguments. You can specify up to 10 arguments.

ReadinessProbeExecCommands

Array of String

cat/tmp/healthy

The commands that are run in the container when you use the CLI to perform readiness probes.

SecurityContextCapabilityAdds

Array of String

NET_ADMIN

The permissions that are granted to the processes in the container. Valid values: NET_ADMIN and NET_RAW.

Note

If you want to use NET_RAW, submit a ticket.

LifecyclePostStartHandlerHttpGetHost

String

10.0.XX.XX

The IP address of the host that receives HTTP Get requests when you use the HTTP Get requests to specify the PostStart callback function.

LifecyclePostStartHandlerHttpGetPort

Integer

80

The port number detected by HTTP Get requests when you use the HTTP Get requests to specify the PostStart callback function.

LifecyclePostStartHandlerHttpGetPath

String

/healthyz

The path detected by HTTP Get requests when you use the HTTP Get requests to specify the PostStart callback function.

LifecyclePostStartHandlerHttpGetScheme

String

HTTP

The protocol type of the HTTP Get requests that you use to specify the PostStart callback function.

LifecyclePostStartHandlerExecs

Array of String

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

The command that is run by using the CLI in the container to specify the PostStart callback function.

LifecyclePostStartHandlerTcpSocketHost

String

10.0.XX.XX

The IP address of the host detected by TCP sockets when you use the TCP sockets to specify the PostStart callback function.

LifecyclePostStartHandlerTcpSocketPort

Integer

80

The port number detected by TCP sockets when you use the TCP sockets to specify the PostStart callback function.

LifecyclePreStopHandlerHttpGetHost

String

10.0.XX.XX

The IP address of the host detected by HTTP Get requests when you use the HTTP Get requests to specify the PreStop callback function.

LifecyclePreStopHandlerHttpGetPort

Integer

80

The port number detected by HTTP Get requests when you use the HTTP Get requests to specify the PreStop callback function.

LifecyclePreStopHandlerHttpGetPath

String

/healthyz

The path detected by HTTP Get requests when you use the HTTP Get requests to specify the PreStop callback function.

LifecyclePreStopHandlerHttpGetScheme

String

HTTP

The protocol type of the HTTP Get requests that you use to specify the PreStop callback function.

LifecyclePreStopHandlerExecs

Array of String

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

The command that is run by using the CLI in the container to specify the PreStop callback function.

LifecyclePreStopHandlerTcpSocketHost

String

10.0.XX.XX

The IP address of the host detected by TCP sockets when you use the TCP sockets to specify the PreStop callback function.

LifecyclePreStopHandlerTcpSocketPort

Integer

80

The port number detected by TCP sockets when you use the TCP sockets to specify the PreStop callback function.

InitContainers

Array of InitContainer

The init containers.

SecurityContextReadOnlyRootFilesystem

Boolean

true

Indicates whether the root file system is read-only. Valid value: true.

ImagePullPolicy

String

Always

The image pulling policy.

WorkingDir

String

/usr/local

The working directory of the init container.

Cpu

Float

0.5

The number of vCPUs.

Image

String

nginx

The image of the init container.

Gpu

Integer

1

The number of GPUs of the init container.

SecurityContextRunAsUser

String

587

The ID of the user that runs the init container.

Memory

Float

1.0

The memory size of the init container.

Name

String

test-init

The name of the init container.

InitContainerEnvironmentVars

Array of InitContainerEnvironmentVar

The information about environment variables.

Key

String

PATH

The key of the environment variable.

Value

String

/usr/local/bin

The value of the environment variable.

InitContainerVolumeMounts

Array of InitContainerVolumeMount

The volumes that are mounted on the init container.

ReadOnly

Boolean

false

Indicates whether the mount directory is read-only.

Default value: false.

SubPath

String

/usr/sub/

The subdirectory of the volume. The pod can mount different directories of the same volume to different directories of the init container.

Name

String

test-empty

The name of the mounted volume.

MountPropagation

String

None

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

  • None: The volume mount does not receive subsequent mounts that are performed on the volume or the subdirectories of the volume.

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

  • Bidirectional: This value is similar to HostToCotainer. The volume mount receives all subsequent mounts that are performed on the volume or the subdirectories of the volume. In addition, all volume mounts that are performed on the init container are propagated back to the instance and to all containers of all pods that use the same volume.

Default value: None.

MountPath

String

/usr/share/

The directory to which the volume is mounted. Data under this directory is overwritten by the data on the volume. Specify this parameter with caution.

SecurityContextCapabilityAdds

Array of String

NET_ADMIN

The permissions that are granted to the processes in the init container. Valid values: NET_ADMIN and NET_RAW.

InitContainerCommands

Array of String

sleep

The container startup commands.

InitContainerArgs

Array of String

10

The container startup arguments.

Tags

Array of Tag

The tags of the elastic container instance. Tags are specified in the key-value format.

Key

String

version

The tag key

Value

String

3

The tag value.

Volumes

Array of Volume

The information about the volumes.

Type

String

EmptyDirVolume

The volume type. Valid values:

  • EmptyDirVolume

  • NFSVolume

  • ConfigFileVolume

  • FlexVolume

DiskVolumeDiskId

String

15

The size of the disk volume. Unit: GiB.

DiskVolumeFsType

String

xfs

The system type of the disk volume.

EmptyDirVolumeMedium

String

memory

The storage medium of the EmptyDir volume. This parameter is left empty by default. In this case, the file system that backs the node is used as the storage medium. If this parameter is set to memory, the memory is used as the storage medium.

NFSVolumePath

String

/share

The path to the Network File System (NFS) volume.

DiskVolumeDiskSize

Integer

15

The size of the disk volume. Unit: GiB.

NFSVolumeReadOnly

Boolean

false

Indicates whether the NFS volume is read-only.

Default value: false.

FlexVolumeFsType

String

ext4

The file system type of the NFS volume. The default value is determined by the script of the Flex volume.

ConfigFileVolumeDefaultMode

Integer

0644

The default permissions on the ConfigFile volume.

FlexVolumeDriver

String

flexvolume

The driver name of the Flex volume.

FlexVolumeOptions

String

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

The options of the Flex volume. Each option is a key-value pair contained in a JSON string.

For example, when you use FlexVolume to mount a disk, the options are in the {"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"} format.

NFSVolumeServer

String

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

The endpoint of the NFS server.

Name

String

default-volume1

The volume name.

ConfigFileVolumeConfigFileToPaths

Array of ConfigFileVolumeConfigFileToPath

The paths to the configuration files.

Path

String

/usr/bin/

The relative path to the configuration file.

Mode

Integer

0644

The permissions on the ConfigFile volume.

Content

String

bGl1bWk=

The content of the configuration file (32 KB).

EmptyDirVolumeSizeLimit

String

256 Mi

The storage size of the EmptyDir volume.

HostPathVolumeType

String

Directory

The type of the HostPath volume.

HostPathVolumePath

String

/pod/data

The path to the HostPath volume on the host.

ImageRegistryCredentials

Array of ImageRegistryCredential

The information about the image repositories.

Password

String

yourpaasword

The password of the image repository.

Server

String

registry-vpc.cn-shanghai.aliyuncs.com

The domain name of the image repository.

UserName

String

yourusername

The username of the image repository.

DnsConfigOptions

Array of DnsConfigOption

The options. Each option is a name-value pair. The value in the name-value pair is optional.

Name

String

name

The option name.

Value

String

value

The option value.

HostAliases

Array of HostAlias

The hostname mapping of a container in the elastic container instance.

Ip

String

192.0.XX.XX

The IP address of the added host.

Hostnames

Array of String

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

The name of the added host.

SecurityContextSysCtls

Array of SecurityContextSysCtl

The system information about the security context in which the elastic container instance is run.

Name

String

kernel.msgmax

The system name of the security context in which the elastic container instance is run.

Value

String

65536

The variable value of the security context in which the elastic container instance is run.

AcrRegistryInfos

Array of AcrRegistryInfo

The information about the Container Registry Enterprise Edition instances.

InstanceId

String

cri-nwj395hgf6f3****

The ID of the Container Registry Enterprise Edition instance.

InstanceName

String

acr-test

The name of the Container Registry Enterprise Edition instance.

RegionId

String

cn-hangzhou

The region ID of the Container Registry Enterprise Edition instance.

Domains

Array of String

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

The domain names of the Container Registry Enterprise Edition instance. By default, all domain names of the Container Registry Enterprise Edition instance are displayed. Multiple domain names are separated by commas (,).

DnsConfigNameServers

Array of String

172.10.*.**

The IP addresses of the Domain Name Service (DNS) servers.

DnsConfigSearches

Array of String

svc.local.kubenetes

The search domains of the DNS servers.

NtpServers

Array of String

ntp.cloud.aliyuncs.com

The domain names of the Network Time Protocol (NTP) servers.

LifecycleState

String

Active

The state of the scaling configuration in the scaling group. Valid values:

  • Active: The scaling configuration is active in the scaling group. Auto Scaling uses the active scaling configuration to automatically create elastic container instances.

  • Inactive: The scaling configuration is inactive in the scaling group. Auto Scaling does not use inactive scaling configurations to create elastic container instances. However, inactive scaling configurations are retained in the scaling group.

CostOptimization

Boolean

false

Indicates whether the Cost Optimization feature is enabled. Valid values:

  • true

  • false

InstanceFamilyLevel

String

EnterpriseLevel

The level of the instance family, which is used to filter instance types that meet the specified criteria. This parameter takes effect only if you set CostOptimization to true. Valid values:

  • EntryLevel: entry level (shared instance types). Instance types of this level are the most cost-effective but may not provide stable computing performance in a consistent manner. Instance types of this level are suitable for business scenarios in which the CPU utilization is low. For more information, see Shared instance families.

  • EnterpriseLevel: enterprise level. Instances of this level provide stable performance and dedicated resources and are suitable for business scenarios that require high stability. For more information, see Overview of instance families.

  • CreditEntryLevel: credit entry level. This value is valid only for burstable instances. CPU credits are used to ensure computing performance. Instance types of this level are suitable for business scenarios in which CPU utilization is low but may fluctuate in specific scenarios. For more information, see the Overview topic of burstable instances.

InstanceTypes

Array of String

ecs.g6.large

The specified ECS instance types. You can specify up to five ECS instance types. For more information, see Specify ECS instance types to create an elastic container instance.

DataCacheBucket

String

default

The bucket that caches data.

DataCachePL

String

PL1

The performance level (PL) of the disk that is used to cache data. We recommend that you use enhanced SSDs (ESSDs). Valid values if you use ESSDs:

  • PL0: An ESSD can provide up to 10,000 random read/write IOPS.

  • PL1: An ESSD can provide up to 50,000 random read/write IOPS.

  • PL2: An ESSD can provide up to 100,000 random read/write IOPS.

  • PL3: An ESSD can provide up to 1,000,000 random read/write IOPS.

Note

For more information about ESSDs, see ESSDs.

DataCacheProvisionedIops

Integer

40000

The IOPS provisioned for the ESSD AutoPL disk that is used to cache data. Valid values: 0 to min{50000, 1000 x Capacity-Baseline IOPS}, where Baseline IOPS = min{1800 + 50 x Capacity, 50000}.

Note

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

DataCacheBurstingEnabled

Boolean

false

Indicates whether the Performance Burst feature is enabled for the ESSD AutoPL disk that is used to cache data. Valid values:

  • true

  • false

Note

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

Examples

Sample requests

http(s)://ess.aliyuncs.com/?Action=DescribeEciScalingConfigurations
&RegionId=cn-qingdao
&PageNumber=1
&PageSize=50
&ScalingGroupId=asg-bp17pelvl720x3v7****
&ScalingConfigurationId=["asc-bp17pelvl720x5ub****"]
&ScalingConfigurationName=["scalingcon****"]
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

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

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "PageNumber" : 1,
  "PageSize" : 50,
  "RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
  "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,
    "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,
    "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",
      "LivenessProbeHttpGetPath" : "/usr/nginx/",
      "Image" : "mysql",
      "ReadinessProbeTcpSocketPort" : 8888,
      "ReadinessProbeHttpGetScheme" : "HTTP",
      "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/"
      } ],
      "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",
      "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"
      } ],
      "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" : "256 Mi",
      "HostPathVolumeType" : "Directory",
      "HostPathVolumePath" : "/pod/data"
    } ],
    "ImageRegistryCredentials" : [ {
      "Password" : "yourpaasword",
      "Server" : "registry-vpc.cn-shanghai.aliyuncs.com",
      "UserName" : "yourusername"
    } ],
    "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
  } ]
}

Error codes

For a list of error codes, see Service error codes.