Elasticsearch can be accessed locally via the environment only using the URL
http://elasticsearch:9200/. It does not expose a public URL currently.
Therefore, you should use
dx ssh to create an isolated SSH session for your environment, and then use commands like:
curl -X GET "elasticsearch:9200/_cat/plugins?v=true&s=component&h=name,component,version,description&pretty"