Modifies a scaling configuration of a scaling group that contains elastic container instances.

Description

If you want to change the name of a scaling configuration in a scaling group, make sure that the new name is unique within the scaling group.

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

ParameterTypeRequiredExampleDescription
ActionStringYesModifyEciScalingConfiguration

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

ScalingConfigurationIdStringYesasc-bp16har3jpj6fjbx****

The ID of the scaling configuration that you want to modify.

ScalingConfigurationNameStringYestest-modify

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

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

SecurityGroupIdStringYessg-uf66jeqopgqa9hdn****

The ID of the security group with which you want to associate the elastic container instance. Elastic container instances that are associated with the same security group can communicate with each other.

If you do not specify a security group, the system uses the default security group in the region that you select. Make sure that the inbound rules of the security group contain the protocols and the port numbers of the containers that you want to expose. If you do not have a default security group in the region, the system automatically creates a default security group and adds the declared container protocols and port numbers to the inbound rules of the security group.

ContainerGroupNameStringYesnginx-test

The name of the elastic container instance. The name must meet the following requirements:

  • The name must be 2 to 128 characters in length.
  • The name can contain only lowercase letters, digits, and hyphens (-). The name cannot start or end with a hyphen (-).
RestartPolicyStringNoAlways

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

  • Always: always restarts the elastic container instance.
  • Never: never restarts the elastic container instance.
  • OnFailure: restarts the elastic container instance upon failures.

Default value: Always.

CpuFloatNo1.0

The number of vCPUs of the elastic container instance.

MemoryFloatNo2.0

The memory size of the elastic container instance. Unit: GiB.

ResourceGroupIdStringNorg-uf66jeqopgqa9hdn****

The ID of the resource group.

DnsPolicyStringNoDefault

The Domain Name System (DNS) policy. Valid values:

  • None: uses the DNS that is specified for the DnsConfig field.
  • Default: uses the DNS that is specified for the runtime environment.
ImageSnapshotIdStringNoimc-2zebxkiifuyzzlhl****

The ID of the image cache snapshot.

RamRoleNameStringNoRamTestRole

The name of the RAM role of the instance. You can use a RAM role to access elastic container instances and Elastic Compute Service (ECS) instances. For more information, see Use an instance RAM role by calling API operations.

TerminationGracePeriodSecondsLongNo60

The buffer time during which the program handles operations before the program stops. Unit: seconds.

AutoMatchImageCacheBooleanNofalse

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

  • true
  • false

Default value: false.

Ipv6AddressCountIntegerNo1

The number of IPv6 addresses.

ActiveDeadlineSecondsLongNo1000

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

SpotStrategyStringNoSpotPriceLimit

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

  • NoSpot: The instance is created as a pay-as-you-go instance.
  • SpotWithPriceLimit: The instance is a preemptible instance that has a user-defined maximum hourly price.
  • SpotAsPriceGo: The instance is a preemptible instance for which the market price at the time of purchase is used as the bid price.

Default value: NoSpot.

SpotPriceLimitFloatNo0.025

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

If you set the SpotStrategy parameter to SpotWithPriceLimit, you must specify the SpotPriceLimit parameter.

AutoCreateEipBooleanNotrue

Specifies whether to automatically create an elastic IP address (EIP), and then bind the EIP to the elastic container instance.

EipBandwidthIntegerNo5

The bandwidth of the EIP.

Default value: 5. Unit: Mbit/s.

HostNameStringNotest

The hostname of the elastic container instance.

IngressBandwidthLongNo1024000

The maximum inbound bandwidth. Unit: bit/s.

EgressBandwidthLongNo1024000

The maximum outbound bandwidth. Unit: bit/s.

CpuOptionsCoreIntegerNo2

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

CpuOptionsThreadsPerCoreIntegerNo2

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

EphemeralStorageIntegerNo20

The size of the temporary storage space. By default, an enhanced SSD (ESSD) of the PL1 level is used. Unit: GiB.

