通过调用DescribeEciScalingConfigurations,并指定伸缩组的ID、伸缩配置的ID或名称等参数查询ECI类型的伸缩配置信息,例如实例的抢占策略、容器组的实例规格、容器镜像的拉取策略、ECI实例作为后端服务器时的权重等。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action
元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用背景高亮的方式表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|
ess:DescribeEciScalingConfigurations | get |
|
| 无 |
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 是 | 伸缩配置所属伸缩组的地域 ID。 | cn-qingdao |
PageNumber | integer | 否 | 伸缩配置列表的页码,起始值:1。 默认值:1。 | 1 |
PageSize | integer | 否 | 分页查询时设置的每页行数,最大值:50。 默认值:10。 | 50 |
ScalingGroupId | string | 否 | 伸缩组的 ID,您可以查询该伸缩组下所有的伸缩配置。 | asg-bp17pelvl720x3v7**** |
ScalingConfigurationIds | array | 否 | 待查询伸缩配置的 ID 列表,ID 数量取值范围:1~10。 查询结果包括生效和未生效的伸缩配置,并通过返回参数 | |
string | 否 | 待查询伸缩配置的 ID。 查询结果包括生效和未生效的伸缩配置,并通过返回参数 LifecycleState 进行标识。 | asc-bp17pelvl720x5ub**** | |
ScalingConfigurationNames | array | 否 | 待查询伸缩配置的名称列表,名称数量的取值范围:1~10。 查询结果会忽略失效的伸缩配置名称,并且不报错。 | |
string | 否 | 待查询伸缩配置的名称。 查询结果会忽略失效的伸缩配置名称,并且不报错。 | scalingcon**** |
返回参数
示例
正常返回示例
JSON
格式
{
"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
}
]
}
错误码
HTTP status code | 错误码 | 错误信息 |
---|---|---|
403 | Forbidden.RiskControl | Forbidden.RiskControl |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2024-01-23 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |
2023-11-14 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |
2023-10-11 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |
2023-07-12 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |