Schedules simulated system events for one or more ECS instances. Simulated system events are equivalent to event drills. They do not actually execute the events or affect ECS instances.
Operation description
After you schedule simulated events, you can view the scheduled simulated system events in the ECS console, by calling ECS API operations, or by using CloudMonitor.
The following list describes the lifecycle of simulated system events:
Scheduled: After the simulated system event is scheduled, it automatically enters the Scheduled state.
Executed: If no manual intervention is performed, the simulated system event automatically enters the Executed state at the specified point in time (NotBefore).
Canceled: After you call CancelSimulatedSystemEvents to cancel the simulated system event, the event enters the Canceled state.
Avoided: For simulated system events of the SystemMaintenance.Reboot type, you can restart the instance before the scheduled time to change the event to the Avoided state.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:CreateSimulatedSystemEvents |
create |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call DescribeRegions to query the most recent region list. |
cn-hangzhou |
| RegionId |
string |
Yes |
The region ID. You can call DescribeRegions to query the most recent region list. |
cn-hangzhou |
| EventType |
string |
Yes |
The type of the system event. Valid values:
|
SystemMaintenance.Reboot |
| NotBefore |
string |
Yes |
The scheduled start time of the event. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Note
For unexpected events caused by system errors or instance errors, after the event is created, the event enters the Executing state. In this case, the NotBefore parameter specifies the time when the event enters the Executed state. |
2018-12-01T06:32:31Z |
| InstanceId |
array |
Yes |
The list of ECS instance IDs. You can specify up to 100 instance IDs. |
i-bp1gtjxuuvwj17zr**** |
|
string |
No |
The instance ID. |
i-bp1gtjxuuvwj17zr**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request ID. |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| EventIdSet |
object |
||
| EventId |
array |
The list of simulated event IDs (EventId). |
|
|
string |
The simulated event ID (EventId). |
e-bp16helosl7v0ooj**** |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"EventIdSet": {
"EventId": [
"e-bp16helosl7v0ooj****"
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | InvalidParameter | %s | |
| 403 | InvalidNotBefore.Passed | %s | The specified value of NotBefore is earlier than the current time. |
| 403 | SimulatedEventLimitExceeded | %s | |
| 403 | InstanceIdLimitExceeded | %s | More than 100 instance IDs are specified. |
| 404 | MissingParameter | %s | |
| 404 | InvalidInstanceId.NotFound | %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.