This topic describes how to use developer tools, such as Alibaba Cloud CLI, OpenAPI Explorer, and Alibaba Cloud SDKs, to call an Elasticsearch API operation. This topic uses the ListSearchLog operation as an example.
Background information
Before you call an API operation, you must understand related instructions in API documentation and obtain the values of the required request parameters. If an error is reported after you send a request, you can obtain the description of the error code in API documentation.
Methods to make API requests
- Alibaba Cloud CLIIf you want to use a command line tool, you can use this method. Before you use this method, make sure that Alibaba Cloud CLI is installed on the host that you use to send requests. For more information about how to install Alibaba Cloud CLI in different operating systems, see the following topics:
- OpenAPI Explorer
You can use this method if you want to use an interactive operation interface or you are a developer user who is unfamiliar with Alibaba Cloud products. You can also debug API operations and obtain sample SDK requests in OpenAPI Explorer. For more information, see What is OpenAPI Explorer?
- SDK for Java
SDK for Java is ideal for scenarios such as SDK encoding or DevOps. Before you use SDK for Java, you must install a JDK and Maven. The JDK version must be 1.6 or later.