Queries scaling configurations of the Elastic Container Instance type. When you call the DescribeEciScalingConfigurations operation, you can specify the scaling group ID, scaling configuration ID, or scaling configuration name to query the details of the desired scaling configuration, such as the instance bidding policy, instance type of the container group, image pulling policy of containers, and load balancing weight of each elastic container instance.
Debugging
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 whose scaling configurations you want to query. |
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. 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. 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 ID of the request. |
TotalCount | Integer | 1 | The total number of scaling configurations. |
ScalingConfigurations | Array of ScalingConfiguration | 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 elastic container instances created from the scaling configuration are associated. Elastic container instances that are associated with the same security group can communicate with each other. |
ActiveDeadlineSeconds | Integer | 1000 | The validity period of the scaling configuration. Unit: seconds. |
SpotStrategy | String | NoSpot | The bidding policy of elastic container instances. Valid values:
|
AutoCreateEip | Boolean | true | Indicates whether elastic IP addresses (EIPs) are automatically created and then bound to elastic container instances. |
ScalingGroupId | String | asg-bp17pelvl720x3v7**** | The ID of the scaling group to which the scaling configuration belongs. |
EphemeralStorage | Integer | 20 | The capacity of the ephemeral storage. Unit: GiB. |
Ipv6AddressCount | Integer | 1 | The number of IPv6 addresses. |
EipBandwidth | Integer | 5 | The EIP bandwidth. 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 Cpu and Memory, Auto Scaling determines the 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 define the range of instance types only if you set Scaling Policy to Cost Optimization Policy and do not specify an instance type in the scaling configuration. |
RestartPolicy | String | Never | The restart policy of elastic container instances. Valid values:
|
SpotPriceLimit | Float | 0.025 | The maximum hourly price of preemptible instances. 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 only for specific instance types. If you set this parameter to 1, Hyper-Threading is disabled. For more information, see Specify CPU options. |
TerminationGracePeriodSeconds | Integer | 60 | The buffer period during which a program handles operations before the program is stopped. |
LoadBalancerWeight | Integer | 1 | The load balancing weight of each elastic container instance. Valid values: 1 to 100. |
DnsPolicy | String | Default | The Domain Name System (DNS) policy. |
HostName | String | ['hehe.com', 'haha.com'] | The hostname series. |
EgressBandwidth | Long | 1024000 | The maximum outbound bandwidth. Unit: bit/s. |
RegionId | String | cn-hangzhou | The region ID of elastic container instances. |
RamRoleName | String | ram:PassRole | The Resource Access Management (RAM) role of elastic container instances. Elastic container instances 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 per elastic container instance. |
AutoMatchImageCache | Boolean | false | Indicates whether the image cache is automatically matched. Valid values:
|
ResourceGroupId | String | rg-8db03793gfrz**** | The ID of the resource group. |
ContainerGroupName | String | test | 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 only for specific instance types. For more information, see Specify CPU options. |
Containers | Array of Container | The containers per elastic container instance. | |
ReadinessProbeHttpGetPath | String | /usr/local | The path to which the HTTP GET requests for readiness probing are sent. |
ReadinessProbeSuccessThreshold | Integer | 1 | The minimum number of consecutive successes that must occur before a failed readiness probe is considered successful. Default value: 1. Valid value: 1. |
LivenessProbePeriodSeconds | Integer | 5 | The time interval between consecutive liveness probes. Unit: seconds. Default value: 10. Minimum value: 1. |
LivenessProbeTcpSocketPort | Integer | 80 | The port number of the TCP sockets used for liveness probing. |
LivenessProbeHttpGetScheme | String | HTTP | The protocol type of the HTTP GET requests for liveness probing. Valid values:
|
WorkingDir | String | /usr/local/nginx | The working directory. |
Tty | Boolean | false | Indicates whether the Interaction feature is enabled. Valid values:
|
LivenessProbeHttpGetPort | Integer | 80 | The port over which the HTTP GET requests for liveness probing are sent. |
Gpu | Integer | 1 | The number of GPUs. |
ReadinessProbeInitialDelaySeconds | Integer | 5 | The interval between the launch of the container and the onset of a readiness probe. Unit: seconds. |
Stdin | Boolean | true | Indicates whether the container allocates buffer resources to standard input streams during its active runtime. If this parameter is not specified, an end-of-file (EOF) error occurs. Default value: false. |
Memory | Float | 2.0 | The memory size per container. |
Name | String | nginx | The custom name of the container. |
LivenessProbeHttpGetPath | String | /usr/nginx/ | The path to which the HTTP GET requests for liveness probing are sent. |
Image | String | mysql | The container image. |
ReadinessProbeTcpSocketPort | Integer | 8888 | The port number of the TCP sockets used for readiness probing. |
ReadinessProbeHttpGetScheme | String | HTTP | The protocol type of the HTTP GET requests for readiness probing. Valid values:
|
ReadinessProbeHttpGetPort | Integer | /usr/nginx/ | The path to which the HTTP GET requests for readiness probing are sent. |
LivenessProbeSuccessThreshold | Integer | 1 | The minimum number of consecutive successes that must occur before a failed liveness probe is considered successful. Default value: 1. Valid value: 1. |
ReadinessProbeTimeoutSeconds | Integer | 5 | The time limit within which a readiness probe must be completed. 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 interval between the launch of the container and the onset of a liveness probe. Unit: seconds. |
ReadinessProbePeriodSeconds | Integer | 1 | The time interval between consecutive readiness probes. Unit: seconds. Default value: 10. Minimum value: 1. |
ImagePullPolicy | String | Always | The image pulling policy. Valid values:
|
StdinOnce | Boolean | true | Indicates whether standard input streams are disconnected after a client is disconnected. If StdinOnce is set to true, standard input streams remain connected during multiple sessions. If 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 disconnected until the container restarts. |
Cpu | Float | 2.0 | The number of vCPUs per container. |
LivenessProbeTimeoutSeconds | Integer | 10 | The time limit within which a liveness probe must be completed. Default value: 1. Minimum value: 1. Unit: seconds. |
ReadinessProbeFailureThreshold | Integer | 3 | The minimum number of consecutive failures that must occur before a successful readiness probe is considered failed. Default value: 3. |
LivenessProbeFailureThreshold | Integer | 3 | The minimum number of consecutive failures that must occur before a successful liveness probe is considered failed. Default value: 3. |
Ports | Array of Port | The exposed ports and protocols. | |
Port | Integer | 8888 | The port number. Valid values: 1 to 65535. |
Protocol | String | TCP | The protocol type. Valid values:
|
VolumeMounts | Array of VolumeMount | The mounted volumes. | |
ReadOnly | Boolean | false | Indicates whether the volume is read-only. Valid values:
|
SubPath | String | data2/ | The subdirectory of the volume. |
Name | String | default-volume1 | The name of the volume. The value of this parameter is the same as the value of Volumes.Name. |
MountPropagation | String | None | The mount propagation settings of the volume. Mount propagation allows you to share volumes that are mounted on a container to other containers in the same pod or to other pods on the same node. Valid values:
|
MountPath | String | /pod/data | The directory within the container to which the volume is mounted. Note Data in this directory is overwritten by the data in the volume. |
EnvironmentVars | Array of EnvironmentVar | The 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 startup commands of containers. 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 by using the Command-Line Interface (CLI) for liveness probing. |
Args | Array of String | 100 | The arguments that correspond to the startup commands of containers. You can specify up to 10 arguments. |
ReadinessProbeExecCommands | Array of String | cat/tmp/healthy | The commands that are run by using the CLI for readiness probing. |
SecurityContextCapabilityAdds | Array of String | NET_ADMIN | The permissions that you want to grant 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 to which the HTTP GET requests for configuring the PostStart callback function are sent. |
LifecyclePostStartHandlerHttpGetPort | Integer | 80 | The port over which the HTTP GET requests for configuring the PostStart callback function are sent. |
LifecyclePostStartHandlerHttpGetPath | String | /healthyz | The path to which the HTTP GET requests for configuring the PostStart callback function are sent. |
LifecyclePostStartHandlerHttpGetScheme | String | HTTP | The protocol type of the HTTP GET requests for configuring 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 for configuring the PostStart callback function. |
LifecyclePostStartHandlerTcpSocketHost | String | 10.0.XX.XX | The IP address of the host detected by the TCP sockets for configuring the PostStart callback function. |
LifecyclePostStartHandlerTcpSocketPort | Integer | 80 | The port number detected by the TCP sockets for configuring the PostStart callback function. |
LifecyclePreStopHandlerHttpGetHost | String | 10.0.XX.XX | The IP address of the host to which the HTTP GET requests for configuring the PreStop callback function are sent. |
LifecyclePreStopHandlerHttpGetPort | Integer | 80 | The port over which the HTTP GET requests for configuring the PreStop callback function are sent. |
LifecyclePreStopHandlerHttpGetPath | String | /healthyz | The path to which the HTTP GET requests for configuring the PreStop callback function are sent. |
LifecyclePreStopHandlerHttpGetScheme | String | HTTP | The protocol type of the HTTP GET requests for configuring 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 for configuring the PreStop callback function. |
LifecyclePreStopHandlerTcpSocketHost | String | 10.0.XX.XX | The IP address of the host detected by the TCP sockets for configuring the PreStop callback function. |
LifecyclePreStopHandlerTcpSocketPort | Integer | 80 | The port number detected by the TCP sockets for configuring the PreStop callback function. |
InitContainers | Array of InitContainer | The init containers. | |
SecurityContextReadOnlyRootFilesystem | Boolean | true | Indicates whether the root file system on which the container runs is read-only. Valid value: true. |
ImagePullPolicy | String | Always | The image pulling policy. |
WorkingDir | String | /usr/local | The working directory. |
Cpu | Float | 0.5 | The number of vCPUs. |
Image | String | nginx | The container image. |
Gpu | Integer | 1 | The number of GPUs per container. |
SecurityContextRunAsUser | String | 587 | The ID of the user that runs the container. |
Memory | Float | 1.0 | The memory size per container. |
Name | String | test-init | The container name. |
InitContainerEnvironmentVars | Array of InitContainerEnvironmentVar | The 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 mounted volumes. | |
ReadOnly | Boolean | false | Indicates whether the volume is read-only. Default value: false. |
SubPath | String | /usr/sub/ | The subdirectory of the volume. A pod can have various directories from the same volume mounted to different directories within a container. |
Name | String | test-empty | The name of the mounted volume. |
MountPropagation | String | None | The mount propagation settings of the volume. Mount propagation allows you to share volumes that are mounted on a container to other containers in the same pod or to other pods on the same node. Valid values:
|
MountPath | String | /usr/share/ | The directory to which the volume is mounted. Data in this directory is overwritten by data in the volume. Proceed with caution. |
SecurityContextCapabilityAdds | Array of String | NET_ADMIN | The permissions that you want to grant to the processes in the container. Valid values: NET_ADMIN and NET_RAW. |
InitContainerCommands | Array of String | sleep | The startup commands of init containers. |
InitContainerArgs | Array of String | 10 | The startup arguments of init containers. |
Tags | Array of Tag | The tags of the elastic container instance. Tags are specified in the key-value format. | |
Key | String | version | The key of the tag. |
Value | String | 3 | The value of the tag. |
Volumes | Array of Volume | The volumes. | |
Type | String | EmptyDirVolume | The type of the volume. Valid values:
|
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 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 type of the mounted file system. The default value is determined by the script of the Flex volume. |
ConfigFileVolumeDefaultMode | Integer | 0644 | The default permissions on the configuration file. |
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 in a JSON string. If the disk that you mount is a Flex volume, the options are in the |
NFSVolumeServer | String | 3f9cd4****-na***.cn-shanghai.nas.aliyuncs.com | The endpoint of the Network File System (NFS) server. |
Name | String | default-volume1 | The name of the volume. |
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 ConfigFileVolume directory. |
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 image repositories. | |
Password | String | yourpaasword | The password of the image repository. |
Server | String | registry-vpc.cn-shanghai.aliyuncs.com | The endpoint 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 name of the option. |
Value | String | value | The value of the option. |
HostAliases | Array of HostAlias | The custom hostname mapping of a container in the elastic container instance. | |
Ip | String | 192.0.XX.XX | The IP address that is added. |
Hostnames | Array of String | ['hehe.com', 'haha.com'] | The hostname that is added. |
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 system value of the security context in which the elastic container instance is run. |
AcrRegistryInfos | Array of AcrRegistryInfo | 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 lookup domains of the DNS server. |
NtpServers | Array of String | ntp.cloud.aliyuncs.com | The Network Time Protocol (NTP) servers. |
LifecycleState | String | Active | The status of the scaling configuration in the scaling group. Valid values:
|
CostOptimization | Boolean | false | Indicates whether the Cost Optimization feature is enabled. Valid values:
|
InstanceFamilyLevel | String | EnterpriseLevel | The level of the instance family. You can specify this parameter to obtain instance types that meet the specified criteria. This parameter takes effect only if you set
|
InstanceTypes | Array of String | ecs.g6.large | The 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 is used to store data caches. |
DataCachePL | String | PL1 | The performance level (PL) of the disk that is used to store data caches. We recommend that you use Enterprise SSDs (ESSDs). Valid values of this parameter if you use ESSDs:
Note For more information about ESSDs, see ESSDs. |
DataCacheProvisionedIops | Integer | 40000 | The provisioned IOPS of the ESSD AutoPL disk that is used to store data caches. Valid values: 0 to min{50000, 1000 x Capacity-Baseline IOPS}, in which 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 store data caches. Valid values:
Note For more information about ESSD AutoPL disks, see ESSD AutoPL disks. |
GpuDriverVersion | String | tesla=470.82.01 | The version of the GPU driver. |
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>3f9cd4****-na***.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>
<GpuDriverVersion>tesla=470.82.01</GpuDriverVersion>
</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" : "3f9cd4****-na***.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,
"GpuDriverVersion" : "tesla=470.82.01"
} ]
}
Error codes
For a list of error codes, see Service error codes.