DescribeEciScalingConfigurations
Invokes the DescribeEciScalingConfigurations operation. You can specify parameters such as the scaling group ID, and the IDs or names of the scaling configurations to perform a parameter query for ECI scaling configuration information, such as the instance preemption policy, container group instance types, container image pull policies, and the weight of the ECI instance when it acts as a backend server.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:DescribeEciScalingConfigurations |
get |
*ScalingGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the scaling group to which the scaling configuration belongs. |
cn-qingdao |
| PageNumber |
integer |
No |
The page number of the scaling configuration list. Pages start from 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The Settings for the number of entries per page during paging in a paged query. Maximum value: 50. Default value: 10. |
50 |
| ScalingGroupId |
string |
No |
The ID of the scaling group. You can query all scaling configurations in the scaling group. |
asg-bp17pelvl720x3v7**** |
| ScalingConfigurationId |
array |
No |
The IDs of the scaling configurations to query. You can specify 1 to 10 IDs. The query results include both active and inactive scaling configurations, which are identified by the returned LifecycleState parameter. |
|
|
string |
No |
The ID of the scaling configuration to query. The query results include both active and inactive scaling configurations, which are identified by the returned LifecycleState parameter. |
asc-bp17pelvl720x5ub**** |
|
| ScalingConfigurationName |
array |
No |
The names of the scaling configurations to query. You can specify 1 to 10 names. The query ignores invalid scaling configuration names and does not return an error. |
|
|
string |
No |
The name of the scaling configuration to query. The query ignores invalid scaling configuration names and does not return an error. |
scalingcon**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageNumber |
integer |
The current page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
50 |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| TotalCount |
integer |
The total number of scaling configurations. |
1 |
| ScalingConfigurations |
array<object> |
The details of the scaling configurations. |
|
|
array<object> |
The details of the scaling configurations. |
||
| CreationTime |
string |
The time when the scaling configuration was created. The time is displayed in UTC and follows the ISO 8601 standard in the YYYY-MM-DDThh:mmZ format. |
2014-08-14T10:58Z |
| ScalingConfigurationName |
string |
The name of the scaling configuration. |
scalingconfi**** |
| SecurityGroupId |
string |
The ID of the security group to which the Elastic Container Instance (ECI) belongs. ECIs in the same security group can access each other. |
sg-bp18kz60mefs**** |
| ActiveDeadlineSeconds |
integer |
The validity period. Unit: seconds. |
1000 |
| SpotStrategy |
string |
The preemption policy for the instance. Valid values:
|
NoSpot |
| AutoCreateEip |
boolean |
Specifies whether the system is configured to enable the automatic creation of an elastic IP address (EIP) and attach it to the ECI instance. |
true |
| ScalingGroupId |
string |
The ID of the scaling group to which the scaling configuration belongs. |
asg-bp17pelvl720x3v7**** |
| EphemeralStorage |
integer |
The size of the ephemeral storage. Unit: GiB. |
20 |
| Ipv6AddressCount |
integer |
The number of IPv6 addresses. |
1 |
| EipBandwidth |
integer |
The bandwidth of the EIP. Default value: 5 Mbit/s. |
5 |
| ImageSnapshotId |
string |
The ID of the image cache. |
imc-2zebxkiifuyzzlhl**** |
| Memory |
number |
The memory size. You can specify both the CPU and Memory parameters to define a range of instance types. For example, if you set CPU to 2 and Memory to 16, all instance types that have 2 vCPUs and 16 GiB of memory are matched. Elastic scaling determines the active instance types based on factors such as I/O optimization and zones, and creates the instance that has the lowest price based on price sorting. Note
This configuration takes effect only when the cost optimization pattern is used and no instance type Settings are specified in the scaling configuration. |
16 |
| RestartPolicy |
string |
The restart policy for the pod. Valid values:
|
Never |
| SpotPriceLimit |
number |
The maximum hourly price for the spot instance. This parameter is returned only when SpotStrategy is set to SpotWithPriceLimit. |
0.025 |
| IngressBandwidth |
integer |
The inbound bandwidth limit. Unit: bytes. |
1024000 |
| CpuOptionsThreadsPerCore |
integer |
The number of threads per core. Only specific instance types support custom settings. A value of 1 indicates that hyper-threading is disabled. For more information, see Customize CPU options. |
2 |
| TerminationGracePeriodSeconds |
integer |
The grace period for the program to handle operations before termination. |
60 |
| LoadBalancerWeight |
integer |
The weight of the ECI when it serves as a backend server. Valid values: 1 to 100. |
1 |
| DnsPolicy |
string |
The DNS policy. |
Default |
| HostName |
string |
The hostname. |
['hehe.com', 'haha.com'] |
| EgressBandwidth |
integer |
The outbound bandwidth limit. Unit: bytes. |
1024000 |
| RegionId |
string |
The region ID of the ECI. |
cn-hangzhou |
| RamRoleName |
string |
The name of the Resource Access Management (RAM) role for the instance. ECIs and Elastic Compute Service (ECS) instances share the same RAM roles. For more information, see Use an instance RAM role by calling API operations. |
ram:PassRole |
| Cpu |
number |
The number of vCPUs for the instance. |
2.0 |
| AutoMatchImageCache |
boolean |
Specifies whether to automatically match an image cache. Valid values:
|
false |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-8db03793gfrz**** |
| ContainerGroupName |
string |
The name of the ECI, which is also the name of the pod. |
test |
| ScalingConfigurationId |
string |
The ID of the scaling configuration. |
asc-bp1ezrfgoyn5kijl**** |
| CpuOptionsCore |
integer |
The number of physical CPU cores. Only specific instance types support custom settings. For more information, see Customize CPU options. |
2 |
| Containers |
array<object> |
The list of containers included in the ECI. |
|
|
array<object> |
The information about a container included in the ECI. |
||
| ReadinessProbeHttpGetPath |
string |
The path for the HTTP GET readiness probe. |
/usr/local |
| ReadinessProbeSuccessThreshold |
integer |
The minimum number of consecutive successful checks required to consider the probe successful after a failed check. Default value: 1. The current value must be 1. |
1 |
| LivenessProbePeriodSeconds |
integer |
The interval at which the liveness probe is performed. Default value: 10 seconds. Minimum value: 1 second. |
5 |
| LivenessProbeTcpSocketPort |
integer |
The port number for the TCP socket liveness probe. |
80 |
| LivenessProbeHttpGetScheme |
string |
The protocol type for the HTTP GET request when a health check is performed by using an HTTP request. Valid values:
|
HTTP |
| WorkingDir |
string |
The working directory of the container. |
/usr/local/nginx |
| Tty |
boolean |
Specifies whether to enable interactive mode. Valid values:
|
false |
| LivenessProbeHttpGetPort |
integer |
The port number for the HTTP GET liveness probe. |
80 |
| Gpu |
integer |
The number of GPUs. |
1 |
| ReadinessProbeInitialDelaySeconds |
integer |
The delay before the readiness probe is initiated after the container starts. |
5 |
| Stdin |
boolean |
Specifies whether to allocate a buffer for standard input (stdin) during container runtime. If this parameter is not specified, a read from stdin results in an EOF. Default value: false. |
true |
| Memory |
number |
The memory size of the container. |
2.0 |
| Name |
string |
The custom name of the container. |
nginx |
| LivenessProbeHttpGetPath |
string |
The path for the HTTP GET readiness probe. |
/usr/nginx/ |
| Image |
string |
The container image. |
mysql |
| ReadinessProbeTcpSocketPort |
integer |
The port number for the TCP socket liveness probe. |
8888 |
| ReadinessProbeHttpGetScheme |
string |
The protocol type for the HTTP GET request when a health check is performed by using an HTTP request. Valid values:
|
HTTP |
| ReadinessProbeHttpGetPort |
integer |
The path for the HTTP GET readiness probe. |
/usr/nginx/ |
| LivenessProbeSuccessThreshold |
integer |
The minimum number of consecutive successful checks required to consider the probe successful after a failed check. Default value: 1. The current value must be 1. |
1 |
| ReadinessProbeTimeoutSeconds |
integer |
The timeout period for the readiness probe. Default value: 1 second. Minimum value: 1 second. |
5 |
| SecurityContextRunAsUser |
integer |
The UID used to run the entrypoint of the container process. |
1000 |
| LivenessProbeInitialDelaySeconds |
integer |
The delay before the readiness probe is initiated after the container starts. |
10 |
| ReadinessProbePeriodSeconds |
integer |
The interval at which the readiness probe is performed. Default value: 10 seconds. Minimum value: 1 second. |
1 |
| ImagePullPolicy |
string |
The image pull policy. Valid values:
|
Always |
| StdinOnce |
boolean |
Specifies whether to keep the standard input stream in an enabling status across multiple attached sessions when stdin is set to true. If StdinOnce is set to true, stdin is opened when the container starts, remains empty until the first client attaches to it, and then stays in an enabling status to accept data until the client disconnects. After the client disconnects, stdin is shutdown and remains in a shutdown state until the container is restarted. |
true |
| Cpu |
number |
The number of vCPUs for the container. |
2.0 |
| LivenessProbeTimeoutSeconds |
integer |
The timeout period for the liveness probe. Default value: 1 second. Minimum value: 1 second. |
10 |
| ReadinessProbeFailureThreshold |
integer |
The minimum number of consecutive failed checks required to consider the readiness probe failed after a successful check. Default value: 3. |
3 |
| LivenessProbeFailureThreshold |
integer |
The minimum number of consecutive failed checks required to consider the readiness probe failed after a successful check. Default value: 3. |
3 |
| Ports |
array<object> |
The list of exposed ports and protocols. |
|
|
object |
The exposed port and protocol. |
||
| Port |
integer |
The port number. Valid values: 1 to 65535. |
8888 |
| Protocol |
string |
The protocol type. Valid values:
|
TCP |
| VolumeMounts |
array<object> |
The list of mounted data volumes. |
|
|
object |
The mounted data volume. |
||
| ReadOnly |
boolean |
Specifies whether the data volume is read-only. Valid values:
|
false |
| SubPath |
string |
The subpath of the data volume. |
data2/ |
| Name |
string |
The name of the data volume. This value is the same as the Name parameter in Volume. |
default-volume1 |
| MountPropagation |
string |
The mount propagation settings for the data volume. Mount propagation allows volumes mounted by a container to be shared with other containers in the same pod, or even with other pods on the same node. Valid values:
|
None |
| MountPath |
string |
The directory where the data volume is mounted in the container. Note
The contents of the mount path in the container are directly overwritten by the contents of the volume. Use this parameter with caution. |
/pod/data |
| EnvironmentVars |
array<object> |
The list of environment variables. |
|
|
object |
The information about an environment variable. |
||
| Key |
string |
The name of the environment variable. |
PATH |
| Value |
string |
The value of the environment variable. |
/usr/bin/ |
| Commands |
array |
The list of commands used to start the container. A maximum of 20 commands can be specified. Each command can contain up to 256 characters. |
|
|
string |
The command used to start the container. A maximum of 20 commands can be specified. Each command can contain up to 256 characters. |
sleep |
|
| LivenessProbeExecCommands |
array |
The list of commands executed in the container when the command line is used for health checks. |
|
|
string |
The command executed in the container when the command line is used for health checks. |
cat/tmp/healthy |
|
| Args |
array |
The list of arguments for the container startup command. A maximum of 10 arguments can be specified. |
|
|
string |
The argument for the container startup command. A maximum of 10 arguments can be specified. |
100 |
|
| ReadinessProbeExecCommands |
array |
The list of commands executed in the container when the command line is used for health checks. |
|
|
string |
The command executed in the container when the command line is used for health checks. |
cat/tmp/healthy |
|
| SecurityContextCapabilityAdds |
array |
The specific permissions granted to processes in the container. Valid values: NET_ADMIN and NET_RAW. Note
NET_RAW is not supported by default. To use NET_RAW, submit a ticket. |
|
|
string |
The specific permissions granted to processes in the container. Valid values: NET_ADMIN and NET_RAW. Note
NET_RAW is not supported by default. To use NET_RAW, submit a ticket. |
NET_ADMIN |
|
| LifecyclePostStartHandlerHttpGetHost |
string |
The host address to accept HTTP GET requests when the PostStart callback function Settings use HTTP requests. |
10.0.XX.XX |
| LifecyclePostStartHandlerHttpGetPort |
integer |
The port number checked by HTTP GET requests when the PostStart callback function Settings use HTTP requests. |
80 |
| LifecyclePostStartHandlerHttpGetPath |
string |
The path checked by HTTP GET requests when the PostStart callback function Settings use HTTP requests. |
/healthyz |
| LifecyclePostStartHandlerHttpGetScheme |
string |
The protocol type used for HTTP GET requests when the PostStart callback function Settings use HTTP requests. |
HTTP |
| LifecyclePostStartHandlerExecs |
array |
The command executed in the container when the PostStart callback function Settings use the command line. |
|
|
string |
The command executed in the container when the PostStart callback function Settings use the command line. |
[ "/bin/sh", "-c", "echo Hello from the preStop handler /usr/share/message" ] |
|
| LifecyclePostStartHandlerTcpSocketHost |
string |
The host address checked by TCP sockets when the PostStart callback function Settings use TCP sockets. |
10.0.XX.XX |
| LifecyclePostStartHandlerTcpSocketPort |
integer |
The port checked by TCP sockets when the PostStart callback function Settings use TCP sockets. |
80 |
| LifecyclePreStopHandlerHttpGetHost |
string |
The host address to accept HTTP GET requests when the PreStop callback function Settings use HTTP requests. |
10.0.XX.XX |
| LifecyclePreStopHandlerHttpGetPort |
integer |
The port number checked by HTTP GET requests when the PreStop callback function Settings use HTTP requests. |
80 |
| LifecyclePreStopHandlerHttpGetPath |
string |
The path checked by HTTP GET requests when the PreStop callback function Settings use HTTP requests. |
/healthyz |
| LifecyclePreStopHandlerHttpGetScheme |
string |
The protocol type used for HTTP GET requests when the PreStop callback function Settings use HTTP requests. |
HTTP |
| LifecyclePreStopHandlerExecs |
array |
The command executed in the container when the PreStop callback function Settings use the command line. |
|
|
string |
The command executed in the container when the PreStop callback function Settings use the command line. |
[ "/bin/sh", "-c", "echo Hello from the preStop handler /usr/share/message" ] |
|
| LifecyclePreStopHandlerTcpSocketHost |
string |
The host address checked by TCP sockets when the PreStop callback function Settings use TCP sockets. |
10.0.XX.XX |
| LifecyclePreStopHandlerTcpSocketPort |
integer |
The port checked by TCP sockets when the PreStop callback function Settings use TCP sockets. |
80 |
| InitContainers |
array<object> |
The list of init containers. |
|
|
array<object> |
The init container. |
||
| SecurityContextReadOnlyRootFilesystem |
boolean |
Specifies whether the root file system of the container is read-only. Only true is supported. |
true |
| ImagePullPolicy |
string |
The image pull policy. |
Always |
| WorkingDir |
string |
The working directory. |
/usr/local |
| Cpu |
number |
The number of CPUs. |
0.5 |
| Image |
string |
The image used by the container. |
nginx |
| Gpu |
integer |
The number of GPUs used by the container. |
1 |
| SecurityContextRunAsUser |
string |
The user ID used to run the container. |
587 |
| Memory |
number |
The memory size. |
1.0 |
| Name |
string |
The name of the container. |
test-init |
| InitContainerEnvironmentVars |
array<object> |
The information about an environment variable. |
|
|
object |
The information about an environment variable. |
||
| Key |
string |
The name of the environment variable. |
PATH |
| Value |
string |
The value of the environment variable. |
/usr/local/bin |
| InitContainerVolumeMounts |
array<object> |
The volume mounts. |
|
|
object |
The volume mounts. |
||
| ReadOnly |
boolean |
Specifies whether the mount path is read-only. Default value: false. |
false |
| SubPath |
string |
The subdirectory of the volume. This allows a pod to mount different directories of the same volume to different directories in the container. |
/usr/sub/ |
| Name |
string |
The name of the mounted volume. |
test-empty |
| MountPropagation |
string |
The mount propagation settings for the data volume. Mount propagation allows volumes mounted by a container to be shared with other containers in the same pod, or even with other pods on the same node. Valid values:
|
None |
| MountPath |
string |
The mount path. The content in the mount path of the container is directly overwritten by the content of the volume. Use this parameter with caution. |
/usr/share/ |
| SecurityContextCapabilityAdds |
array |
The specific permissions granted to processes in the container. Valid values: NET_ADMIN and NET_RAW. |
|
|
string |
The specific permissions granted to processes in the container. Valid values: NET_ADMIN and NET_RAW. |
NET_ADMIN |
|
| InitContainerCommands |
array |
The startup command of the container. |
|
|
string |
The startup command of the container. |
sleep |
|
| InitContainerArgs |
array |
The startup arguments of the container. |
|
|
string |
The startup arguments of the container. |
10 |
|
| Tags |
array<object> |
The tag key-value pairs of the instance. |
|
|
object |
The tag key-value pairs of the instance. |
||
| Key |
string |
The tag key. |
version |
| Value |
string |
The tag value. |
3 |
| Volumes |
array<object> |
The volume information. |
|
|
array<object> |
The volume information. |
||
| Type |
string |
The type of the volume. Valid values:
|
EmptyDirVolume |
| DiskVolumeDiskId |
string |
The size of the disk volume. Unit: GiB. |
15 |
| DiskVolumeFsType |
string |
The file system type of the disk volume. |
xfs |
| EmptyDirVolumeMedium |
string |
The storage medium of the emptyDir volume. The default value is empty, which indicates that the node file system is used. If this parameter is set to memory, the memory is used. |
memory |
| NFSVolumePath |
string |
The path of the NFS volume. |
/share |
| DiskVolumeDiskSize |
integer |
The size of the disk volume. Unit: GiB. |
15 |
| NFSVolumeReadOnly |
boolean |
Specifies whether the NFS volume is read-only. Default value: false. |
false |
| FlexVolumeFsType |
string |
The mounted file system type. The default value depends on the FlexVolume script. |
ext4 |
| ConfigFileVolumeDefaultMode |
integer |
The default permissions of the ConfigFile volume. |
0644 |
| FlexVolumeDriver |
string |
The name of the driver used for the FlexVolume. |
flexvolume |
| FlexVolumeOptions |
string |
The list of options for the FlexVolume object. The options are in key-value pairs and passed in JSON format. For example, when you mount a cloud disk by using FlexVolume, the options are in the following format: |
{"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"} |
| NFSVolumeServer |
string |
The address of the NFS server. |
3f9cd4****-na***.cn-shanghai.nas.aliyuncs.com |
| Name |
string |
The name of the volume. |
default-volume1 |
| ConfigFileVolumeConfigFileToPaths |
array<object> |
The list of configuration file paths. |
|
|
object |
The list of configuration file paths. |
||
| Path |
string |
The relative file path. |
/usr/bin/ |
| Mode |
integer |
The directory permissions of the ConfigFile volume. |
0644 |
| Content |
string |
The content of the configuration file (32 KB). |
bGl1bWk= |
| EmptyDirVolumeSizeLimit |
string |
The size of the emptyDir volume. |
256 Mi |
| HostPathVolumeType |
string |
The type of the HostPath volume. |
Directory |
| HostPathVolumePath |
string |
The directory path of the HostPath volume on the host. |
/pod/data |
| ImageRegistryCredentials |
array<object> |
The image registry credentials. |
|
|
object |
The image registry credentials. |
||
| Password |
string |
The password for the image registry. |
yourpaasword |
| Server |
string |
The server address of the image registry. |
registry-vpc.cn-shanghai.aliyuncs.com |
| UserName |
string |
The username for the image registry. |
yourusername |
| DnsConfigOptions |
array<object> |
The list of DNS configuration options. Each option consists of a name and an optional value. |
|
|
object |
The list of DNS configuration options. Each option consists of a name and an optional value. |
||
| Name |
string |
The name of the DNS configuration option. |
name |
| Value |
string |
The value of the DNS configuration option. |
value |
| HostAliases |
array<object> |
The custom hostname mappings for a container in the instance. |
|
|
object |
The custom hostname mappings for a container in the instance. |
||
| Ip |
string |
The IP address to add. |
192.0.XX.XX |
| Hostnames |
array |
The hostnames to add. |
|
|
string |
The hostnames to add. |
['hehe.com', 'haha.com'] |
|
| SecurityContextSysCtls |
array<object> |
The system information of the security context for the running instance. |
|
|
object |
The system information of the security context for the running instance. |
||
| Name |
string |
The name of the sysctl setting. |
kernel.msgmax |
| Value |
string |
The sysctl value of the security context for the running instance. |
65536 |
| AcrRegistryInfos |
array<object> |
The information about the ACR Enterprise Edition instances. |
|
|
object |
The information about the ACR Enterprise Edition instance. |
||
| InstanceId |
string |
The ACR Enterprise Edition instance ID. |
cri-nwj395hgf6f3**** |
| InstanceName |
string |
The name of the ACR Enterprise Edition instance. |
acr-test |
| RegionId |
string |
The region ID of the ACR Enterprise Edition instance. |
cn-hangzhou |
| Domains |
array |
The domain names of the ACR Enterprise Edition instance. By default, all domain names of the instance are used. You can specify specific domain names and separate multiple domain names with commas (,). |
|
|
string |
The domain names of the ACR Enterprise Edition instance. By default, all domain names of the instance are used. You can specify specific domain names and separate multiple domain names with commas (,). |
*****-****-registry.cn-beijing.cr.aliyuncs.com |
|
| DnsConfigNameServers |
array |
The list of IP addresses of the DNS servers. |
|
|
string |
The list of IP addresses of the DNS servers. |
172.10.*.** |
|
| DnsConfigSearches |
array |
The list of DNS search domains. |
|
|
string |
The list of DNS search domains. |
svc.local.kubenetes |
|
| NtpServers |
array |
The NTP servers. |
|
|
string |
The NTP servers. |
ntp.cloud.aliyuncs.com |
|
| LifecycleState |
string |
The lifecycle state of the scaling configuration in the scaling group. Valid values:
|
Active |
| CostOptimization |
boolean |
Specifies whether to enable cost optimization. Valid values:
|
false |
| InstanceFamilyLevel |
string |
The instance family level, which is used to filter instance types that meet the requirements. This parameter takes effect only when CostOptimization is enabled. Valid values:
|
EnterpriseLevel |
| InstanceTypes |
array |
The specified ECS instance types. You can specify up to five instance types. |
|
|
string |
The specified ECS instance type. You can specify up to five instance types. For more information, see Create an instance by specifying an ECS instance type. |
ecs.g6.large |
|
| DataCacheBucket |
string |
The data cache bucket. |
default |
| DataCachePL |
string |
The performance level (PL) of the cloud disk used for data caching. ESSDs are recommended. Valid values for the PL of an ESSD:
Note
For more information about ESSDs, see ESSDs. |
PL1 |
| DataCacheProvisionedIops |
integer |
The provisioned read/write IOPS of the ESSD AutoPL cloud disk used for data caching. Valid values: 0 to min{50000, 1000 × capacity - baseline performance}, where baseline performance = min{1800 + 50 × capacity, 50000}. Note
For more information about ESSD AutoPL cloud disks, see ESSD AutoPL cloud disks. |
40000 |
| DataCacheBurstingEnabled |
boolean |
Specifies whether to enable the burst feature for the ESSD AutoPL cloud disk used for data caching. Valid values:
Note
For more information about ESSD AutoPL cloud disks, see ESSD AutoPL cloud disks. |
false |
| GpuDriverVersion |
string |
The specified GPU driver version. |
tesla=470.82.01 |
Examples
Success response
JSON format
{
"PageNumber": 1,
"PageSize": 50,
"RequestId": "473469C7-AA6F-4DC5-B3DB-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",
"ReadinessProbeHttpGetPort": 0,
"LivenessProbeSuccessThreshold": 1,
"ReadinessProbeTimeoutSeconds": 5,
"SecurityContextRunAsUser": 1000,
"LivenessProbeInitialDelaySeconds": 10,
"ReadinessProbePeriodSeconds": 1,
"ImagePullPolicy": "Always",
"StdinOnce": true,
"Cpu": 2,
"LivenessProbeTimeoutSeconds": 10,
"ReadinessProbeFailureThreshold": 3,
"LivenessProbeFailureThreshold": 3,
"Ports": [
{
"Port": 8888,
"Protocol": "TCP"
}
],
"VolumeMounts": [
{
"ReadOnly": false,
"SubPath": "data2/",
"Name": "default-volume1",
"MountPropagation": "None",
"MountPath": "/pod/data"
}
],
"EnvironmentVars": [
{
"Key": "PATH",
"Value": "/usr/bin/"
}
],
"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
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Forbidden.RiskControl | Forbidden.RiskControl |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.