1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- // tag::cloud[]
- **Use curl**
- . To communicate with {es} using curl or another client, you need your
- cluster's endpoint. Go to the **Elasticsearch** page and click **Copy
- endpoint**.
- . To submit an example API request, run the following curl command in a new
- terminal session. Replace `<password>` with the password for the `elastic` user.
- Replace `<elasticsearch_endpoint>` with your endpoint.
- +
- [source,sh]
- ----
- curl -u elastic:<password> <elasticsearch_endpoint>/
- ----
- // NOTCONSOLE
- **Use {kib}**
- . Go to the *{kib}* page and click **Launch**.
- //tag::kibana-api-ex[]
- . Open {kib}'s main menu and go to **Dev Tools > Console**.
- +
- [role="screenshot"]
- image::images/kibana-console.png[{kib} Console,align="center"]
- . Run the following example API request in the console:
- +
- [source,console]
- ----
- GET /
- ----
- //end::kibana-api-ex[]
- // end::cloud[]
- // tag::self-managed[]
- **Use curl**
- To submit an example API request, run the following curl command in a new
- terminal session.
- [source,sh]
- ----
- curl -X GET http://localhost:9200/
- ----
- // NOTCONSOLE
- **Use {kib}**
- include::api-call.asciidoc[tag=kibana-api-ex]
- // end::self-managed[]
|