Enables or disables the event history feature for a region.

The event history feature enables you to view the events that occurred in a region over a specific time range. Such historical events include instance creation and parameter reconfiguration. For more information, see Event history.

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 ModifyActionEventPolicy

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

EnableEventLog String Yes True

Specifies whether to enable the event history feature. Valid values: True | False.

RegionId String Yes cn-hangzhou

The ID of the region for which you want to enable the event history feature. You can call the DescribeRegions operation to query the most recent region list.

AccessKeyId String No LTAIfCxxxxxxx

The AccessKey ID provided to you by Alibaba Cloud.

Response parameters

Parameter Type Example Description
EnableEventLog String True

Indicates whether the event history feature was enabled or disabled for the region.

RegionId String cn-hangzhou

The ID of the region.

RequestId String BAC0952C-0EB3-4DE7-A567-B83269BFE43F

The ID of the request.

Examples

Sample requests


http(s)://rds.aliyuncs.com/? Action=ModifyActionEventPolicy
&Region=cn-hangzhou
&EnableEventLog=True
&<Common request parameters>

Sample success responses

XML format

<ModifyActionEventPolicyResponse>
   <RequestId>BAC0952C-0EB3-4DE7-A567-B83269BFE43F</RequestId>
   <RegionId>cn-hangzhou</RegionId>
   <EnableEventLog>True</EnableEventLog>
</ModifyActionEventPolicyResponse>

JSON format

{
	"RegionId":"cn-hangzhou",
	"RequestId":"BAC0952C-0EB3-4DE7-A567-B83269BFE43F",
	"EnableEventLog":"True"
}

Error codes

For a list of error codes, visit the API Error Center.