Last updated: 2019-07-16 18:55:12

1. API Description

API request domain name:

This API (DescribeAutoScalingInstances) describes one or more Auto Scaling instances

  • You can query the details of instances based on information such as instance ID and scaling group ID. For more information about filters, see Filter.
  • If the parameter is empty, a number that same as the Limit (the default is 20) of scaling groups will be returned.

Default API request frequency limit: 10 times/second.

Note: This API supports financial availability zones. Because financial availability zones and non-financial availability zones are isolated. When specifying a financial availability zone (e.g., ap-shanghai-fsi) in the Region (a common parameter), you should also choose the financial availability zone preferably in the same region as that one specified in Region for the domain, such as

2. Input Parameters

The following parameters are required for requesting this API, including action-specific parameters and common parameters. For more information about common parameters for all requests, see Common Request Parameters.

Parameter name Required Type Description
Action Yes String Common parameter; the name of this API: DescribeAutoScalingInstances
Version Yes String Common parameter; the version this API: 2018-04-19
Region Yes String Common parameters; for details, see the Region List.
InstanceIds.N No Array of String ID of the CVM instance to be queried. The parameter does not support specifying both InstanceIds and Filters at the same time.
Filters.N No Array of Filter Filter.
  • instance-id - String - Required: No - (Filter) Filter by instance ID.
  • auto-scaling-group-id - String - Required: No - (Filter) Filter by scaling group ID.

  • The maximum number of Filters per request is 10. The upper limit for Filter.Values is 5. The parameter does not support specifying both InstanceIds and Filters at the same time.
    Offset No Integer Offset, 0 by default. For more information about Offset, see the relevant section in the API overview.
    Limit No Integer Number of returned results, 20 by default, up to 100. For more information about Limit, see the relevant section in the API overview.

    3. Output Parameters

    Parameter name Type Description
    AutoScalingInstanceSet Array of Instance List of instance details.
    TotalCount Integer Number of eligible instances.
    RequestId String The ID of the request. Each request returns a unique ID. The RequestId is required to troubleshoot issues.

    4. Sample

    Querying a Specified Instance

    Input Sample Code
    &<Common request parameter>

    Output Sample Code

        "Response": {
            "TotalCount": 1,
            "AutoScalingInstanceSet": [
                    "ProtectedFromScaleIn": false,
                    "Zone": "ap-guangzhou-3",
                    "LaunchConfigurationId": "asc-5fzsm72a",
                    "InstanceId": "ins-1fswxz1m",
                    "AddTime": "2018-08-21T12:05:12Z",
                    "CreationType": "AUTO_CREATION",
                    "AutoScalingGroupId": "asg-4o61gsxi",
                    "HealthStatus": "HEALTHY",
                    "LifeCycleState": "IN_SERVICE",
                    "LaunchConfigurationName": "series 2 local disk",
                    "InstanceType": "S2.SMALL2"
            "RequestId": "2ae3e836-d47a-431c-b54b-4e1c2f419e5b"

    5. Developer Resources

    API Explorer

    This tool provides various capabilities such as online call, signature verification, SDK code generation, and quick API retrieval that significantly reduce the difficulty of using TencentCloud API.


    TencentCloud API 3.0 integrates software development toolkits (SDKs) that support various programming languages to make it easier for you to call the APIs.


    6. Error Codes

    The following error codes are API business logic-related. For other error codes, see Common Error Codes.

    Error Code Description
    InternalError Internal error
    InvalidFilter Invalid filter.
    InvalidParameter.Conflict Parameters that cannot co-exist are specified at the same time.
    InvalidParameterValue.Filter Invalid filter.