Skip to content

Commit

Permalink
Merge pull request #8434 from elastic/predogma-patch-1
Browse files Browse the repository at this point in the history
Update getting-started.asciidoc
  • Loading branch information
marciw authored Dec 21, 2024
2 parents 36e93ee + d7612c5 commit 907eb2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions docs/getting-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,21 @@ Refer to the <<installation>> page to learn more.
[discrete]
=== Connecting

You can connect to the Elastic Cloud using an API key and the Elasticsearch
endpoint.
You can connect to the Elastic Cloud using an API key and your Elasticsearch
Cloud ID.

[source,net]
----
var client = new ElasticsearchClient("<CLOUD_ID>", new ApiKey("<API_KEY>"));
----

Your Elasticsearch endpoint can be found on the **My deployment** page of your
deployment:
You can find your Elasticsearch Cloud ID on the deployment page:

image::images/es-endpoint.jpg[alt="Finding Elasticsearch endpoint",align="center"]
image::images/es-cloudid.jpg[alt="Cloud ID on the deployment page",align="center"]

You can generate an API key on the **Management** page under Security.

image::images/create-api-key.png[alt="Create API key",align="center"]
To generate an API key, use the
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html[Elasticsearch Create API key API]
or https://www.elastic.co/guide/en/kibana/current/api-keys.html#create-api-key[Kibana Stack Management].

For other connection options, refer to the <<connecting>> section.

Expand Down Expand Up @@ -158,4 +157,4 @@ var response = await client.Indices.DeleteAsync("my_index");
== Further reading

* Refer to the <<recommendations>> page to learn more about how to use the
client the most efficiently.
client the most efficiently.
Binary file added docs/images/es-cloudid.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 907eb2b

Please sign in to comment.