Queries the number of Insights events for the current account.
Try it now
Test
RAM authorization
Request parameters
Parameter | Type | Required | Description | Example |
Date | string | No | The date to query. The format is | 2026-01-07 |
EndTime | string | No | The end of the time range to query. Specify the time in the ISO 8601 standard in the Note
| 2026-01-07T06:00:00Z |
StartTime | string | No | The beginning of the time range to query. Specify the time in the ISO 8601 standard in the | 2025-12-01T02:00:00Z |
Response elements
Element | Type | Description | Example |
object | |||
| Data | array<object> | The information about the Insights events. | |
object | The information about the Insights event. | ||
Count | integer | The number of Insights events. | 3 |
InsightType | string | The type of the Insights event. Valid values:
| IpInsight |
RegionId | string | The region ID. | cn-hangzhou |
NextToken | string | The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of | VjE6bHJlTGoxdm1M**** |
RequestId | string | The request ID. | 4ABAEA6E-C740-5CE2-A003-643E5519**** |
Examples
Success response
JSON format
{
"Data": [
{
"Count": 3,
"InsightType": "IpInsight",
"RegionId": "cn-hangzhou"
}
],
"NextToken": "VjE6bHJlTGoxdm1M****",
"RequestId": "4ABAEA6E-C740-5CE2-A003-643E5519****"
}Error codes
HTTP status code | Error code | Error message | Description |
400 | InvalidTimeRangeException | The end time must be later than the start time. The time span cannot exceed 30 days. | The end time must be greater than the start time. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.