Connection module for Elasticsearch
| depends: | elasticsearch |
|---|
salt.modules.elasticsearch.delete(index, doc_type, id, hosts=None, profile='elasticsearch')¶Delete the document specified by the id in the index.
CLI example:
salt myminion elasticsearch.delete grafana-dash dashboard mydash profile='grafana'
salt.modules.elasticsearch.exists(index, id, doc_type='_all', hosts=None, profile='elasticsearch')¶Check for the existence of an elasticsearch document specified by id in the index.
CLI example:
salt myminion elasticsearch.exists grafana-dash mydash profile='grafana'
salt.modules.elasticsearch.get(index, id, doc_type='_all', hosts=None, profile='elasticsearch')¶Get the contents of the specifed id from the index.
CLI example:
salt myminion elasticsearch.get grafana-dash mydash profile='grafana'
salt.modules.elasticsearch.index(index, doc_type, body, id=None, hosts=None, profile='elasticsearch')¶Create or update an index with the specified body for the specified id.
CLI example:
salt myminion elasticsearch.index grafana-dash dashboard '{"user":"guest","group":"guest","body":"",...}' mydash profile='grafana'