You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Monitoring
ModifySubscriptionEventTypes - Modifies subscription event types
Copy page
Download PDF
ModifySubscriptionEventTypes - Modifies subscription event types
Call the ModifySubscriptionEventTypes operation to modify subscription event types.​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
Only the request parameters specific to this operation and some common parameters are listed below. For more information, refer to Common parameters.​
Action string required Sample value: ModifySubscriptionEventTypes​
The action that you want to perform. Value: ModifySubscriptionEventTypes.​
​
Version string required Sample value: 2020-04-01​
The API version. Valid value: 2020-04-01.​
​
EventTypes.N string[] Optional Sample value: EventTypes.1=DiskError.Redeploy:Inquiring&EventTypes.2=RebootInstance:Executing​
The event type. Up to 100 event types are supported. When this parameter is left empty or not provided, this indicates cancelling the subscription.​
  • Argument - N: specifies the serial number of the event type.​
  • Separate multiple event types with &.​
​
SubscriptionId string required Sample value: s-6js1al1y9665lp******​
The subscription ID. To obtain subscription IDs, you can call CreateSubscription to subscribe to event notifications or DescribeSubscriptions to query the list of subscribed notifications.​
​
​
​
Response parameters​
Only the response parameters specific to this operation are listed below. For more information, refer to the response structure.​
SubscriptionId string Sample value: s-oko349s7sie9m9j******​
The subscription ID.​
​
​
​
Sample request​
​
GET /?Action=ModifySubscriptionEventTypes&Version=2020-04-01&EventTypes.1=SystemFailure.Stop:Succeeded&EventTypes.2=SystemFailure.Stop:Succeeded&SubscriptionId=s-6js1al1y9665lp****** HTTP/1.1​
Host: ecs.cn-beijing.volcengineapi.com​
Region: cn-beijing​
ServiceName: ecs​
​
Sample response​
​
{​
"ResponseMetadata": {​
"RequestId": "20210611144510010225243100005******",​
"Action": "ModifySubscriptionEventTypes",​
"Version": "2020-04-01",​
"Service": "ecs",​
"Region": "cn-beijing"​
},​
"Result": {​
"SubscriptionId": "s-4shu38sa4mjx******"​
}​
}​
​
Error codes​
The table below lists the business-related error codes of the operation. For more information, refer to Common error codes.​
​
Status code​
Error code​
Error message​
Description​
400​
InvalidArgument​
The specified argument is invalid.​
The specified parameter is invalid.​
400​
InvalidEventTypes.Malformed​
The specified EventTypes is malformed.​
One or more specified event types are invalid.​
400​
LimitExceeded.MaximumEventTypes​
The number of specified EventTypes exceeds the maximum limit.​
The number of specified event types exceeds the upper limit.​
400​
MissingParameter.SubscriptionId​
The required parameter SubscriptionId is not supplied.​
The parameter SubscriptionId cannot be left empty.​
404​
InvalidSubscription.NotFound​
The specified subscription does not exist.​
The specified subscription does not exist.​
500​
InternalError​
An internal error has occurred.​
An internal error occurred. Try again. If multiple attempts fail, submit a ticket.​
​
Last updated: 2026.06.29 14:20:35