LoadBalancerWeightIntegerNo50

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

Tag.N.KeyStringNoversion

The key of tag N.

Tag.N.ValueStringNo3

The value of tag N.

ImageRegistryCredential.N.PasswordStringNoyourpaasword

The password that is used to access image repository N.

ImageRegistryCredential.N.ServerStringNoregistry-vpc.cn-shanghai.aliyuncs.com

The address of image repository N.

ImageRegistryCredential.N.UserNameStringNoyourusername

The username that is used to access image repository N.

Container.N.ReadinessProbe.TimeoutSecondsIntegerNo1

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

Container.N.ReadinessProbe.SuccessThresholdIntegerNo1

The minimum number of consecutive successes before a failed probe is considered successful. Default value: 1. Valid value: 1.

Container.N.SecurityContext.Capability.Add.NStringNoNET_ADMIN

The permissions that you want to grant to the processes in container N. Valid values: NET_ADMIN and NET_RAW.

Note If you want to use NET_RAW, submit a ticket.
Container.N.ReadinessProbe.TcpSocket.PortIntegerNo8000

The port that is detected by TCP sockets when you use the TCP sockets to perform probes.

Container.N.ReadinessProbe.HttpGet.SchemeStringNoHTTP

The protocol type of the HTTP GET requests that you use to perform probes. Valid values:

  • HTTP
  • HTTPS
Container.N.LivenessProbe.PeriodSecondsIntegerNo5

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

Container.N.Port.N.ProtocolStringNoTCP

The type of the protocol. Valid values:

  • TCP
  • UDP
Container.N.Port.N.PortIntegerNo80

The port number. Valid values: 1 to 65535.

Container.N.SecurityContext.ReadOnlyRootFilesystemBooleanNotrue

Specifies whether the root file system on which container N runs is read-only. Valid value: true.

Container.N.EnvironmentVar.N.KeyStringNoPATH

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

Container.N.EnvironmentVar.N.ValueStringNo/usr/local/bin

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

Container.N.LivenessProbe.TcpSocket.PortIntegerNo8000

The port that is detected by TCP sockets when you use the TCP sockets to perform probes.

Container.N.TtyBooleanNofalse

Specifies whether to enable interaction. Default value: false.

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

Container.N.WorkingDirStringNo/usr/local/

The working directory of container N.

Container.N.LivenessProbe.HttpGet.SchemeStringNoHTTP

The protocol type of the HTTP GET requests that you use to perform probes. Valid values:

  • HTTP
  • HTTPS
Container.N.ReadinessProbe.HttpGet.PortIntegerNo8080

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

Container.N.Arg.NStringNo100

Argument N that is passed to the startup command of container N. You can specify up to 10 arguments.

Container.N.GpuIntegerNo1

The number of GPUs of container N.

Container.N.ReadinessProbe.InitialDelaySecondsIntegerNo3

The number of seconds that elapses from the startup of container N to the start time of a probe. Unit: seconds.

Container.N.StdinBooleanNofalse

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

Default value: false.

Container.N.MemoryFloatNo0.5

The memory size of container N. Unit: GiB.

Container.N.NameStringNonginx

The image name of container N.

Container.N.ImageStringNoregistry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:latest

The image of container N.

Container.N.LivenessProbe.InitialDelaySecondsIntegerNo5

The number of seconds that elapses from the startup of container N to the start time of a probe. Unit: seconds.

Container.N.VolumeMount.N.MountPropagationStringNoNone

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

  • None: The volume mount does not receive subsequent mounts that are mounted to the volume or to the subdirectories of the volume.
  • HostToCotainer: The volume mount receives all subsequent mounts that are mounted to the volume or to the subdirectories of the volume.
  • Bidirectional: This value is similar to HostToCotainer. The volume mount receives all subsequent mounts that are mounted to the volume or to the subdirectories of the volume. In addition, all volume mounts that are mounted by container N are propagated back to the instance and to all containers of all pods that use the same volume.

Default value: None.

