Skip to content

Commit 6c698c4

Browse files
committed
Update doc to use encoded API key instead of tuple
1 parent 83f6bee commit 6c698c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide/connecting.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,11 @@ https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-cre
328328
----
329329
from elasticsearch import Elasticsearch
330330
331-
# Adds the HTTP header 'Authorization: ApiKey <base64 api_key.id:api_key.api_key>'
331+
# Adds the HTTP header 'Authorization: ApiKey encoded_api_key>'
332332
es = Elasticsearch(
333333
"https://localhost:9200",
334334
ca_certs="/path/to/http_ca.crt",
335-
api_key=("api_key.id", "api_key.api_key")
335+
api_key="encoded_api_key",
336336
)
337337
----
338338

0 commit comments

Comments
 (0)