Deleting Timed Tasks

Last updated: 2020-06-04 16:04:08


    This is a legacy API which has been hidden and will no longer be updated. We recommend using the new Auto Scaling API 3.0 which is standardized and faster.

    1. API Description

    This API (DeleteScheduledTask) is used to delete a specific scheduled task.
    Domain for API request:

    2. Input Parameters

    The following request parameter list only provides API request parameters. Common request parameters need to be added when the API is called. For more information, refer to Common Request Parameters. The Action field for this API is DeleteScheduledTask.

    Parameter Name Required Type Description
    scalingGroupId Yes String Scaling group ID, indicating that the scheduled task to be deleted belongs to the scaling group. This parameter can be obtained by calling API Query Scaling Group List (DescribeScalingGroup).
    scalingScheduledTaskId Yes String ID of scheduled task to be deleted. This parameter can be obtained by calling API Query Scheduled Task(DescribeScheduledTask).

    3. Output Parameters

    Parameter Name Type Description
    code Int Common error code; 0: Succeeded; other values: Failed. For more information, please refer to Common Error Codes on the Error Code page.
    codeDesc String Error code at business side. If the task succeeds, it will return "Success"; if the task fails, the specific business error reason will be returned.
    message String Module error message description depending on API.

    4. Error Codes

    For common errors on this API, refer to AS Error Code.

    5. Example
    &<Common request parameters>

    Example of returned result is as follows. The code is 0, indicating that the scheduled task has been deleted successfully.


    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback