elastic / elastic/enterprise-search-python
Add support to connect with Cloud ID
- Dominant language
- Python
- Stars
- 33
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
The Elasticsearch python client can use the Elastic Cloud ID, but looks like for the Enterprise Search python client this is not supported.
Example from the [documentation](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/connecting.html):
```
from elasticsearch import Elasticsearch
# Password for the 'elastic' user generated by Elasticsearch
ELASTIC_PASSWORD = ""
# Found in the 'Manage Deployment' page
CLOUD_ID = "deployment-name:dXMtZWFzdDQuZ2Nw..."
# Create the client instance
client = Elasticsearch(
cloud_id=CLOUD_ID,
basic_auth=("elastic", ELASTIC_PASSWORD)
)
# Successful response!
client.info()
# {'name': 'instance-0000000000', 'cluster_name': ...}
```
Contributor guide
Assessment
This issue has not been assessed yet.