Container.N.VolumeMount.N.MountPathStringNo/pod/data

The directory on which volume N is mounted.

Important The data in this directory is overwritten by the data on the volume.
Container.N.VolumeMount.N.ReadOnlyBooleanNofalse

Specifies whether volume N is read-only.

  • true: Volume N is read-only.
  • false: Volume N is readable and writable.

Default value: false.

Container.N.VolumeMount.N.NameStringNodefault-volume1

The name of volume N when you set the Volume.N.Type parameter to DiskVolume. The value of this parameter is the same as the value of the Volume.N.Name parameter.

Container.N.VolumeMount.N.SubPathStringNodata2/

The subdirectory of volume N.

Container.N.LivenessProbe.FailureThresholdIntegerNo3

The minimum number of consecutive failures before a successful probe is considered failed.

Default value: 3.

Container.N.ReadinessProbe.Exec.Command.NStringNocat/tmp/healthy

Command N that you want to run in container N when you use the command line interface (CLI) to perform probes.

Container.N.ReadinessProbe.FailureThresholdIntegerNo3

The minimum number of consecutive failures before a successful probe is considered failed.

Default value: 3.

Container.N.ImagePullPolicyStringNoAlways

The image pulling policy. Valid values:

  • Always: pulls images each time.
  • IfNotPresent: pulls images only if no on-premises images are available. On-premises images are preferentially used. If no on-premises images are available, image pulling is performed.
  • Never: nerver pulls images. On-premises images are always used.
Container.N.StdinOnceBooleanNofalse

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

If you set Container.N.StdinOnce 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 disconnected until the container is restarted.

Container.N.CpuFloatNo0.25

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

Container.N.LivenessProbe.HttpGet.PortIntegerNo8888

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

Container.N.LivenessProbe.HttpGet.PathStringNo/healthyz

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

Container.N.LivenessProbe.SuccessThresholdIntegerNo1

The minimum number of consecutive successes before a failed probe is considered successful. Default value: 1. Valid value: 1.

Container.N.ReadinessProbe.PeriodSecondsIntegerNo3

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

Container.N.LivenessProbe.TimeoutSecondsIntegerNo1

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

Container.N.Command.NStringNosleep

Command N that you want to run to start container N. You can specify up to 20 commands. Each command can contain up to 256 characters.

Container.N.SecurityContext.RunAsUserLongNo1000

The ID of the user that runs container N.

Container.N.ReadinessProbe.HttpGet.PathStringNo/healthz

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

Container.N.LivenessProbe.Exec.Command.NStringNocat /tmp/healthy

Command N that you want to run in container N when you use the CLI to perform probes.

Volume.N.TypeStringNoEmptyDirVolume

The type of volume N. Valid values:

  • EmptyDirVolume
  • NFSVolume
  • ConfigFileVolume
  • FlexVolume
Volume.N.DiskVolume.DiskSizeIntegerNo15

The storage size of the disk when you set the Volume.N.Type parameter to DiskVolume. Unit: GiB.

Volume.N.NFSVolume.PathStringNo/share

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

Volume.N.FlexVolume.FsTypeStringNoext4

The type of the file system when you set the Volume.N.Type parameter to FlexVolume. The default value is determined by the script of the FlexVolume plug-in.

Volume.N.DiskVolume.FsTypeStringNoxfs

The type of the file system when you set the Volume.N.Type parameter to DiskVolume. We recommend that you specify the FlexVolume.FsType parameter instead of the DiskVolume.FsType parameter.

Volume.N.HostPathVolume.TypeStringNoDirectory

The type of the file system of path on the host node when you set the Volume.N.Type parameter to HostPathVolume. Examples: File, Directory, and Socket.

Volume.N.NFSVolume.ReadOnlyBooleanNofalse

Specifies whether the NFS volume is read-only.

  • true: The NFS volume is read-only.
  • false: The NFS volume is readable and writable.

Default value: false.

Volume.N.HostPathVolume.PathStringNo/xx/xx/name

