Queries the query result.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
searchengine:ListQueryResult |
get |
*Instance
|
None | None |
Request syntax
GET /openapi/ha3/instances/{instanceId}/query HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
ha-cn-pl32rf0**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| query |
string |
No |
The query statement |
query%3D1%26%26config%3Dstart%3A0%2Chit%3A10%2Cformat%3Ajson%26%26cluster%3Dgeneral |
| sql |
string |
No |
The SQL statement that is executed in the query |
query%3Dselect%20max(content_id)%20from%20generation |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The ID of the request |
9E5BCFAA-98B3-51D0-9188-B1BC07589337 |
| Field | Type | Description |
| requestId | String | The ID of the request. |
| result | String | The string returned by the Havenask engine. It can be in a JSON or an xmsql format. |
Examples
Success response
JSON format
{
"requestId": "9E5BCFAA-98B3-51D0-9188-B1BC07589337"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.