edit-icon download-icon

ListScaleOutEcuRequest

Last Updated: Nov 16, 2018

Function

Returns a list of available instances when an application is created or scaled up.

Request URL

/pop/v5/resource/scale_out_ecu_list

Request method

GET

Request parameters – When a common application is created

Parameter Type Required? Description
logicalRegionId String No ID of the logical region (regionId is replaced by this parameter after it is set.)
clusterId String Yes Cluster ID
instanceNum Integer No Number of expected available ECS instances. By default, a full list of available ECS instances is returned.

Request parameters – When a Docker application is created

Parameter Type Required? Description
logicalRegionId String No ID of the logical region (regionId is replaced by this parameter after it is set.)
clusterId String Yes Cluster ID
cpu Integer Yes A list of ECS instances that meet the requirement of CPU core quantity.
mem Integer Yes A list of ECS instances that meet the requirement of available memory (MB).
instanceNum Integer Yes Number of expected available ECS instances. This parameter is required when a Docker application is created.

Request parameters – When an application is scaled up

Parameter Type Required? Description
logicalRegionId String No ID of the logical region (regionId is replaced by this parameter after it is set.)
appId String Yes Application ID
groupId String No ID of the group where the ECS instance to be scaled up is located.If this parameter is not set, the default group is used.
instanceNum Integer Yes Number of expected available ECS instances

Response parameters

Parameter Type Description
Code Integer Code
Message String Message
EcuInfoList List<EcuInfo> A list of cluster entities

EcuInfo

Parameter Type Description
EcuId String Unique ID of the ECU instance, which can be obtained by running dmidecode on the ECS instance
Online Boolean Whether the ECS instance is online and under EDAS control
DockerEnv Boolean Indicates whether Docker is installed
CreateTime Long Creation time, in milliseconds
UpdateTime Long Last change time, in milliseconds
HeartbeatTime Long Heartbeat time, in milliseconds
IpAddr String Intranet IP address of the ECU instance
UserId String Name of the administrator account
Name String Name of the ECS instance
ZoneId String ID of the zone where the ECS instance is located
RegionId String ID of the region where the ECS instance is located
VpcId String ID of the VPC where the ECS instance is located
AvailableCpu Long Number of available CPU cores of the ECS instance
AvailableMem Long Available memory (MB) of the ECS instance
Thank you! We've received your feedback.