The absolute path on the host node when you set the Volume.N.Type parameter to HostPathVolume.

Volume.N.FlexVolume.OptionsStringNo{"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"}

The options when you set the Volume.N.Type parameter to FlexVolume. Each option is a key-value pair in a JSON string.

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

Volume.N.FlexVolume.DriverStringNoflexvolume

The name of the driver when you set the Volume.N.Type parameter to FlexVolume.

Volume.N.ConfigFileVolumeDefaultModeIntegerNo0644

The default permissions on the configuration file when you set the Volume.N.Type parameter to ConfigFileVolume.

Volume.N.NFSVolume.ServerStringNo3f9cd4a596-naw76.cn-shanghai.nas.aliyuncs.com

The endpoint of the server when you set the Volume.N.Type parameter to NFSVolume.

Volume.N.DiskVolume.DiskIdStringNod-xx

The ID of the disk when you set the Volume.N.Type parameter to DiskVolume.

Volume.N.NameStringNodefault-volume1

The name of volume N.

Volume.N.EmptyDirVolume.MediumStringNomemory

The storage medium when you set the Volume.N.Type parameter to EmptyDirVolume. If you leave this parameter empty, the file system that backs the node is used as the storage medium. If you set this parameter to memory, the memory is used as the storage medium.

Volume.N.ConfigFileVolumeConfigFileToPath.N.PathStringNo/usr/bin/

The relative path to the configuration file.

Volume.N.ConfigFileVolumeConfigFileToPath.N.ModeIntegerNo0644

The permissions on the directory when you set the Volume.N.Type parameter to ConfigFileVolume.

Volume.N.ConfigFileVolumeConfigFileToPath.N.ContentStringNobGl1bWk=

The content of the configuration file (32 KB).

InitContainer.N.InitContainerEnvironmentVar.N.KeyStringNoPath

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

InitContainer.N.InitContainerEnvironmentVar.N.ValueStringNo/usr/bin/

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

InitContainer.N.SecurityContext.Capability.Add.NStringNoNET_ADMIN

The permissions that you want to grant to the processes in container N. Valid values: NET_ADMIN and NET_RAW.

Note If you want to use NET_RAW, submit a ticket.
InitContainer.N.ImageStringNonginx

The image of container N.

InitContainer.N.InitContainerVolumeMount.N.MountPropagationStringNoNone

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

  • None: The volume mount does not receive subsequent mounts that are mounted to the volume or to the subdirectories of the volume.
  • HostToCotainer: The volume mount receives all subsequent mounts that are mounted to the volume or to the subdirectories of the volume.
  • Bidirectional: This value is similar to HostToCotainer. The volume mount receives all subsequent mounts that are mounted to the volume or to the subdirectories of the volume. In addition, all volume mounts that are mounted by container N are propagated back to the instance and to all containers of all pods that use the same volume.

Default value: None.

InitContainer.N.InitContainerVolumeMount.N.MountPathStringNo/usr/share/

The directory on which volume N is mounted.

Important The data in this directory is overwritten by the data on the volume.
InitContainer.N.InitContainerVolumeMount.N.ReadOnlyBooleanNofalse

Specifies whether the mount path is read-only.

  • true: The mount path is read-only.
  • false: The mount path is readable and writable.

Default value: false.

InitContainer.N.InitContainerVolumeMount.N.NameStringNotest-empty

The name of volume N that you want to mount.

InitContainer.N.InitContainerVolumeMount.N.SubPathStringNo/usr/sub/

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

InitContainer.N.ImagePullPolicyStringNoAlways

The image pulling policy. Valid values:

  • Always: pulls images each time.
  • IfNotPresent: pulls images only if no on-premises images are available. On-premises images are preferentially used. If no on-premises images are available, image pulling is performed.
  • Never: nerver pulls images. On-premises images are always used.
InitContainer.N.CpuFloatNo0.5

The number of vCPUs of init container N. Unit: cores.

InitContainer.N.WorkingDirStringNo/usr/local

