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

1. API Description

API request domain name:

This API (DescribeScheduledActions) describes one or more scheduled actions.

  • You can query the details of scheduled actions based on information such as scheduled action ID, scheduled action name, or scaling group ID. For more information about filters, see Filter.
  • If the parameter is empty, a number (same as the Limit. The default is 20) of scheduled tasks will be returned.

Default API request frequency limit: 20 times/second.

Note: 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: DescribeScheduledActions
Version Yes String Common parameter; the version of this API: 2018-04-19
Region Yes String Common parameters; for details, see the Region List.
ScheduledActionIds.N No Array of String Query by one or more scheduled action IDs. Instance ID example: asst-am691zxo. The maximum number of instances per request is 100. The parameter does not support specifying both ScheduledActionIds and Filters at the same time.
Filters.N No Array of Filter Filter.
  • scheduled-action-id - String - Required: No - (Filter) Filter by scheduled action ID.
  • scheduled-action-name - String - Required: No - (Filter) Filter by scheduled action name.
  • auto-scaling-group-id - String - Required: No - (Filter) Filter by scaling group ID.
  • 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
    TotalCount Integer Number of eligible scheduled actions.
    ScheduledActionSet Array of ScheduledAction List of scheduled action details.
    RequestId String The ID of the request. Each request returns a unique ID. The RequestId is required to troubleshoot issues

    4. Sample

    Querying a Scheduled Action

    Input Sample Code
    &<Common request parameter>

    Output Sample Code

        "Response": {
            "TotalCount": 1,
            "ScheduledActionSet": [
                    "ScheduledActionId": "asst-caa5ha40",
                    "ScheduledActionName": "testv2-0",
                    "AutoScalingGroupId": "asg-2nr9xh8h",
                    "StartTime": "2018-09-28T00:00:00+08:00",
                    "Recurrence": "0 0 * * *",
                    "EndTime": "2018-09-28T23:59:59+08:00",
                    "MaxSize": 10,
                    "DesiredCapacity": 0,
                    "MinSize": 0,
                    "CreatedTime": "2018-09-24T07:41:54Z"

    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
    InvalidParameter.Conflict Parameters that cannot co-exist were specified.
    InvalidParameterValue.Filter Invalid filter.