code: def alias_get(indices=None, aliases=None, hosts=None, profile=None):
      '''
      Check for the existence of an alias and if it exists, return it
  
      indices
          Single or multiple indices separated by comma, use _all to perform the operation on all indices.
      aliases
          Alias names separated by comma
  
      CLI example::
  
          salt myminion elasticsearch.alias_get testindex
      '''
      es = _get_instance(hosts, profile)
  
      try:
          return es.indices.get_alias(index=indices, name=aliases)
      except elasticsearch.exceptions.NotFoundError:
          return None
      except elasticsearch.TransportError as e:
          raise CommandExecutionError("Cannot get alias {0} in index {1}, server returned code {2} with message {3}".format(aliases, indices, e.status_code, e.error)f alias_get(indices=None, aliases=None, hosts=None, profile=None):
      '''
      Check for the existence of an alias and if it exists, return it
  
      indices
          Single or multiple indices separated by comma, use _all to perform the operation on all indices.
      aliases
          Alias names separated by comma
  
      CLI example::
  
          salt myminion elasticsearch.alias_get testindex
      '''
      es = _get_instance(hosts, profile)
  
      try:
          return es.indices.get_alias(index=indices, name=aliases)
      except elasticsearch.exceptions.NotFoundError:
          return None
      except elasticsearch.TransportError as e:
          raise CommandExecutionError("Cannot get alias {0} in index {1}, server returned code {2} with message {3}".format(aliases, indices, e.status_code, e.error))
docs: Check for the existence of an alias and if it exists, return it
  
      indices
          Single or multiple indices separated by comma, use _all to perform the operation on all indices.
      aliases
          Alias names separated by comma
  
      CLI example::
  
          salt myminion elasticsearch.alias_get testindex