Domain name for API request: as.intl.tencentcloudapi.com.
This API (DescribeScheduledActions) is used to query the details of one or more scheduled tasks.
Filter
.Limit
and 20 by default) of scheduled tasks of the current user will be returned.A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeScheduledActions. |
Version | Yes | String | Common Params. The value used for this API: 2018-04-19. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
ScheduledActionIds.N | No | Array of String | Queries by one or more scheduled task IDs in the format of asst-am691zxo. The maximum number of instances per request is 100. This parameter does not support specifying both ScheduledActionIdsand Filters` at the same time. |
Filters.N | No | Array of Filter | Filter. |
Offset | No | Integer | Offset. Default value: 0. For more information on Offset , see the relevant section in the API overview. |
Limit | No | Integer | Number of returned results. Default value: 20. Maximum value: 100. For more information on Limit , see the relevant section in the API overview. |
Parameter Name | Type | Description |
---|---|---|
TotalCount | Integer | Number of eligible scheduled tasks. |
ScheduledActionSet | Array of ScheduledAction | List of scheduled task details. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: as.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeScheduledActions
<Common request parameters>
{
"ScheduledActionIds": [
"asst-caa5ha40"
]
}
{
"Response": {
"RequestId": "cc207181-288d-4a39-a1d1-63a5e1ba1d2b",
"TotalCount": 1,
"ScheduledActionSet": [
{
"ScheduledActionId": "asst-jf898dps",
"ScheduledActionName": "product-a0-sche0",
"AutoScalingGroupId": "asg-keqt9eg1",
"StartTime": "2022-02-22T16:00:00+08:00",
"Recurrence": "0 0 * * *",
"EndTime": "2024-02-22T16:00:00+08:00",
"MaxSize": 15,
"DesiredCapacity": 1,
"MinSize": 1,
"CreatedTime": "2022-02-21T02:19:52Z",
"ScheduledType": "CRONTAB"
}
]
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InternalError | An internal error occurred. |
InvalidParameter.ActionNotFound | Invalid Action request. |
InvalidParameter.Conflict | Multiple parameters specified conflict and cannot co-exist. |
InvalidParameterValue.Filter | Invalid filter. |
InvalidParameterValue.InvalidAutoScalingGroupId | Invalid scaling group ID. |
InvalidParameterValue.InvalidFilter | Invalid filter condition. |
InvalidParameterValue.InvalidScheduledActionId | Invalid scheduled action ID. |
ResourceNotFound.ScheduledActionNotFound | The specified scheduled task does not exist. |
Was this page helpful?