The working directory of init container N.

InitContainer.N.Command.NStringNosleep

Command N that you want to run to start init container N.

InitContainer.N.Arg.NStringNo10

Argument N that is passed to the startup command of init container N.

InitContainer.N.SecurityContext.RunAsUserLongNo587

The ID of the user that runs init container N.

InitContainer.N.GpuIntegerNo1

The number of GPUs of init container N.

InitContainer.N.MemoryFloatNo1.0

The memory size of init container N. Unit: GiB.

InitContainer.N.NameStringNotest-init

The name of init container N.

DnsConfigNameServer.NStringNo172.10.*.**

The IP addresses of DNS server N.

DnsConfigSearch.NStringNosvc.local.kubenetes

The search domains of DNS server N.

DnsConfigOption.N.ValueStringNovalue

The value of option N.

DnsConfigOption.N.NameStringNoname

The name of option N.

HostAliase.N.IpStringNo192.0.XX.XX

The IP address of host N that you want to add.

HostAliase.N.Hostname.NStringNo['hehe.com', 'haha.com']

The name of host N that you want to add.

SecurityContextSysctl.N.ValueStringNo65536

The value of security context N in which the elastic container instance runs.

SecurityContextSysctl.N.NameStringNokernel.msgmax

The name of security context N in which the elastic container instance runs.

NtpServer.NStringNontp.cloud.aliyuncs.com

The Network Time Protocol (NTP) server N.

AcrRegistryInfo.N.Domain.NStringNo*****-****-registry.cn-beijing.cr.aliyuncs.com

Domain name N of Container Registry Enterprise Edition instance N. By default, all domain names of instance N are displayed. You can specify one or more domain names. Separate multiple domain names with commas (,).

AcrRegistryInfo.N.InstanceNameStringNoacr-test

The name of Container Registry Enterprise Edition instance N.

AcrRegistryInfo.N.InstanceIdStringNocri-nwj395hgf6f3****

The ID of Container Registry Enterprise Edition instance N.

AcrRegistryInfo.N.RegionIdStringNocn-hangzhou

The region ID of Container Registry Enterprise Edition instance N.

CostOptimizationBooleanNofalse

Specifies whether to enable the cost optimization feature. Valid values:

  • true
  • false

Default value: false.

InstanceFamilyLevelStringNoEnterpriseLevel

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 the CostOptimization parameter to true. Valid values:

  • EntryLevel: shared instance type. Instances of this level are cost-effective, but do not provide stable computing performance. Instances of this level are suitable for scenarios in which the CPU utilization is low. For more information, see Shared instance families.
  • EnterpriseLevel: 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: This value is available only for burstable instances. CPU credits are used to ensure computing performance. Instances of this level are suitable for scenarios in which the CPU utilization is low but may fluctuate in specific cases. For more information, see Overview of burstable instances.
ContainersUpdateTypeStringNoRenewUpdate

The update mode of containers. Valid values:

  • RenewUpdate: full update mode. This value takes effect based on the value of the Containers parameters in an update request. This value indicates that the previous setting of the Containers parameter is overwritten.
  • IncrementalUpdate: incremental update mode. The value of the Containers parameter varies based on the value of the Containers.Name parameter. This value indicates that only the settings of the specified request parameters are updated.

Default value: RenewUpdate.

Response parameters

ParameterTypeExampleDescription
RequestIdString89945DD3-9072-47D0-A318-353284CF****

The ID of the request.

Examples

Sample requests

