All Products
Search
Document Center

Auto Scaling:DescribeEciScalingConfigurations

Last Updated:Feb 28, 2024

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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ess:DescribeEciScalingConfigurationsRead
  • ScalingGroup
    acs:ess:{#regionId}:{#accountId}:scalinggroup/{#ScalingGroupId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

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

cn-qingdao
PageNumberintegerNo

The number of the page to return. Pages start from page 1.

Default value: 1.

1
PageSizeintegerNo

The number of entries to return on each page. Maximum value: 50.

Default value: 10.

50
ScalingGroupIdstringNo

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

asg-bp17pelvl720x3v7****
ScalingConfigurationIdsarrayNo

The IDs of the scaling configurations that you want to query.

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

stringNo

The IDs of the scaling configurations that you want to query.

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

asc-bp17pelvl720x5ub****
ScalingConfigurationNamesarrayNo

The names of the scaling configurations that you want to query.

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

stringNo

The names of the scaling configurations that you want to query.

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

scalingcon****

Response parameters

ParameterTypeDescriptionExample
object
PageNumberinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned per page.

50
RequestIdstring

The ID of the request.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
TotalCountinteger

The total number of scaling configurations.

1
ScalingConfigurationsobject []

Details of the scaling configurations.

CreationTimestring

The time when the scaling configuration was created.

2014-08-14T10:58Z
ScalingConfigurationNamestring

The name of the scaling configuration.

scalingconfi****
SecurityGroupIdstring

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

sg-bp18kz60mefs****
ActiveDeadlineSecondsinteger

The validity period. Unit: seconds.

1000
SpotStrategystring

The preemption policy of the instance. Valid values:

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

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

true
ScalingGroupIdstring

The scaling group ID of the scaling configuration.

asg-bp17pelvl720x3v7****
EphemeralStorageinteger

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

20
Ipv6AddressCountinteger

The number of IPv6 addresses.

1
Descriptionstring
Note This parameter is unavailable.
This is an example.
EipBandwidthinteger

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

5
ImageSnapshotIdstring

The ID of the image cache snapshot.

imc-2zebxkiifuyzzlhl****
Memoryfloat

The size of the memory.

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

Note You can specify CPU and memory specifications to determine the range of instance types only if the Scaling Policy parameter is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
16
RestartPolicystring

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

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

The maximum hourly price for the preemptible instance.

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

0.025
IngressBandwidthlong

The maximum inbound bandwidth. Unit: bit/s.

1024000
CpuOptionsThreadsPerCoreinteger

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

2
TerminationGracePeriodSecondsinteger

The buffer time in which the program handles operations before the program stops.

60
LoadBalancerWeightinteger

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

1
DnsPolicystring

The Domain Name System (DNS) policy.

Default
HostNamestring

The hostname.

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

The maximum outbound bandwidth. Unit: bytes.

1024000
RegionIdstring

The region ID of the elastic container instance.

cn-hangzhou
RamRoleNamestring

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

ram:PassRole
Cpufloat

The number of vCPUs of the elastic container instance.

2.0
AutoMatchImageCacheboolean

Indicates whether the image cache is automatically matched. Default value: false.

false
ResourceGroupIdstring

The ID of the resource group.

rg-8db03793gfrz****
ContainerGroupNamestring

The name of the elastic container instance.

test
ScalingConfigurationIdstring

The ID of the scaling configuration.

asc-bp1ezrfgoyn5kijl****
CpuOptionsCoreinteger

The number of physical CPU cores. This parameter can be specified for only some instance types. For more information, see Specify custom CPU options.

2
SlsEnableboolean
Note This parameter is unavailable.
False
Containersobject []

The containers in the elastic container instance.

ReadinessProbeHttpGetPathstring

The path to which the system sends an HTTP GET request for a probe.

/usr/local
ReadinessProbeSuccessThresholdinteger

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

1
LivenessProbePeriodSecondsinteger

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

5
LivenessProbeTcpSocketPortinteger

The port number of TcpSocket.

80
LivenessProbeHttpGetSchemestring

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

  • HTTP
  • HTTPS
HTTP
WorkingDirstring

The working directory of the container.

/usr/local/nginx
Ttyboolean

Indicates whether interaction is enabled. Valid values:

  • true
  • false

If the value of the Command parameter is /bin/bash, the value of this parameter is true.

Default value: false.

false
LivenessProbeHttpGetPortinteger

The port to which HTTP GET requests were sent.

80
Gpuinteger

The number of GPUs.

1
ReadinessProbeInitialDelaySecondsinteger

The number of seconds between the time when the startup of the container ends and the time when the probe starts.

5
Stdinboolean

Indicates whether the container allocates buffer resources to standard input streams when the container runs. If you do not specify this parameter, an end-of-file (EOF) error may occur. Default value: false.

true
Memoryfloat

The memory size of the container.

2.0
Namestring

The name of the container.

nginx
SecurityContextReadOnlyRootFilesystemboolean

Indicates whether the root file system is set to the read-only mode. The only valid value is true.

true
LivenessProbeHttpGetPathstring

The path to which the system sends an HTTP GET request for a probe.

/usr/nginx/
Imagestring

The image of the container.

mysql
ReadinessProbeTcpSocketPortinteger

The port number of TcpSocket.

8888
ReadinessProbeHttpGetSchemestring

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

  • HTTP
  • HTTPS
HTTP
ReadinessProbeHttpGetPortinteger

The path to which the system sends an HTTP GET request for a probe.

/usr/nginx/
LivenessProbeSuccessThresholdinteger

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

1
ReadinessProbeTimeoutSecondsinteger

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

5
SecurityContextRunAsUserlong

The user ID (UID) that is used to run the entry point of the container process.

1000
LivenessProbeInitialDelaySecondsinteger

The number of seconds between the time when the startup of the container ends and the time when the probe starts.

10
ReadinessProbePeriodSecondsinteger

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

1
ImagePullPolicystring

The image pulling policy. Valid values:

  • Always: Image pulling is performed each time.
  • IfNotPresent: Image pulling is performed only if on-premises images are unavailable. On-premises images are preferentially used. If no on-premises images are available, image pulling is performed.
  • Never: On-premises images are always used. Image pulling is not performed.
Always
StdinOnceboolean

Indicates whether standard input streams are disconnected after a client is disconnected. If Stdin 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 in the disconnected state until the container is started again.

true
Cpufloat

The number of vCPUs that are allocated to the container.

2.0
LivenessProbeTimeoutSecondsinteger

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

10
ReadinessProbeFailureThresholdinteger

The minimum number of consecutive failures for a probe to be considered failed after having been successful.

Default value: 3.

3
LivenessProbeFailureThresholdinteger

The minimum number of consecutive failures for a probe to be considered failed after having been successful.

Default value: 3.

3
Portsobject []

The exposed ports and protocols of the container.

Portinteger

The port number. Valid values: 1 to 65535.

8888
Protocolstring

The protocol. Valid values:

  • TCP
  • UDP
TCP
VolumeMountsobject []

The volumes that are mounted on the container.

ReadOnlyboolean

Indicates whether the volume is read-only.

Default value: false.

false
SubPathstring

The subdirectory of the volume.

data2/
Namestring

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

default-volume1
MountPropagationstring

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

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

Default value: None.

None
MountPathstring

The directory in which the container mounts the volume.

Note Data in this directory is overwritten by the data on the volume.
/pod/data
EnvironmentVarsobject []

Details of the environment variables.

Keystring

The name of the environment variable.

PATH
Valuestring

The value of the environment variable.

/usr/bin/
FieldRefFieldPathstring
Note This parameter is unavailable.
path
Commandsarray

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

string

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

sleep
LivenessProbeExecCommandsarray

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

string

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

cat/tmp/healthy
Argsarray

The arguments that are passed to the container startup commands. You can specify up to 10 arguments.

string

The arguments that are passed to the container startup commands. You can specify up to 10 arguments.

100
ReadinessProbeExecCommandsarray

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

string

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

cat/tmp/healthy
SecurityContextCapabilityAddsarray

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

Note To use NET_RAW, you need to submit a ticket.
string

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

Note To use NET_RAW, you need to submit a ticket.
NET_ADMIN
InitContainersobject []

The init containers.

SecurityContextReadOnlyRootFilesystemboolean

Indicates whether the root file system is read-only. The only valid value is true.

true
ImagePullPolicystring

The image pulling policy.

Always
WorkingDirstring

The working directory.

/usr/local
Cpufloat

The number of vCPUs.

0.5
Imagestring

The container image.

nginx
Gpuinteger

The number of GPUs that are allocated to the container.

1
SecurityContextRunAsUserstring

The ID of the user that runs the container.

587
Memoryfloat

The size of the memory.

1.0
Namestring

The name of the container.

test-init
InitContainerEnvironmentVarsobject []

Details of the environment variables.

Keystring

The name of the environment variable.

PATH
Valuestring

The value of the environment variable.

/usr/local/bin
FieldRefFieldPathstring
Note This parameter is unavailable.
path
InitContainerPortsobject []

Details of the init container ports.

Portinteger

The port number. Valid values: 1 to 65535.

1
Protocolstring

The protocol. Valid values:

  • TCP
  • UDP
TCP
InitContainerVolumeMountsobject []

The volumes that are mounted on the container.

ReadOnlyboolean

Indicates whether the mount path is read-only.

Default value: false.

false
SubPathstring

The subdirectory of the volume. The elastic container instance can mount different directories of the same volume to different subdirectories of containers.

/usr/sub/
Namestring

The name of the volume.

test-empty
MountPropagationstring

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

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

Default value: None.

None
MountPathstring

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

/usr/share/
SecurityContextCapabilityAddsarray

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

Note To use NET_RAW, you need to submit a ticket.
string

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

Note To use NET_RAW, you need to submit a ticket.
NET_ADMIN
InitContainerCommandsarray

The container startup commands.

string

The container startup commands.

sleep
InitContainerArgsarray

The container startup arguments.

string

The container startup arguments.

10
Tagsobject []

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

Keystring

The key of the tag.

version
Valuestring

The value of the tag.

3
Volumesobject []

Details of the volumes.

Typestring

The type of the volume. Valid values:

  • EmptyDirVolume
  • NFSVolume
  • ConfigFileVolume
  • FlexVolume
EmptyDirVolume
DiskVolumeDiskIdstring

The storage size of a disk volume. Unit: GiB.

15
DiskVolumeFsTypestring

The file system type of a disk volume.

xfs
EmptyDirVolumeMediumstring

The storage medium of EmptyDirVolume. If this parameter is left empty, 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.

memory
NFSVolumePathstring

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

/share
DiskVolumeDiskSizeinteger

The storage size of a disk volume. Unit: GiB.

15
NFSVolumeReadOnlyboolean

Indicates whether the NFS volume is read-only.

Default value: false.

false
FlexVolumeFsTypestring

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

ext4
ConfigFileVolumeDefaultModeinteger

The default permissions on the ConfigFile volume.

0644
FlexVolumeDriverstring

The FlexVolume driver name of the volume.

flexvolume
FlexVolumeOptionsstring

The FlexVolume options. Each option is a key-value pair in a JSON string.

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

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

The endpoint of the NFS server.

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

The name of the volume.

default-volume1
ConfigFileVolumeConfigFileToPathsobject []

The paths to configuration files.

Pathstring

The relative path to the configuration file.

/usr/bin/
Modeinteger

The permissions on the ConfigFile volume.

0644
Contentstring

The content of the configuration file (32 KB).

bGl1bWk=
ImageRegistryCredentialsobject []

The information about the image repository.

Passwordstring

The password that is used to access the image repository.

yourpaasword
Serverstring

The domain name of the image repository.

registry-vpc.cn-shanghai.aliyuncs.com
UserNamestring

The username that is used to access the image repository.

yourusername
DnsConfigOptionsobject []

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

Namestring

The variable name of the option.

name
Valuestring

The variable value of the option.

value
HostAliasesobject []

The hostname aliases of a container.

Ipstring

The IP address that is added.

192.0.XX.XX
Hostnamesarray

The hostnames that are added.

string

The hostnames that are added.

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

The system information of the security context in which the elastic container instance runs.

Namestring

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

kernel.msgmax
Valuestring

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

65536
AcrRegistryInfosobject []

Details of the Container Registry Enterprise Edition instances.

InstanceIdstring

The ID of the Container Registry Enterprise Edition instance.

cri-nwj395hgf6f3****
InstanceNamestring

The name of the Container Registry Enterprise Edition instance.

acr-test
RegionIdstring

The region ID of the Container Registry Enterprise Edition instance.

cn-hangzhou
Domainsarray

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

string

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

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

The IP addresses of the DNS servers.

string

The IP addresses of the DNS servers.

172.10.*.**
DnsConfigSearchesarray

The DNS lookup domains.

string

The DNS lookup domains.

svc.local.kubenetes
NtpServersarray

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

string

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

ntp.cloud.aliyuncs.com
LifecycleStatestring

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

  • Active: The scaling configuration is active in the scaling group. Auto Scaling uses active scaling configurations to automatically create ECS instances.
  • Inactive: The scaling configuration is inactive in the scaling group. Auto Scaling does not use inactive scaling configurations to automatically create ECS instances. Inactive scaling configurations are retained in the scaling group.
Active
CostOptimizationboolean

Indicates whether the cost optimization feature is enabled. Valid values:

  • true
  • false
false
InstanceFamilyLevelstring

The instance family level, which is used to filter the range of instance types that meet the requirements. This parameter takes effect when the CostOptimization parameter is set to true. Valid values:

  • EntryLevel: shared instance type. Instances of this level are the most cost-effective but may not provide stable computing performance in a consistent manner. Instances of this level are suitable for business scenarios in which the CPU utilization is low. For more information, see Shared instance families.
  • EnterpriseLevel: Instances of this level provide stable performance and dedicated resources, and are suitable for business scenarios that require high stability. For more information, see Instance family.
  • CreditEntryLevel: This value is valid only for burstable instances. CPU credits are used to ensure computing performance. Instances of this level are suitable for scenarios in which the CPU utilization is low but may fluctuate in specific cases. For more information, see Overview of burstable instances.
EnterpriseLevel

Examples

Sample success responses

JSONformat

{
  "PageNumber": 1,
  "PageSize": 50,
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "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,
      "Description": "This is an example.",
      "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,
      "SlsEnable": true,
      "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",
          "SecurityContextReadOnlyRootFilesystem": true,
          "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/",
              "FieldRefFieldPath": "path"
            }
          ],
          "Commands": [
            "sleep"
          ],
          "LivenessProbeExecCommands": [
            "cat/tmp/healthy"
          ],
          "Args": [
            "100"
          ],
          "ReadinessProbeExecCommands": [
            "cat/tmp/healthy"
          ],
          "SecurityContextCapabilityAdds": [
            "NET_ADMIN"
          ]
        }
      ],
      "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",
              "FieldRefFieldPath": "path"
            }
          ],
          "InitContainerPorts": [
            {
              "Port": 1,
              "Protocol": "TCP"
            }
          ],
          "InitContainerVolumeMounts": [
            {
              "ReadOnly": false,
              "SubPath": "/usr/sub/",
              "Name": "test-empty",
              "MountPropagation": "None",
              "MountPath": "/usr/share/"
            }
          ],
          "SecurityContextCapabilityAdds": [
            "NET_ADMIN"
          ],
          "InitContainerCommands": [
            "sleep"
          ],
          "InitContainerArgs": [
            "10"
          ]
        }
      ],
      "Tags": [
        {
          "Key": "version",
          "Value": "3"
        }
      ],
      "Volumes": [
        {
          "Type": "EmptyDirVolume",
          "DiskVolumeDiskId": "15",
          "DiskVolumeFsType": "xfs",
          "EmptyDirVolumeMedium": "memory",
          "NFSVolumePath": "/share",
          "DiskVolumeDiskSize": 15,
          "NFSVolumeReadOnly": false,
          "FlexVolumeFsType": "ext4",
          "ConfigFileVolumeDefaultMode": 644,
          "FlexVolumeDriver": "flexvolume",
          "FlexVolumeOptions": "{\"volumeId\":\"d-2zehdahrwoa7srg****\",\"performanceLevel\": \"PL2\"}",
          "NFSVolumeServer": "3f9cd4a596-naw76.cn-shanghai.nas.aliyuncs.com",
          "Name": "default-volume1",
          "ConfigFileVolumeConfigFileToPaths": [
            {
              "Path": "/usr/bin/",
              "Mode": 644,
              "Content": "bGl1bWk="
            }
          ],
          "EmptyDirVolumeSizeLimit": "256Mi",
          "HostPathVolumeType": "Directory",
          "HostPathVolumePath": "/pod/data"
        }
      ],
      "ImageRegistryCredentials": [
        {
          "Password": "yourpaasword",
          "Server": "registry-vpc.cn-shanghai.aliyuncs.com",
          "UserName": "yourusername\t\n"
        }
      ],
      "DnsConfigOptions": [
        {
          "Name": "name",
          "Value": "value"
        }
      ],
      "HostAliases": [
        {
          "Ip": "192.0.XX.XX",
          "Hostnames": [
            "['hehe.com', 'haha.com']"
          ]
        }
      ],
      "SecurityContextSysCtls": [
        {
          "Name": "kernel.msgmax",
          "Value": "65536"
        }
      ],
      "AcrRegistryInfos": [
        {
          "InstanceId": "cri-nwj395hgf6f3****",
          "InstanceName": "acr-test",
          "RegionId": "cn-hangzhou",
          "Domains": [
            "*****-****-registry.cn-beijing.cr.aliyuncs.com"
          ]
        }
      ],
      "DnsConfigNameServers": [
        "172.10.*.**"
      ],
      "DnsConfigSearches": [
        "svc.local.kubenetes"
      ],
      "NtpServers": [
        "ntp.cloud.aliyuncs.com"
      ],
      "LifecycleState": "Active",
      "CostOptimization": false,
      "InstanceFamilyLevel": "EnterpriseLevel",
      "InstanceTypes": [
        "ecs.g6.large"
      ],
      "DataCacheBucket": "default",
      "DataCachePL": "PL1",
      "DataCacheProvisionedIops": 40000,
      "DataCacheBurstingEnabled": false
    }
  ]
}

Error codes

HTTP status codeError codeError message
403Forbidden.RiskControlForbidden.RiskControl

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-01-23The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
Output ParametersThe response structure of the API has changed.
2023-11-14The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
Output ParametersThe response structure of the API has changed.
2023-10-11The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
Output ParametersThe response structure of the API has changed.
2023-07-12The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
Output ParametersThe response structure of the API has changed.