All Products
Search
Document Center

ENS:DescribeHistoryEvents

Last Updated:Jan 15, 2026

Queries instance system events.

Operation description

  • You must specify an event type to query. You can query multiple event types at the same time.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ens:DescribeHistoryEventsnone
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberintegerNo

The page number. Pages start from page 1. Default value: 1.

1
PageSizeintegerNo

The number of entries per page.

10
EventTypesarrayYes

The list of event types.

stringYes

The type of the event. Valid values:

  • Instance:SystemFailure.Redeploy: The instance is redeployed due to system issues.
  • Instance:SystemFailure.Reboot: The instance is restarted due to a system error.
  • Instance:RegionNetworkDown: The node network is interrupted.
  • Disk:Stalled: The disk performance is impaired.
  • EnsRegion:NetworkMigration: The instance is migrated due to a system error.
  • IP:SafeRisk: IP alerts.
  • IP:SafeBan: IP blocking.
  • Instance:SystemUpgrade.Migrate: The instance needs to be migrated due to underlying upgrades.
  • Instance:SystemMaintenance.Redeploy: The instance is redeployed due to system maintenance.
Instance:SystemFailure.Reboot
EventLevelsarrayNo

The levels of the event-triggered alerts.

stringNo

The level of the specific event. Valid values:

  • CRITICAL
  • WARN
  • INFO
WARN
ResourceIdsarrayNo

The IDs of resources.

stringNo

The ID of the resource.

i-55qi8m11rr53c4i964md8a00l
EventStatusarrayNo

Event status list.

stringNo

The status of the event. Valid values:

  • Inquiring
  • Scheduled
  • Executing
  • Executed
  • Failed
  • Canceled
  • Avoided
Inquiring

Response parameters

ParameterTypeDescriptionExample
object

The data returned.

RequestIdstring

Request ID.

5359599C-F656-57BD-8A0D-329A2FD511A6
Eventsarray<object>

The queried events.

Eventsobject

The queried event.

EventIdstring

The ID of the event.

e-d71ff150945b9c02eb6ebc0016328468
EventStatusstring

The status of the event. Valid values:

  • Inquiring
  • Scheduled
  • Executing
  • Executed
  • Failed
  • Canceled
  • Avoided
Inquiring
EventTypestring

The type of the event. Description:

  • Instance:SystemFailure.Redeploy: The instance is redeployed due to system issues.
  • Instance:SystemFailure.Reboot: The instance is restarted due to a system error.
  • Instance:RegionNetworkDown: The node network is interrupted.
  • Disk:Stalled: The disk performance is impaired.
  • EnsRegion:NetworkMigration: The instance is migrated due to a system error.
  • IP:SafeRisk: IP alerts.
  • IP:SafeBan: IP blocking.
  • Instance:SystemUpgrade.Migrate: The instance needs to be migrated due to underlying upgrades.
  • Instance:SystemMaintenance.Redeploy: The instance is redeployed due to system maintenance.
Instance:SystemFailure.Reboot
ResourceIdstring

The ID of the associated resources.

i-55qi8m11rr53c4i964md8a00l
EventLevelstring

The level of the specific event. Valid values:

  • CRITICAL
  • WARN
  • INFO
WARN
PublishTimelong

The release time in milliseconds.

1715578245000
ExtendedAttributestring

The extended attributes.

{}
Reasonstring

The event cause.

NotBeforelong

The scheduled execution time of the event in milliseconds.

1715578245000
PageNumberinteger

The page number. Pages start from page 1. Default value: 1.

1
PageSizeinteger

The number of entries per page.

10
TotalCountinteger

The total number of entries returned.

30

Examples

Sample success responses

JSONformat

{
  "RequestId": "5359599C-F656-57BD-8A0D-329A2FD511A6",
  "Events": [
    {
      "EventId": "e-d71ff150945b9c02eb6ebc0016328468",
      "EventStatus": "Inquiring",
      "EventType": "Instance:SystemFailure.Reboot",
      "ResourceId": "i-55qi8m11rr53c4i964md8a00l",
      "EventLevel": "WARN",
      "PublishTime": 1715578245000,
      "ExtendedAttribute": {},
      "Reason": "",
      "NotBefore": 1715578245000
    }
  ],
  "PageNumber": 1,
  "PageSize": 10,
  "TotalCount": 30
}

Error codes

HTTP status codeError codeError message
400NoPermissionPermission denied.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.

For a list of error codes, visit the Service error codes.