Query event store data
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eventbridge:QueryEventHouse |
list |
*Table
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Query |
string |
Yes |
The query statement. Typically uses a three-part table name in the format catalog.namespace.table. |
SELECT * FROM "test-es"."default"."product_info" |
| Limit |
integer |
No |
The maximum number of rows to return. If a LIMIT clause is already specified in the SQL statement, the SQL's own LIMIT takes precedence. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The error message. |
Remote error. requestId: [xxxx], error code: [xxx], message: [The target in event rule is invalid! Endpoint is xxx |
| RequestId |
string |
The unique identifier generated by Alibaba Cloud for this request. |
f2099962-1628-45f1-9782-2bf6daad823f |
| Data |
object |
The returned result. |
|
| Rows |
array |
The list of query result rows. |
|
| Row |
A query result row. |
{ "columns": [ { "column_name": "index", "column_type": "varchar", "column_value": "product_info", "is_null": false }, { "column_name": "docs.count", "column_type": "bigint", "column_value": "0", "is_null": false } ] } |
|
| Total |
integer |
The number of rows returned. |
18 |
| Code |
string |
The response code. Success: indicates that the request was successful. Other values: indicate error codes. For details about error codes, see Error codes. |
Success |
| Success |
boolean |
Returns true if the operation is successful. |
true |
Examples
Success response
JSON format
{
"Message": "Remote error. requestId: [xxxx], error code: [xxx], message: [The target in event rule is invalid! Endpoint is xxx",
"RequestId": "f2099962-1628-45f1-9782-2bf6daad823f",
"Data": {
"Rows": [
{
"Columns": [
{
"Name": "index",
"Type": "text",
"Value": "product_info",
"IsNull": false
}
]
}
],
"Total": 18
},
"Code": "Success",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | ServiceNotEnable | Service not enable |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.