http(s)://ess.aliyuncs.com/?Action=ModifyEciScalingConfiguration
&ScalingConfigurationId=asc-bp16har3jpj6fjbx****
&ScalingConfigurationName=test-modify
&SecurityGroupId=sg-uf66jeqopgqa9hdn****
&ContainerGroupName=nginx-test
&RestartPolicy=Always
&Cpu=1.0
&Memory=2.0
&ResourceGroupId=rg-uf66jeqopgqa9hdn****
&DnsPolicy=Default
&ImageSnapshotId=imc-2zebxkiifuyzzlhl****
&RamRoleName=RamTestRole
&TerminationGracePeriodSeconds=60
&AutoMatchImageCache=false
&Ipv6AddressCount=1
&ActiveDeadlineSeconds=1000
&SpotStrategy=SpotPriceLimit
&SpotPriceLimit=0.025
&AutoCreateEip=true
&EipBandwidth=5
&HostName=test
&IngressBandwidth=1024000
&EgressBandwidth=1024000
&CpuOptionsCore=2
&CpuOptionsThreadsPerCore=2
&EphemeralStorage=20
&LoadBalancerWeight=50
&Tag=[{"Key":"version","Value":"3"}]
&ImageRegistryCredential=[{"Password":"yourpaasword","Server":"registry-vpc.cn-shanghai.aliyuncs.com","UserName":"yourusername"}]
&Container=[{"ReadinessProbe.TimeoutSeconds":1,"ReadinessProbe.SuccessThreshold":1,"SecurityContext.Capability.Add":["NET_ADMIN"],"ReadinessProbe.TcpSocket.Port":8000,"ReadinessProbe.HttpGet.Scheme":"HTTP","LivenessProbe.PeriodSeconds":5,"Port":[{"Protocol":"TCP","Port":80}],"SecurityContext.ReadOnlyRootFilesystem":true,"EnvironmentVar":[{"Key":"PATH","Value":"/usr/local/bin"}],"LivenessProbe.TcpSocket.Port":8000,"Tty":false,"WorkingDir":"/usr/local/","LivenessProbe.HttpGet.Scheme":"HTTP","ReadinessProbe.HttpGet.Port":8080,"Arg":["100"],"Gpu":1,"ReadinessProbe.InitialDelaySeconds":3,"Stdin":false,"Memory":0.5,"Name":"nginx","Image":"registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:latest","LivenessProbe.InitialDelaySeconds":5,"VolumeMount":[{"MountPropagation":"None","MountPath":"/pod/data","ReadOnly":false,"Name":"default-volume1","SubPath":"data2/"}],"LivenessProbe.FailureThreshold":3,"ReadinessProbe.Exec.Command":["cat/tmp/healthy"],"ReadinessProbe.FailureThreshold":3,"ImagePullPolicy":"Always","StdinOnce":false,"Cpu":0.25,"LivenessProbe.HttpGet.Port":8888,"LivenessProbe.HttpGet.Path":"/healthyz","LivenessProbe.SuccessThreshold":1,"ReadinessProbe.PeriodSeconds":3,"LivenessProbe.TimeoutSeconds":1,"Command":["sleep"],"SecurityContext.RunAsUser":1000,"ReadinessProbe.HttpGet.Path":"/healthz","LivenessProbe.Exec.Command":["cat /tmp/healthy"]}]
&Volume=[{"Type":"EmptyDirVolume","DiskVolume.DiskSize":15,"NFSVolume.Path":"/share","FlexVolume.FsType":"ext4","DiskVolume.FsType":"xfs","HostPathVolume.Type":"Directory","NFSVolume.ReadOnly":false,"HostPathVolume.Path":"/xx/xx/name","FlexVolume.Options":"{\"volumeId\":\"d-2zehdahrwoa7srg****\",\"performanceLevel\": \"PL2\"}","FlexVolume.Driver":"flexvolume","ConfigFileVolumeDefaultMode":644,"NFSVolume.Server":"3f9cd4a596-naw76.cn-shanghai.nas.aliyuncs.com","DiskVolume.DiskId":"d-xx","Name":"default-volume1","EmptyDirVolume.Medium":"memory","ConfigFileVolumeConfigFileToPath":[{"Path":"/usr/bin/","Mode":644,"Content":"bGl1bWk="}]}]
&InitContainer=[{"InitContainerEnvironmentVar":[{"Key":"Path","Value":"/usr/bin/"}],"SecurityContext.Capability.Add":["NET_ADMIN"],"Image":"nginx","InitContainerVolumeMount":[{"MountPropagation":"None","MountPath":"/usr/share/","ReadOnly":false,"Name":"test-empty","SubPath":"/usr/sub/"}],"ImagePullPolicy":"Always","Cpu":0.5,"WorkingDir":"/usr/local","Command":["sleep"],"Arg":["10"],"SecurityContext.RunAsUser":587,"Gpu":1,"Memory":1.0,"Name":"test-init"}]
&DnsConfigNameServer=["172.10.*.**"]
&DnsConfigSearch=["svc.local.kubenetes"]
&DnsConfigOption=[{"Value":"value","Name":"name"}]
&HostAliase=[{"Ip":"192.0.XX.XX","Hostname":["['hehe.com', 'haha.com']"]}]
&SecurityContextSysctl=[{"Value":"65536","Name":"kernel.msgmax"}]
&NtpServer=["ntp.cloud.aliyuncs.com"]
&AcrRegistryInfo=[{"Domain":["*****-****-registry.cn-beijing.cr.aliyuncs.com"],"InstanceName":"acr-test","InstanceId":"cri-nwj395hgf6f3****","RegionId":"cn-hangzhou"}]
&CostOptimization=false
&InstanceFamilyLevel=EnterpriseLevel
&ContainersUpdateType=RenewUpdate
&<Common request parameters>

