Cancels one or more simulated system events that are in the Scheduled or Executing status. After you cancel a simulated system event, the simulated event is in the Canceled status.

Request parameters

Name Type Required Description
Action String Yes The operation that you want to perform. Value: CancelSimulatedSystemEvents.
RegionId String Yes The ID of the region.For more information, call DescribeRegions to obtain the latest region list.
EventId.N String Yes The IDs of the events. Value range of N: [1, 100]. The event IDs must be displayed in a repeated list format.

Response parameters

All are common response parameters. See Common response parameters.

Examples

Request example
https://ecs.aliyuncs.com/?Action=CancelSimulatedSystemEvents
&RegionId=cn-hangzhou
EventId. 1="e-xhskHun1256xxxx"
EventId. 2="e-xhskHun1257xxxx"
&<Common Request Parameters>
Response example

XML format

<CancelSimulatedSystemEventsResponse>
    <RequestId>E69EF3CC-94CD-42E7-8926-F133B86387C0</RequestId>
</CancelSimulatedSystemEventsResponse>
JSON format
{
    "RequestId":"E69EF3CC-94CD-42E7-8926-F133B86387C0"
}

Error codes

Error codes specific to this interface are as follows. For more information, see API Error Center.

Error code Error message HTTP status code Description
EventIdLimitExceeded The amount of EventId specified exceeds limit. 400 The number of specified simulated event IDs cannot exceed 100 at a time.
InvalidEventId.NotFound Cannot find EventId. 403 The specified value for the EventId.N parameter does not exist.
CannotCancelSystemEvent.NotSimulated Cannot cancel system event generated by system. 403 The error message returned when you cancel a non-simulated system event.
MissingParameter The input parameter that is mandatory for processing this request is not supplied. 404 The value for a required parameter is not specified.