Modifies a scheduled task. You can adjust parameter settings such as the scaling rule to execute and the boundary values of your scaling group, without creating a new scheduled task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:ModifyScheduledTask |
update |
*ScalingGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ScheduledTaskId |
string |
Yes |
The ID of the scheduled task. |
edRtShc57WGXdt8TlPbr**** |
| ScheduledTaskName |
string |
No |
The name of the scheduled task. The name must be 2 to 64 characters in length, and can contain letters, digits, underscores (_), hyphens (-), and periods (.). It must start with a letter or a digit. The name of the scheduled task must be unique in the region and within the Alibaba Cloud account. |
scheduled**** |
| Description |
string |
No |
The description of the scheduled task. The description must be 2 to 200 characters in length. |
Test scheduled task. |
| ScheduledAction |
string |
No |
The scaling rule to execute when the scheduled task is triggered. Specify the scaling rule ID. If you specify Note
You can specify only one of |
ari:acs:ess:cn-hangzhou:14069264****:scalingrule/asr-bp12tcnol686y1ik**** |
| RecurrenceEndTime |
string |
No |
The end time of the scheduled task, in the ISO 8601 format of YYYY-MM-DDThh:mmZ (UTC). The value cannot be later than 365 days from the modification time. |
2014-08-20T16:55Z |
| LaunchTime |
string |
No |
The time at which the scheduled task is triggered, in the ISO 8601 format of YYYY-MM-DDThh:mmZ (UTC). The value cannot be later than 90 days from the modification time.
|
2014-08-18T10:52Z |
| RecurrenceType |
string |
No |
The interval at which the scheduled task is repeated. Valid values:
After you modify the scheduled task, the values that you specify for the |
Daily |
| RecurrenceValue |
string |
No |
The number of recurrences of the scheduled task.
After you modify the scheduled task, the values that you specify for the |
2 |
| TaskEnabled |
boolean |
No |
Whether to enable the scheduled task. Valid values:
Default value: true. |
true |
| LaunchExpirationTime |
integer |
No |
The retry timeout period for a failed scheduled task. Unit: seconds. Valid values: 0 to 1800. Default value: 600. |
600 |
| MinValue |
integer |
No |
The minimum number of instances in the scaling group if you specify the ScalingGroupId parameter. |
0 |
| MaxValue |
integer |
No |
The maximum number of instances in the scaling group if you specify the ScalingGroupId parameter. |
10 |
| DesiredCapacity |
integer |
No |
The expected number of instances in the scaling group if you specify the ScalingGroupId parameter. Note
You must specify the |
10 |
| ScalingGroupId |
string |
No |
The ID of the scaling group whose number of instances must be modified when the scheduled task is triggered. If you specify the Note
You cannot specify the |
asg-bp18p2yfxow2dloq**** |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Throttling | Request was denied due to request throttling. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.