def index_template_get(name, hosts=None, profile=None):
 es = _get_instance(hosts, profile)
 try:
  ret = es.indices.get_template(name=name)
  return ret
 except elasticsearch.exceptions.NotFoundError:
  return None
 return None

def index_template_get ( name , hosts = None , profile = None ) : es = _get_instance ( hosts , profile ) try : ret = es . indices . get_template ( name = name ) return ret except elasticsearch . exceptions . NotFoundError : return None return None
retrieve template definition of index or index/type cli example:: salt myminion elasticsearch .