title: How do I list all stored scripts on an Elasticsearch cluster?
body: <p>I would like to be able to list all of the scripts stored on a given Elasticsearch cluster.</p>
  
  <p>The elasticsearch documentation has <a href="https://www.elastic.co/guide/en/elasticsearch/reference/6.3/modules-scripting-using.html#_request_examples" rel="noreferrer">clear examples</a> for how to create, retrieve, use and delete a script with a particular name. Unfortunately, there is no mention of a list endpoint.</p>
  
  <p>The following do <strong>not</strong> work (at least in Elasticsearch 5.4.1):</p>
  
  <ul>
  <li><strike><code>GET _cat/scripts</code></strike></li>
  <li><strike><code>GET _scripts</code></strike></li>
  <li><strike><code>GET _scripts/</code></strike></li>
  </ul>