Creates a scheduled task that automatically executes a specific scaling rule at a specified point in time, enabling automatic scaling of computing resources to ensure business continuity and minimize costs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:CreateScheduledTask |
create |
*ScalingGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the scheduled task. |
cn-qingdao |
| 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 (.). The name 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. If you do not specify this parameter, the value of the |
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 unique identifier of the scaling rule to execute when the scheduled task is triggered. If you specify |
ari:acs:ess:cn-hangzhou:140692647****:scalingrule/asr-bp12tcnol686y1ik**** |
| RecurrenceEndTime |
string |
No |
The end time of the scheduled task. Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mmZ format. The time must be in UTC. You cannot specify a time later than 365 days from the creation of the scheduled task. |
2014-08-17T16:55Z |
| LaunchTime |
string |
No |
The time at which the scheduled task is triggered. Specify the time in the ISO 8601 standard. The time must be in UTC. You cannot trigger a scheduled task more than 90 days after its creation.
|
2014-08-17T16:52Z |
| RecurrenceType |
string |
No |
The recurrence pattern of the scheduled task. Valid values:
You must specify the |
Daily |
| RecurrenceValue |
string |
No |
The number of recurrences of the scheduled task.
You must specify both the |
1 |
| TaskEnabled |
boolean |
No |
Whether to enable the scheduled task.
Default value: true. |
true |
| LaunchExpirationTime |
integer |
No |
The retry window for a failed scheduled task execution. 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 instance count changes when the scheduled task is triggered. If you specify |
asg-bp18p2yfxow2dloq**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| ScheduledTaskId |
string |
The globally unique ID of the scheduled task, generated by the system. |
edRtShc57WGXdt8TlPbr**** |
| RequestId |
string |
The ID of the request. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
Examples
Success response
JSON format
{
"ScheduledTaskId": "edRtShc57WGXdt8TlPbr****",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.