QueryEventHouse - 查询事件仓
查询事件仓数据
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
eventbridge:QueryEventHouse |
list |
*Table
|
无 | 无 |
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Query |
string |
是 |
查询语句,通常使用 catalog.namespace.table 三段式表名 |
SELECT * FROM "test-es"."default"."product_info" |
| Limit |
integer |
否 |
返回行数上限;如果 SQL 里已经写了 LIMIT,以 SQL 自身为准 |
10 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Message |
string |
错误信息。 |
Remote error. requestId: [xxxx], error code: [xxx], message: [The target in event rule is invalid! Endpoint is xxx |
| RequestId |
string |
阿里云为该请求生成的唯一标识符。 |
f2099962-1628-45f1-9782-2bf6daad823f |
| Data |
object |
返回结果。 |
|
| Rows |
array |
查询结果行列表。 |
|
| 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 |
返回的行数。 |
18 |
| Code |
string |
接口返回码:Success:表示成功。 其它:表示错误码。错误码详情,请参见错误码。 |
Success |
| Success |
boolean |
操作成功返回 true。 |
true |
示例
正常返回示例
JSON格式
{
"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
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 403 | ServiceNotEnable | Service not enable |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。