Sample success responses

XML format

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

<ModifyEciScalingConfigurationResponse>
    <RequestId>89945DD3-9072-47D0-A318-353284CF****</RequestId>
</ModifyEciScalingConfigurationResponse>

JSON format

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

{
  "RequestId" : "89945DD3-9072-47D0-A318-353284CF****"
}

Error codes

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

HTTP status code

Error code

Error message

Description

403

Forbidden.Unauthorized

A required authorization for the specified action is not supplied.

The error message returned because you are not authorized to call the operation.

404

InvalidDataDiskSnapshotId.NotFound

Snapshot "XXX" does not exist.

The error message returned because the specified snapshot does not exist.

400

InvalidDataDiskSnapshotId.SizeNotSupported

The capacity of snapshot "XXX" exceeds the size limit of the specified disk category.

The error message returned because the size of the specified snapshot exceeds the maximum size that is allowed for the specified disk.

404

InvalidImageId.NotFound

The specified image does not exist.

The error message returned because the specified image does not exist.

400

InvalidKeyPairName.NotFound

The specified KeyPairName does not exist in our records.

The error message returned because the specified key pair does not exist.

400

InvalidNetworkType.ForRAMRole

RAMRole can't be used For classic instance.

The error message returned because the network type of an instance is classic network. The classic network does not support the RamRoleName parameter.

400

InvalidParamter

The specified value of parameter is not valid.

The error message returned because the value that is specified for a parameter is invalid.

400

InvalidScalingConfigurationName.Duplicate

The specified value of parameter is duplicated.

The error message returned because the name that is specified for the scaling configuration already exists.

400

InvalidSecurityGroupId.IncorrectNetworkType

The network type of specified Security Group does not support this action.

The error message returned because the network type of the specified security group is different from the network type of the scaling group.

400

InvalidSecurityGroupId.VPCMismatch

The specified security group and the specified virtual switch are not in the same VPC.

The error message returned because the specified security group and vSwitch do not reside in the same virtual private cloud (VPC).

400

InvalidTags.KeyValue

The specified tags key/value cannot be empty.

The error message returned because the Tags parameter is left empty.

400

InvalidTags.ListSize

The specified tags list size cannot be more than "20".

The error message returned because the maximum number of tags that can be specified for the elastic container instance has been reached.

400

InvalidUserData.Base64FormatInvalid

The specified parameter UserData must be base64 encoded.

The error message returned because the specified user data is not encoded in Base64.

400

InvalidUserData.SizeExceeded

The specified parameter UserData exceeds the size.

The error message returned because the maximum size of the user data has been reached.