DescribeWarmPoolInstances

Updated at:

Queries the list of ECS instances in the warm pool of a scaling group.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ess:DescribeWarmPoolInstances

get

*ScalingGroup

acs:ess:{#regionId}:{#accountId}:scalinggroup/{#ScalingGroupId}

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:

  • Pending: Joining. The ECS instance is being added to the warm pool.

  • Pending:Wait: Joining suspended. If a lifecycle hook applicable to warm pool scale-out activities is created in the scaling group, the ECS instance is suspended when added to the warm pool and waits for the hook timeout period to end.

  • Removing: Removing. The ECS instance is being removed from the warm pool during a scale-in.

  • Removing:Wait: Removing suspended. If a lifecycle hook applicable to warm pool scale-in activities is created in the scaling group, the ECS instance is suspended when removed from the warm pool and waits for the hook timeout period to end.

  • Running: Running. The ECS instance is successfully added to the warm pool and is in the running state.

  • Stopped: Economical mode. The ECS instance is successfully added to the warm pool and is in the stopped state.

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.