Help Center/ Elastic Cloud Server/ User Guide/ Events/ Handling an Event/ Handling an Instance Restart Event
Updated on 2026-08-10 GMT+08:00

Handling an Instance Restart Event

Scenarios

When the system reports an instance restart event, you need to authorize instance restart.

This section describes how to handle an instance restart event in Pending authorization state and guides you through the required authorization.

You can authorize instance restart now or later.
  • Now: After receiving a request, the system immediately restarts the instance.
  • Later: After receiving a request, the system restarts the instance at the scheduled time.

    You can change the scheduled time as needed. For details, see Changing the Reservation Time.

An instance restart will cause the instance to be stopped, services to be interrupted, and unsaved data to be lost. Confirm the impacts in advance.

Prerequisites

If you need to perform operations as an IAM user, ensure that the IAM user has been granted the required permissions.

Event query and handling require the permissions defined in the following policies:

  • Query events: ecs:instanceScheduledEvents:list
  • Accept and authorize events: ecs:instanceScheduledEvents:accept
  • Change the reservation time: ecs:instanceScheduledEvents:update

For details about how to grant permissions to IAM users, see Using IAM Roles or Policies to Grant Access to ECS.

Authorizing Instance Restart

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click . Under Compute, click Elastic Cloud Server.
  4. In the navigation pane, choose Events.
    Figure 1 Events
  1. On the Events page, in the search box of the event list, filter the instance restart events in Pending authorization state.
    1. Select Event Type and then Instance restart.
    2. Select Event Status and then Pending authorization.
  2. Locate the target event and click Authorize Instance Restart in the Operation column.
    Figure 2 Authorizing instance restart
  3. Select the checkbox and click Next.
  4. Specify Restart Option.
    • Select Now.

      The system restarts the instance upon receiving the request.

    • Select Later and specify Scheduled Time.

      After receiving the request, the system will restart the instance at the scheduled time.

      You can change the scheduled time as needed. For details, see Changing the Reservation Time.

  5. Enter AGREE in the text box below to confirm the instance restart operation.
  6. Click OK.

    After you submit the authorization request, the event status becomes To be executed. After the system receives the request, it decides when to change the event status to Executing based on the scheduled time you specify.

    When the status of the instance restart event becomes Execution succeeded, the instance is restarted. Check the status of services running on the instance.

Changing the Reservation Time

After you submit a scheduled instance restart request, the event status changes to To be executed. You can change the reservation time as needed.

You must change the reservation time at least 30 minutes before the current reservation time.

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click . Under Compute, click Elastic Cloud Server.
  4. In the navigation pane, choose Events.
  1. On the Events page, in the search box of the event list, filter the instance restart events in To be executed state.
    1. Select Event Type and then Instance restart.
    2. Select Event Status and then To be executed.
  1. In the Operation column of the event to be executed, click Change Reservation Time.
    Figure 3 Changing the reservation time
  2. Specify New Reservation Time and click OK.

    After the change is complete, the new reservation time is displayed in the Execution Time column of the event list.