New

The executive guide to generative AI

Read more
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Ping API

edit

Execution

edit

The ping() method checks if the cluster is up and available to process requests and returns a boolean:

boolean response = client.ping(RequestOptions.DEFAULT);
Was this helpful?
Feedback