tencent cloud

All product documents
Querying Data
Last updated: 2023-03-02 14:41:56
Querying Data
Last updated: 2023-03-02 14:41:56

Request address

The address is the instance IP and port, such as 10.13.20.15:9200, which can be obtained in the console.

Request path and method

Path: ${metric_name}/_search, where ${metric_name} is the metric name. Method: GET

Request parameters

You can set the _routing parameter during data write to improve the query efficiency. For more information, see Common Query Samples.

Request content

Queries mainly include regular queries and aggregate queries. Query requests are fully compatible with Elasticsearch APIs as described in Getting started with Elasticsearch. For the specific request content, see Common Query Samples.

Response

You can check whether a request is successful based on the error field. If the response content contains the error field, the request failed. For the error details, see the error field description.

Sample code for curl

For specific query samples, see Common Query Samples.

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon