QueryEventHouse
Queries event warehouse 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. A three-part table name in the format of catalog.namespace.table is typically used. |
SELECT * FROM "test-es"."default"."product_info" |
| Limit |
integer |
No |
The maximum number of rows to return. If a LIMIT clause is specified in the SQL statement, the LIMIT clause in the SQL statement prevails. |
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 the request. |
f2099962-1628-45f1-9782-2bf6daad823f |
| Data |
object |
The returned result. |
|
| Rows |
array |
The list of rows in the query result. |
|
| Row |
A row in the query result. |
{ "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 returned rows. |
18 |
| Code |
string |
The response code. A value of Success indicates that the request is successful. Other values indicate error codes. For more information, see Error codes. |
Success |
| Success |
boolean |
Indicates whether 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.