Elasticsearch API over https with CA commands

Change max buckets in cluster

Example:

curl --cacert /etc/elasticsearch/certs/ca.crt -u elastic -X PUT "https://eshost:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d'<br>{<br>"persistent" : {<br>"search.max_buckets" : "20000"<br>}<br>}<br>' 

View changed settings in cluster

curl –cacert /etc/elasticsearch/certs/ca.crt -u elastic -XGET ‘https://eshost:9200/_cluster/settings?pretty’

View elasticsearch license over API

curl –cacert /etc/elasticsearch/certs/ca.crt -u elastic -XGET “https://eshost:9200/_license?pretty”