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
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ess:DescribeEciScalingConfigurations | Read |
|
| 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 number of the page to return. Pages start from page 1. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Maximum value: 50. Default value: 10. | 50 |
ScalingGroupId | string | No | The ID of the scaling group. You can use the ID to query all scaling configurations in the scaling group. | asg-bp17pelvl720x3v7**** |
ScalingConfigurationIds | array | No | 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 | |
string | No | 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**** | |
ScalingConfigurationNames | array | No | 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. | |
string | No | 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
Examples
Sample success responses
JSON
format
{
"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"
],
"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\n",
"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",
"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 code | Error code | Error message |
---|---|---|
403 | Forbidden.RiskControl | Forbidden.RiskControl |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2024-01-23 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||
| ||||||||
2023-11-14 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||
| ||||||||
2023-10-11 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||
| ||||||||
2023-07-12 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||
|