All Products
Search
Document Center

OpenSearch:ListLogs

Last Updated:Jul 16, 2024

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /openapi/ha3/instances/{instanceId}/logs

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

ha-cn-i7m2roiy504
typestringNo

-push -select

push
pageNumstringNo

The number of entries per num. Default value: 1.

1
pageSizestringNo

The number of entries per page. Default value: 10.

10
startTimestringNo

The start time. The value is a timestamp in seconds.

1706340600
endTimestringNo

The end tim. The value is a timestamp in seconds.

1710432000
querystringNo

The query statement

status: 200 AND totalTime > 0.01

Response parameters

ParameterTypeDescriptionExample
object
requestIdstring

id of request

022F36C7-9FB4-5D67-BEBC-3D14B0984463
resultobject

ListResult

resultarray

The result.

any

query result

[{"requestTime":"2024-07-02T16:06:57+08:00","totalTime":"0.003","requestId":"6d63e7a9b58a04827cfxxxxx","host":"ha-cn-xxx.ha.aliyuncs.com","requestUri":"/vector-service/fetch","status":"200"}]
totalCountinteger

The total number of entries returned

5

Examples

Sample success responses

JSONformat

{
  "requestId": "022F36C7-9FB4-5D67-BEBC-3D14B0984463",
  "result": {
    "result": [
      "[{\"requestTime\":\"2024-07-02T16:06:57+08:00\",\"totalTime\":\"0.003\",\"requestId\":\"6d63e7a9b58a04827cfxxxxx\",\"host\":\"ha-cn-xxx.ha.aliyuncs.com\",\"requestUri\":\"/vector-service/fetch\",\"status\":\"200\"}]"
    ],
    "totalCount": 5
  }
}

Error codes

For a list of error codes, visit the Service error codes.