All Products
Search
Document Center

:CancelSimulatedSystemEvents

更新時間:Dec 20, 2023

Cancels simulated system events that are in the Scheduled or Executing state. After you cancel a simulated system event, the simulated event enters the Canceled state.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action String Yes CancelSimulatedSystemEvents

The operation that you want to perform. Set the value to CancelSimulatedSystemEvents.

RegionId String Yes cn-hangzhou

The region ID. You can call the DescribeRegions operation to query the most recent region list.

EventId.N String Yes e-xhskHun1256****

The IDs of simulated system events. You can specify up to 100 event IDs in a single request.

Response parameters

Parameter

Type

Example

Description

RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

Examples

Sample requests

https://ecs.aliyuncs.com/?Action=CancelSimulatedSystemEvents
&EventId.1=e-xhskHun1256****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<CancelSimulatedSystemEventsResponse>
    <RequestId>E69EF3CC-94CD-42E7-8926-F133B86387C0</RequestId>
</CancelSimulatedSystemEventsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "E69EF3CC-94CD-42E7-8926-F133B86387C0"
}

Error codes

HTTP status code

Error code

Error message

Description

400 EventIdLimitExceeded %s More than 100 event IDs are specified.
403 InvalidParameter %s Invalid parameter.
403 CannotCancelSystemEvent.NotSimulated %s The system event cannot be canceled.
403 InvalidEventId.NotFound %s Invalid EventId value.
404 MissingParameter %s A required parameter is not specified.

For a list of error codes, see Service error codes.