DescribeWarmPoolInstances
Queries the list of ECS instances in the warm pool of a scaling group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:DescribeWarmPoolInstances |
get |
*ScalingGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ScalingGroupId |
string |
Yes |
The ID of the scaling group. |
asg-bp18p2yfxow2dloq**** |
| RegionId |
string |
Yes |
The region ID of the scaling group. |
cn-hangzhou |
| NextToken |
string |
No |
The query token. Set the value to the NextToken value returned from the previous API call. You do not need to specify this parameter for the first call. An empty NextToken indicates that no more results are available. |
caeba0bbb2be03f84eb48b699f0a**** |
| MaxResults |
integer |
No |
The maximum number of entries per page for a paged query. Valid values: 1 to 50. Default value: 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
E38EB733-D714-4658-8A5F-0688AB68**** |
| NextToken |
string |
The token for the next query. An empty NextToken indicates that no more results are available. |
AAAAAcSz4VTb1Nq**** |
| ScalingGroupId |
string |
The ID of the scaling group. |
asg-bp18p2yfxow2dloq**** |
| WarmPoolInstances |
array<object> |
The list of ECS instances in the warm pool. |
|
|
object |
|||
| LaunchTemplateId |
string |
The ID of the instance launch template. |
lt-uf64k10pok76***** |
| InstanceId |
string |
The ID of the ECS instance. |
i-bp1c2hf********** |
| LaunchTemplateVersion |
string |
The version of the instance launch template. |
2 |
| ScalingGroupId |
string |
The ID of the scaling group. |
asg-bp18p2yfxow2dloq**** |
| LifecycleState |
string |
The lifecycle state of the ECS instance in the warm pool. Valid values:
|
Running |
| ZoneId |
string |
The zone ID of the ECS instance. |
cn-hangzhou-g |
| ScalingConfigurationId |
string |
The ID of the associated scaling configuration. |
asc-2ze3j8********* |
| CreatedTime |
string |
The time when the ECS instance was added to the warm pool, accurate to seconds. The time is in UTC and follows the ISO 8601 standard in the YYYY-MM-DDTHH:mm:ssZ format. |
2020-05-18T03:11:39Z |
| ScalingActivityId |
string |
The ID of the scaling activity when the ECS instance was added to the warm pool. |
asa-2ze87i******** |
| ScalingInstanceId |
string |
The instance identity in the scaling group, which has a one-to-one correspondence with the ECS instance ID. |
asi-j6cj1gcte640ekhb**** |
| PrivateIpAddress |
string |
The private IP address of the instance. |
1*.1*.1*.2* |
Examples
Success response
JSON format
{
"RequestId": "E38EB733-D714-4658-8A5F-0688AB68****",
"NextToken": "AAAAAcSz4VTb1Nq****",
"ScalingGroupId": "asg-bp18p2yfxow2dloq****",
"WarmPoolInstances": [
{
"LaunchTemplateId": "lt-uf64k10pok76*****",
"InstanceId": "i-bp1c2hf**********",
"LaunchTemplateVersion": "2",
"ScalingGroupId": "asg-bp18p2yfxow2dloq****",
"LifecycleState": "Running",
"ZoneId": "cn-hangzhou-g",
"ScalingConfigurationId": "asc-2ze3j8*********",
"CreatedTime": "2020-05-18T03:11:39Z",
"ScalingActivityId": "asa-2ze87i********",
"ScalingInstanceId": "asi-j6cj1gcte640ekhb****",
"PrivateIpAddress": "1*.1*.1*.2*"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.