Call the ModifyEciScalingConfiguration operation to modify a scaling configuration for an Elastic Container Instance (ECI). You can specify the ID of the scaling configuration and change its properties, such as the instance restart policy, the spot policy, and the bandwidth of an Elastic IP Address (EIP).
Usage notes
- If you change the name of a scaling configuration, make sure that the new name is unique within the scaling group.
- Call the DescribeEciScalingConfigurations operation to verify the result of the modification.
Debugging
Request parameters
|
Parameter |
Type |
Required |
Example |
Description |
| Action | String | Yes | ModifyEciScalingConfiguration | A required parameter. Set the value to ModifyEciScalingConfiguration. |
| ScalingConfigurationId | String | Yes | asc-bp16har3jpj6fjbx**** | The ID of the scaling configuration to modify. |
| ScalingConfigurationName | String | Yes | test-modify | The name of the scaling configuration. The name must be 2 to 64 characters in length. It can contain letters, digits, Chinese characters, underscores (_), hyphens (-), and periods (.). The name must start with a letter, a digit, or a Chinese character. The name of a scaling configuration must be unique within the same scaling group in the same region. If you do not specify this parameter, the ID of the scaling configuration is used by default. |
| SecurityGroupId | String | Yes | sg-uf66jeqopgqa9hdn**** | The ID of the security group to which the ECI instances belong. ECI instances in the same security group can access each other. If you do not specify a security group, the system uses the default security group in the selected region. You must make sure that the inbound rules of the security group allow traffic on the ports that need to be exposed for the containers. If no default security group exists in the region, the system creates a default security group and adds the declared container protocols and ports to its inbound rules. |
| ContainerGroupName | String | Yes | nginx-test | The name of the ECI instance, which is also the name of the container group. The name must meet the following requirements:
|
| RestartPolicy | String | No | Always | The restart policy of the instance. Valid values:
Default value: Always. |
| Cpu | Float | No | 1.0 | The number of vCPUs allocated to the instance. Unit: cores. |
| Memory | Float | No | 2.0 | The memory size of the instance. Unit: GiB. |
| ResourceGroupId | String | No | rg-uf66jeqopgqa9hdn**** | The ID of the resource group. |
| DnsPolicy | String | No | Default | The DNS policy. Valid values:
|
| ImageSnapshotId | String | No | imc-2zebxkiifuyzzlhl**** | The ID of the image cache. |
| RamRoleName | String | No | RamTestRole | The name of the instance RAM role. ECI and ECS instances share instance RAM roles. For more information, see Use an instance RAM role by calling an API operation. |
| TerminationGracePeriodSeconds | Long | No | 60 | The buffer time for the program to process operations before it is shut down. Unit: seconds. |
| AutoMatchImageCache | Boolean | No | false | Specifies whether to automatically match the image cache. Valid values:
Default value: false. |
| Ipv6AddressCount | Integer | No | 1 | The number of IPv6 addresses. |
| ActiveDeadlineSeconds | Long | No | 1000 | The active deadline of the instance. Unit: seconds. |
| SpotStrategy | String | No | SpotPriceLimit | The bidding policy for the spot instance. Valid values:
Default value: NoSpot. |
| SpotPriceLimit | Float | No | 0.025 | The maximum hourly price for the spot instance. The value can be accurate to three decimal places. This parameter is required when SpotStrategy is set to SpotWithPriceLimit. |
| AutoCreateEip | Boolean | No | true | Specifies whether to automatically create an Elastic IP Address (EIP) and bind it to the ECI instance. |
| EipBandwidth | Integer | No | 5 | The bandwidth of the EIP. Default value: 5 Mbit/s. |
| HostName | String | No | test | The hostname of the container group. |
| IngressBandwidth | Long | No | 1024000 | The inbound bandwidth limit. Unit: bytes. |
| EgressBandwidth | Long | No | 1024000 | The outbound bandwidth limit. Unit: bytes. |
| CpuOptionsCore | Integer | No | 2 | The number of physical CPU cores. You can customize this setting for only some instance types. For more information, see Customize CPU options. |
| CpuOptionsThreadsPerCore | Integer | No | 2 | The number of threads per core. You can customize this setting for only some instance types. A value of 1 disables hyper-threading. For more information, see Customize CPU options. |
| EphemeralStorage | Integer | No | 20 | The size of the temporary storage space. By default, an ESSD PL1 disk is used. Unit: GiB. |
| LoadBalancerWeight | Integer | No | 50 | The weight of the backend server. Valid values: 1 to 100. |
| Tag.N.Key | String | No | version | The key of the tag. |
| Tag.N.Value | String | No | 3 | The value of the tag. |
| ImageRegistryCredential.N.Password | String | No | yourpaasword | The password for the image repository. |
| ImageRegistryCredential.N.Server | String | No | registry-vpc.cn-shanghai.aliyuncs.com | The address of the image repository. |
| ImageRegistryCredential.N.UserName | String | No | yourusername | The username for the image repository. |
| Container.N.ReadinessProbe.TimeoutSeconds | Integer | No | 1 | The timeout period for the check. Default value: 1. Minimum value: 1. Unit: seconds. |
| Container.N.ReadinessProbe.SuccessThreshold | Integer | No | 1 | The number of consecutive successful checks required to determine that the check is successful. Default value: 1. The value must be 1. |
| Container.N.SecurityContext.Capability.Add.N | String | No | NET_ADMIN | Grants specific permissions to processes in the container. Only NET_ADMIN and NET_RAW are supported. Note NET_RAW is not supported by default. To use this permission, submit a ticket. |
| Container.N.ReadinessProbe.TcpSocket.Port | Integer | No | 8000 | The port that is checked using a TCP socket for the health check. |
| Container.N.ReadinessProbe.HttpGet.Scheme | String | No | HTTP | The protocol type of the HTTP GET request for the health check. Valid values:
|
| Container.N.LivenessProbe.PeriodSeconds | Integer | No | 5 | The interval at which the check is performed. Default value: 10. Minimum value: 1. Unit: seconds. |
| Container.N.Port.N.Protocol | String | No | TCP | The protocol type. Valid values:
|
| Container.N.Port.N.Port | Integer | No | 80 | The port number. Valid values: 1 to 65535. |
| Container.N.SecurityContext.ReadOnlyRootFilesystem | Boolean | No | true | Specifies whether the root file system of the container is read-only. Only a value of true is supported. |
| Container.N.EnvironmentVar.N.Key | String | No | PATH | The name of the environment variable. The name must be 1 to 128 characters in length. It can contain letters, digits, and underscores (_), and cannot start with a digit. |
| Container.N.EnvironmentVar.N.Value | String | No | /usr/local/bin | The value of the environment variable. The value can be 0 to 256 characters in length. |
| Container.N.LivenessProbe.TcpSocket.Port | Integer | No | 8000 | The port that is checked using a TCP socket for the health check. |
| Container.N.Tty | Boolean | No | false | Specifies whether to enable interaction. The default value is false. If you set Command to |
| Container.N.WorkingDir | String | No | /usr/local/ | The working directory of the container. |
| Container.N.LivenessProbe.HttpGet.Scheme | String | No | HTTP | The protocol type of the HTTP GET request for the health check. Valid values:
|
| Container.N.ReadinessProbe.HttpGet.Port | Integer | No | 8080 | The port that is checked by the HTTP GET request for the health check. |
| Container.N.Arg.N | String | No | 100 | The arguments for the container startup command. You can specify up to 10 arguments. |
| Container.N.Gpu | Integer | No | 1 | The number of GPUs to use for the container. |
| Container.N.ReadinessProbe.InitialDelaySeconds | Integer | No | 3 | The amount of time to wait before the first check is performed. The time is measured from when the container starts. Unit: seconds. |
| Container.N.Stdin | Boolean | No | false | Specifies whether to allocate a buffer for the standard input stream in the container runtime. If this parameter is not set, an EOF error occurs when the standard input in the container is read. Default value: false. |
| Container.N.Memory | Float | No | 0.5 | The memory size of the container. Unit: GiB. |
| Container.N.Name | String | No | nginx | The name of the container image. |
| Container.N.Image | String | No | registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:latest | The container image. |
| Container.N.LivenessProbe.InitialDelaySeconds | Integer | No | 5 | The amount of time to wait before the first check is performed. The time is measured from when the container starts. Unit: seconds. |
| Container.N.VolumeMount.N.MountPropagation | String | No | None | The mount propagation setting of the volume. Mount propagation allows volumes mounted by a container to be shared with other containers in the same pod, or even with other pods on the same node. Valid values:
Default value: None. |
| Container.N.VolumeMount.N.MountPath | String | No | /pod/data | The directory in the container to which the volume is mounted. Important The content in the mount directory is overwritten by the content of the volume. Use this parameter with caution.
|
| Container.N.VolumeMount.N.ReadOnly | Boolean | No | false | Specifies whether the volume is read-only.
Default value: false. |
| Container.N.VolumeMount.N.Name | String | No | default-volume1 | The name of the volume. The value must be the same as the value of Volume.N.Name. |
| Container.N.VolumeMount.N.SubPath | String | No | data2/ | The subdirectory of the volume. |
| Container.N.LivenessProbe.FailureThreshold | Integer | No | 3 | The number of consecutive failed checks required to determine that the check has failed. Default value: 3. |
| Container.N.ReadinessProbe.Exec.Command.N | String | No | cat/tmp/healthy | The command that is run in the container for the health check. |
| Container.N.ReadinessProbe.FailureThreshold | Integer | No | 3 | The number of consecutive failed checks required to determine that the check has failed. Default value: 3. |
| Container.N.ImagePullPolicy | String | No | Always | The image pulling policy. Valid values:
|
| Container.N.StdinOnce | Boolean | No | false | Specifies whether the standard input stream remains open across multiple attached sessions when standard input is set to true. If StdinOnce is set to true, the standard input is opened when the container starts. It remains empty until the first client attaches. Then, it stays open and accepts data until the client disconnects. At that point, the standard input is closed and remains closed until the container restarts. |
| Container.N.Cpu | Float | No | 0.25 | The number of vCPUs allocated to the container. Unit: cores. |
| Container.N.LivenessProbe.HttpGet.Port | Integer | No | 8888 | The port that is checked by the HTTP GET request for the health check. |
| Container.N.LivenessProbe.HttpGet.Path | String | No | /healthyz | The path that is checked by the HTTP GET request for the health check. |
| Container.N.LivenessProbe.SuccessThreshold | Integer | No | 1 | The number of consecutive successful checks required to determine that the check is successful. Default value: 1. The value must be 1. |
| Container.N.ReadinessProbe.PeriodSeconds | Integer | No | 3 | The interval at which the check is performed. Default value: 10. Minimum value: 1. Unit: seconds. |
| Container.N.LivenessProbe.TimeoutSeconds | Integer | No | 1 | The timeout period for the check. Default value: 1. Minimum value: 1. Unit: seconds. |
| Container.N.Command.N | String | No | sleep | The container startup command. You can specify up to 20 commands. Each command can contain up to 256 characters. |
| Container.N.SecurityContext.RunAsUser | Long | No | 1000 | The user ID used to run the container. |
| Container.N.ReadinessProbe.HttpGet.Path | String | No | /healthz | The path that is checked by the HTTP GET request for the health check. |
| Container.N.LivenessProbe.Exec.Command.N | String | No | cat /tmp/healthy | The command that is run in the container for the health check. |
| Container.N.LifecyclePostStartHandlerHttpGetHost | String | No | 10.0.XX.XX | The host address that receives the HTTP GET request when you use an HTTP request to set the PostStart callback function. |
| Container.N.LifecyclePostStartHandlerHttpGetPort | Integer | No | 5050 | The port that is checked by the HTTP GET request when you use an HTTP request to set the PostStart callback function. |
| Container.N.LifecyclePostStartHandlerHttpGetPath | String | No | /healthyz | The path that is checked by the HTTP GET request when you use an HTTP request to set the PostStart callback function. |
| Container.N.LifecyclePostStartHandlerHttpGetScheme | String | No | HTTPS | The protocol type of the HTTP GET request when you use an HTTP request to set the PostStart callback function. Valid values:
|
| Container.N.LifecyclePostStartHandlerExec.N | String | No | [ "/bin/sh", "-c", "echo Hello from the postStart handler /usr/share/message" ] | The command that is run in the container when you use the command line to set the PostStart callback function. |
| Container.N.LifecyclePostStartHandlerTcpSocketHost | String | No | 10.0.XX.XX | The host address that is checked by the TCP socket when you use a TCP socket to set the PostStart callback function. |
| Container.N.LifecyclePostStartHandlerTcpSocketPort | Integer | No | 80 | The port that is checked by the TCP socket when you use a TCP socket to set the PostStart callback function. |
| Container.N.LifecyclePreStopHandlerHttpGetHost | String | No | 10.0.XX.XX | The host address that receives the HTTP GET request when you use an HTTP request to set the PreStop callback function. |
| Container.N.LifecyclePreStopHandlerHttpGetPort | Integer | No | 80 | The port that is checked by the HTTP GET request when you use an HTTP request to set the PreStop callback function. |
| Container.N.LifecyclePreStopHandlerHttpGetPath | String | No | /healthyz | The path that is checked by the HTTP GET request when you use an HTTP request to set the PreStop callback function. |
| Container.N.LifecyclePreStopHandlerHttpGetScheme | String | No | HTTP | The protocol type of the HTTP GET request when you use an HTTP request to set the PreStop callback function. Valid values:
|
| Container.N.LifecyclePreStopHandlerExec.N | String | No | [ "/bin/sh", "-c", "echo Hello from the preStop handler /usr/share/message" ] | The command that is run in the container when you use the command line to set the PreStop callback function. |
| Container.N.LifecyclePreStopHandlerTcpSocketHost | String | No | 10.0.XX.XX | The host address that is checked by the TCP socket when you use a TCP socket to set the PreStop callback function. |
| Container.N.LifecyclePreStopHandlerTcpSocketPort | Integer | No | 80 | The port that is checked by the TCP socket when you use a TCP socket to set the PreStop callback function. |
| Volume.N.Type | String | No | EmptyDirVolume | The type of the volume. Valid values:
|
| Volume.N.DiskVolume.DiskSize | Integer | No | 15 | The size of the DiskVolume. Unit: GiB. |
| Volume.N.NFSVolume.Path | String | No | /share | The path of the NFS volume. |
| Volume.N.FlexVolume.FsType | String | No | ext4 | The type of the file system to mount. The default value depends on the script of the FlexVolume. |
| Volume.N.DiskVolume.FsType | String | No | xfs | This parameter is not recommended. Use the |
| Volume.N.HostPathVolume.Type | String | No | Directory | The type of the host directory. Examples: File, Directory, and Socket. |
| Volume.N.NFSVolume.ReadOnly | Boolean | No | false | Specifies whether the NFS volume is read-only.
Default value: false. |
| Volume.N.HostPathVolume.Path | String | No | /xx/xx/name | The absolute path on the host. |
| Volume.N.FlexVolume.Options | String | No | {"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"} | A list of options for the FlexVolume object. The options are key-value pairs passed in JSON format. For example, if you mount a disk using FlexVolume, the format of Options is |
| Volume.N.FlexVolume.Driver | String | No | flexvolume | The name of the driver for the FlexVolume. |
| Volume.N.ConfigFileVolumeDefaultMode | Integer | No | 0644 | The default permissions for the ConfigFileVolume. |
| Volume.N.NFSVolume.Server | String | No | 3f9cd4a596-n****.cn-shanghai.nas.aliyuncs.com | The address of the NFS server. |
| Volume.N.DiskVolume.DiskId | String | No | d-xx | The ID of the DiskVolume. |
| Volume.N.Name | String | No | default-volume1 | The name of the volume. |
| Volume.N.EmptyDirVolume.Medium | String | No | memory | The storage medium of the EmptyDirVolume. The default value is empty, which means that the node file system is used. A value of memory means that memory is used. |
| Volume.N.ConfigFileVolumeConfigFileToPath.N.Path | String | No | /usr/bin/ | The relative path of the file. |
| Volume.N.ConfigFileVolumeConfigFileToPath.N.Mode | Integer | No | 0644 | The permissions for the ConfigFileVolume directory. |
| Volume.N.ConfigFileVolumeConfigFileToPath.N.Content | String | No | bGl1bWk= | The content of the configuration file (32 KB). |
| Volume.N.EmptyDirVolume.SizeLimit | String | No | 256 Mi | The size of the EmptyDir volume. Include a unit in the value. We recommend that you use Gi or Mi. |
| InitContainer.N.InitContainerEnvironmentVar.N.Key | String | No | Path | The name of the environment variable. The name must be 1 to 128 characters in length. It can contain letters, digits, and underscores (_), and cannot start with a digit. |
| InitContainer.N.InitContainerEnvironmentVar.N.Value | String | No | /usr/bin/ | The value of the environment variable. The value can be 0 to 256 characters in length. |
| InitContainer.N.SecurityContext.Capability.Add.N | String | No | NET_ADMIN | Grants specific permissions to processes in the container. Only NET_ADMIN and NET_RAW are supported. Note NET_RAW is not supported by default. To use this permission, submit a ticket. |
| InitContainer.N.Image | String | No | nginx | The image used by the container. |
| InitContainer.N.InitContainerVolumeMount.N.MountPropagation | String | No | None | The mount propagation setting of the volume. Mount propagation allows volumes mounted by a container to be shared with other containers in the same pod, or even with other pods on the same node. Valid values:
Default value: None. |
| InitContainer.N.InitContainerVolumeMount.N.MountPath | String | No | /usr/share/ | The mount directory. Important The content in the mount directory is overwritten by the content of the volume. Use this parameter with caution.
|
| InitContainer.N.InitContainerVolumeMount.N.ReadOnly | Boolean | No | false | Specifies whether the mount path is read-only.
Default value: false. |
| InitContainer.N.InitContainerVolumeMount.N.Name | String | No | test-empty | The name of the volume to mount. |
| InitContainer.N.InitContainerVolumeMount.N.SubPath | String | No | /usr/sub/ | The subdirectory of the volume. This allows a pod to mount different subdirectories of the same volume to different directories in the container. |
| InitContainer.N.ImagePullPolicy | String | No | Always | The image pulling policy. Valid values:
|
| InitContainer.N.Cpu | Float | No | 0.5 | The number of vCPUs allocated to the container. Unit: cores. |
| InitContainer.N.WorkingDir | String | No | /usr/local | The working directory. |
| InitContainer.N.Command.N | String | No | sleep | The container startup instruction. |
| InitContainer.N.Arg.N | String | No | 10 | The container startup parameter. |
| InitContainer.N.SecurityContext.RunAsUser | Long | No | 587 | The user ID used to run the container. |
| InitContainer.N.Gpu | Integer | No | 1 | The number of GPUs to use for the container. |
| InitContainer.N.Memory | Float | No | 1.0 | The memory size. Unit: GiB. |
| InitContainer.N.Name | String | No | test-init | The name of the container. |
| DnsConfigNameServer.N | String | No | 172.10.*.** | A list of IP addresses of the DNS servers. |
| DnsConfigSearch.N | String | No | svc.local.kubenetes | A list of DNS search domains. |
| DnsConfigOption.N.Value | String | No | value | The value of the object variable. |
| DnsConfigOption.N.Name | String | No | name | The name of the object variable. |
| HostAliase.N.Ip | String | No | 192.0.XX.XX | The IP address to add. |
| HostAliase.N.Hostname.N | String | No | ['hehe.com', 'haha.com'] | The hostname to add. |
| SecurityContextSysctl.N.Value | String | No | 65536 | The value of the variable for the security context in which the instance runs. |
| SecurityContextSysctl.N.Name | String | No | kernel.msgmax | The system name of the security context in which the instance runs. |
| NtpServer.N | String | No | ntp.cloud.aliyuncs.com | The NTP server. |
| AcrRegistryInfo.N.Domain.N | String | No | *****-****-registry.cn-beijing.cr.aliyuncs.com | The domain name of the ACR Enterprise instance. By default, all domain names of the instance are returned. You can specify individual domain names. Separate multiple domain names with commas (,). |
| AcrRegistryInfo.N.InstanceName | String | No | acr-test | The name of the ACR Enterprise instance. |
| AcrRegistryInfo.N.InstanceId | String | No | cri-nwj395hgf6f3**** | The ID of the ACR Enterprise instance. |
| AcrRegistryInfo.N.RegionId | String | No | cn-hangzhou | The region where the ACR Enterprise instance resides. |
| CostOptimization | Boolean | No | false | Specifies whether to enable cost optimization. Valid values:
Default value: false. |
| InstanceFamilyLevel | String | No | EnterpriseLevel | The level of the instance family. This parameter is used to filter instance types that meet the specified requirements. This parameter takes effect only when
|
| ContainersUpdateType | String | No | RenewUpdate | A control parameter for how the Containers parameter is updated. Valid values:
Default value: RenewUpdate. |
| InstanceType.N | String | No | ecs.g6.large | The ECS instance type. You can specify multiple instance types (up to five). For more information, see Create an instance by specifying ECS instance types. |
| DataCacheBucket | String | No | default | The data cache bucket. |
| DataCachePL | String | No | PL1 | The performance level of the disk used for the data cache. We recommend that you use an enterprise SSD (ESSD). The performance level of an ESSD can be one of the following values:
Default value: PL1. Note For more information about ESSDs, see ESSDs. |
| DataCacheProvisionedIops | Integer | No | 40000 | When an ESSD AutoPL disk is used for the data cache, this parameter specifies the provisioned read/write IOPS of the disk. Valid values: 0 to min{50000, 1000 × Capacity - Baseline IOPS}. The value of Baseline IOPS is min{1800 + 50 × Capacity, 50000}. Note For more information about ESSD AutoPL disks, see ESSD AutoPL disks. |
| DataCacheBurstingEnabled | Boolean | No | false | When an ESSD AutoPL disk is used for the data cache, this parameter specifies whether to enable the performance burst feature. Valid values:
Default value: false. Note For more information about ESSD AutoPL disks, see ESSD AutoPL disks. |
| GpuDriverVersion | String | No | tesla=525.85.12 | The version of the GPU driver. Valid values:
Note You can switch the GPU driver version for only some instance types. For more information, see Create an instance by specifying a GPU instance type. |
| Override | Boolean | No | false | Specifies whether to overwrite the configuration. Valid values:
|
Response parameters
Parameter |
Type |
Example |
Description |
| RequestId | String | 89945DD3-9072-47D0-A318-353284CF**** | The ID of the request. |
Examples
Sample request
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"],"LifecyclePostStartHandlerHttpGetHost":"10.0.XX.XX","LifecyclePostStartHandlerHttpGetPort":5050,"LifecyclePostStartHandlerHttpGetPath":"/healthyz","LifecyclePostStartHandlerHttpGetScheme":"HTTPS","LifecyclePostStartHandlerExec":["[ \"/bin/sh\", \"-c\", \"echo Hello from the postStart handler /usr/share/message\" ]"],"LifecyclePostStartHandlerTcpSocketHost":"10.0.XX.XX","LifecyclePostStartHandlerTcpSocketPort":80,"LifecyclePreStopHandlerHttpGetHost":"10.0.XX.XX","LifecyclePreStopHandlerHttpGetPort":80,"LifecyclePreStopHandlerHttpGetPath":"/healthyz","LifecyclePreStopHandlerHttpGetScheme":"HTTP","LifecyclePreStopHandlerExec":["[ \"/bin/sh\", \"-c\", \"echo Hello from the preStop handler /usr/share/message\" ]"],"LifecyclePreStopHandlerTcpSocketHost":"10.0.XX.XX","LifecyclePreStopHandlerTcpSocketPort":80}]
&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-n****.cn-shanghai.nas.aliyuncs.com","DiskVolume.DiskId":"d-xx","Name":"default-volume1","EmptyDirVolume.Medium":"memory","ConfigFileVolumeConfigFileToPath":[{"Path":"/usr/bin/","Mode":644,"Content":"bGl1bWk="}],"EmptyDirVolume.SizeLimit":"256 Mi"}]
&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
&InstanceType=["ecs.g6.large"]
&DataCacheBucket=default
&DataCachePL=PL1
&DataCacheProvisionedIops=40000
&DataCacheBurstingEnabled=false
&GpuDriverVersion=tesla=525.85.12
&<Common request parameters>
Sample response
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 other error codes, see the API Error Center.
HTTP status code |
Error code |
Error message |
Description |
403 |
Forbidden.Unauthorized |
A required authorization for the specified action is not supplied. |
You are not authorized to perform this operation. |
404 |
InvalidDataDiskSnapshotId.NotFound |
Snapshot "XXX" does not exist. |
The specified snapshot does not exist. |
400 |
InvalidDataDiskSnapshotId.SizeNotSupported |
The capacity of snapshot "XXX" exceeds the size limit of the specified disk category. |
The size of the specified snapshot exceeds the disk size limit. |
404 |
InvalidImageId.NotFound |
The specified image does not exist. |
The specified image does not exist. |
400 |
InvalidKeyPairName.NotFound |
The specified KeyPairName does not exist in our records. |
The specified KeyPairName does not exist. |
400 |
InvalidNetworkType.ForRAMRole |
RAMRole can't be used For classic instance. |
The RamRoleName parameter is not supported for instances in the classic network. |
400 |
InvalidParamter |
The specified value of parameter is not valid. |
The specified parameter value is invalid. |
400 |
InvalidScalingConfigurationName.Duplicate |
The specified value of parameter is duplicated. |
The scaling configuration name already exists. |
400 |
InvalidSecurityGroupId.IncorrectNetworkType |
The network type of specified Security Group does not support this action. |
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 specified security group and vSwitch do not belong to the same VPC. |
400 |
InvalidTags.KeyValue |
The specified tags key/value cannot be empty. |
The key or value of a tag cannot be empty. |
400 |
InvalidTags.ListSize |
The specified tags list size cannot be more than "20". |
The number of tags exceeds the limit of 20. |
400 |
InvalidUserData.Base64FormatInvalid |
The specified parameter UserData must be base64 encoded. |
The UserData is not correctly encoded in Base64. |
400 |
InvalidUserData.SizeExceeded |
The specified parameter UserData exceeds the size. |
The specified UserData is too long. |