|
@@ -1,24 +1,6 @@
|
|
|
// 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**.
|
|
|
+
|
|
@@ -33,9 +15,34 @@ 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
|
|
@@ -47,7 +54,4 @@ curl -X GET http://localhost:9200/
|
|
|
----
|
|
|
// NOTCONSOLE
|
|
|
|
|
|
-**Use {kib}**
|
|
|
-
|
|
|
-include::api-call.asciidoc[tag=kibana-api-ex]
|
|
|
// end::self-managed[]
|