elasticsearch/docs/reference/tab-widgets/api-call.asciidoc
James Rodewig 9003d10dcf
[DOCS] Update ES quick start for Cloud UI (#82499)
Changes:

* Updates the Cloud setup instructions to note that you open Kibana by default.
* Reorders the API call section to highlight Kibana.
* Fixes the Docker `ifeval` to hide some text on unreleased branches.
2022-01-13 07:46:04 -05:00

57 lines
1.2 KiB
Text

// tag::cloud[]
**Use {kib}**
//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[]
**Use curl**
To communicate with {es} using curl or another client, you need your cluster's
endpoint.
. Open {kib}'s main menu and click **Manage this deployment**.
. From your deployment menu, go to the **Elasticsearch** page. 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
// end::cloud[]
// tag::self-managed[]
**Use {kib}**
include::api-call.asciidoc[tag=kibana-api-ex]
**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
// end::self-managed[]