To save costs, you can create scheduled start and stop rules for your applications. Stopped applications do not incur fees for computing resources.
To manually start or stop applications in a batch, see Perform batch operations on applications.
To schedule the batch start or stop of applications, see this topic.
1. Grant SAE full permissions to OOS
The scheduled start and stop feature for applications depends on CloudOps Orchestration Service (OOS). First, create an OOSServiceRole RAM role and grant the AliyunSAEFullAccess permission to the role to manage SAE.
Log on to the RAM console as a RAM user who has administrative rights.
In the left-side navigation pane, choose .
On the Roles page, click Create Role.

On the Create Role page, set Principal Type to Cloud Service. Then, in the Principal Name field, search for OOS, select CloudOps Orchestration Service, and click OK.
In the dialog box that appears, enter
OOSServiceRolefor Role Name. On the Permissions tab, click Grant Permission. In the Policy area, search for and select theAliyunSAEFullAccesspermission, and then click Grant permissions.
2. Manage scheduled start and stop rules
In SAE Namespaces, select a destination region from the drop-down list at the top of the page. Then, click the name of the target Namespace to open its details page.
In the navigation pane on the left, click Scheduled Start and Stop Rules. On the Scheduled Start and Stop Rules page, click Create Scheduled Start and Stop Rule.
In the Create Scheduled Start and Stop Rule panel, configure the parameters and click OK.
Configuration Item
Description
Rule Name
A custom name for the scheduled start and stop rule.
Trigger
Batch Start Applications: Starts the selected applications in the current namespace in batches.
Batch Stop Applications: Stops the selected applications in the current namespace in batches.
Frequency
Execute Only Once: The rule is executed once at the specified date and time and does not repeat.
Scheduled Execution: The rule is executed periodically at the specified date and time. Use a Crontab expression to define the execution time. The following list describes the value ranges for each field.
Minute: [0, 59].
Hour: [0, 23].
0indicates midnight.Day of month: [1, 31].
Month: [1, 12] or [JAN, DEC]. This field cannot be modified.
Day of week: [1, 7] or [Sun, Sat].
1indicates Sunday and7indicates Saturday. For example, to set the trigger time to Tuesday, Thursday, and Saturday, enter3,5,7orTue,Thu,Sat.
Note[1, 7] indicates the value range. If you enter
1,7in the Day of week field, the rule is triggered only on Sunday and Saturday.
Pre-execution Notification Configuration
Configure a DingTalk chatbot webhook URL. SAE sends a notification to the specified DingTalk chatbot before each scheduled task is executed. This lets you promptly obtain information about O&M actions. The custom keyword for the DingTalk chatbot must be set to
SAE. For more information, see Obtain the webhook URL of a DingTalk chatbot.Triggered Applications
Start/Stop All Applications: Starts or stops all applications in the target namespace. Before each scheduled task is executed, the system automatically scans the latest application list and then performs the start or stop operation.
Start/Stop Some Applications: After you select Start/Stop Some Applications, select the type of applications on which you want to perform start or stop operations from the drop-down list. Then, select the check boxes next to the names of the target applications.
After the rule is created, you can view it on the Scheduled Start and Stop Rules page. You can also Disable, Edit, and Delete existing rules.