code: def pipeline_get(id, hosts=None, profile=None):
      '''
      .. versionadded:: 2017.7.0
  
      Retrieve Ingest pipeline definition. Available since Elasticsearch 5.0.
  
      id
          Pipeline id
  
      CLI example::
  
          salt myminion elasticsearch.pipeline_get mypipeline
      '''
      es = _get_instance(hosts, profile)
  
      try:
          return es.ingest.get_pipeline(id=id)
      except elasticsearch.NotFoundError:
          return None
      except elasticsearch.TransportError as e:
          raise CommandExecutionError("Cannot create pipeline {0}, server returned code {1} with message {2}".format(id, e.status_code, e.error))
      except AttributeError:
          raise CommandExecutionError("Method is applicable only for Elasticsearch 5.0+"f pipeline_get(id, hosts=None, profile=None):
      '''
      .. versionadded:: 2017.7.0
  
      Retrieve Ingest pipeline definition. Available since Elasticsearch 5.0.
  
      id
          Pipeline id
  
      CLI example::
  
          salt myminion elasticsearch.pipeline_get mypipeline
      '''
      es = _get_instance(hosts, profile)
  
      try:
          return es.ingest.get_pipeline(id=id)
      except elasticsearch.NotFoundError:
          return None
      except elasticsearch.TransportError as e:
          raise CommandExecutionError("Cannot create pipeline {0}, server returned code {1} with message {2}".format(id, e.status_code, e.error))
      except AttributeError:
          raise CommandExecutionError("Method is applicable only for Elasticsearch 5.0+")
docs: .. versionadded:: 2017.7.0
  
      Retrieve Ingest pipeline definition. Available since Elasticsearch 5.0.
  
      id
          Pipeline id
  
      CLI example::
  
          salt myminion elasticsearch.pipeline_get mypipeline