Mengkueri data event store.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eventbridge:QueryEventHouse |
list |
*Table
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Query |
string |
Yes |
Pernyataan pencarian. Biasanya menggunakan nama tabel tiga bagian dalam format catalog.namespace.table. |
SELECT * FROM "test-es"."default"."product_info" |
| Limit |
integer |
No |
Jumlah maksimum baris yang dikembalikan. Jika klausa LIMIT sudah ditentukan dalam Pernyataan SQL, klausa LIMIT dalam Pernyataan SQL tersebut akan diutamakan. |
10 |
Elemen respons
|
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 |
Contoh
Respons sukses
JSONformat
{
"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
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | ServiceNotEnable | Layanan tidak diaktifkan. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.